Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.CityTest.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/PowerSystems 2.0.0-master/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-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(PowerSystems.Examples.PowerWorld.Test.CityTest,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|city.p.1.|city.p.2.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.CityTest") translateModel(PowerSystems.Examples.PowerWorld.Test.CityTest,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|city.p.1.|city.p.2.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.CityTest") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001198/0.001198, allocations: 112.3 kB / 17.06 MB, free: 5.992 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.001524/0.001524, allocations: 198.8 kB / 18.01 MB, free: 5.066 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.447/1.447, allocations: 222.9 MB / 241.7 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1758/0.1758, allocations: 38.05 MB / 329.9 MB, free: 8.711 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001505/0.001505, allocations: 55.91 kB / 458.1 MB, free: 6.824 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.433/0.4346, allocations: 58.07 MB / 0.5041 GB, free: 7.789 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.Test.CityTest): time 0.006303/0.4409, allocations: 3.603 MB / 0.5076 GB, free: 5.285 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.003022/0.444, allocations: 1.804 MB / 0.5094 GB, free: 4.031 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004657/0.4445, allocations: 10.31 kB / 0.5094 GB, free: 4.027 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001434/0.4459, allocations: 233.2 kB / 0.5096 GB, free: 3.887 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001124/0.4471, allocations: 261.9 kB / 0.5099 GB, free: 3.746 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008566/0.448, allocations: 213 kB / 0.5101 GB, free: 3.633 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007682/0.4487, allocations: 444.3 kB / 0.5105 GB, free: 3.43 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000389/0.4491, allocations: 185.9 kB / 0.5107 GB, free: 3.359 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004389/0.4496, allocations: 185.5 kB / 0.5109 GB, free: 3.273 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002759/0.4499, allocations: 175.9 kB / 0.511 GB, free: 3.191 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.313e-05/0.4499, allocations: 27.09 kB / 0.511 GB, free: 3.191 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007159/0.4507, allocations: 320.4 kB / 0.5113 GB, free: 3.074 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001542/0.4508, allocations: 116.8 kB / 0.5115 GB, free: 3.023 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001628/0.451, allocations: 153.4 kB / 0.5116 GB, free: 2.922 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009988/0.452, allocations: 0.5078 MB / 0.5121 GB, free: 2.73 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.043e-06/0.452, allocations: 12.84 kB / 0.5121 GB, free: 2.719 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.144e-06/0.452, allocations: 0 / 0.5121 GB, free: 2.719 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.567e-05/0.4521, allocations: 0 / 0.5121 GB, free: 2.719 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 50 * Number of variables: 50 Notification: Performance of Generate backend data structure: time 0.001015/0.4531, allocations: 0.6294 MB / 0.5127 GB, free: 2.176 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.231e-05/0.4531, allocations: 13.11 kB / 0.5127 GB, free: 2.172 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007966/0.4539, allocations: 91.97 kB / 0.5128 GB, free: 2.148 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004913/0.4544, allocations: 385.2 kB / 0.5132 GB, free: 1.848 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.288e-05/0.4545, allocations: 12.28 kB / 0.5132 GB, free: 1.844 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.629e-05/0.4545, allocations: 25.41 kB / 0.5132 GB, free: 1.832 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005818/0.4551, allocations: 352.5 kB / 0.5136 GB, free: 1.645 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.259e-05/0.4551, allocations: 5.156 kB / 0.5136 GB, free: 1.641 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.063e-05/0.4552, allocations: 7.016 kB / 0.5136 GB, free: 1.637 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.448e-05/0.4552, allocations: 19.11 kB / 0.5136 GB, free: 1.633 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006372/0.4558, allocations: 392 kB / 0.514 GB, free: 1.52 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001727/0.4576, allocations: 1.54 MB / 0.5155 GB, free: 328 kB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000607/0.4582, allocations: 325.3 kB / 0.5158 GB, free: 176 kB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001731/0.4584, allocations: 101.3 kB / 0.5159 GB, free: 128 kB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.87e-05/0.4584, allocations: 9.969 kB / 0.5159 GB, free: 124 kB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003518/0.4588, allocations: 206.8 kB / 0.5161 GB, free: 15.99 MB / 398.1 MB Notification: Performance of pre-optimization done (n=24): time 1.873e-06/0.4588, allocations: 0 / 0.5161 GB, free: 15.99 MB / 398.1 MB Notification: Performance of matching and sorting (n=24): time 0.0009724/0.4598, allocations: 384.2 kB / 0.5165 GB, free: 15.84 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001033/0.4599, allocations: 132.4 kB / 0.5166 GB, free: 15.68 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004607/0.4604, allocations: 295 kB / 0.5169 GB, free: 15.52 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.044e-05/0.4604, allocations: 32.8 kB / 0.5169 GB, free: 15.48 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001633/0.4606, allocations: 183 kB / 0.5171 GB, free: 15.33 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.367e-05/0.4607, allocations: 89.83 kB / 0.5172 GB, free: 15.26 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001185/0.4608, allocations: 56.53 kB / 0.5172 GB, free: 15.22 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001961/0.461, allocations: 339.8 kB / 0.5175 GB, free: 14.9 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002546/0.4613, allocations: 101.4 kB / 0.5176 GB, free: 14.86 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003294/0.4616, allocations: 182.5 kB / 0.5178 GB, free: 14.72 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006026/0.4622, allocations: 300.4 kB / 0.5181 GB, free: 14.53 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.926e-06/0.4622, allocations: 0 / 0.5181 GB, free: 14.53 MB / 398.1 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0007261/0.463, allocations: 365.4 kB / 0.5184 GB, free: 14.37 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.685e-05/0.463, allocations: 7.609 kB / 0.5184 GB, free: 14.37 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.072e-05/0.463, allocations: 1.438 kB / 0.5184 GB, free: 14.37 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.505e-05/0.4631, allocations: 4.031 kB / 0.5185 GB, free: 14.37 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002954/0.4634, allocations: 66.12 kB / 0.5185 GB, free: 14.36 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.582e-05/0.4634, allocations: 4.172 kB / 0.5185 GB, free: 14.36 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001701/0.4636, allocations: 28.94 kB / 0.5185 GB, free: 14.34 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.485e-05/0.4636, allocations: 16.05 kB / 0.5186 GB, free: 14.34 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 6 ($PRE.city.data.nextTimeEvent,$whenCondition1,city.data.nextTimeEventScaled,$PRE.city.data.nextTimeEventScaled,city.data.nextTimeEvent,system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (33): * Single equations (assignments): 33 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002528/0.4639, allocations: 183.8 kB / 0.5187 GB, free: 14.18 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.018e-05/0.464, allocations: 30.39 kB / 0.5188 GB, free: 14.17 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007048/0.4647, allocations: 316.6 kB / 0.5191 GB, free: 14.04 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.758e-06/0.4647, allocations: 3.172 kB / 0.5191 GB, free: 14.04 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.462e-06/0.4647, allocations: 5 kB / 0.5191 GB, free: 14.03 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.668e-06/0.4647, allocations: 6.375 kB / 0.5191 GB, free: 14.03 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001173/0.4659, allocations: 0.7554 MB / 0.5198 GB, free: 13.55 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.296e-06/0.4659, allocations: 1.188 kB / 0.5198 GB, free: 13.55 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001663/0.4661, allocations: 43.25 kB / 0.5199 GB, free: 13.54 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.193e-06/0.4661, allocations: 5.125 kB / 0.5199 GB, free: 13.54 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.251e-05/0.4661, allocations: 6.766 kB / 0.5199 GB, free: 13.54 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.982e-06/0.4661, allocations: 5.938 kB / 0.5199 GB, free: 13.54 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.995e-06/0.4661, allocations: 1.125 kB / 0.5199 GB, free: 13.54 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006284/0.4668, allocations: 412.3 kB / 0.5203 GB, free: 13.29 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000103/0.4669, allocations: 109.1 kB / 0.5204 GB, free: 13.18 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.004e-05/0.467, allocations: 15.91 kB / 0.5204 GB, free: 13.17 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001245/0.4671, allocations: 11.41 kB / 0.5204 GB, free: 13.16 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.061e-05/0.4672, allocations: 14.22 kB / 0.5204 GB, free: 13.16 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.443e-05/0.4672, allocations: 13.16 kB / 0.5204 GB, free: 13.16 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002769/0.4675, allocations: 214.2 kB / 0.5206 GB, free: 13.04 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.4675, allocations: 4 kB / 0.5206 GB, free: 13.04 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004524/0.468, allocations: 75.86 kB / 0.5207 GB, free: 13.02 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 4 (system.initime,$whenCondition1,city.data.nextTimeEvent,city.data.nextTimeEventScaled) * Number of discrete states: 2 (city.data.nextTimeEvent,city.data.nextTimeEventScaled) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (25): * Single equations (assignments): 22 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001173/0.4691, allocations: 460.6 kB / 0.5211 GB, free: 12.8 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0005504/0.4697, allocations: 256.5 kB / 0.5214 GB, free: 12.71 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.665e-06/0.4697, allocations: 1.094 kB / 0.5214 GB, free: 12.71 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002295/0.47, allocations: 119.2 kB / 0.5215 GB, free: 12.67 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005162/0.4705, allocations: 60.69 kB / 0.5216 GB, free: 12.65 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001238/0.4717, allocations: 0.6022 MB / 0.5222 GB, free: 12.29 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004549/0.4722, allocations: 0.7864 MB / 0.5229 GB, free: 11.59 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0002118/0.4724, allocations: 88.23 kB / 0.523 GB, free: 11.57 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.978e-05/0.4725, allocations: 41.16 kB / 0.523 GB, free: 11.56 MB / 398.1 MB Notification: Performance of SimCode: time 2.91e-07/0.4725, allocations: 1.375 kB / 0.523 GB, free: 11.56 MB / 398.1 MB Notification: Performance of Templates: time 0.009705/0.4822, allocations: 3.62 MB / 0.5266 GB, free: 11.16 MB / 398.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.CityTest.makefile (rm -f PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.CityTest.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.CityTest.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.CityTest.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.CityTest.sim & ./PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.CityTest -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.CityTest.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.CityTest_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.PowerWorld.Test.CityTest.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.CityTest.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches