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.001305/0.001305, allocations: 104 kB / 17.59 MB, free: 5.559 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.001293/0.001293, allocations: 191.5 kB / 18.51 MB, free: 4.641 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.309/1.309, allocations: 222.9 MB / 242.2 MB, free: 15.21 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1757/0.1757, allocations: 38.04 MB / 330.4 MB, free: 8.824 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001615/0.001616, allocations: 63.55 kB / 399.5 MB, free: 34.05 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1117/0.1133, allocations: 58.06 MB / 457.5 MB, free: 8.062 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.Test.CityTest): time 0.006337/0.1197, allocations: 3.607 MB / 461.1 MB, free: 4.434 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002967/0.1227, allocations: 1.816 MB / 463 MB, free: 2.609 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002611/0.123, allocations: 11.94 kB / 463 MB, free: 2.598 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001012/0.124, allocations: 235 kB / 463.2 MB, free: 2.367 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000763/0.1248, allocations: 255 kB / 463.4 MB, free: 2.117 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006946/0.1255, allocations: 212.8 kB / 463.7 MB, free: 1.91 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007312/0.1262, allocations: 438.9 kB / 464.1 MB, free: 1.48 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004618/0.1267, allocations: 185.6 kB / 464.3 MB, free: 1.293 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005161/0.1273, allocations: 195.2 kB / 464.5 MB, free: 1.102 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003439/0.1276, allocations: 171.4 kB / 464.6 MB, free: 0.9336 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.655e-05/0.1277, allocations: 24 kB / 464.6 MB, free: 0.9102 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006848/0.1284, allocations: 327.3 kB / 465 MB, free: 0.5898 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001645/0.1286, allocations: 111.7 kB / 465.1 MB, free: 492 kB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002009/0.1288, allocations: 151.2 kB / 465.2 MB, free: 340 kB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008915/0.1297, allocations: 0.5103 MB / 465.7 MB, free: 15.82 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.33e-06/0.1297, allocations: 0 / 465.7 MB, free: 15.82 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.733e-06/0.1297, allocations: 4 kB / 465.7 MB, free: 15.82 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.375e-05/0.1297, allocations: 0 / 465.7 MB, free: 15.82 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.001012/0.1307, allocations: 0.6199 MB / 466.4 MB, free: 15.14 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.46e-05/0.1308, allocations: 8.031 kB / 466.4 MB, free: 15.14 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008123/0.1316, allocations: 88.47 kB / 466.5 MB, free: 15.05 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005487/0.1322, allocations: 363.7 kB / 466.8 MB, free: 14.66 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.35e-05/0.1322, allocations: 20.73 kB / 466.8 MB, free: 14.64 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.29e-05/0.1322, allocations: 20.12 kB / 466.8 MB, free: 14.62 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005883/0.1328, allocations: 356.6 kB / 467.2 MB, free: 14.25 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.072e-05/0.1329, allocations: 0 / 467.2 MB, free: 14.25 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.146e-05/0.1329, allocations: 11.98 kB / 467.2 MB, free: 14.23 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.162e-05/0.1329, allocations: 16.36 kB / 467.2 MB, free: 14.22 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006001/0.1335, allocations: 396.7 kB / 467.6 MB, free: 13.83 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001857/0.1354, allocations: 1.542 MB / 469.2 MB, free: 12.18 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006093/0.136, allocations: 333 kB / 469.5 MB, free: 11.83 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001772/0.1362, allocations: 101.7 kB / 469.6 MB, free: 11.73 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.838e-05/0.1363, allocations: 12.05 kB / 469.6 MB, free: 11.71 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000325/0.1366, allocations: 204.5 kB / 469.8 MB, free: 11.5 MB / 350.1 MB Notification: Performance of pre-optimization done (n=24): time 1.703e-06/0.1366, allocations: 0 / 469.8 MB, free: 11.5 MB / 350.1 MB Notification: Performance of matching and sorting (n=24): time 0.000781/0.1374, allocations: 387.2 kB / 470.2 MB, free: 11.11 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000103/0.1375, allocations: 136.5 kB / 470.3 MB, free: 10.95 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003277/0.1379, allocations: 287 kB / 470.6 MB, free: 10.65 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.542e-05/0.1379, allocations: 33.7 kB / 470.6 MB, free: 10.61 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001417/0.138, allocations: 180.4 kB / 470.8 MB, free: 10.43 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.571e-05/0.1381, allocations: 78.91 kB / 470.9 MB, free: 10.36 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001021/0.1382, allocations: 57.98 kB / 470.9 MB, free: 10.29 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001538/0.1384, allocations: 342.8 kB / 471.3 MB, free: 9.945 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001841/0.1386, allocations: 92.52 kB / 471.3 MB, free: 9.855 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002392/0.1388, allocations: 183.3 kB / 471.5 MB, free: 9.641 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004614/0.1393, allocations: 304.2 kB / 471.8 MB, free: 9.312 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.771e-06/0.1393, allocations: 4 kB / 471.8 MB, free: 9.309 MB / 350.1 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0006008/0.1399, allocations: 360.9 kB / 472.2 MB, free: 8.949 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.045e-05/0.14, allocations: 8 kB / 472.2 MB, free: 8.941 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.204e-06/0.14, allocations: 0 / 472.2 MB, free: 8.941 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.965e-05/0.14, allocations: 4 kB / 472.2 MB, free: 8.938 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002581/0.1403, allocations: 63.91 kB / 472.3 MB, free: 8.875 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.033e-05/0.1403, allocations: 4 kB / 472.3 MB, free: 8.871 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001589/0.1405, allocations: 31.7 kB / 472.3 MB, free: 8.84 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.811e-05/0.1405, allocations: 12.31 kB / 472.3 MB, free: 8.828 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.0002287/0.1407, allocations: 181.8 kB / 472.5 MB, free: 8.641 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.476e-05/0.1408, allocations: 27.62 kB / 472.5 MB, free: 8.613 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006243/0.1414, allocations: 319.6 kB / 472.8 MB, free: 8.293 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.053e-06/0.1415, allocations: 4 kB / 472.8 MB, free: 8.289 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.35e-06/0.1415, allocations: 0 / 472.8 MB, free: 8.289 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.656e-06/0.1415, allocations: 3.938 kB / 472.8 MB, free: 8.285 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001042/0.1426, allocations: 0.7557 MB / 473.6 MB, free: 7.473 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.645e-06/0.1426, allocations: 0 / 473.6 MB, free: 7.473 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001583/0.1427, allocations: 39.92 kB / 473.6 MB, free: 7.434 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.103e-05/0.1428, allocations: 7.938 kB / 473.6 MB, free: 7.426 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.525e-05/0.1428, allocations: 11.98 kB / 473.6 MB, free: 7.414 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.448e-06/0.1428, allocations: 3.984 kB / 473.6 MB, free: 7.41 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.016e-06/0.1428, allocations: 4 kB / 473.6 MB, free: 7.406 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005795/0.1434, allocations: 415.9 kB / 474.1 MB, free: 6.98 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.391e-05/0.1435, allocations: 108.7 kB / 474.2 MB, free: 6.855 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.969e-05/0.1436, allocations: 23.88 kB / 474.2 MB, free: 6.832 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001187/0.1437, allocations: 0 / 474.2 MB, free: 6.832 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.269e-05/0.1438, allocations: 23.97 kB / 474.2 MB, free: 6.809 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.022e-05/0.1438, allocations: 8 kB / 474.2 MB, free: 6.801 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002378/0.144, allocations: 213.9 kB / 474.4 MB, free: 6.598 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.144, allocations: 4 kB / 474.4 MB, free: 6.594 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004004/0.1444, allocations: 75.92 kB / 474.5 MB, free: 6.52 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.001106/0.1456, allocations: 462.8 kB / 475 MB, free: 6.238 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000535/0.1461, allocations: 283.7 kB / 475.2 MB, free: 5.961 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.965e-06/0.1461, allocations: 0 / 475.2 MB, free: 5.961 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002062/0.1463, allocations: 111.9 kB / 475.3 MB, free: 5.852 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004698/0.1468, allocations: 59.78 kB / 475.4 MB, free: 5.797 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001093/0.1479, allocations: 0.6408 MB / 476 MB, free: 5.121 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003866/0.1483, allocations: 0.7952 MB / 476.8 MB, free: 4.297 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001067/0.1484, allocations: 43.42 kB / 476.9 MB, free: 4.254 MB / 350.1 MB Notification: Performance of SimCode: time 2.21e-07/0.1484, allocations: 0 / 476.9 MB, free: 4.254 MB / 350.1 MB Notification: Performance of Templates: time 0.008305/0.1567, allocations: 4.508 MB / 481.4 MB, free: 15.77 MB / 366.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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.PowerWorld.Test.CityTest.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.CityTest.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches