Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_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/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/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="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.PowerWorld.Test.CityTest") translateModel(PowerSystems.Examples.PowerWorld.Test.CityTest,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_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.001506/0.001506, allocations: 101.8 kB / 16.5 MB, free: 6.645 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.001885/0.001885, allocations: 194.1 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.351/1.351, allocations: 222.9 MB / 241.1 MB, free: 13.64 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1743/0.1743, allocations: 38.02 MB / 329.3 MB, free: 8.715 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001214/0.001214, allocations: 66.19 kB / 398.1 MB, free: 34.47 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1028/0.104, allocations: 58.06 MB / 456.1 MB, free: 8.5 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.Test.CityTest): time 0.006133/0.1102, allocations: 3.842 MB / 460 MB, free: 4.633 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002572/0.1128, allocations: 1.879 MB / 461.9 MB, free: 2.746 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001809/0.113, allocations: 15.88 kB / 461.9 MB, free: 2.73 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007468/0.1138, allocations: 219.3 kB / 462.1 MB, free: 2.516 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005078/0.1143, allocations: 235.2 kB / 462.3 MB, free: 2.285 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004523/0.1148, allocations: 194.5 kB / 462.5 MB, free: 2.098 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005313/0.1153, allocations: 0.5729 MB / 463.1 MB, free: 1.523 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003434/0.1157, allocations: 161.8 kB / 463.2 MB, free: 1.363 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003245/0.116, allocations: 167.3 kB / 463.4 MB, free: 1.199 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002175/0.1163, allocations: 175.3 kB / 463.6 MB, free: 1.027 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.812e-05/0.1163, allocations: 16 kB / 463.6 MB, free: 1.012 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005411/0.1169, allocations: 371.2 kB / 464 MB, free: 0.6484 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001103/0.117, allocations: 103.7 kB / 464.1 MB, free: 0.5469 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001539/0.1171, allocations: 131.3 kB / 464.2 MB, free: 428 kB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005743/0.1177, allocations: 0.5258 MB / 464.7 MB, free: 15.89 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.288e-06/0.1177, allocations: 0 / 464.7 MB, free: 15.89 MB / 350.1 MB Notification: Performance of FrontEnd: time 8.72e-07/0.1177, allocations: 0 / 464.7 MB, free: 15.89 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.272e-06/0.1178, allocations: 0 / 464.7 MB, free: 15.89 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.0008525/0.1186, allocations: 0.6238 MB / 465.3 MB, free: 15.21 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.316e-05/0.1187, allocations: 8.031 kB / 465.3 MB, free: 15.21 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007587/0.1194, allocations: 88.48 kB / 465.4 MB, free: 15.12 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004703/0.1199, allocations: 363.8 kB / 465.8 MB, free: 14.73 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.752e-05/0.1199, allocations: 12.75 kB / 465.8 MB, free: 14.71 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.508e-05/0.12, allocations: 20.12 kB / 465.8 MB, free: 14.7 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005668/0.1206, allocations: 360.6 kB / 466.2 MB, free: 14.31 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.729e-06/0.1206, allocations: 0 / 466.2 MB, free: 14.31 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.05e-05/0.1206, allocations: 8 kB / 466.2 MB, free: 14.3 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.344e-05/0.1207, allocations: 20.36 kB / 466.2 MB, free: 14.29 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006222/0.1213, allocations: 392.7 kB / 466.6 MB, free: 13.9 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001819/0.1231, allocations: 1.558 MB / 468.1 MB, free: 12.23 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006201/0.1237, allocations: 317.1 kB / 468.5 MB, free: 11.9 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001886/0.1239, allocations: 101.6 kB / 468.5 MB, free: 11.8 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.097e-05/0.124, allocations: 15.98 kB / 468.6 MB, free: 11.78 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003317/0.1243, allocations: 193.7 kB / 468.8 MB, free: 11.57 MB / 350.1 MB Notification: Performance of pre-optimization done (n=24): time 1.613e-06/0.1244, allocations: 0 / 468.8 MB, free: 11.57 MB / 350.1 MB Notification: Performance of matching and sorting (n=24): time 0.0007884/0.1251, allocations: 391.1 kB / 469.1 MB, free: 11.18 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.571e-05/0.1252, allocations: 132.5 kB / 469.3 MB, free: 11.02 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003078/0.1255, allocations: 291.3 kB / 469.6 MB, free: 10.73 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.313e-05/0.1256, allocations: 37.69 kB / 469.6 MB, free: 10.68 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001218/0.1257, allocations: 172.2 kB / 469.8 MB, free: 10.51 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.438e-05/0.1258, allocations: 82.97 kB / 469.8 MB, free: 10.43 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.643e-05/0.1259, allocations: 57.97 kB / 469.9 MB, free: 10.36 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001192/0.126, allocations: 338.8 kB / 470.2 MB, free: 10.02 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001728/0.1262, allocations: 96.52 kB / 470.3 MB, free: 9.93 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002229/0.1264, allocations: 183.3 kB / 470.5 MB, free: 9.715 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004151/0.1268, allocations: 299.8 kB / 470.8 MB, free: 9.391 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.955e-06/0.1268, allocations: 4 kB / 470.8 MB, free: 9.387 MB / 350.1 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0005558/0.1274, allocations: 353 kB / 471.1 MB, free: 9.035 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.865e-05/0.1274, allocations: 11.94 kB / 471.2 MB, free: 9.023 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.057e-06/0.1275, allocations: 4 kB / 471.2 MB, free: 9.02 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.429e-05/0.1275, allocations: 7.938 kB / 471.2 MB, free: 9.012 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002554/0.1277, allocations: 64.22 kB / 471.2 MB, free: 8.949 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.112e-05/0.1278, allocations: 11.98 kB / 471.2 MB, free: 8.938 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000142/0.1279, allocations: 31.62 kB / 471.3 MB, free: 8.906 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.607e-05/0.1279, allocations: 12 kB / 471.3 MB, free: 8.895 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.0001697/0.1281, allocations: 173.8 kB / 471.4 MB, free: 8.715 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.624e-05/0.1282, allocations: 27.72 kB / 471.5 MB, free: 8.688 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005766/0.1288, allocations: 318.5 kB / 471.8 MB, free: 8.371 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.813e-06/0.1288, allocations: 8 kB / 471.8 MB, free: 8.363 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.132e-06/0.1288, allocations: 0 / 471.8 MB, free: 8.363 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.254e-06/0.1288, allocations: 11.94 kB / 471.8 MB, free: 8.352 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009836/0.1298, allocations: 0.7479 MB / 472.6 MB, free: 7.547 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.334e-06/0.1298, allocations: 0 / 472.6 MB, free: 7.547 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001639/0.13, allocations: 47.92 kB / 472.6 MB, free: 7.5 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.629e-06/0.13, allocations: 3.938 kB / 472.6 MB, free: 7.496 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.055e-05/0.13, allocations: 7.984 kB / 472.6 MB, free: 7.488 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.154e-06/0.13, allocations: 0 / 472.6 MB, free: 7.488 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.714e-06/0.13, allocations: 4 kB / 472.6 MB, free: 7.484 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005309/0.1306, allocations: 417.6 kB / 473 MB, free: 7.055 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.347e-05/0.1306, allocations: 108.7 kB / 473.1 MB, free: 6.93 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.492e-05/0.1307, allocations: 11.94 kB / 473.1 MB, free: 6.918 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001266/0.1308, allocations: 7.938 kB / 473.1 MB, free: 6.91 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.243e-05/0.1309, allocations: 27.97 kB / 473.2 MB, free: 6.883 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.223e-05/0.1309, allocations: 8 kB / 473.2 MB, free: 6.875 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002142/0.1312, allocations: 217.9 kB / 473.4 MB, free: 6.664 MB / 350.1 MB Notification: Performance of sort global known variables: time 6.31e-07/0.1312, allocations: 0 / 473.4 MB, free: 6.664 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004194/0.1316, allocations: 75.84 kB / 473.5 MB, free: 6.59 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.001069/0.1327, allocations: 469.4 kB / 473.9 MB, free: 6.301 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004883/0.1332, allocations: 239.2 kB / 474.2 MB, free: 6.07 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.345e-06/0.1332, allocations: 0 / 474.2 MB, free: 6.07 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002047/0.1334, allocations: 123.8 kB / 474.3 MB, free: 5.949 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004835/0.1339, allocations: 61.52 kB / 474.3 MB, free: 5.891 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001037/0.1349, allocations: 0.69 MB / 475 MB, free: 5.172 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003456/0.1353, allocations: 0.7878 MB / 475.8 MB, free: 4.355 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002247/0.1355, allocations: 94.77 kB / 475.9 MB, free: 4.262 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.725e-05/0.1356, allocations: 43.41 kB / 476 MB, free: 4.219 MB / 350.1 MB Notification: Performance of SimCode: time 5.91e-07/0.1356, allocations: 0 / 476 MB, free: 4.219 MB / 350.1 MB Notification: Performance of Templates: time 0.007285/0.1429, allocations: 3.425 MB / 479.4 MB, free: 0.8281 MB / 350.1 MB make -j1 -f PowerSystems_PowerSystems.Examples.PowerWorld.Test.CityTest.makefile (rm -f PowerSystems_PowerSystems.Examples.PowerWorld.Test.CityTest.pipe ; mkfifo PowerSystems_PowerSystems.Examples.PowerWorld.Test.CityTest.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.PowerWorld.Test.CityTest.pipe >> ../files/PowerSystems_PowerSystems.Examples.PowerWorld.Test.CityTest.sim & ./PowerSystems_PowerSystems.Examples.PowerWorld.Test.CityTest -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.PowerWorld.Test.CityTest.pipe 2>&1)