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.00147/0.00147, allocations: 99.94 kB / 16.5 MB, free: 6.641 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.00184/0.00184, allocations: 194.6 kB / 17.42 MB, free: 6.066 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.319/1.319, allocations: 222.9 MB / 241.1 MB, free: 15.47 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1687/0.1687, allocations: 38.05 MB / 329.3 MB, free: 9.09 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001327/0.001327, allocations: 61 kB / 398.1 MB, free: 34.55 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1123/0.1136, allocations: 58.06 MB / 456.2 MB, free: 8.555 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.Test.CityTest): time 0.007361/0.121, allocations: 3.846 MB / 460 MB, free: 4.684 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00329/0.1243, allocations: 1.867 MB / 461.9 MB, free: 2.809 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002991/0.1247, allocations: 15.94 kB / 461.9 MB, free: 2.793 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001017/0.1257, allocations: 215.3 kB / 462.1 MB, free: 2.582 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007341/0.1265, allocations: 239.1 kB / 462.3 MB, free: 2.348 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006163/0.1271, allocations: 190.3 kB / 462.5 MB, free: 2.164 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006858/0.1278, allocations: 0.569 MB / 463.1 MB, free: 1.594 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004067/0.1282, allocations: 169.7 kB / 463.3 MB, free: 1.422 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004757/0.1287, allocations: 163.3 kB / 463.4 MB, free: 1.262 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003155/0.129, allocations: 179.3 kB / 463.6 MB, free: 1.086 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.448e-05/0.1291, allocations: 12 kB / 463.6 MB, free: 1.074 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006651/0.1297, allocations: 367.2 kB / 464 MB, free: 0.7148 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00015/0.1299, allocations: 103.7 kB / 464.1 MB, free: 0.6133 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001775/0.1301, allocations: 135.3 kB / 464.2 MB, free: 492 kB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008781/0.131, allocations: 0.5219 MB / 464.7 MB, free: 15.96 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.012e-06/0.131, allocations: 0 / 464.7 MB, free: 15.96 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.723e-06/0.131, allocations: 3.938 kB / 464.7 MB, free: 15.95 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.641e-05/0.131, allocations: 0 / 464.7 MB, free: 15.95 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.001124/0.1322, allocations: 0.6238 MB / 465.3 MB, free: 15.28 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.958e-05/0.1322, allocations: 8.031 kB / 465.3 MB, free: 15.27 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007762/0.133, allocations: 96.47 kB / 465.4 MB, free: 15.18 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000488/0.1335, allocations: 359.8 kB / 465.8 MB, free: 14.79 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.076e-05/0.1335, allocations: 12.75 kB / 465.8 MB, free: 14.77 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.677e-05/0.1336, allocations: 20.12 kB / 465.8 MB, free: 14.75 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000551/0.1341, allocations: 364.6 kB / 466.2 MB, free: 14.37 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.233e-05/0.1341, allocations: 0 / 466.2 MB, free: 14.37 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.589e-05/0.1342, allocations: 11.98 kB / 466.2 MB, free: 14.36 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.065e-05/0.1342, allocations: 16.38 kB / 466.2 MB, free: 14.34 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007086/0.1349, allocations: 388.7 kB / 466.6 MB, free: 13.96 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00201/0.137, allocations: 1.554 MB / 468.1 MB, free: 12.3 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005986/0.1376, allocations: 321.1 kB / 468.5 MB, free: 11.96 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000187/0.1378, allocations: 109.7 kB / 468.6 MB, free: 11.85 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.608e-05/0.1378, allocations: 4 kB / 468.6 MB, free: 11.85 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003279/0.1381, allocations: 193.7 kB / 468.8 MB, free: 11.64 MB / 350.1 MB Notification: Performance of pre-optimization done (n=24): time 1.783e-06/0.1382, allocations: 4 kB / 468.8 MB, free: 11.63 MB / 350.1 MB Notification: Performance of matching and sorting (n=24): time 0.0007596/0.1389, allocations: 386.9 kB / 469.1 MB, free: 11.25 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.831e-05/0.139, allocations: 132.5 kB / 469.3 MB, free: 11.09 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003187/0.1393, allocations: 295 kB / 469.6 MB, free: 10.79 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.858e-05/0.1394, allocations: 29.7 kB / 469.6 MB, free: 10.75 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001293/0.1395, allocations: 172.2 kB / 469.8 MB, free: 10.58 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.05e-05/0.1396, allocations: 86.97 kB / 469.8 MB, free: 10.5 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.58e-05/0.1397, allocations: 58.22 kB / 469.9 MB, free: 10.43 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001312/0.1398, allocations: 338.8 kB / 470.2 MB, free: 10.09 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001835/0.14, allocations: 96.52 kB / 470.3 MB, free: 9.996 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002288/0.1403, allocations: 183.3 kB / 470.5 MB, free: 9.781 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004299/0.1407, allocations: 300 kB / 470.8 MB, free: 9.457 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.348e-06/0.1407, allocations: 4 kB / 470.8 MB, free: 9.453 MB / 350.1 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0005929/0.1413, allocations: 361.1 kB / 471.1 MB, free: 9.094 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.227e-05/0.1413, allocations: 6.031 kB / 471.2 MB, free: 9.09 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.115e-06/0.1414, allocations: 7.938 kB / 471.2 MB, free: 9.082 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.725e-05/0.1414, allocations: 4 kB / 471.2 MB, free: 9.078 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002596/0.1416, allocations: 63.91 kB / 471.2 MB, free: 9.016 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.229e-05/0.1417, allocations: 7.984 kB / 471.2 MB, free: 9.008 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001394/0.1418, allocations: 35.56 kB / 471.3 MB, free: 8.973 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.963e-05/0.1419, allocations: 20 kB / 471.3 MB, free: 8.953 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.0001842/0.142, allocations: 181.9 kB / 471.5 MB, free: 8.766 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.843e-05/0.1421, allocations: 31.7 kB / 471.5 MB, free: 8.734 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005954/0.1427, allocations: 318.5 kB / 471.8 MB, free: 8.418 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.596e-06/0.1427, allocations: 0 / 471.8 MB, free: 8.418 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.19e-06/0.1427, allocations: 4 kB / 471.8 MB, free: 8.414 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.891e-06/0.1427, allocations: 3.938 kB / 471.8 MB, free: 8.41 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009785/0.1437, allocations: 0.744 MB / 472.6 MB, free: 7.609 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.597e-06/0.1437, allocations: 8 kB / 472.6 MB, free: 7.602 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001665/0.1439, allocations: 43.92 kB / 472.6 MB, free: 7.559 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.203e-06/0.1439, allocations: 7.922 kB / 472.6 MB, free: 7.551 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.164e-05/0.144, allocations: 8 kB / 472.6 MB, free: 7.543 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.978e-06/0.144, allocations: 4 kB / 472.6 MB, free: 7.539 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.423e-06/0.144, allocations: 0 / 472.6 MB, free: 7.539 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005556/0.1445, allocations: 417.6 kB / 473 MB, free: 7.109 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.272e-05/0.1446, allocations: 104.7 kB / 473.1 MB, free: 6.988 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.474e-05/0.1447, allocations: 11.94 kB / 473.2 MB, free: 6.977 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001327/0.1448, allocations: 11.98 kB / 473.2 MB, free: 6.965 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.359e-05/0.1449, allocations: 15.98 kB / 473.2 MB, free: 6.949 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.543e-05/0.1449, allocations: 11.98 kB / 473.2 MB, free: 6.938 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002458/0.1452, allocations: 213.9 kB / 473.4 MB, free: 6.73 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1452, allocations: 0 / 473.4 MB, free: 6.73 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003907/0.1456, allocations: 79.84 kB / 473.5 MB, free: 6.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.001035/0.1466, allocations: 465.7 kB / 473.9 MB, free: 6.363 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004715/0.1471, allocations: 247.5 kB / 474.2 MB, free: 6.125 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.384e-06/0.1471, allocations: 0 / 474.2 MB, free: 6.125 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002084/0.1473, allocations: 119.8 kB / 474.3 MB, free: 6.008 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004504/0.1478, allocations: 59.78 kB / 474.4 MB, free: 5.953 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001132/0.1489, allocations: 0.6952 MB / 475 MB, free: 5.227 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004428/0.1494, allocations: 0.7955 MB / 475.8 MB, free: 4.402 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002128/0.1496, allocations: 90.88 kB / 475.9 MB, free: 4.312 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.482e-05/0.1497, allocations: 39.42 kB / 476 MB, free: 4.273 MB / 350.1 MB Notification: Performance of SimCode: time 2.41e-07/0.1497, allocations: 0 / 476 MB, free: 4.273 MB / 350.1 MB Notification: Performance of Templates: time 0.007398/0.1571, allocations: 3.431 MB / 479.4 MB, free: 0.8828 MB / 350.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