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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.001047/0.001048, allocations: 97.67 kB / 16.3 MB, free: 5.992 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.0008801/0.00088, allocations: 181.7 kB / 17.2 MB, free: 5.906 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.558/1.558, allocations: 205.4 MB / 223.4 MB, free: 5.574 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.3439/0.3439, allocations: 38.06 MB / 309.7 MB, free: 8.977 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0005887/0.0005888, allocations: 12 kB / 376.5 MB, free: 15.3 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1122/0.1128, allocations: 56.35 MB / 432.8 MB, free: 6.855 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.Test.CityTest): time 0.0037/0.1165, allocations: 3.264 MB / 436.1 MB, free: 3.57 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.00208/0.1186, allocations: 1.627 MB / 437.7 MB, free: 1.934 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001364/0.1188, allocations: 15.94 kB / 437.7 MB, free: 1.918 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002996/0.1191, allocations: 67.59 kB / 437.8 MB, free: 1.852 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003998/0.1195, allocations: 171.4 kB / 438 MB, free: 1.684 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003748/0.1199, allocations: 147.6 kB / 438.1 MB, free: 1.539 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002821/0.1202, allocations: 219.6 kB / 438.3 MB, free: 1.324 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005393/0.1207, allocations: 338.5 kB / 438.7 MB, free: 0.9766 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002663/0.121, allocations: 135.5 kB / 438.8 MB, free: 0.8438 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001443/0.1211, allocations: 99.61 kB / 438.9 MB, free: 0.7461 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 2.83e-05/0.1212, allocations: 12 kB / 438.9 MB, free: 0.7344 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002996/0.1215, allocations: 171.6 kB / 439.1 MB, free: 0.5664 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 8.478e-05/0.1216, allocations: 87.78 kB / 439.1 MB, free: 492 kB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 6.471e-05/0.1216, allocations: 81.52 kB / 439.2 MB, free: 404 kB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003781/0.122, allocations: 379.2 kB / 439.6 MB, free: 24 kB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.923e-06/0.122, allocations: 3.938 kB / 439.6 MB, free: 20 kB / 366.1 MB Notification: Performance of FrontEnd: time 1.243e-06/0.122, allocations: 0 / 439.6 MB, free: 20 kB / 366.1 MB Notification: Performance of Transformations before backend: time 5.089e-06/0.1221, allocations: 0 / 439.6 MB, free: 20 kB / 366.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.0007484/0.1228, allocations: 0.5692 MB / 440.2 MB, free: 15.39 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.59e-05/0.1229, allocations: 12.03 kB / 440.2 MB, free: 15.38 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006929/0.1236, allocations: 95.53 kB / 440.3 MB, free: 15.29 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004626/0.124, allocations: 354.7 kB / 440.6 MB, free: 14.91 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.219e-05/0.1241, allocations: 16.38 kB / 440.6 MB, free: 14.89 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.554e-05/0.1241, allocations: 16 kB / 440.7 MB, free: 14.88 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005363/0.1246, allocations: 360.3 kB / 441 MB, free: 14.5 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.079e-05/0.1247, allocations: 7.938 kB / 441 MB, free: 14.49 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.864e-05/0.1247, allocations: 11.98 kB / 441 MB, free: 14.48 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.843e-05/0.1247, allocations: 12.38 kB / 441 MB, free: 14.47 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005338/0.1253, allocations: 384.8 kB / 441.4 MB, free: 14.09 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001818/0.1271, allocations: 1.562 MB / 443 MB, free: 12.42 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006157/0.1277, allocations: 313.8 kB / 443.3 MB, free: 12.09 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.712e-05/0.1278, allocations: 8.172 kB / 443.3 MB, free: 12.09 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002846/0.1281, allocations: 194.2 kB / 443.5 MB, free: 11.88 MB / 382.1 MB Notification: Performance of pre-optimization done (n=24): time 1.823e-06/0.1281, allocations: 0 / 443.5 MB, free: 11.88 MB / 382.1 MB Notification: Performance of matching and sorting (n=24): time 0.0007154/0.1288, allocations: 390.9 kB / 443.9 MB, free: 11.49 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.701e-05/0.1289, allocations: 140.4 kB / 444 MB, free: 11.32 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00029/0.1292, allocations: 283 kB / 444.3 MB, free: 11.04 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.625e-05/0.1292, allocations: 37.95 kB / 444.3 MB, free: 11 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001147/0.1294, allocations: 176.2 kB / 444.5 MB, free: 10.82 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.594e-05/0.1294, allocations: 82.97 kB / 444.6 MB, free: 10.74 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.15e-05/0.1295, allocations: 11.94 kB / 444.6 MB, free: 10.73 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001234/0.1296, allocations: 342.8 kB / 444.9 MB, free: 10.38 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001738/0.1298, allocations: 92.52 kB / 445 MB, free: 10.29 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002122/0.13, allocations: 179.3 kB / 445.2 MB, free: 10.08 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001909/0.1302, allocations: 135.9 kB / 445.3 MB, free: 9.949 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.595e-06/0.1302, allocations: 0 / 445.3 MB, free: 9.949 MB / 382.1 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.000527/0.1307, allocations: 352.9 kB / 445.7 MB, free: 9.598 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.856e-05/0.1308, allocations: 7.984 kB / 445.7 MB, free: 9.59 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.634e-06/0.1308, allocations: 4.312 kB / 445.7 MB, free: 9.586 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.777e-05/0.1308, allocations: 8 kB / 445.7 MB, free: 9.578 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002227/0.131, allocations: 59.91 kB / 445.7 MB, free: 9.52 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.957e-06/0.131, allocations: 4 kB / 445.7 MB, free: 9.516 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001275/0.1312, allocations: 23.78 kB / 445.8 MB, free: 9.492 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.702e-05/0.1312, allocations: 16 kB / 445.8 MB, free: 9.477 MB / 382.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 ($whenCondition1,$PRE.city.data.nextTimeEvent,city.data.nextTimeEvent,$PRE.city.data.nextTimeEventScaled,city.data.nextTimeEventScaled,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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001813/0.1314, allocations: 181.7 kB / 446 MB, free: 9.289 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.358e-05/0.1315, allocations: 31.62 kB / 446 MB, free: 9.258 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005395/0.132, allocations: 319.5 kB / 446.3 MB, free: 8.934 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.721e-06/0.132, allocations: 4 kB / 446.3 MB, free: 8.93 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.719e-06/0.132, allocations: 0 / 446.3 MB, free: 8.93 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.819e-06/0.132, allocations: 4 kB / 446.3 MB, free: 8.926 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009222/0.133, allocations: 0.744 MB / 447 MB, free: 8.125 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.295e-06/0.133, allocations: 0 / 447 MB, free: 8.125 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001524/0.1331, allocations: 43.91 kB / 447.1 MB, free: 8.082 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.001e-06/0.1332, allocations: 8 kB / 447.1 MB, free: 8.074 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.976e-05/0.1332, allocations: 12 kB / 447.1 MB, free: 8.062 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.066e-06/0.1332, allocations: 3.984 kB / 447.1 MB, free: 8.059 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.302e-06/0.1332, allocations: 0 / 447.1 MB, free: 8.059 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005322/0.1337, allocations: 436.1 kB / 447.5 MB, free: 7.598 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.244e-05/0.1338, allocations: 116.7 kB / 447.7 MB, free: 7.465 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.789e-05/0.1339, allocations: 8 kB / 447.7 MB, free: 7.457 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001229/0.134, allocations: 8 kB / 447.7 MB, free: 7.449 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.977e-05/0.1341, allocations: 27.92 kB / 447.7 MB, free: 7.422 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.302e-05/0.1341, allocations: 8 kB / 447.7 MB, free: 7.414 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002013/0.1343, allocations: 213.9 kB / 447.9 MB, free: 7.207 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1343, allocations: 0 / 447.9 MB, free: 7.207 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003744/0.1347, allocations: 79.83 kB / 448 MB, free: 7.129 MB / 382.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0009166/0.1356, allocations: 460 kB / 448.4 MB, free: 6.668 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0004126/0.136, allocations: 249.1 kB / 448.7 MB, free: 6.426 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.234e-06/0.1361, allocations: 4.062 kB / 448.7 MB, free: 6.422 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001723/0.1362, allocations: 119.8 kB / 448.8 MB, free: 6.305 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003413/0.1366, allocations: 44.86 kB / 448.8 MB, free: 6.262 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009047/0.1375, allocations: 0.6822 MB / 449.5 MB, free: 5.539 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003434/0.1379, allocations: 0.803 MB / 450.3 MB, free: 4.711 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.000186/0.138, allocations: 82.89 kB / 450.4 MB, free: 4.633 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.164e-05/0.1381, allocations: 43.42 kB / 450.5 MB, free: 4.59 MB / 382.1 MB Notification: Performance of SimCode: time 2.71e-07/0.1381, allocations: 0 / 450.5 MB, free: 4.59 MB / 382.1 MB Notification: Performance of Templates: time 0.006359/0.1445, allocations: 3.304 MB / 453.8 MB, free: 1.281 MB / 382.1 MB make -j1 -f PowerSystems_PowerSystems.Examples.PowerWorld.Test.CityTest.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: