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.0009659/0.000966, allocations: 175.5 kB / 13.63 MB, free: 1.684 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.309/1.309, allocations: 205.2 MB / 219.4 MB, free: 14.19 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008361/0.0008362, allocations: 82.72 kB / 267.5 MB, free: 14.04 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1565/0.1565, allocations: 37.97 MB / 353.5 MB, free: 1.746 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 2.82e-05/2.823e-05, allocations: 0 / 417.7 MB, free: 29.11 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1138/0.1139, allocations: 56.32 MB / 474.1 MB, free: 4.793 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4166/0.5306, allocations: 94.9 MB / 0.5556 GB, free: 8.02 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.001655/0.5323, allocations: 0.6923 MB / 0.5563 GB, free: 7.715 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03516/0.5675, allocations: 14.91 MB / 0.5709 GB, free: 11.29 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.374e-06/0.5675, allocations: 3.938 kB / 0.5709 GB, free: 11.29 MB / 378.7 MB Notification: Performance of Transformations before backend: time 2.944e-05/0.5676, allocations: 12 kB / 0.5709 GB, free: 11.28 MB / 378.7 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.001004/0.5686, allocations: 0.5612 MB / 0.5714 GB, free: 10.69 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.653e-05/0.5687, allocations: 8.031 kB / 0.5714 GB, free: 10.68 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008699/0.5695, allocations: 99.52 kB / 0.5715 GB, free: 10.58 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005757/0.5701, allocations: 353 kB / 0.5719 GB, free: 10.24 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.82e-05/0.5702, allocations: 15.69 kB / 0.5719 GB, free: 10.23 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.551e-05/0.5702, allocations: 23.86 kB / 0.5719 GB, free: 10.21 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005446/0.5708, allocations: 355.2 kB / 0.5722 GB, free: 9.93 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.315e-05/0.5708, allocations: 0 / 0.5722 GB, free: 9.93 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.209e-05/0.5708, allocations: 15.5 kB / 0.5723 GB, free: 9.922 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.596e-05/0.5709, allocations: 12.38 kB / 0.5723 GB, free: 9.91 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006108/0.5715, allocations: 443.3 kB / 0.5727 GB, free: 9.582 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001926/0.5734, allocations: 1.593 MB / 0.5742 GB, free: 8.141 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006067/0.5741, allocations: 344.7 kB / 0.5746 GB, free: 7.879 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000169/0.5742, allocations: 116.4 kB / 0.5747 GB, free: 7.801 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.029e-05/0.5743, allocations: 0 / 0.5747 GB, free: 7.801 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003176/0.5746, allocations: 211.8 kB / 0.5749 GB, free: 7.617 MB / 378.7 MB Notification: Performance of pre-optimization done (n=24): time 1.673e-06/0.5746, allocations: 0 / 0.5749 GB, free: 7.617 MB / 378.7 MB Notification: Performance of matching and sorting (n=24): time 0.0005746/0.5752, allocations: 306.2 kB / 0.5752 GB, free: 7.379 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.343e-05/0.5753, allocations: 139.8 kB / 0.5753 GB, free: 7.215 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000349/0.5757, allocations: 292.3 kB / 0.5756 GB, free: 6.98 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.982e-05/0.5757, allocations: 33.45 kB / 0.5756 GB, free: 6.945 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001178/0.5758, allocations: 179.3 kB / 0.5758 GB, free: 6.805 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.881e-05/0.5759, allocations: 80.72 kB / 0.5759 GB, free: 6.734 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.367e-05/0.5759, allocations: 19.19 kB / 0.5759 GB, free: 6.723 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001236/0.5761, allocations: 338.1 kB / 0.5762 GB, free: 6.395 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001564/0.5762, allocations: 98.97 kB / 0.5763 GB, free: 6.332 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002196/0.5764, allocations: 195 kB / 0.5765 GB, free: 6.148 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000207/0.5767, allocations: 129.8 kB / 0.5766 GB, free: 6.062 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.554e-06/0.5767, allocations: 0 / 0.5766 GB, free: 6.062 MB / 378.7 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0005916/0.5773, allocations: 370.5 kB / 0.577 GB, free: 5.781 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.558e-05/0.5773, allocations: 8 kB / 0.577 GB, free: 5.773 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.775e-06/0.5773, allocations: 0 / 0.577 GB, free: 5.773 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.795e-05/0.5773, allocations: 4 kB / 0.577 GB, free: 5.77 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003006/0.5776, allocations: 72.2 kB / 0.5771 GB, free: 5.699 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.987e-05/0.5777, allocations: 4 kB / 0.5771 GB, free: 5.695 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001698/0.5779, allocations: 31.2 kB / 0.5771 GB, free: 5.668 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.48e-05/0.5779, allocations: 11.69 kB / 0.5771 GB, free: 5.66 MB / 378.7 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 (33): * Single equations (assignments): 33 * 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 0.0001197/0.578, allocations: 119.7 kB / 0.5772 GB, free: 5.543 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.045e-05/0.5781, allocations: 31.45 kB / 0.5772 GB, free: 5.516 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006552/0.5787, allocations: 397.1 kB / 0.5776 GB, free: 5.219 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.58e-06/0.5788, allocations: 4 kB / 0.5776 GB, free: 5.215 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.521e-06/0.5788, allocations: 0 / 0.5776 GB, free: 5.215 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.874e-06/0.5788, allocations: 4 kB / 0.5776 GB, free: 5.211 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00107/0.5799, allocations: 0.841 MB / 0.5784 GB, free: 4.492 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.868e-06/0.5799, allocations: 4 kB / 0.5785 GB, free: 4.488 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002047/0.5801, allocations: 54.05 kB / 0.5785 GB, free: 4.438 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.957e-06/0.5801, allocations: 3.938 kB / 0.5785 GB, free: 4.434 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.01e-05/0.5801, allocations: 22.09 kB / 0.5785 GB, free: 4.418 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.637e-06/0.5802, allocations: 4 kB / 0.5785 GB, free: 4.414 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.497e-06/0.5802, allocations: 3.953 kB / 0.5785 GB, free: 4.41 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005532/0.5807, allocations: 478 kB / 0.579 GB, free: 3.996 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.853e-05/0.5808, allocations: 120.5 kB / 0.5791 GB, free: 3.863 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.53e-05/0.5809, allocations: 14.83 kB / 0.5791 GB, free: 3.855 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001379/0.581, allocations: 11.23 kB / 0.5791 GB, free: 3.848 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.22e-05/0.5811, allocations: 27.27 kB / 0.5792 GB, free: 3.824 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.829e-05/0.5812, allocations: 14.75 kB / 0.5792 GB, free: 3.812 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0002893/0.5815, allocations: 242.7 kB / 0.5794 GB, free: 3.629 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.81e-07/0.5815, allocations: 0 / 0.5794 GB, free: 3.629 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0004696/0.5819, allocations: 96.2 kB / 0.5795 GB, free: 3.547 MB / 378.7 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 (34): * Single equations (assignments): 31 * 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.001126/0.5831, allocations: 435.4 kB / 0.5799 GB, free: 3.18 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0004528/0.5835, allocations: 274.4 kB / 0.5802 GB, free: 2.992 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.787e-06/0.5836, allocations: 0.625 kB / 0.5802 GB, free: 2.992 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002023/0.5838, allocations: 144.3 kB / 0.5803 GB, free: 2.891 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003561/0.5841, allocations: 52.19 kB / 0.5804 GB, free: 2.855 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008272/0.585, allocations: 478.7 kB / 0.5808 GB, free: 2.445 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000414/0.5854, allocations: 0.8066 MB / 0.5816 GB, free: 1.621 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0002073/0.5856, allocations: 82.89 kB / 0.5817 GB, free: 1.535 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001008/0.5857, allocations: 39.41 kB / 0.5817 GB, free: 1.496 MB / 378.7 MB Notification: Performance of SimCode: time 2.5e-07/0.5857, allocations: 4 kB / 0.5817 GB, free: 1.492 MB / 378.7 MB Notification: Performance of Templates: time 0.007608/0.5933, allocations: 3.748 MB / 0.5854 GB, free: 13.75 MB / 394.7 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