Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.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/Buildings 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/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(Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.VariablePowerSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|RL.i.1.|RL.i.2.|RL.S.1.|RL.S.2.|generator.S.1.|generator.S.2.|grid.sou.S.1.|grid.sou.S.2.",fileNamePrefix="Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.VariablePowerSource") translateModel(Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.VariablePowerSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|RL.i.1.|RL.i.2.|RL.S.1.|RL.S.2.|generator.S.1.|generator.S.2.|grid.sou.S.1.|grid.sou.S.2.",fileNamePrefix="Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.VariablePowerSource") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001335/0.001335, allocations: 116.2 kB / 16.42 MB, free: 6.473 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.001445/0.001446, allocations: 187.9 kB / 17.35 MB, free: 5.711 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.406/1.406, allocations: 222.9 MB / 241 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.502/2.502, allocations: 437.1 MB / 0.7112 GB, free: 4.426 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001524/0.001524, allocations: 64.12 kB / 1.019 GB, free: 9.426 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8215/0.8231, allocations: 151.6 MB / 1.167 GB, free: 3.855 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.VariablePowerSource): time 0.005442/0.8285, allocations: 3.565 MB / 1.171 GB, free: 284 kB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.00327/0.8319, allocations: 1.886 MB / 1.173 GB, free: 14.38 MB / 0.9044 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002236/0.8321, allocations: 8 kB / 1.173 GB, free: 14.37 MB / 0.9044 GB Notification: Performance of NFTyping.typeComponents: time 0.0009681/0.8331, allocations: 244.2 kB / 1.173 GB, free: 14.13 MB / 0.9044 GB Notification: Performance of NFTyping.typeBindings: time 0.0007112/0.8338, allocations: 215 kB / 1.173 GB, free: 13.92 MB / 0.9044 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007786/0.8346, allocations: 251.3 kB / 1.173 GB, free: 13.68 MB / 0.9044 GB Notification: Performance of NFFlatten.flatten: time 0.0006234/0.8352, allocations: 394.7 kB / 1.174 GB, free: 13.29 MB / 0.9044 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004227/0.8357, allocations: 213.8 kB / 1.174 GB, free: 13.08 MB / 0.9044 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002945/0.836, allocations: 163.4 kB / 1.174 GB, free: 12.92 MB / 0.9044 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003607/0.8364, allocations: 183.3 kB / 1.174 GB, free: 12.74 MB / 0.9044 GB Notification: Performance of NFPackage.collectConstants: time 5.257e-05/0.8364, allocations: 24 kB / 1.174 GB, free: 12.71 MB / 0.9044 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005082/0.8369, allocations: 291.4 kB / 1.175 GB, free: 12.43 MB / 0.9044 GB Notification: Performance of NFScalarize.scalarize: time 0.0001267/0.8371, allocations: 99.77 kB / 1.175 GB, free: 12.33 MB / 0.9044 GB Notification: Performance of NFVerifyModel.verify: time 0.0001715/0.8373, allocations: 143.2 kB / 1.175 GB, free: 12.19 MB / 0.9044 GB Notification: Performance of NFConvertDAE.convert: time 0.000696/0.838, allocations: 490.8 kB / 1.175 GB, free: 11.71 MB / 0.9044 GB Notification: Performance of FrontEnd - DAE generated: time 4.729e-06/0.838, allocations: 0 / 1.175 GB, free: 11.71 MB / 0.9044 GB Notification: Performance of FrontEnd: time 1.282e-06/0.838, allocations: 4 kB / 1.175 GB, free: 11.71 MB / 0.9044 GB Notification: Performance of Transformations before backend: time 1.051e-05/0.838, allocations: 4 kB / 1.175 GB, free: 11.71 MB / 0.9044 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.001444/0.8394, allocations: 0.6441 MB / 1.176 GB, free: 11.01 MB / 0.9044 GB Notification: Performance of prepare preOptimizeDAE: time 5.661e-05/0.8395, allocations: 12.92 kB / 1.176 GB, free: 11 MB / 0.9044 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001017/0.8405, allocations: 128.6 kB / 1.176 GB, free: 10.87 MB / 0.9044 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004096/0.841, allocations: 285.4 kB / 1.176 GB, free: 10.55 MB / 0.9044 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.119e-05/0.841, allocations: 16.75 kB / 1.176 GB, free: 10.54 MB / 0.9044 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.72e-05/0.8411, allocations: 28.34 kB / 1.176 GB, free: 10.51 MB / 0.9044 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008487/0.8419, allocations: 426.8 kB / 1.177 GB, free: 10.07 MB / 0.9044 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.837e-05/0.842, allocations: 4 kB / 1.177 GB, free: 10.06 MB / 0.9044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.813e-05/0.842, allocations: 4 kB / 1.177 GB, free: 10.06 MB / 0.9044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.969e-05/0.8421, allocations: 32.34 kB / 1.177 GB, free: 10.02 MB / 0.9044 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009946/0.8431, allocations: 396.8 kB / 1.177 GB, free: 9.637 MB / 0.9044 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001933/0.845, allocations: 1.627 MB / 1.179 GB, free: 7.883 MB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001272/0.8463, allocations: 480.9 kB / 1.179 GB, free: 7.395 MB / 0.9044 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004632/0.8468, allocations: 201.6 kB / 1.179 GB, free: 7.191 MB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001394/0.8469, allocations: 85.09 kB / 1.179 GB, free: 7.09 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000584/0.8475, allocations: 274.5 kB / 1.18 GB, free: 6.801 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=27): time 2.405e-06/0.8475, allocations: 0 / 1.18 GB, free: 6.801 MB / 0.9044 GB Notification: Performance of matching and sorting (n=28): time 0.002056/0.8496, allocations: 0.7608 MB / 1.18 GB, free: 6.012 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.359e-05/0.8497, allocations: 85.05 kB / 1.181 GB, free: 5.91 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002439/0.8499, allocations: 232.9 kB / 1.181 GB, free: 5.672 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 3.685e-05/0.8499, allocations: 29.7 kB / 1.181 GB, free: 5.637 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 0.000124/0.8501, allocations: 168.6 kB / 1.181 GB, free: 5.465 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001065/0.8502, allocations: 103.2 kB / 1.181 GB, free: 5.363 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001307/0.8503, allocations: 61.69 kB / 1.181 GB, free: 5.297 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.0001637/0.8505, allocations: 338.8 kB / 1.181 GB, free: 4.957 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000476/0.851, allocations: 177.1 kB / 1.182 GB, free: 4.781 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005291/0.8515, allocations: 249.3 kB / 1.182 GB, free: 4.508 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001024/0.8526, allocations: 466.4 kB / 1.182 GB, free: 4.016 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.006e-06/0.8526, allocations: 0 / 1.182 GB, free: 4.016 MB / 0.9044 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.001331/0.8539, allocations: 0.5477 MB / 1.183 GB, free: 3.453 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 5.051e-05/0.854, allocations: 40.59 kB / 1.183 GB, free: 3.41 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.029e-05/0.854, allocations: 4 kB / 1.183 GB, free: 3.406 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002563/0.8543, allocations: 40.83 kB / 1.183 GB, free: 3.363 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004317/0.8547, allocations: 88.02 kB / 1.183 GB, free: 3.277 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001601/0.8563, allocations: 1.623 MB / 1.185 GB, free: 1.512 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003952/0.8567, allocations: 47.84 kB / 1.185 GB, free: 1.465 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.743e-05/0.8568, allocations: 15.98 kB / 1.185 GB, free: 1.449 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.000553/0.8573, allocations: 280.1 kB / 1.185 GB, free: 1.172 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004907/0.8578, allocations: 250 kB / 1.185 GB, free: 0.8945 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0009279/0.8588, allocations: 444.8 kB / 1.186 GB, free: 428 kB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.215e-06/0.8588, allocations: 0 / 1.186 GB, free: 428 kB / 0.9044 GB Notification: Performance of matching and sorting (n=39) (initialization_lambda0): time 0.001239/0.86, allocations: 0.5231 MB / 1.186 GB, free: 15.88 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 3.069e-05/0.8601, allocations: 37.77 kB / 1.186 GB, free: 15.83 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.841e-06/0.8601, allocations: 4 kB / 1.186 GB, free: 15.83 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001483/0.8602, allocations: 40.81 kB / 1.186 GB, free: 15.79 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000394/0.8606, allocations: 83.86 kB / 1.186 GB, free: 15.7 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001371/0.862, allocations: 1.607 MB / 1.188 GB, free: 13.95 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003544/0.8624, allocations: 55.78 kB / 1.188 GB, free: 13.9 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.302e-05/0.8624, allocations: 16 kB / 1.188 GB, free: 13.88 MB / 0.92 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.0001727/0.8626, allocations: 202 kB / 1.188 GB, free: 13.68 MB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.515e-05/0.8627, allocations: 23.86 kB / 1.188 GB, free: 13.66 MB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001158/0.8638, allocations: 485.2 kB / 1.189 GB, free: 13.18 MB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.062e-05/0.8639, allocations: 0 / 1.189 GB, free: 13.18 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.703e-06/0.8639, allocations: 3.938 kB / 1.189 GB, free: 13.17 MB / 0.92 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001473/0.864, allocations: 136.9 kB / 1.189 GB, free: 13.02 MB / 0.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.245e-05/0.8641, allocations: 11.94 kB / 1.189 GB, free: 13.01 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003452/0.8644, allocations: 43.94 kB / 1.189 GB, free: 12.96 MB / 0.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001152/0.8646, allocations: 31.95 kB / 1.189 GB, free: 12.93 MB / 0.92 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.00126/0.8658, allocations: 0.606 MB / 1.189 GB, free: 12.32 MB / 0.92 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.001423/0.8673, allocations: 0.8419 MB / 1.19 GB, free: 11.46 MB / 0.92 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0004363/0.8677, allocations: 180 kB / 1.19 GB, free: 11.28 MB / 0.92 GB Notification: Performance of sorting global known variables: time 0.0002559/0.868, allocations: 180.5 kB / 1.191 GB, free: 11.11 MB / 0.92 GB Notification: Performance of Backend: time 2.435e-06/0.868, allocations: 0 / 1.191 GB, free: 11.11 MB / 0.92 GB Notification: Performance of simCode: created initialization part: time 0.002568/0.8706, allocations: 1.067 MB / 1.192 GB, free: 9.984 MB / 0.92 GB Notification: Performance of SimCode: time 0.00116/0.8717, allocations: 0.9687 MB / 1.193 GB, free: 8.965 MB / 0.92 GB Notification: Performance of Templates: time 0.01373/0.8855, allocations: 7.85 MB / 1.2 GB, free: 1.145 MB / 0.92 GB make -j1 -f Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.VariablePowerSource.makefile (rm -f Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.VariablePowerSource.pipe ; mkfifo Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.VariablePowerSource.pipe ; head -c 1048576 < Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.VariablePowerSource.pipe >> ../files/Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.VariablePowerSource.sim & ./Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.VariablePowerSource -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.VariablePowerSource.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.VariablePowerSource_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Electrical_AC_ThreePhasesBalanced_Sources_Examples_VariablePowerSource.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.VariablePowerSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches