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/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/Complex 3.2.3+maint.om/package.mo): time 0.001953/0.001953, allocations: 175.9 kB / 8.348 MB, free: 0.7188 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.688/1.688, allocations: 205.3 MB / 214.1 MB, free: 14.15 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008702/0.0008702, allocations: 89.69 kB / 262.1 MB, free: 13.89 MB / 219.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1637/0.1637, allocations: 37.99 MB / 348 MB, free: 7.777 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 1.503e-05/1.505e-05, allocations: 0 / 410.6 MB, free: 46.96 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08926/0.08929, allocations: 56.33 MB / 466.9 MB, free: 6.566 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3186/0.4079, allocations: 94.24 MB / 0.548 GB, free: 0.6797 MB / 379.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.001542/0.4095, allocations: 0.5815 MB / 0.5486 GB, free: 100 kB / 379.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.0362/0.4458, allocations: 14.85 MB / 0.5631 GB, free: 1.125 MB / 395.1 MB Notification: Performance of FrontEnd: time 1.062e-06/0.4458, allocations: 0 / 0.5631 GB, free: 1.125 MB / 395.1 MB Notification: Performance of Transformations before backend: time 2.303e-05/0.4458, allocations: 4 kB / 0.5631 GB, free: 1.121 MB / 395.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.0007491/0.4466, allocations: 0.5659 MB / 0.5636 GB, free: 0.5039 MB / 395.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.524e-05/0.4466, allocations: 8.031 kB / 0.5636 GB, free: 0.4961 MB / 395.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007858/0.4474, allocations: 111.5 kB / 0.5637 GB, free: 396 kB / 395.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005552/0.448, allocations: 346.7 kB / 0.5641 GB, free: 12 kB / 395.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.179e-05/0.448, allocations: 8 kB / 0.5641 GB, free: 4 kB / 395.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.142e-05/0.4481, allocations: 8.047 kB / 0.5641 GB, free: 15.99 MB / 411.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005017/0.4486, allocations: 340.5 kB / 0.5644 GB, free: 15.66 MB / 411.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004675/0.4491, allocations: 336.3 kB / 0.5647 GB, free: 15.3 MB / 411.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.067e-06/0.4491, allocations: 0 / 0.5647 GB, free: 15.3 MB / 411.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.992e-05/0.4491, allocations: 3.984 kB / 0.5647 GB, free: 15.3 MB / 411.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.788e-05/0.4492, allocations: 16.31 kB / 0.5647 GB, free: 15.29 MB / 411.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001831/0.451, allocations: 1.592 MB / 0.5663 GB, free: 13.59 MB / 411.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005559/0.4516, allocations: 333.1 kB / 0.5666 GB, free: 13.25 MB / 411.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000152/0.4517, allocations: 109.7 kB / 0.5667 GB, free: 13.14 MB / 411.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.211e-05/0.4518, allocations: 4 kB / 0.5667 GB, free: 13.13 MB / 411.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000282/0.4521, allocations: 194.7 kB / 0.5669 GB, free: 12.92 MB / 411.1 MB Notification: Performance of pre-optimization done (n=25): time 2.024e-06/0.4521, allocations: 3.938 kB / 0.5669 GB, free: 12.92 MB / 411.1 MB Notification: Performance of matching and sorting (n=25): time 0.0005204/0.4526, allocations: 305 kB / 0.5672 GB, free: 12.61 MB / 411.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.62e-05/0.4527, allocations: 140.6 kB / 0.5673 GB, free: 12.45 MB / 411.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003004/0.453, allocations: 270.3 kB / 0.5676 GB, free: 12.17 MB / 411.1 MB Notification: Performance of collectPreVariables (initialization): time 3.132e-05/0.453, allocations: 33.7 kB / 0.5676 GB, free: 12.13 MB / 411.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001151/0.4532, allocations: 172.3 kB / 0.5678 GB, free: 11.96 MB / 411.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.418e-05/0.4532, allocations: 82.81 kB / 0.5679 GB, free: 11.88 MB / 411.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.159e-05/0.4532, allocations: 0 / 0.5679 GB, free: 11.88 MB / 411.1 MB Notification: Performance of setup shared object (initialization): time 0.0001278/0.4534, allocations: 346.8 kB / 0.5682 GB, free: 11.53 MB / 411.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001336/0.4535, allocations: 96.55 kB / 0.5683 GB, free: 11.43 MB / 411.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00018/0.4537, allocations: 175.1 kB / 0.5685 GB, free: 11.23 MB / 411.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001886/0.4539, allocations: 135.8 kB / 0.5686 GB, free: 11.09 MB / 411.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.885e-06/0.4539, allocations: 3.938 kB / 0.5686 GB, free: 11.09 MB / 411.1 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0004638/0.4544, allocations: 349.3 kB / 0.5689 GB, free: 10.74 MB / 411.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.576e-05/0.4544, allocations: 4 kB / 0.5689 GB, free: 10.74 MB / 411.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.196e-06/0.4544, allocations: 4 kB / 0.5689 GB, free: 10.73 MB / 411.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.553e-05/0.4545, allocations: 4 kB / 0.5689 GB, free: 10.73 MB / 411.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002774/0.4547, allocations: 71.89 kB / 0.569 GB, free: 10.66 MB / 411.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.46e-06/0.4548, allocations: 4 kB / 0.569 GB, free: 10.66 MB / 411.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001498/0.4549, allocations: 23.69 kB / 0.569 GB, free: 10.63 MB / 411.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.412e-05/0.4549, allocations: 15.94 kB / 0.569 GB, free: 10.62 MB / 411.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 ($whenCondition1,$PRE.city.data.nextTimeEvent,city.data.nextTimeEvent,$PRE.city.data.nextTimeEventScaled,city.data.nextTimeEventScaled,system.initime) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (34): * Single equations (assignments): 34 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.614e-05/0.455, allocations: 124.8 kB / 0.5692 GB, free: 10.49 MB / 411.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.429e-05/0.4551, allocations: 27.72 kB / 0.5692 GB, free: 10.46 MB / 411.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005789/0.4557, allocations: 374.4 kB / 0.5695 GB, free: 10.09 MB / 411.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.45e-06/0.4557, allocations: 4 kB / 0.5695 GB, free: 10.08 MB / 411.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.018e-06/0.4557, allocations: 0 / 0.5695 GB, free: 10.08 MB / 411.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.803e-06/0.4557, allocations: 3.984 kB / 0.5695 GB, free: 10.08 MB / 411.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009164/0.4566, allocations: 0.7876 MB / 0.5703 GB, free: 9.246 MB / 411.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.204e-06/0.4567, allocations: 0 / 0.5703 GB, free: 9.246 MB / 411.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002121/0.4569, allocations: 63.91 kB / 0.5704 GB, free: 9.184 MB / 411.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.378e-06/0.4569, allocations: 0 / 0.5704 GB, free: 9.184 MB / 411.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.95e-05/0.4569, allocations: 7.984 kB / 0.5704 GB, free: 9.176 MB / 411.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.659e-06/0.4569, allocations: 4 kB / 0.5704 GB, free: 9.172 MB / 411.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.274e-06/0.4569, allocations: 3.938 kB / 0.5704 GB, free: 9.168 MB / 411.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005035/0.4574, allocations: 475.8 kB / 0.5708 GB, free: 8.668 MB / 411.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.817e-05/0.4575, allocations: 120.7 kB / 0.571 GB, free: 8.531 MB / 411.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.005e-05/0.4576, allocations: 4 kB / 0.571 GB, free: 8.527 MB / 411.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001307/0.4577, allocations: 4 kB / 0.571 GB, free: 8.523 MB / 411.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.977e-05/0.4578, allocations: 23.92 kB / 0.571 GB, free: 8.5 MB / 411.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.422e-05/0.4578, allocations: 15.98 kB / 0.571 GB, free: 8.484 MB / 411.1 MB Notification: Performance of sorting global known variables: time 0.0002058/0.458, allocations: 225.9 kB / 0.5712 GB, free: 8.266 MB / 411.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.458, allocations: 0 / 0.5712 GB, free: 8.266 MB / 411.1 MB Notification: Performance of remove unused functions: time 0.0004106/0.4585, allocations: 87.78 kB / 0.5713 GB, free: 8.18 MB / 411.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) * Top-level inputs: 0 Notification: Strong component statistics for simulation (35): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008324/0.4593, allocations: 411 kB / 0.5717 GB, free: 7.797 MB / 411.1 MB Notification: Performance of simCode: created initialization part: time 0.0004028/0.4597, allocations: 251.8 kB / 0.5719 GB, free: 7.551 MB / 411.1 MB Notification: Performance of simCode: created event and clocks part: time 2.344e-06/0.4597, allocations: 0 / 0.5719 GB, free: 7.551 MB / 411.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001869/0.4599, allocations: 143.8 kB / 0.5721 GB, free: 7.41 MB / 411.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003588/0.4603, allocations: 41.59 kB / 0.5721 GB, free: 7.371 MB / 411.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007774/0.4611, allocations: 463.6 kB / 0.5726 GB, free: 6.887 MB / 411.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003518/0.4614, allocations: 0.808 MB / 0.5733 GB, free: 6.055 MB / 411.1 MB Notification: Performance of simCode: alias equations: time 0.0002154/0.4617, allocations: 91.19 kB / 0.5734 GB, free: 5.965 MB / 411.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.68e-05/0.4618, allocations: 39.42 kB / 0.5735 GB, free: 5.926 MB / 411.1 MB Notification: Performance of SimCode: time 3.5e-07/0.4618, allocations: 0 / 0.5735 GB, free: 5.926 MB / 411.1 MB Notification: Performance of Templates: time 0.006895/0.4687, allocations: 3.53 MB / 0.5769 GB, free: 2.395 MB / 411.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","../files/PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.CityTest.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches