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.001514/0.001514, allocations: 107.7 kB / 16.92 MB, free: 5.746 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.00181/0.001811, allocations: 191.3 kB / 17.85 MB, free: 5.176 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.371/1.371, allocations: 222.9 MB / 241.5 MB, free: 15.28 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1731/0.1731, allocations: 38.04 MB / 329.7 MB, free: 8.848 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001154/0.001154, allocations: 62.64 kB / 398.8 MB, free: 34.07 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09581/0.09697, allocations: 58.06 MB / 456.9 MB, free: 8.07 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.Test.CityTest): time 0.005652/0.1027, allocations: 3.602 MB / 460.5 MB, free: 4.445 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002718/0.1054, allocations: 1.816 MB / 462.3 MB, free: 2.621 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001861/0.1056, allocations: 4 kB / 462.3 MB, free: 2.617 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000758/0.1064, allocations: 235 kB / 462.5 MB, free: 2.387 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005401/0.107, allocations: 263 kB / 462.8 MB, free: 2.129 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000489/0.1075, allocations: 214 kB / 463 MB, free: 1.922 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003933/0.1079, allocations: 442.9 kB / 463.4 MB, free: 1.488 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002863/0.1082, allocations: 181.6 kB / 463.6 MB, free: 1.305 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003054/0.1085, allocations: 191.2 kB / 463.8 MB, free: 1.117 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002094/0.1087, allocations: 175.4 kB / 463.9 MB, free: 0.9453 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.093e-05/0.1088, allocations: 28 kB / 464 MB, free: 0.918 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004254/0.1092, allocations: 319.3 kB / 464.3 MB, free: 0.6055 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001028/0.1093, allocations: 115.7 kB / 464.4 MB, free: 0.4922 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001249/0.1094, allocations: 155.2 kB / 464.6 MB, free: 348 kB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005227/0.11, allocations: 0.5063 MB / 465.1 MB, free: 15.83 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.717e-06/0.11, allocations: 0 / 465.1 MB, free: 15.83 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.062e-06/0.11, allocations: 0 / 465.1 MB, free: 15.83 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.71e-06/0.11, allocations: 0 / 465.1 MB, free: 15.83 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.0007749/0.1108, allocations: 0.6199 MB / 465.7 MB, free: 15.16 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.089e-05/0.1108, allocations: 11.89 kB / 465.7 MB, free: 15.15 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006937/0.1115, allocations: 88.48 kB / 465.8 MB, free: 15.06 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004232/0.112, allocations: 371.7 kB / 466.1 MB, free: 14.66 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.08e-05/0.112, allocations: 24.66 kB / 466.2 MB, free: 14.64 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.316e-05/0.112, allocations: 20.12 kB / 466.2 MB, free: 14.62 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005191/0.1126, allocations: 352.6 kB / 466.5 MB, free: 14.25 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.117e-06/0.1126, allocations: 0 / 466.5 MB, free: 14.25 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.72e-05/0.1126, allocations: 19.98 kB / 466.5 MB, free: 14.23 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.776e-05/0.1126, allocations: 12.38 kB / 466.6 MB, free: 14.22 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005522/0.1132, allocations: 388.8 kB / 466.9 MB, free: 13.84 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001672/0.1149, allocations: 1.546 MB / 468.5 MB, free: 12.18 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005814/0.1155, allocations: 321.1 kB / 468.8 MB, free: 11.85 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001713/0.1157, allocations: 105.7 kB / 468.9 MB, free: 11.74 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.441e-05/0.1157, allocations: 16.05 kB / 468.9 MB, free: 11.72 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002993/0.116, allocations: 200.5 kB / 469.1 MB, free: 11.51 MB / 350.1 MB Notification: Performance of pre-optimization done (n=24): time 1.502e-06/0.116, allocations: 4 kB / 469.1 MB, free: 11.5 MB / 350.1 MB Notification: Performance of matching and sorting (n=24): time 0.0007158/0.1168, allocations: 383.3 kB / 469.5 MB, free: 11.12 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.473e-05/0.1168, allocations: 132.5 kB / 469.6 MB, free: 10.96 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002879/0.1171, allocations: 299.2 kB / 469.9 MB, free: 10.66 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.58e-05/0.1172, allocations: 33.7 kB / 469.9 MB, free: 10.62 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001164/0.1173, allocations: 176.2 kB / 470.1 MB, free: 10.44 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.051e-05/0.1174, allocations: 78.91 kB / 470.2 MB, free: 10.36 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.748e-05/0.1175, allocations: 53.98 kB / 470.2 MB, free: 10.3 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001179/0.1176, allocations: 338.8 kB / 470.6 MB, free: 9.961 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001647/0.1178, allocations: 96.52 kB / 470.7 MB, free: 9.867 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002171/0.118, allocations: 183.3 kB / 470.9 MB, free: 9.652 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004049/0.1184, allocations: 304 kB / 471.1 MB, free: 9.324 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.667e-06/0.1184, allocations: 11.94 kB / 471.2 MB, free: 9.312 MB / 350.1 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0005317/0.1189, allocations: 353 kB / 471.5 MB, free: 8.961 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.603e-05/0.119, allocations: 6.031 kB / 471.5 MB, free: 8.957 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.384e-06/0.119, allocations: 4 kB / 471.5 MB, free: 8.953 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.564e-05/0.119, allocations: 4 kB / 471.5 MB, free: 8.949 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002448/0.1192, allocations: 60.22 kB / 471.6 MB, free: 8.891 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.758e-06/0.1193, allocations: 11.94 kB / 471.6 MB, free: 8.879 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001531/0.1194, allocations: 27.72 kB / 471.6 MB, free: 8.852 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.541e-05/0.1195, allocations: 16 kB / 471.6 MB, free: 8.836 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.0001603/0.1196, allocations: 177.7 kB / 471.8 MB, free: 8.652 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.134e-05/0.1197, allocations: 31.62 kB / 471.8 MB, free: 8.621 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005337/0.1202, allocations: 311.7 kB / 472.1 MB, free: 8.309 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.532e-06/0.1202, allocations: 0 / 472.1 MB, free: 8.309 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.873e-06/0.1203, allocations: 11.88 kB / 472.2 MB, free: 8.297 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.496e-06/0.1203, allocations: 11.92 kB / 472.2 MB, free: 8.285 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009134/0.1212, allocations: 0.7503 MB / 472.9 MB, free: 7.48 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.934e-06/0.1212, allocations: 0 / 472.9 MB, free: 7.48 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001572/0.1214, allocations: 47.91 kB / 473 MB, free: 7.434 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.438e-06/0.1214, allocations: 3.938 kB / 473 MB, free: 7.43 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.79e-05/0.1214, allocations: 8 kB / 473 MB, free: 7.422 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.229e-06/0.1214, allocations: 8 kB / 473 MB, free: 7.414 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/0.1214, allocations: 0 / 473 MB, free: 7.414 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000515/0.1219, allocations: 417.5 kB / 473.4 MB, free: 6.984 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.212e-05/0.122, allocations: 104.7 kB / 473.5 MB, free: 6.863 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.278e-05/0.1221, allocations: 15.92 kB / 473.5 MB, free: 6.848 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001417/0.1222, allocations: 8 kB / 473.5 MB, free: 6.84 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.02e-05/0.1223, allocations: 23.92 kB / 473.5 MB, free: 6.816 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.964e-05/0.1223, allocations: 11.98 kB / 473.5 MB, free: 6.805 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001997/0.1225, allocations: 213.9 kB / 473.8 MB, free: 6.602 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1225, allocations: 0 / 473.8 MB, free: 6.602 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003683/0.1229, allocations: 71.94 kB / 473.8 MB, free: 6.531 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.001052/0.124, allocations: 461.7 kB / 474.3 MB, free: 6.246 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004712/0.1244, allocations: 275.7 kB / 474.5 MB, free: 5.977 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.774e-06/0.1245, allocations: 0 / 474.5 MB, free: 5.977 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001913/0.1247, allocations: 123.8 kB / 474.7 MB, free: 5.855 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004241/0.1251, allocations: 61.17 kB / 474.7 MB, free: 5.805 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000848/0.1259, allocations: 0.6032 MB / 475.3 MB, free: 5.172 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003391/0.1263, allocations: 0.7912 MB / 476.1 MB, free: 4.352 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001941/0.1265, allocations: 90.88 kB / 476.2 MB, free: 4.262 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.268e-05/0.1266, allocations: 39.42 kB / 476.3 MB, free: 4.223 MB / 350.1 MB Notification: Performance of SimCode: time 3.3e-07/0.1266, allocations: 0 / 476.3 MB, free: 4.223 MB / 350.1 MB Notification: Performance of Templates: time 0.006644/0.1332, allocations: 3.561 MB / 479.8 MB, free: 0.6914 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