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.001058/0.001058, allocations: 110 kB / 17.68 MB, free: 5.332 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.001069/0.001069, allocations: 190.9 kB / 18.62 MB, free: 4.41 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.338/1.338, allocations: 222.9 MB / 242.3 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.2327/0.2327, allocations: 38.05 MB / 330.5 MB, free: 8.758 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00192/0.00192, allocations: 62.16 kB / 400.2 MB, free: 33.37 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1151/0.1171, allocations: 58.06 MB / 458.3 MB, free: 7.336 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.Test.CityTest): time 0.005309/0.1224, allocations: 3.61 MB / 461.9 MB, free: 3.703 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002733/0.1252, allocations: 1.805 MB / 463.7 MB, free: 1.891 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002111/0.1254, allocations: 11.94 kB / 463.7 MB, free: 1.879 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008905/0.1263, allocations: 243 kB / 464 MB, free: 1.641 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007788/0.1271, allocations: 255 kB / 464.2 MB, free: 1.391 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006489/0.1278, allocations: 210.2 kB / 464.4 MB, free: 1.188 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006127/0.1284, allocations: 442.9 kB / 464.9 MB, free: 0.7539 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003287/0.1287, allocations: 185.6 kB / 465 MB, free: 0.5664 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003565/0.1291, allocations: 195.2 kB / 465.2 MB, free: 384 kB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002411/0.1294, allocations: 167.4 kB / 465.4 MB, free: 216 kB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.012e-05/0.1294, allocations: 35.94 kB / 465.4 MB, free: 180 kB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005732/0.13, allocations: 319.3 kB / 465.7 MB, free: 15.86 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001398/0.1301, allocations: 115.7 kB / 465.9 MB, free: 15.75 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001461/0.1303, allocations: 147.2 kB / 466 MB, free: 15.61 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007359/0.131, allocations: 0.5141 MB / 466.5 MB, free: 15.09 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.312e-06/0.1311, allocations: 0 / 466.5 MB, free: 15.09 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.873e-06/0.1311, allocations: 3.938 kB / 466.5 MB, free: 15.09 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.584e-06/0.1311, allocations: 0 / 466.5 MB, free: 15.09 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.000895/0.132, allocations: 0.6315 MB / 467.1 MB, free: 14.4 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.806e-05/0.132, allocations: 15.89 kB / 467.2 MB, free: 14.39 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007018/0.1327, allocations: 84.48 kB / 467.2 MB, free: 14.3 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005316/0.1333, allocations: 371.8 kB / 467.6 MB, free: 13.91 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.896e-05/0.1333, allocations: 12.75 kB / 467.6 MB, free: 13.89 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.717e-05/0.1334, allocations: 24.12 kB / 467.6 MB, free: 13.87 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005615/0.1339, allocations: 356.6 kB / 468 MB, free: 13.5 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.449e-05/0.134, allocations: 4 kB / 468 MB, free: 13.49 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.913e-05/0.134, allocations: 12 kB / 468 MB, free: 13.48 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.102e-05/0.134, allocations: 16.36 kB / 468 MB, free: 13.46 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005956/0.1346, allocations: 396.7 kB / 468.4 MB, free: 13.07 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001849/0.1365, allocations: 1.546 MB / 470 MB, free: 11.42 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000577/0.1371, allocations: 313.2 kB / 470.3 MB, free: 11.09 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001781/0.1373, allocations: 109.6 kB / 470.4 MB, free: 10.98 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.553e-05/0.1373, allocations: 11.98 kB / 470.4 MB, free: 10.97 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003161/0.1376, allocations: 192.5 kB / 470.6 MB, free: 10.76 MB / 350.1 MB Notification: Performance of pre-optimization done (n=24): time 1.924e-06/0.1377, allocations: 0 / 470.6 MB, free: 10.76 MB / 350.1 MB Notification: Performance of matching and sorting (n=24): time 0.0007482/0.1384, allocations: 395.5 kB / 471 MB, free: 10.37 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.348e-05/0.1385, allocations: 132.5 kB / 471.1 MB, free: 10.21 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002976/0.1388, allocations: 287 kB / 471.4 MB, free: 9.914 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.093e-05/0.1388, allocations: 37.69 kB / 471.4 MB, free: 9.871 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001235/0.139, allocations: 176.2 kB / 471.6 MB, free: 9.695 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.011e-05/0.139, allocations: 78.91 kB / 471.7 MB, free: 9.617 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001448/0.1392, allocations: 57.97 kB / 471.7 MB, free: 9.551 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001187/0.1393, allocations: 343 kB / 472 MB, free: 9.207 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001659/0.1395, allocations: 96.52 kB / 472.1 MB, free: 9.113 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002202/0.1397, allocations: 179.3 kB / 472.3 MB, free: 8.902 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004088/0.1401, allocations: 304 kB / 472.6 MB, free: 8.574 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.428e-06/0.1401, allocations: 0 / 472.6 MB, free: 8.574 MB / 350.1 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0005414/0.1407, allocations: 360.9 kB / 473 MB, free: 8.215 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.782e-05/0.1407, allocations: 4.312 kB / 473 MB, free: 8.211 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.844e-06/0.1407, allocations: 11.94 kB / 473 MB, free: 8.199 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.992e-05/0.1408, allocations: 4 kB / 473 MB, free: 8.195 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002469/0.141, allocations: 63.91 kB / 473 MB, free: 8.133 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.003e-05/0.141, allocations: 4 kB / 473.1 MB, free: 8.129 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001359/0.1412, allocations: 35.64 kB / 473.1 MB, free: 8.094 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.829e-05/0.1412, allocations: 16 kB / 473.1 MB, free: 8.078 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.0001698/0.1414, allocations: 176.8 kB / 473.3 MB, free: 7.898 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.244e-05/0.1414, allocations: 31.62 kB / 473.3 MB, free: 7.867 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005504/0.142, allocations: 315.6 kB / 473.6 MB, free: 7.551 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.45e-06/0.142, allocations: 7.984 kB / 473.6 MB, free: 7.543 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.891e-06/0.142, allocations: 4 kB / 473.6 MB, free: 7.539 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.191e-06/0.142, allocations: 3.938 kB / 473.6 MB, free: 7.535 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009721/0.143, allocations: 0.7441 MB / 474.4 MB, free: 6.734 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.164e-06/0.143, allocations: 0 / 474.4 MB, free: 6.734 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00016/0.1432, allocations: 47.92 kB / 474.4 MB, free: 6.688 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.098e-06/0.1432, allocations: 3.938 kB / 474.4 MB, free: 6.684 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.293e-05/0.1432, allocations: 15.98 kB / 474.4 MB, free: 6.668 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.687e-06/0.1432, allocations: 4 kB / 474.4 MB, free: 6.664 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.352e-06/0.1433, allocations: 0 / 474.4 MB, free: 6.664 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005098/0.1438, allocations: 423.9 kB / 474.9 MB, free: 6.23 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.274e-05/0.1439, allocations: 104.7 kB / 475 MB, free: 6.109 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.171e-05/0.1439, allocations: 15.94 kB / 475 MB, free: 6.094 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001285/0.144, allocations: 12 kB / 475 MB, free: 6.082 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.824e-05/0.1441, allocations: 19.97 kB / 475 MB, free: 6.062 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.033e-05/0.1441, allocations: 8 kB / 475 MB, free: 6.055 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000198/0.1443, allocations: 213.9 kB / 475.2 MB, free: 5.852 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.1443, allocations: 0 / 475.2 MB, free: 5.852 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003786/0.1447, allocations: 75.92 kB / 475.3 MB, free: 5.777 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.0009955/0.1457, allocations: 468.1 kB / 475.8 MB, free: 5.488 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004749/0.1462, allocations: 247.8 kB / 476 MB, free: 5.246 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.354e-06/0.1462, allocations: 0.625 kB / 476 MB, free: 5.246 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002021/0.1464, allocations: 119.8 kB / 476.1 MB, free: 5.129 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000462/0.1469, allocations: 73.59 kB / 476.2 MB, free: 5.062 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000944/0.1479, allocations: 0.58 MB / 476.8 MB, free: 4.453 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003584/0.1482, allocations: 0.7953 MB / 477.6 MB, free: 3.629 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001968/0.1484, allocations: 86.89 kB / 477.6 MB, free: 3.543 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.199e-05/0.1485, allocations: 43.41 kB / 477.7 MB, free: 3.5 MB / 350.1 MB Notification: Performance of SimCode: time 2.71e-07/0.1485, allocations: 0 / 477.7 MB, free: 3.5 MB / 350.1 MB Notification: Performance of Templates: time 0.007119/0.1557, allocations: 3.544 MB / 481.2 MB, free: 15.99 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 -s gbode -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