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.001145/0.001145, allocations: 94.06 kB / 16.65 MB, free: 6.59 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.001369/0.001369, allocations: 181.3 kB / 17.56 MB, free: 6.203 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.391/1.391, allocations: 223.3 MB / 241.6 MB, free: 216 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1834/0.1834, allocations: 38.09 MB / 330.8 MB, free: 8.703 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003056/0.0003055, allocations: 9.25 kB / 400.7 MB, free: 34.12 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1138/0.1141, allocations: 59.17 MB / 459.9 MB, free: 7.07 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.Test.CityTest): time 0.004866/0.119, allocations: 3.471 MB / 463.4 MB, free: 3.578 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003175/0.1222, allocations: 1.836 MB / 465.2 MB, free: 1.734 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002204/0.1225, allocations: 7.938 kB / 465.2 MB, free: 1.727 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004011/0.1229, allocations: 59.69 kB / 465.3 MB, free: 1.668 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007172/0.1236, allocations: 239.2 kB / 465.5 MB, free: 1.434 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006866/0.1243, allocations: 187.6 kB / 465.7 MB, free: 1.25 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008817/0.1252, allocations: 0.569 MB / 466.2 MB, free: 0.6797 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007095/0.126, allocations: 354.5 kB / 466.6 MB, free: 320 kB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004768/0.1264, allocations: 163.2 kB / 466.7 MB, free: 156 kB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002626/0.1267, allocations: 155.4 kB / 466.9 MB, free: 0 / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.944e-05/0.1268, allocations: 12.05 kB / 466.9 MB, free: 15.98 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006084/0.1274, allocations: 367.2 kB / 467.3 MB, free: 15.63 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001142/0.1275, allocations: 103.6 kB / 467.4 MB, free: 15.53 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001535/0.1277, allocations: 156.9 kB / 467.5 MB, free: 15.37 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007257/0.1284, allocations: 0.5062 MB / 468 MB, free: 14.86 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.336e-06/0.1284, allocations: 4 kB / 468 MB, free: 14.86 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.1284, allocations: 0 / 468 MB, free: 14.86 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.195e-06/0.1285, allocations: 0 / 468 MB, free: 14.86 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.001192/0.1297, allocations: 0.5617 MB / 468.6 MB, free: 14.24 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.274e-05/0.1297, allocations: 12.03 kB / 468.6 MB, free: 14.23 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008338/0.1305, allocations: 92.39 kB / 468.7 MB, free: 14.14 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005005/0.1311, allocations: 375.6 kB / 469.1 MB, free: 13.73 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.709e-05/0.1311, allocations: 12.75 kB / 469.1 MB, free: 13.72 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.078e-05/0.1311, allocations: 20.12 kB / 469.1 MB, free: 13.7 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005894/0.1317, allocations: 360.6 kB / 469.4 MB, free: 13.32 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.223e-05/0.1318, allocations: 0 / 469.4 MB, free: 13.32 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.593e-05/0.1318, allocations: 11.98 kB / 469.5 MB, free: 13.31 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.048e-05/0.1318, allocations: 12.38 kB / 469.5 MB, free: 13.3 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006651/0.1325, allocations: 384.8 kB / 469.8 MB, free: 12.92 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002073/0.1346, allocations: 1.558 MB / 471.4 MB, free: 11.25 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000584/0.1352, allocations: 317.1 kB / 471.7 MB, free: 10.92 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001869/0.1354, allocations: 105.7 kB / 471.8 MB, free: 10.81 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.43e-05/0.1354, allocations: 15.98 kB / 471.8 MB, free: 10.8 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003122/0.1358, allocations: 199.8 kB / 472 MB, free: 10.58 MB / 350.1 MB Notification: Performance of pre-optimization done (n=24): time 1.533e-06/0.1358, allocations: 0 / 472 MB, free: 10.58 MB / 350.1 MB Notification: Performance of matching and sorting (n=24): time 0.0007339/0.1365, allocations: 379.4 kB / 472.4 MB, free: 10.21 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.869e-05/0.1366, allocations: 140.8 kB / 472.5 MB, free: 10.04 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004057/0.137, allocations: 290.9 kB / 472.8 MB, free: 9.742 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.872e-05/0.1371, allocations: 37.7 kB / 472.9 MB, free: 9.699 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001203/0.1372, allocations: 172.2 kB / 473 MB, free: 9.527 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.493e-05/0.1373, allocations: 78.97 kB / 473.1 MB, free: 9.449 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.647e-05/0.1373, allocations: 37.64 kB / 473.1 MB, free: 9.406 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002138/0.1375, allocations: 342.8 kB / 473.5 MB, free: 9.062 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002684/0.1378, allocations: 92.52 kB / 473.6 MB, free: 8.969 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002417/0.1381, allocations: 183.3 kB / 473.7 MB, free: 8.754 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004798/0.1386, allocations: 304.2 kB / 474 MB, free: 8.426 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.098e-06/0.1386, allocations: 4 kB / 474 MB, free: 8.422 MB / 350.1 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.00056/0.1391, allocations: 353 kB / 474.4 MB, free: 8.07 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.534e-05/0.1392, allocations: 4 kB / 474.4 MB, free: 8.066 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.273e-06/0.1392, allocations: 4 kB / 474.4 MB, free: 8.062 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.407e-05/0.1392, allocations: 4.312 kB / 474.4 MB, free: 8.059 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002435/0.1395, allocations: 63.91 kB / 474.5 MB, free: 7.996 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.02e-05/0.1395, allocations: 7.938 kB / 474.5 MB, free: 7.988 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001393/0.1396, allocations: 31.62 kB / 474.5 MB, free: 7.957 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.721e-05/0.1397, allocations: 19.98 kB / 474.5 MB, free: 7.938 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.0001744/0.1398, allocations: 173.8 kB / 474.7 MB, free: 7.758 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.801e-05/0.1399, allocations: 31.62 kB / 474.7 MB, free: 7.727 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005531/0.1404, allocations: 311.7 kB / 475 MB, free: 7.414 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.913e-06/0.1405, allocations: 11.94 kB / 475 MB, free: 7.402 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.409e-06/0.1405, allocations: 3.938 kB / 475 MB, free: 7.398 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.156e-06/0.1405, allocations: 7.922 kB / 475 MB, free: 7.391 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001023/0.1415, allocations: 0.7499 MB / 475.8 MB, free: 6.586 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.007e-06/0.1415, allocations: 4 kB / 475.8 MB, free: 6.582 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001563/0.1417, allocations: 35.98 kB / 475.8 MB, free: 6.547 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.903e-06/0.1417, allocations: 3.938 kB / 475.8 MB, free: 6.543 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.892e-05/0.1417, allocations: 15.94 kB / 475.9 MB, free: 6.527 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.01e-06/0.1417, allocations: 11.98 kB / 475.9 MB, free: 6.516 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.152e-06/0.1418, allocations: 0 / 475.9 MB, free: 6.516 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005979/0.1424, allocations: 409.6 kB / 476.3 MB, free: 6.094 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.122e-05/0.1424, allocations: 108.8 kB / 476.4 MB, free: 5.969 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.119e-05/0.1425, allocations: 11.94 kB / 476.4 MB, free: 5.957 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001304/0.1426, allocations: 15.98 kB / 476.4 MB, free: 5.941 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.255e-05/0.1427, allocations: 15.98 kB / 476.4 MB, free: 5.926 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.252e-05/0.1427, allocations: 15.98 kB / 476.4 MB, free: 5.91 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002126/0.143, allocations: 217.9 kB / 476.6 MB, free: 5.699 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.143, allocations: 0 / 476.6 MB, free: 5.699 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003788/0.1433, allocations: 71.84 kB / 476.7 MB, free: 5.629 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.001021/0.1444, allocations: 470.1 kB / 477.2 MB, free: 5.336 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004438/0.1448, allocations: 239.7 kB / 477.4 MB, free: 5.102 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.374e-06/0.1448, allocations: 0 / 477.4 MB, free: 5.102 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001926/0.145, allocations: 116.5 kB / 477.5 MB, free: 4.988 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004714/0.1455, allocations: 71.16 kB / 477.6 MB, free: 4.926 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001029/0.1466, allocations: 0.7019 MB / 478.3 MB, free: 4.195 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005066/0.1471, allocations: 0.7994 MB / 479.1 MB, free: 3.363 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002183/0.1473, allocations: 82.83 kB / 479.2 MB, free: 3.281 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.447e-05/0.1474, allocations: 39.42 kB / 479.2 MB, free: 3.242 MB / 350.1 MB Notification: Performance of SimCode: time 2.61e-07/0.1474, allocations: 4 kB / 479.2 MB, free: 3.238 MB / 350.1 MB Notification: Performance of Templates: time 0.007411/0.1548, allocations: 3.388 MB / 482.6 MB, free: 15.89 MB / 366.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)