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.0007768/0.0007768, allocations: 92.97 kB / 16.32 MB, free: 5.637 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.001205/0.001205, allocations: 183.9 kB / 17.21 MB, free: 5.559 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.24/1.24, allocations: 223.3 MB / 241.2 MB, free: 5.402 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.281/0.281, allocations: 38.07 MB / 330.4 MB, free: 14.21 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002884/0.0002886, allocations: 8 kB / 400.1 MB, free: 9.25 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2456/0.246, allocations: 59.16 MB / 459.2 MB, free: 30.34 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.Test.CityTest): time 0.003204/0.2492, allocations: 3.342 MB / 462.6 MB, free: 27.95 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001929/0.2512, allocations: 1.723 MB / 464.3 MB, free: 26.75 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001296/0.2513, allocations: 14.34 kB / 464.3 MB, free: 26.74 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000306/0.2516, allocations: 61.92 kB / 464.4 MB, free: 26.71 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000432/0.2521, allocations: 208.4 kB / 464.6 MB, free: 26.61 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004025/0.2525, allocations: 168.7 kB / 464.7 MB, free: 26.52 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004584/0.2529, allocations: 477.8 kB / 465.2 MB, free: 26.34 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000475/0.2534, allocations: 317.8 kB / 465.5 MB, free: 26.14 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002682/0.2537, allocations: 161.1 kB / 465.7 MB, free: 26.07 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000194/0.2539, allocations: 159.7 kB / 465.8 MB, free: 26.01 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.854e-05/0.2539, allocations: 10.72 kB / 465.8 MB, free: 26.01 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003082/0.2543, allocations: 179.4 kB / 466 MB, free: 25.95 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001011/0.2544, allocations: 98.05 kB / 466.1 MB, free: 25.92 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 5.68e-05/0.2544, allocations: 79.19 kB / 466.2 MB, free: 25.86 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004181/0.2549, allocations: 380.4 kB / 466.6 MB, free: 25.76 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.506e-06/0.2549, allocations: 0 / 466.6 MB, free: 25.76 MB / 350.1 MB Notification: Performance of FrontEnd: time 9.92e-07/0.2549, allocations: 4 kB / 466.6 MB, free: 25.76 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.529e-06/0.2549, allocations: 0 / 466.6 MB, free: 25.76 MB / 350.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.0005899/0.2555, allocations: 0.5686 MB / 467.1 MB, free: 25.25 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.053e-05/0.2555, allocations: 9.438 kB / 467.1 MB, free: 25.25 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006355/0.2562, allocations: 90.19 kB / 467.2 MB, free: 25.23 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003866/0.2565, allocations: 352.6 kB / 467.6 MB, free: 24.95 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.716e-05/0.2566, allocations: 14.7 kB / 467.6 MB, free: 24.95 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.714e-05/0.2566, allocations: 32.53 kB / 467.6 MB, free: 24.93 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004873/0.2571, allocations: 352.6 kB / 468 MB, free: 24.74 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.067e-05/0.2571, allocations: 1.312 kB / 468 MB, free: 24.74 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.62e-05/0.2572, allocations: 10.5 kB / 468 MB, free: 24.73 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.774e-05/0.2572, allocations: 14.17 kB / 468 MB, free: 24.73 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005262/0.2577, allocations: 394.3 kB / 468.4 MB, free: 24.61 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001433/0.2592, allocations: 1.543 MB / 469.9 MB, free: 23.41 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00051/0.2597, allocations: 318.9 kB / 470.2 MB, free: 23.27 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001552/0.2599, allocations: 110.5 kB / 470.3 MB, free: 23.21 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.891e-05/0.2599, allocations: 7.469 kB / 470.3 MB, free: 23.21 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002642/0.2602, allocations: 199.8 kB / 470.5 MB, free: 23.09 MB / 350.1 MB Notification: Performance of pre-optimization done (n=24): time 1.303e-06/0.2602, allocations: 0 / 470.5 MB, free: 23.09 MB / 350.1 MB Notification: Performance of matching and sorting (n=24): time 0.0006314/0.2608, allocations: 385.2 kB / 470.9 MB, free: 22.94 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.768e-05/0.2609, allocations: 135.8 kB / 471 MB, free: 22.78 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002713/0.2611, allocations: 292.5 kB / 471.3 MB, free: 22.61 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.124e-05/0.2612, allocations: 33.11 kB / 471.4 MB, free: 22.57 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.517e-05/0.2613, allocations: 182.9 kB / 471.5 MB, free: 22.42 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.391e-05/0.2613, allocations: 80.75 kB / 471.6 MB, free: 22.36 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.221e-05/0.2613, allocations: 5.375 kB / 471.6 MB, free: 22.36 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.106e-05/0.2614, allocations: 339.5 kB / 472 MB, free: 22.03 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000154/0.2616, allocations: 95.22 kB / 472.1 MB, free: 21.99 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001817/0.2618, allocations: 182 kB / 472.2 MB, free: 21.85 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001854/0.2619, allocations: 132.3 kB / 472.4 MB, free: 21.79 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.344e-06/0.262, allocations: 0 / 472.4 MB, free: 21.79 MB / 350.1 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0004824/0.2624, allocations: 351.2 kB / 472.7 MB, free: 21.64 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.455e-05/0.2625, allocations: 5.875 kB / 472.7 MB, free: 21.64 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.432e-06/0.2625, allocations: 2.656 kB / 472.7 MB, free: 21.64 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.44e-05/0.2625, allocations: 9.562 kB / 472.7 MB, free: 21.64 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002189/0.2627, allocations: 66.86 kB / 472.8 MB, free: 21.63 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.995e-06/0.2627, allocations: 3.781 kB / 472.8 MB, free: 21.63 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001151/0.2629, allocations: 24.91 kB / 472.8 MB, free: 21.62 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.363e-05/0.2629, allocations: 17.5 kB / 472.8 MB, free: 21.61 MB / 350.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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001278/0.263, allocations: 183.9 kB / 473 MB, free: 21.46 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.842e-05/0.2631, allocations: 25.56 kB / 473 MB, free: 21.45 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004623/0.2635, allocations: 327.1 kB / 473.4 MB, free: 21.3 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.777e-06/0.2636, allocations: 2.75 kB / 473.4 MB, free: 21.3 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.118e-06/0.2636, allocations: 1.375 kB / 473.4 MB, free: 21.3 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.282e-06/0.2636, allocations: 2.688 kB / 473.4 MB, free: 21.3 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008006/0.2644, allocations: 0.7494 MB / 474.1 MB, free: 20.83 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.585e-06/0.2644, allocations: 9.156 kB / 474.1 MB, free: 20.82 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001452/0.2645, allocations: 39.19 kB / 474.2 MB, free: 20.82 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.486e-06/0.2646, allocations: 2.844 kB / 474.2 MB, free: 20.82 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.873e-05/0.2646, allocations: 9.5 kB / 474.2 MB, free: 20.82 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.346e-06/0.2646, allocations: 5.734 kB / 474.2 MB, free: 20.81 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.663e-06/0.2646, allocations: 1.094 kB / 474.2 MB, free: 20.81 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004284/0.265, allocations: 412.6 kB / 474.6 MB, free: 20.57 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.003e-05/0.2651, allocations: 117.5 kB / 474.7 MB, free: 20.45 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.689e-05/0.2651, allocations: 13.2 kB / 474.7 MB, free: 20.44 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001144/0.2653, allocations: 13.55 kB / 474.7 MB, free: 20.43 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.977e-05/0.2653, allocations: 23.39 kB / 474.7 MB, free: 20.42 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.055e-05/0.2653, allocations: 8.703 kB / 474.8 MB, free: 20.42 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001886/0.2655, allocations: 212.2 kB / 475 MB, free: 20.3 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.2655, allocations: 0 / 475 MB, free: 20.3 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003794/0.2659, allocations: 75.88 kB / 475 MB, free: 20.29 MB / 350.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 (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.0009087/0.2668, allocations: 475.4 kB / 475.5 MB, free: 20.06 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004085/0.2673, allocations: 239.8 kB / 475.7 MB, free: 19.98 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.865e-06/0.2673, allocations: 4.625 kB / 475.7 MB, free: 19.98 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001775/0.2675, allocations: 122.7 kB / 475.9 MB, free: 19.94 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000422/0.2679, allocations: 53.22 kB / 475.9 MB, free: 19.92 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008973/0.2688, allocations: 0.6791 MB / 476.6 MB, free: 19.51 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002546/0.2691, allocations: 0.7948 MB / 477.4 MB, free: 18.79 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.000209/0.2693, allocations: 84.55 kB / 477.5 MB, free: 18.78 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.479e-05/0.2694, allocations: 40.53 kB / 477.5 MB, free: 18.77 MB / 350.1 MB Notification: Performance of SimCode: time 2.5e-07/0.2694, allocations: 0 / 477.5 MB, free: 18.77 MB / 350.1 MB Notification: Performance of Templates: time 0.006874/0.2763, allocations: 3.302 MB / 480.8 MB, free: 17.32 MB / 350.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.CityTest.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: 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