Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest") translateModel(PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001623/0.001627, allocations: 188.1 kB / 15.77 MB, free: 5.984 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.039/2.039, allocations: 205.4 MB / 221.9 MB, free: 13.81 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001154/0.001154, allocations: 86.88 kB / 270.2 MB, free: 13.34 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2723/0.2723, allocations: 38.05 MB / 356.6 MB, free: 0.7773 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004775/0.0004777, allocations: 16 kB / 422.7 MB, free: 26.42 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1096/0.1101, allocations: 56.34 MB / 479 MB, free: 2.02 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest): time 0.005996/0.1161, allocations: 3.492 MB / 482.5 MB, free: 14.51 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.004536/0.1207, allocations: 1.924 MB / 484.5 MB, free: 12.57 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003995/0.1212, allocations: 15.88 kB / 484.5 MB, free: 12.56 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004405/0.1216, allocations: 71.53 kB / 484.5 MB, free: 12.49 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0009196/0.1226, allocations: 219.3 kB / 484.8 MB, free: 12.27 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009784/0.1236, allocations: 207.5 kB / 485 MB, free: 12.07 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006424/0.1242, allocations: 275.5 kB / 485.2 MB, free: 11.8 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001001/0.1252, allocations: 354.9 kB / 485.6 MB, free: 11.44 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005498/0.1258, allocations: 171.3 kB / 485.7 MB, free: 11.27 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003045/0.1261, allocations: 143.5 kB / 485.9 MB, free: 11.13 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 6.302e-05/0.1262, allocations: 16 kB / 485.9 MB, free: 11.11 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007239/0.127, allocations: 203.6 kB / 486.1 MB, free: 10.91 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001507/0.1271, allocations: 95.7 kB / 486.2 MB, free: 10.82 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001314/0.1273, allocations: 85.52 kB / 486.3 MB, free: 10.73 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0009191/0.1282, allocations: 466.9 kB / 486.7 MB, free: 10.27 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.306e-06/0.1282, allocations: 0 / 486.7 MB, free: 10.27 MB / 330.7 MB Notification: Performance of FrontEnd: time 3.847e-06/0.1282, allocations: 3.938 kB / 486.7 MB, free: 10.27 MB / 330.7 MB Notification: Performance of Transformations before backend: time 8.606e-06/0.1283, allocations: 3.938 kB / 486.7 MB, free: 10.27 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 59 * Number of variables: 59 Notification: Performance of Generate backend data structure: time 0.001772/0.13, allocations: 0.6926 MB / 487.4 MB, free: 9.52 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.556e-05/0.1301, allocations: 8.031 kB / 487.4 MB, free: 9.512 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001359/0.1315, allocations: 123.4 kB / 487.6 MB, free: 9.391 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009556/0.1325, allocations: 394.5 kB / 487.9 MB, free: 8.961 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.482e-05/0.1325, allocations: 20.42 kB / 488 MB, free: 8.941 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.013e-05/0.1326, allocations: 23.94 kB / 488 MB, free: 8.918 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001412/0.1341, allocations: 450.8 kB / 488.4 MB, free: 8.449 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.813e-05/0.1341, allocations: 4 kB / 488.4 MB, free: 8.445 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.124e-05/0.1342, allocations: 23.95 kB / 488.5 MB, free: 8.422 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.358e-05/0.1343, allocations: 16.39 kB / 488.5 MB, free: 8.406 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001802/0.1361, allocations: 0.5247 MB / 489 MB, free: 7.879 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003512/0.1396, allocations: 1.667 MB / 490.7 MB, free: 6.117 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001726/0.1414, allocations: 393.9 kB / 491 MB, free: 5.715 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.973e-05/0.1415, allocations: 7.984 kB / 491.1 MB, free: 5.707 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009251/0.1424, allocations: 290.9 kB / 491.3 MB, free: 5.383 MB / 330.7 MB Notification: Performance of pre-optimization done (n=31): time 4.288e-06/0.1424, allocations: 4 kB / 491.3 MB, free: 5.379 MB / 330.7 MB Notification: Performance of matching and sorting (n=31): time 0.002392/0.1448, allocations: 0.56 MB / 491.9 MB, free: 4.812 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001871/0.1451, allocations: 294.7 kB / 492.2 MB, free: 4.457 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005993/0.1457, allocations: 324.5 kB / 492.5 MB, free: 4.125 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 8.046e-05/0.1458, allocations: 37.7 kB / 492.5 MB, free: 4.082 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002113/0.146, allocations: 254.7 kB / 492.8 MB, free: 3.828 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000142/0.1461, allocations: 98.66 kB / 492.9 MB, free: 3.73 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.011e-05/0.1462, allocations: 4 kB / 492.9 MB, free: 3.727 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001615/0.1464, allocations: 334.8 kB / 493.2 MB, free: 3.391 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006772/0.147, allocations: 143.9 kB / 493.4 MB, free: 3.25 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007894/0.1479, allocations: 292.9 kB / 493.6 MB, free: 2.902 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007966/0.1487, allocations: 221.5 kB / 493.9 MB, free: 2.68 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.821e-06/0.1487, allocations: 0 / 493.9 MB, free: 2.68 MB / 330.7 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.00185/0.1506, allocations: 0.5182 MB / 494.4 MB, free: 2.148 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.247e-05/0.1506, allocations: 33.7 kB / 494.4 MB, free: 2.109 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.253e-05/0.1507, allocations: 4 kB / 494.4 MB, free: 2.105 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.741e-05/0.1507, allocations: 8 kB / 494.4 MB, free: 2.098 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006422/0.1513, allocations: 95.86 kB / 494.5 MB, free: 2.004 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.941e-05/0.1514, allocations: 16.25 kB / 494.5 MB, free: 1.988 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005193/0.1519, allocations: 51.66 kB / 494.6 MB, free: 1.938 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.45e-05/0.152, allocations: 23.94 kB / 494.6 MB, free: 1.914 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * Number of states: 0 () * Number of discrete variables: 11 ($whenCondition2,$PRE.windFarm.wind.nextTimeEvent,$whenCondition1,windFarm.wind.nextTimeEvent,$PRE.windFarm.wind.nextTimeEventScaled,windFarm.wind.nextTimeEventScaled,$PRE.windFarm.disturbance.T_start,windFarm.disturbance.T_start,$PRE.windFarm.disturbance.count,windFarm.disturbance.count,system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (43): * Single equations (assignments): 42 * Array equations: 0 * Algorithm blocks: 1 * 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.0003515/0.1523, allocations: 193.4 kB / 494.8 MB, free: 1.715 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001083/0.1525, allocations: 39.61 kB / 494.8 MB, free: 1.676 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001627/0.1526, allocations: 47.17 kB / 494.9 MB, free: 1.633 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.057e-06/0.1527, allocations: 8 kB / 494.9 MB, free: 1.625 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.035e-05/0.1527, allocations: 4 kB / 494.9 MB, free: 1.621 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.813e-06/0.1527, allocations: 0 / 494.9 MB, free: 1.621 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001391/0.1541, allocations: 1.031 MB / 495.9 MB, free: 0.5117 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.023e-05/0.1541, allocations: 4 kB / 495.9 MB, free: 0.5078 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005065/0.1547, allocations: 71.83 kB / 496 MB, free: 448 kB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.185e-05/0.1547, allocations: 4 kB / 496 MB, free: 444 kB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.019e-05/0.1547, allocations: 8 kB / 496 MB, free: 436 kB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.101e-05/0.1548, allocations: 7.984 kB / 496 MB, free: 428 kB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.436e-06/0.1548, allocations: 7.938 kB / 496 MB, free: 420 kB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001733/0.1565, allocations: 0.5754 MB / 496.6 MB, free: 15.74 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001474/0.1567, allocations: 120.6 kB / 496.7 MB, free: 15.6 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001062/0.1568, allocations: 23.94 kB / 496.7 MB, free: 15.58 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004036/0.1573, allocations: 31.97 kB / 496.8 MB, free: 15.55 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001459/0.1574, allocations: 31.95 kB / 496.8 MB, free: 15.52 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.698e-05/0.1575, allocations: 16 kB / 496.8 MB, free: 15.5 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0004094/0.1579, allocations: 239 kB / 497.1 MB, free: 15.27 MB / 346.7 MB Notification: Performance of sort global known variables: time 4.21e-07/0.1579, allocations: 0 / 497.1 MB, free: 15.27 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0006475/0.1586, allocations: 91.83 kB / 497.1 MB, free: 15.18 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 7 (system.initime,$whenCondition2,$whenCondition1,windFarm.wind.nextTimeEvent,windFarm.wind.nextTimeEventScaled,windFarm.disturbance.T_start,windFarm.disturbance.count) * Number of discrete states: 3 (windFarm.wind.nextTimeEventScaled,windFarm.disturbance.count,windFarm.wind.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (31): * Single equations (assignments): 26 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * 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.001368/0.16, allocations: 476.5 kB / 497.6 MB, free: 14.77 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001698/0.1617, allocations: 431.6 kB / 498 MB, free: 14.34 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.045e-05/0.1617, allocations: 4 kB / 498 MB, free: 14.34 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008101/0.1625, allocations: 200.5 kB / 498.2 MB, free: 14.14 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006187/0.1632, allocations: 64.95 kB / 498.3 MB, free: 14.07 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002004/0.1652, allocations: 0.8264 MB / 499.1 MB, free: 13.19 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005342/0.1658, allocations: 0.8153 MB / 499.9 MB, free: 12.35 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002579/0.1661, allocations: 47.42 kB / 500 MB, free: 12.3 MB / 346.7 MB Notification: Performance of SimCode: time 9.12e-07/0.1661, allocations: 0 / 500 MB, free: 12.3 MB / 346.7 MB Notification: Performance of Templates: time 0.01368/0.1798, allocations: 5.295 MB / 0.4934 GB, free: 7.004 MB / 346.7 MB make -j1 -f PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest.makefile (rm -f PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest.sim & ./PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest --alarm=480 > PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest.pipe 2>&1)