Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest.conf.json loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo) Using package ModelicaServices with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/var/lib/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") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002578/0.002578, allocations: 188.8 kB / 7.807 MB, free: 2.438 MB / 5.871 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.869/1.869, allocations: 205.2 MB / 213.4 MB, free: 13.86 MB / 186.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001303/0.001303, allocations: 96.33 kB / 261.4 MB, free: 13.62 MB / 218.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2641/0.2641, allocations: 37.98 MB / 347.4 MB, free: 7.52 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 1.082e-05/1.099e-05, allocations: 4 kB / 409.3 MB, free: 47.23 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1028/0.1029, allocations: 56.31 MB / 465.6 MB, free: 6.84 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3417/0.4446, allocations: 95.64 MB / 0.5481 GB, free: 15.21 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.009795/0.4545, allocations: 2.203 MB / 0.5503 GB, free: 13.03 MB / 394.7 MB Notification: Performance of FrontEnd: time 0.0697/0.5242, allocations: 16.35 MB / 0.5662 GB, free: 12.52 MB / 410.7 MB Notification: Performance of Transformations before backend: time 4.572e-05/0.5243, allocations: 8 kB / 0.5662 GB, free: 12.51 MB / 410.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.001983/0.5263, allocations: 0.713 MB / 0.5669 GB, free: 11.75 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.47e-05/0.5264, allocations: 8.031 kB / 0.567 GB, free: 11.74 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001552/0.5279, allocations: 119.4 kB / 0.5671 GB, free: 11.62 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001121/0.5291, allocations: 399.2 kB / 0.5674 GB, free: 11.19 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.097e-05/0.5291, allocations: 11.94 kB / 0.5675 GB, free: 11.18 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001031/0.5293, allocations: 15.98 kB / 0.5675 GB, free: 11.16 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00121/0.5305, allocations: 404.6 kB / 0.5679 GB, free: 10.77 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001034/0.5315, allocations: 389.5 kB / 0.5682 GB, free: 10.36 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.827e-05/0.5316, allocations: 7.984 kB / 0.5682 GB, free: 10.35 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.808e-05/0.5316, allocations: 7.938 kB / 0.5682 GB, free: 10.34 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.989e-05/0.5317, allocations: 20.42 kB / 0.5683 GB, free: 10.32 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004029/0.5357, allocations: 1.69 MB / 0.5699 GB, free: 8.543 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008396/0.5366, allocations: 273.7 kB / 0.5702 GB, free: 8.258 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003483/0.537, allocations: 126.2 kB / 0.5703 GB, free: 8.129 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.104e-05/0.537, allocations: 4.234 kB / 0.5703 GB, free: 8.125 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00058/0.5376, allocations: 255.2 kB / 0.5705 GB, free: 7.836 MB / 410.7 MB Notification: Performance of pre-optimization done (n=31): time 2.815e-06/0.5376, allocations: 0 / 0.5705 GB, free: 7.836 MB / 410.7 MB Notification: Performance of matching and sorting (n=31): time 0.001102/0.5388, allocations: 323.4 kB / 0.5709 GB, free: 7.516 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002146/0.539, allocations: 294.7 kB / 0.5711 GB, free: 7.16 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006449/0.5396, allocations: 311.7 kB / 0.5714 GB, free: 6.844 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 7.36e-05/0.5397, allocations: 29.7 kB / 0.5715 GB, free: 6.809 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001599/0.5399, allocations: 210.5 kB / 0.5717 GB, free: 6.598 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001486/0.5401, allocations: 98.66 kB / 0.5718 GB, free: 6.5 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.886e-05/0.5401, allocations: 0 / 0.5718 GB, free: 6.5 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001802/0.5403, allocations: 326.8 kB / 0.5721 GB, free: 6.172 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003685/0.5407, allocations: 112 kB / 0.5722 GB, free: 6.062 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004945/0.5412, allocations: 249 kB / 0.5724 GB, free: 5.758 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004582/0.5417, allocations: 160.3 kB / 0.5726 GB, free: 5.602 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.475e-05/0.5417, allocations: 0 / 0.5726 GB, free: 5.602 MB / 410.7 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.001153/0.5429, allocations: 393.5 kB / 0.5729 GB, free: 5.211 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.826e-05/0.5429, allocations: 7.938 kB / 0.5729 GB, free: 5.203 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.305e-05/0.5429, allocations: 4 kB / 0.5729 GB, free: 5.199 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.016e-05/0.543, allocations: 8 kB / 0.573 GB, free: 5.191 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007391/0.5437, allocations: 99.86 kB / 0.5731 GB, free: 5.094 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.719e-05/0.5438, allocations: 11.92 kB / 0.5731 GB, free: 5.082 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004968/0.5443, allocations: 51.69 kB / 0.5731 GB, free: 5.031 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.899e-05/0.5443, allocations: 16 kB / 0.5731 GB, free: 5.016 MB / 410.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 () * 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.0001648/0.5445, allocations: 53.53 kB / 0.5732 GB, free: 4.957 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000152/0.5447, allocations: 31.62 kB / 0.5732 GB, free: 4.926 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001223/0.5459, allocations: 376.4 kB / 0.5736 GB, free: 4.551 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.052e-05/0.5459, allocations: 7.938 kB / 0.5736 GB, free: 4.543 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.03e-05/0.546, allocations: 4 kB / 0.5736 GB, free: 4.539 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.747e-05/0.546, allocations: 11.98 kB / 0.5736 GB, free: 4.527 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001579/0.5476, allocations: 1.027 MB / 0.5746 GB, free: 3.434 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.045e-06/0.5476, allocations: 4.188 kB / 0.5746 GB, free: 3.43 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006591/0.5483, allocations: 83.89 kB / 0.5747 GB, free: 3.348 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.999e-06/0.5483, allocations: 4 kB / 0.5747 GB, free: 3.344 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.163e-05/0.5484, allocations: 11.98 kB / 0.5747 GB, free: 3.332 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.895e-06/0.5484, allocations: 7.938 kB / 0.5747 GB, free: 3.324 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.843e-06/0.5484, allocations: 7.906 kB / 0.5747 GB, free: 3.316 MB / 410.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001228/0.5496, allocations: 0.5323 MB / 0.5752 GB, free: 2.688 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001617/0.5498, allocations: 120.6 kB / 0.5753 GB, free: 2.551 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001168/0.5499, allocations: 11.98 kB / 0.5754 GB, free: 2.539 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004796/0.5504, allocations: 31.97 kB / 0.5754 GB, free: 2.508 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001488/0.5506, allocations: 39.94 kB / 0.5754 GB, free: 2.469 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.952e-05/0.5506, allocations: 15.98 kB / 0.5754 GB, free: 2.453 MB / 410.7 MB Notification: Performance of sort global known variables: time 0.0004607/0.5511, allocations: 250.9 kB / 0.5757 GB, free: 2.211 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0006808/0.5518, allocations: 83.94 kB / 0.5758 GB, free: 2.129 MB / 410.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.disturbance.count,windFarm.wind.nextTimeEvent,windFarm.wind.nextTimeEventScaled) * Top-level inputs: 0 Notification: Strong component statistics for simulation (40): * Single equations (assignments): 35 * 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.00109/0.5529, allocations: 375 kB / 0.5761 GB, free: 1.801 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.001005/0.5539, allocations: 330.5 kB / 0.5764 GB, free: 1.473 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 3.797e-06/0.554, allocations: 0 / 0.5764 GB, free: 1.473 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005322/0.5545, allocations: 192.2 kB / 0.5766 GB, free: 1.285 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006931/0.5552, allocations: 52.97 kB / 0.5767 GB, free: 1.234 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001887/0.5571, allocations: 0.5875 MB / 0.5772 GB, free: 0.5859 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009628/0.5581, allocations: 0.8703 MB / 0.5781 GB, free: 15.69 MB / 426.7 MB Notification: Performance of SimCode: time 1.403e-06/0.5581, allocations: 4 kB / 0.5781 GB, free: 15.68 MB / 426.7 MB Notification: Performance of Templates: time 0.01421/0.5723, allocations: 5.419 MB / 0.5834 GB, free: 10.26 MB / 426.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)