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.001322/0.001322, allocations: 104.3 kB / 17.06 MB, free: 6.102 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.001938/0.001938, allocations: 196.1 kB / 18 MB, free: 5.176 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.501/1.501, allocations: 222.9 MB / 241.7 MB, free: 15.05 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1754/0.1754, allocations: 38.05 MB / 329.9 MB, free: 8.727 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001376/0.001376, allocations: 64.09 kB / 458.1 MB, free: 6.852 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3992/0.4006, allocations: 58.05 MB / 0.5041 GB, free: 7.773 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.Test.CityTest): time 0.004591/0.4052, allocations: 3.613 MB / 0.5076 GB, free: 5.27 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0025/0.4078, allocations: 1.804 MB / 0.5094 GB, free: 4.016 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002128/0.408, allocations: 9.438 kB / 0.5094 GB, free: 4.012 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009059/0.4089, allocations: 234.1 kB / 0.5096 GB, free: 3.871 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006251/0.4095, allocations: 261.4 kB / 0.5099 GB, free: 3.73 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005662/0.4101, allocations: 218.4 kB / 0.5101 GB, free: 3.613 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004553/0.4106, allocations: 437.6 kB / 0.5105 GB, free: 3.418 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003155/0.4109, allocations: 186.2 kB / 0.5107 GB, free: 3.344 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003534/0.4113, allocations: 192.7 kB / 0.5109 GB, free: 3.254 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002187/0.4115, allocations: 177.7 kB / 0.511 GB, free: 3.172 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 4.316e-05/0.4116, allocations: 27.28 kB / 0.5111 GB, free: 3.172 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005954/0.4122, allocations: 324.7 kB / 0.5114 GB, free: 3.055 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001306/0.4123, allocations: 113.2 kB / 0.5115 GB, free: 3.008 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001536/0.4125, allocations: 158.4 kB / 0.5116 GB, free: 2.902 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007111/0.4132, allocations: 0.5085 MB / 0.5121 GB, free: 2.711 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.949e-06/0.4132, allocations: 3.938 kB / 0.5121 GB, free: 2.707 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.272e-06/0.4132, allocations: 0 / 0.5121 GB, free: 2.707 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.722e-06/0.4132, allocations: 0 / 0.5121 GB, free: 2.707 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.0008891/0.4141, allocations: 0.63 MB / 0.5127 GB, free: 2.164 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.335e-05/0.4142, allocations: 8.969 kB / 0.5127 GB, free: 2.164 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008324/0.415, allocations: 88.02 kB / 0.5128 GB, free: 2.145 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005972/0.4156, allocations: 377.1 kB / 0.5132 GB, free: 1.852 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.083e-05/0.4156, allocations: 21.05 kB / 0.5132 GB, free: 1.84 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.006e-05/0.4157, allocations: 20.58 kB / 0.5132 GB, free: 1.832 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007144/0.4164, allocations: 353.6 kB / 0.5136 GB, free: 1.645 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.63e-05/0.4165, allocations: 3.938 kB / 0.5136 GB, free: 1.641 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.798e-05/0.4165, allocations: 7.219 kB / 0.5136 GB, free: 1.637 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.363e-05/0.4165, allocations: 19.34 kB / 0.5136 GB, free: 1.633 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007346/0.4173, allocations: 386.4 kB / 0.514 GB, free: 1.523 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001897/0.4192, allocations: 1.54 MB / 0.5155 GB, free: 332 kB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006031/0.4198, allocations: 317.5 kB / 0.5158 GB, free: 188 kB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001725/0.42, allocations: 112.6 kB / 0.5159 GB, free: 128 kB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.107e-05/0.4201, allocations: 6.938 kB / 0.5159 GB, free: 128 kB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003402/0.4204, allocations: 200.7 kB / 0.5161 GB, free: 0 / 382.1 MB Notification: Performance of pre-optimization done (n=24): time 1.673e-06/0.4204, allocations: 0 / 0.5161 GB, free: 0 / 382.1 MB Notification: Performance of matching and sorting (n=24): time 0.001013/0.4214, allocations: 385.4 kB / 0.5164 GB, free: 15.84 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001022/0.4215, allocations: 132.4 kB / 0.5166 GB, free: 15.69 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004609/0.422, allocations: 295.1 kB / 0.5169 GB, free: 15.52 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.072e-05/0.4221, allocations: 33.38 kB / 0.5169 GB, free: 15.49 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001726/0.4222, allocations: 174.6 kB / 0.5171 GB, free: 15.34 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.704e-05/0.4223, allocations: 84.27 kB / 0.5171 GB, free: 15.28 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001175/0.4225, allocations: 61.17 kB / 0.5172 GB, free: 15.24 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001496/0.4226, allocations: 344 kB / 0.5175 GB, free: 14.91 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002307/0.4229, allocations: 96.83 kB / 0.5176 GB, free: 14.88 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002929/0.4232, allocations: 179.2 kB / 0.5178 GB, free: 14.74 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005448/0.4237, allocations: 306.5 kB / 0.5181 GB, free: 14.54 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.667e-06/0.4237, allocations: 1.406 kB / 0.5181 GB, free: 14.54 MB / 398.1 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0007118/0.4244, allocations: 356.3 kB / 0.5184 GB, free: 14.39 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.122e-05/0.4245, allocations: 11.16 kB / 0.5184 GB, free: 14.38 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.788e-06/0.4245, allocations: 2.031 kB / 0.5184 GB, free: 14.38 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.391e-05/0.4245, allocations: 5.938 kB / 0.5184 GB, free: 14.38 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002685/0.4248, allocations: 61.89 kB / 0.5185 GB, free: 14.38 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.069e-05/0.4248, allocations: 4.484 kB / 0.5185 GB, free: 14.38 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000171/0.425, allocations: 28.78 kB / 0.5185 GB, free: 14.36 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.519e-05/0.425, allocations: 15.89 kB / 0.5185 GB, free: 14.36 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.0002344/0.4253, allocations: 185.6 kB / 0.5187 GB, free: 14.2 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.926e-05/0.4254, allocations: 26.45 kB / 0.5187 GB, free: 14.19 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006096/0.426, allocations: 320.1 kB / 0.519 GB, free: 14.05 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.921e-06/0.426, allocations: 3.125 kB / 0.5191 GB, free: 14.05 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.705e-06/0.426, allocations: 1.906 kB / 0.5191 GB, free: 14.05 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.009e-05/0.426, allocations: 10.48 kB / 0.5191 GB, free: 14.05 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001134/0.4272, allocations: 0.7466 MB / 0.5198 GB, free: 13.57 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.176e-06/0.4272, allocations: 1.031 kB / 0.5198 GB, free: 13.57 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001792/0.4274, allocations: 39.83 kB / 0.5198 GB, free: 13.57 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.371e-05/0.4274, allocations: 13.61 kB / 0.5198 GB, free: 13.56 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.865e-05/0.4274, allocations: 14.08 kB / 0.5199 GB, free: 13.55 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.231e-06/0.4274, allocations: 10.31 kB / 0.5199 GB, free: 13.55 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.236e-06/0.4274, allocations: 0.75 kB / 0.5199 GB, free: 13.55 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006295/0.4281, allocations: 402.2 kB / 0.5203 GB, free: 13.31 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.239e-05/0.4282, allocations: 107.3 kB / 0.5204 GB, free: 13.2 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.642e-05/0.4282, allocations: 20 kB / 0.5204 GB, free: 13.18 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001435/0.4284, allocations: 4.906 kB / 0.5204 GB, free: 13.18 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.303e-05/0.4285, allocations: 19.27 kB / 0.5204 GB, free: 13.18 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.827e-05/0.4285, allocations: 10.47 kB / 0.5204 GB, free: 13.18 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002749/0.4288, allocations: 213.9 kB / 0.5206 GB, free: 13.06 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.4288, allocations: 0 / 0.5206 GB, free: 13.06 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004854/0.4293, allocations: 79.62 kB / 0.5207 GB, free: 13.04 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.001095/0.4304, allocations: 462.8 kB / 0.5211 GB, free: 12.82 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0005687/0.431, allocations: 254 kB / 0.5214 GB, free: 12.74 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.516e-06/0.431, allocations: 0 / 0.5214 GB, free: 12.74 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002436/0.4312, allocations: 120.9 kB / 0.5215 GB, free: 12.7 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004913/0.4317, allocations: 65.36 kB / 0.5215 GB, free: 12.68 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001311/0.4331, allocations: 0.5967 MB / 0.5221 GB, free: 12.32 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006001/0.4337, allocations: 0.7877 MB / 0.5229 GB, free: 11.61 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0003388/0.434, allocations: 83.7 kB / 0.523 GB, free: 11.61 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001376/0.4342, allocations: 40.97 kB / 0.523 GB, free: 11.59 MB / 398.1 MB Notification: Performance of SimCode: time 1.452e-06/0.4342, allocations: 0 / 0.523 GB, free: 11.59 MB / 398.1 MB Notification: Performance of Templates: time 0.01133/0.4455, allocations: 3.618 MB / 0.5266 GB, free: 11.21 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