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.001352/0.001352, allocations: 108.3 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.001419/0.001419, allocations: 192 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.346/1.346, allocations: 222.9 MB / 242.3 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1739/0.1739, allocations: 38.04 MB / 330.5 MB, free: 8.758 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00122/0.00122, allocations: 67.69 kB / 400.2 MB, free: 33.35 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09513/0.09638, allocations: 58.07 MB / 458.3 MB, free: 7.316 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.Test.CityTest): time 0.005079/0.1015, allocations: 3.61 MB / 461.9 MB, free: 3.684 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002443/0.104, allocations: 1.812 MB / 463.7 MB, free: 1.863 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000121/0.1041, allocations: 7.938 kB / 463.7 MB, free: 1.855 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007594/0.1049, allocations: 231 kB / 464 MB, free: 1.629 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005314/0.1054, allocations: 262.9 kB / 464.2 MB, free: 1.371 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000465/0.1059, allocations: 205.5 kB / 464.4 MB, free: 1.172 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004524/0.1063, allocations: 442.9 kB / 464.9 MB, free: 0.7383 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003078/0.1067, allocations: 181.6 kB / 465 MB, free: 0.5547 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003292/0.107, allocations: 203.2 kB / 465.2 MB, free: 364 kB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002239/0.1072, allocations: 171.5 kB / 465.4 MB, free: 192 kB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.778e-05/0.1073, allocations: 28 kB / 465.4 MB, free: 164 kB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004513/0.1077, allocations: 315.3 kB / 465.7 MB, free: 15.85 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001201/0.1079, allocations: 115.7 kB / 465.8 MB, free: 15.74 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001391/0.108, allocations: 155.1 kB / 466 MB, free: 15.59 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005554/0.1086, allocations: 0.5141 MB / 466.5 MB, free: 15.07 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.917e-06/0.1086, allocations: 0 / 466.5 MB, free: 15.07 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.754e-06/0.1086, allocations: 0 / 466.5 MB, free: 15.07 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.252e-06/0.1086, allocations: 0 / 466.5 MB, free: 15.07 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.0008512/0.1095, allocations: 0.6199 MB / 467.1 MB, free: 14.4 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.169e-05/0.1095, allocations: 15.83 kB / 467.1 MB, free: 14.38 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007009/0.1102, allocations: 92.47 kB / 467.2 MB, free: 14.29 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005317/0.1108, allocations: 375.7 kB / 467.6 MB, free: 13.89 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.29e-05/0.1108, allocations: 20.73 kB / 467.6 MB, free: 13.87 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.823e-05/0.1108, allocations: 24.12 kB / 467.7 MB, free: 13.85 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005276/0.1114, allocations: 352.6 kB / 468 MB, free: 13.48 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.438e-06/0.1114, allocations: 0 / 468 MB, free: 13.48 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.739e-05/0.1114, allocations: 7.984 kB / 468 MB, free: 13.47 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.737e-05/0.1115, allocations: 20.36 kB / 468 MB, free: 13.45 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005684/0.112, allocations: 392.8 kB / 468.4 MB, free: 13.06 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001832/0.1139, allocations: 1.55 MB / 470 MB, free: 11.4 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005914/0.1145, allocations: 313.2 kB / 470.3 MB, free: 11.08 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001734/0.1147, allocations: 105.7 kB / 470.4 MB, free: 10.97 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.166e-05/0.1147, allocations: 16.05 kB / 470.4 MB, free: 10.95 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003081/0.115, allocations: 196.5 kB / 470.6 MB, free: 10.74 MB / 350.1 MB Notification: Performance of pre-optimization done (n=24): time 1.623e-06/0.1151, allocations: 0 / 470.6 MB, free: 10.74 MB / 350.1 MB Notification: Performance of matching and sorting (n=24): time 0.0007137/0.1158, allocations: 391.4 kB / 471 MB, free: 10.36 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.374e-05/0.1159, allocations: 132.5 kB / 471.1 MB, free: 10.2 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00028/0.1161, allocations: 291 kB / 471.4 MB, free: 9.895 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.738e-05/0.1162, allocations: 33.64 kB / 471.4 MB, free: 9.855 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001175/0.1163, allocations: 176.2 kB / 471.6 MB, free: 9.68 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.888e-05/0.1164, allocations: 82.91 kB / 471.7 MB, free: 9.598 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.286e-05/0.1165, allocations: 49.98 kB / 471.7 MB, free: 9.539 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001375/0.1166, allocations: 347 kB / 472 MB, free: 9.191 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001698/0.1168, allocations: 96.52 kB / 472.1 MB, free: 9.098 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002317/0.117, allocations: 179.3 kB / 472.3 MB, free: 8.887 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004421/0.1175, allocations: 304.2 kB / 472.6 MB, free: 8.559 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.506e-06/0.1175, allocations: 3.938 kB / 472.6 MB, free: 8.555 MB / 350.1 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0005504/0.118, allocations: 356.9 kB / 473 MB, free: 8.199 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.766e-05/0.1181, allocations: 8.312 kB / 473 MB, free: 8.191 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.12e-06/0.1181, allocations: 4 kB / 473 MB, free: 8.188 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.401e-05/0.1181, allocations: 4 kB / 473 MB, free: 8.184 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002551/0.1184, allocations: 67.91 kB / 473 MB, free: 8.117 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.064e-05/0.1184, allocations: 7.938 kB / 473.1 MB, free: 8.109 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001336/0.1185, allocations: 27.72 kB / 473.1 MB, free: 8.082 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.536e-05/0.1186, allocations: 11.98 kB / 473.1 MB, free: 8.07 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.0001828/0.1187, allocations: 173.8 kB / 473.3 MB, free: 7.891 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.336e-05/0.1188, allocations: 35.56 kB / 473.3 MB, free: 7.855 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005448/0.1194, allocations: 319.7 kB / 473.6 MB, free: 7.535 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.29e-06/0.1194, allocations: 4 kB / 473.6 MB, free: 7.531 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.807e-06/0.1194, allocations: 0 / 473.6 MB, free: 7.531 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.47e-06/0.1194, allocations: 3.938 kB / 473.6 MB, free: 7.527 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000976/0.1204, allocations: 0.7479 MB / 474.4 MB, free: 6.723 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.244e-06/0.1204, allocations: 4 kB / 474.4 MB, free: 6.719 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001567/0.1205, allocations: 43.92 kB / 474.4 MB, free: 6.676 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.461e-06/0.1206, allocations: 7.938 kB / 474.4 MB, free: 6.668 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.001e-05/0.1206, allocations: 11.98 kB / 474.4 MB, free: 6.656 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.164e-06/0.1206, allocations: 0 / 474.4 MB, free: 6.656 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.122e-06/0.1206, allocations: 0 / 474.4 MB, free: 6.656 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005313/0.1211, allocations: 416 kB / 474.8 MB, free: 6.23 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.246e-05/0.1212, allocations: 116.7 kB / 474.9 MB, free: 6.098 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.397e-05/0.1213, allocations: 11.94 kB / 475 MB, free: 6.086 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001268/0.1214, allocations: 12 kB / 475 MB, free: 6.074 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.753e-05/0.1215, allocations: 19.91 kB / 475 MB, free: 6.055 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.212e-05/0.1215, allocations: 12 kB / 475 MB, free: 6.043 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002083/0.1217, allocations: 213.9 kB / 475.2 MB, free: 5.84 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1217, allocations: 0 / 475.2 MB, free: 5.84 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003839/0.1221, allocations: 79.92 kB / 475.3 MB, free: 5.762 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.001003/0.1231, allocations: 468 kB / 475.7 MB, free: 5.477 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004573/0.1236, allocations: 243.7 kB / 476 MB, free: 5.238 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.635e-06/0.1236, allocations: 0.625 kB / 476 MB, free: 5.238 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002056/0.1238, allocations: 123.9 kB / 476.1 MB, free: 5.117 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004419/0.1243, allocations: 60.11 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.0009171/0.1252, allocations: 0.5877 MB / 476.8 MB, free: 4.445 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004207/0.1256, allocations: 0.7953 MB / 477.5 MB, free: 3.621 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.00019/0.1258, allocations: 90.88 kB / 477.6 MB, free: 3.531 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.169e-05/0.1259, allocations: 39.42 kB / 477.7 MB, free: 3.492 MB / 350.1 MB Notification: Performance of SimCode: time 3.01e-07/0.1259, allocations: 0 / 477.7 MB, free: 3.492 MB / 350.1 MB Notification: Performance of Templates: time 0.007156/0.1331, allocations: 3.564 MB / 481.2 MB, free: 15.96 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 cvode -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