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.0007051/0.000705, allocations: 92.75 kB / 16.65 MB, free: 6.59 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.0008042/0.0008042, allocations: 184.2 kB / 17.57 MB, free: 6.199 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.241/1.241, allocations: 223.3 MB / 241.6 MB, free: 228 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1622/0.1622, allocations: 38.09 MB / 330.8 MB, free: 8.77 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002942/0.000294, allocations: 8 kB / 400.7 MB, free: 34.18 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1095/0.1098, allocations: 59.16 MB / 459.9 MB, free: 7.094 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.Test.CityTest): time 0.004068/0.1139, allocations: 3.479 MB / 463.4 MB, free: 3.594 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002398/0.1163, allocations: 1.832 MB / 465.2 MB, free: 1.754 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001609/0.1165, allocations: 11.94 kB / 465.2 MB, free: 1.742 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003737/0.1169, allocations: 59.67 kB / 465.3 MB, free: 1.684 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005619/0.1175, allocations: 243.2 kB / 465.5 MB, free: 1.445 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004833/0.118, allocations: 179.6 kB / 465.7 MB, free: 1.27 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000549/0.1185, allocations: 0.569 MB / 466.2 MB, free: 0.6992 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005824/0.1191, allocations: 362.5 kB / 466.6 MB, free: 332 kB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003282/0.1195, allocations: 155.2 kB / 466.8 MB, free: 176 kB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002153/0.1197, allocations: 163.4 kB / 466.9 MB, free: 12 kB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.774e-05/0.1197, allocations: 8 kB / 466.9 MB, free: 4 kB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005272/0.1203, allocations: 371.3 kB / 467.3 MB, free: 15.64 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001108/0.1204, allocations: 103.5 kB / 467.4 MB, free: 15.54 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001574/0.1206, allocations: 152.9 kB / 467.5 MB, free: 15.38 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005967/0.1212, allocations: 0.5101 MB / 468 MB, free: 14.87 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.605e-06/0.1212, allocations: 0 / 468 MB, free: 14.87 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.052e-06/0.1212, allocations: 0 / 468 MB, free: 14.87 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.19e-06/0.1212, allocations: 0 / 468 MB, free: 14.87 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.0008655/0.1221, allocations: 0.5656 MB / 468.6 MB, free: 14.25 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 9.477e-05/0.1222, allocations: 12.03 kB / 468.6 MB, free: 14.24 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006779/0.1229, allocations: 96.38 kB / 468.7 MB, free: 14.15 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004493/0.1233, allocations: 367.7 kB / 469.1 MB, free: 13.75 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.046e-05/0.1233, allocations: 8.75 kB / 469.1 MB, free: 13.74 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.662e-05/0.1234, allocations: 20.12 kB / 469.1 MB, free: 13.72 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005382/0.1239, allocations: 364.6 kB / 469.5 MB, free: 13.34 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.11e-05/0.124, allocations: 0 / 469.5 MB, free: 13.34 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.988e-05/0.124, allocations: 8 kB / 469.5 MB, free: 13.33 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.728e-05/0.124, allocations: 16.36 kB / 469.5 MB, free: 13.31 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005553/0.1246, allocations: 388.8 kB / 469.9 MB, free: 12.93 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001793/0.1264, allocations: 1.554 MB / 471.4 MB, free: 11.27 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005423/0.1269, allocations: 313.1 kB / 471.7 MB, free: 10.94 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001689/0.1271, allocations: 113.7 kB / 471.8 MB, free: 10.82 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.624e-05/0.1272, allocations: 8.062 kB / 471.8 MB, free: 10.82 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002965/0.1275, allocations: 198.8 kB / 472 MB, free: 10.6 MB / 350.1 MB Notification: Performance of pre-optimization done (n=24): time 1.382e-06/0.1275, allocations: 0 / 472 MB, free: 10.6 MB / 350.1 MB Notification: Performance of matching and sorting (n=24): time 0.0006886/0.1282, allocations: 379.2 kB / 472.4 MB, free: 10.23 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.457e-05/0.1283, allocations: 136.5 kB / 472.5 MB, free: 10.06 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002953/0.1286, allocations: 298.9 kB / 472.8 MB, free: 9.758 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.581e-05/0.1286, allocations: 29.7 kB / 472.9 MB, free: 9.723 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001298/0.1288, allocations: 176.2 kB / 473 MB, free: 9.547 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.254e-05/0.1288, allocations: 86.89 kB / 473.1 MB, free: 9.461 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.332e-05/0.1289, allocations: 37.58 kB / 473.2 MB, free: 9.418 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001276/0.129, allocations: 338.8 kB / 473.5 MB, free: 9.078 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001614/0.1292, allocations: 100.5 kB / 473.6 MB, free: 8.977 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002053/0.1294, allocations: 175.3 kB / 473.8 MB, free: 8.77 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003928/0.1298, allocations: 304.4 kB / 474.1 MB, free: 8.441 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.495e-06/0.1298, allocations: 0 / 474.1 MB, free: 8.441 MB / 350.1 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0005091/0.1303, allocations: 353 kB / 474.4 MB, free: 8.09 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.624e-05/0.1303, allocations: 8 kB / 474.4 MB, free: 8.082 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.3e-06/0.1304, allocations: 320 / 474.4 MB, free: 8.082 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.396e-05/0.1304, allocations: 8 kB / 474.4 MB, free: 8.074 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002227/0.1306, allocations: 67.91 kB / 474.5 MB, free: 8.008 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.965e-05/0.1306, allocations: 11.92 kB / 474.5 MB, free: 7.996 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001214/0.1308, allocations: 31.62 kB / 474.5 MB, free: 7.965 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.125e-05/0.1308, allocations: 8 kB / 474.5 MB, free: 7.957 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 ($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.0001633/0.131, allocations: 177.8 kB / 474.7 MB, free: 7.773 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.892e-05/0.131, allocations: 31.56 kB / 474.7 MB, free: 7.742 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005172/0.1315, allocations: 321.9 kB / 475 MB, free: 7.422 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.99e-06/0.1315, allocations: 4 kB / 475.1 MB, free: 7.418 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.901e-06/0.1316, allocations: 4 kB / 475.1 MB, free: 7.414 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.811e-06/0.1316, allocations: 3.938 kB / 475.1 MB, free: 7.41 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009553/0.1325, allocations: 0.7499 MB / 475.8 MB, free: 6.605 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.864e-06/0.1325, allocations: 0 / 475.8 MB, free: 6.605 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001373/0.1327, allocations: 35.98 kB / 475.8 MB, free: 6.57 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.993e-06/0.1327, allocations: 7.938 kB / 475.9 MB, free: 6.562 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.606e-05/0.1327, allocations: 15.92 kB / 475.9 MB, free: 6.547 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.983e-06/0.1327, allocations: 4 kB / 475.9 MB, free: 6.543 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.675e-06/0.1327, allocations: 4 kB / 475.9 MB, free: 6.539 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005484/0.1333, allocations: 409.5 kB / 476.3 MB, free: 6.117 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.16e-05/0.1334, allocations: 108.8 kB / 476.4 MB, free: 5.992 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.854e-05/0.1334, allocations: 19.92 kB / 476.4 MB, free: 5.973 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001164/0.1336, allocations: 8 kB / 476.4 MB, free: 5.965 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.201e-05/0.1336, allocations: 19.97 kB / 476.4 MB, free: 5.945 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.975e-05/0.1336, allocations: 8 kB / 476.4 MB, free: 5.938 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001977/0.1338, allocations: 217.9 kB / 476.6 MB, free: 5.727 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1339, allocations: 0 / 476.6 MB, free: 5.727 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003685/0.1342, allocations: 75.83 kB / 476.7 MB, free: 5.652 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 (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.0009742/0.1352, allocations: 474.2 kB / 477.2 MB, free: 5.355 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004356/0.1357, allocations: 243.7 kB / 477.4 MB, free: 5.117 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.295e-06/0.1357, allocations: 0.625 kB / 477.4 MB, free: 5.117 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001935/0.1359, allocations: 123.9 kB / 477.5 MB, free: 4.996 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004631/0.1363, allocations: 52.8 kB / 477.6 MB, free: 4.945 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001084/0.1374, allocations: 0.7168 MB / 478.3 MB, free: 4.203 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003563/0.1378, allocations: 0.7916 MB / 479.1 MB, free: 3.379 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001972/0.138, allocations: 82.89 kB / 479.2 MB, free: 3.297 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.396e-05/0.1381, allocations: 43.41 kB / 479.2 MB, free: 3.254 MB / 350.1 MB Notification: Performance of SimCode: time 8.02e-07/0.1381, allocations: 4 kB / 479.2 MB, free: 3.25 MB / 350.1 MB Notification: Performance of Templates: time 0.006697/0.1448, allocations: 3.382 MB / 482.6 MB, free: 15.91 MB / 366.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