Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(BuildingSystems.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource") translateModel(BuildingSystems.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001686/0.001686, allocations: 108 kB / 16.42 MB, free: 6.449 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001547/0.001547, allocations: 185.7 kB / 17.35 MB, free: 5.734 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.37/1.37, allocations: 222.9 MB / 241.1 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002283/0.002283, allocations: 277.5 kB / 291.5 MB, free: 14.48 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9509/0.9509, allocations: 169.2 MB / 0.499 GB, free: 4.453 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001877/0.001877, allocations: 87.86 kB / 0.6821 GB, free: 6.945 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4224/0.4242, allocations: 86.97 MB / 0.767 GB, free: 3.922 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource): time 0.004518/0.4288, allocations: 3.028 MB / 0.77 GB, free: 0.8789 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.002849/0.4317, allocations: 1.737 MB / 0.7717 GB, free: 15.13 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001921/0.4319, allocations: 8 kB / 0.7717 GB, free: 15.12 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.0008477/0.4327, allocations: 231 kB / 0.7719 GB, free: 14.9 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.0005295/0.4333, allocations: 203 kB / 0.7721 GB, free: 14.7 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006608/0.434, allocations: 247.3 kB / 0.7724 GB, free: 14.46 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.000536/0.4345, allocations: 398.7 kB / 0.7727 GB, free: 14.07 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003894/0.4349, allocations: 213.5 kB / 0.7729 GB, free: 13.86 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002697/0.4352, allocations: 159.5 kB / 0.7731 GB, free: 13.7 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003536/0.4355, allocations: 183.3 kB / 0.7733 GB, free: 13.52 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 5.992e-05/0.4356, allocations: 31.94 kB / 0.7733 GB, free: 13.49 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004602/0.4361, allocations: 251.4 kB / 0.7735 GB, free: 13.25 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.0001253/0.4362, allocations: 103.7 kB / 0.7736 GB, free: 13.14 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.0001656/0.4364, allocations: 139.3 kB / 0.7738 GB, free: 13.01 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.0006168/0.437, allocations: 473.1 kB / 0.7742 GB, free: 12.55 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 5.971e-06/0.437, allocations: 4 kB / 0.7742 GB, free: 12.54 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.162e-06/0.437, allocations: 0 / 0.7742 GB, free: 12.54 MB / 0.545 GB Notification: Performance of Transformations before backend: time 9.828e-06/0.4371, allocations: 4 kB / 0.7742 GB, free: 12.54 MB / 0.545 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 57 * Number of variables: 57 Notification: Performance of Generate backend data structure: time 0.001261/0.4383, allocations: 0.6292 MB / 0.7748 GB, free: 11.86 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 3.862e-05/0.4384, allocations: 8.031 kB / 0.7749 GB, free: 11.85 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007522/0.4391, allocations: 92.47 kB / 0.7749 GB, free: 11.76 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003853/0.4395, allocations: 296.7 kB / 0.7752 GB, free: 11.43 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.004e-05/0.4396, allocations: 16.81 kB / 0.7752 GB, free: 11.41 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.724e-05/0.4396, allocations: 16.38 kB / 0.7753 GB, free: 11.4 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007995/0.4404, allocations: 422.8 kB / 0.7757 GB, free: 10.96 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.406e-05/0.4404, allocations: 0 / 0.7757 GB, free: 10.96 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.753e-05/0.4405, allocations: 15.98 kB / 0.7757 GB, free: 10.94 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.049e-05/0.4405, allocations: 20.36 kB / 0.7757 GB, free: 10.92 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008666/0.4414, allocations: 388.8 kB / 0.7761 GB, free: 10.54 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001802/0.4432, allocations: 1.607 MB / 0.7776 GB, free: 8.805 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001173/0.4444, allocations: 453.1 kB / 0.7781 GB, free: 8.344 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004285/0.4449, allocations: 194.2 kB / 0.7782 GB, free: 8.148 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001418/0.445, allocations: 89.09 kB / 0.7783 GB, free: 8.043 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005483/0.4456, allocations: 266.2 kB / 0.7786 GB, free: 7.766 MB / 0.545 GB Notification: Performance of pre-optimization done (n=27): time 1.563e-06/0.4456, allocations: 0 / 0.7786 GB, free: 7.766 MB / 0.545 GB Notification: Performance of matching and sorting (n=28): time 0.001896/0.4475, allocations: 0.7484 MB / 0.7793 GB, free: 6.988 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.258e-05/0.4475, allocations: 85.09 kB / 0.7794 GB, free: 6.887 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002352/0.4478, allocations: 221 kB / 0.7796 GB, free: 6.668 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 3.716e-05/0.4478, allocations: 33.89 kB / 0.7796 GB, free: 6.629 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001159/0.4479, allocations: 168.3 kB / 0.7798 GB, free: 6.461 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 7.37e-05/0.448, allocations: 86.75 kB / 0.7799 GB, free: 6.375 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001123/0.4481, allocations: 65.59 kB / 0.7799 GB, free: 6.305 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.000128/0.4483, allocations: 338.8 kB / 0.7803 GB, free: 5.965 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004232/0.4487, allocations: 173.1 kB / 0.7804 GB, free: 5.793 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004509/0.4492, allocations: 253 kB / 0.7807 GB, free: 5.516 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008648/0.45, allocations: 464.1 kB / 0.7811 GB, free: 5.027 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.894e-06/0.4501, allocations: 0 / 0.7811 GB, free: 5.027 MB / 0.545 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.001153/0.4512, allocations: 0.5367 MB / 0.7816 GB, free: 4.477 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 4.151e-05/0.4513, allocations: 33.64 kB / 0.7817 GB, free: 4.438 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.155e-05/0.4513, allocations: 7.984 kB / 0.7817 GB, free: 4.43 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002272/0.4515, allocations: 40.81 kB / 0.7817 GB, free: 4.387 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004108/0.4519, allocations: 84.12 kB / 0.7818 GB, free: 4.305 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001482/0.4534, allocations: 1.611 MB / 0.7834 GB, free: 2.547 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003384/0.4538, allocations: 43.8 kB / 0.7834 GB, free: 2.504 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.263e-05/0.4538, allocations: 12 kB / 0.7834 GB, free: 2.492 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0004814/0.4543, allocations: 276.3 kB / 0.7837 GB, free: 2.219 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004284/0.4548, allocations: 234 kB / 0.7839 GB, free: 1.957 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0008096/0.4556, allocations: 432.9 kB / 0.7843 GB, free: 1.496 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.948e-06/0.4556, allocations: 4 kB / 0.7843 GB, free: 1.492 MB / 0.545 GB Notification: Performance of matching and sorting (n=39) (initialization_lambda0): time 0.001123/0.4567, allocations: 0.511 MB / 0.7848 GB, free: 0.9648 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 2.949e-05/0.4568, allocations: 37.69 kB / 0.7849 GB, free: 0.9219 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5e-06/0.4568, allocations: 4 kB / 0.7849 GB, free: 0.918 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001397/0.4569, allocations: 36.83 kB / 0.7849 GB, free: 0.8789 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003616/0.4573, allocations: 84.14 kB / 0.785 GB, free: 0.7969 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001342/0.4586, allocations: 1.608 MB / 0.7866 GB, free: 15.04 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003197/0.459, allocations: 51.73 kB / 0.7866 GB, free: 14.99 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.874e-05/0.459, allocations: 19.88 kB / 0.7866 GB, free: 14.97 MB / 0.5606 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 5 (load.count,$PRE.load.count,load.T_start,$PRE.load.T_start,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (36): * Single equations (assignments): 34 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001605/0.4592, allocations: 203.4 kB / 0.7868 GB, free: 14.77 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.122e-05/0.4592, allocations: 23.72 kB / 0.7868 GB, free: 14.74 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001108/0.4604, allocations: 461 kB / 0.7873 GB, free: 14.28 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.824e-06/0.4604, allocations: 7.922 kB / 0.7873 GB, free: 14.27 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.016e-06/0.4604, allocations: 4 kB / 0.7873 GB, free: 14.27 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001621/0.4606, allocations: 132.7 kB / 0.7874 GB, free: 14.12 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.081e-05/0.4606, allocations: 12 kB / 0.7874 GB, free: 14.11 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003247/0.4609, allocations: 43.92 kB / 0.7875 GB, free: 14.07 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001029/0.4611, allocations: 23.97 kB / 0.7875 GB, free: 14.04 MB / 0.5606 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.001312/0.4624, allocations: 0.6196 MB / 0.7881 GB, free: 13.41 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.001388/0.4638, allocations: 0.8461 MB / 0.7889 GB, free: 12.55 MB / 0.5606 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0004145/0.4642, allocations: 174.2 kB / 0.7891 GB, free: 12.38 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.0001705/0.4644, allocations: 180.5 kB / 0.7893 GB, free: 12.21 MB / 0.5606 GB Notification: Performance of Backend: time 4.01e-07/0.4644, allocations: 0 / 0.7893 GB, free: 12.21 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.002237/0.4666, allocations: 1.029 MB / 0.7903 GB, free: 11.12 MB / 0.5606 GB Notification: Performance of SimCode: time 0.001103/0.4677, allocations: 0.9628 MB / 0.7912 GB, free: 10.11 MB / 0.5606 GB Notification: Performance of Templates: time 0.01244/0.4802, allocations: 7.231 MB / 0.7983 GB, free: 2.906 MB / 0.5606 GB make -j1 -f BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.makefile (rm -f BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.pipe ; mkfifo BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.pipe >> ../files/BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.sim & ./BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.pipe 2>&1)