Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.PowerWorld.Test.WindFarmLoadTest.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo", uses=false) Using package PowerSystems with version 1.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo) Running command: "" <> buildModelFMU(PowerSystems.Examples.PowerWorld.Test.WindFarmLoadTest,fileNamePrefix="PowerSystems_PowerSystems_Examples_PowerWorld_Test_WindFarmLoadTest",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.PowerWorld.Test.WindFarmLoadTest,fileNamePrefix="PowerSystems_PowerSystems_Examples_PowerWorld_Test_WindFarmLoadTest",fmuType="me",version="2.0",platforms={"static"}) [: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(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.0009721/0.0009721, allocations: 181.9 kB / 8.134 MB, free: 2.223 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 0.9393/0.9393, allocations: 194.2 MB / 202.8 MB, free: 8.762 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001564/0.001564, allocations: 120.9 kB / 247.7 MB, free: 6.332 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo): time 0.1489/0.1489, allocations: 37.92 MB / 330.5 MB, free: 6.996 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1664/0.3153, allocations: 59.35 MB / 389.9 MB, free: 78.04 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06607/0.3814, allocations: 53.23 MB / 443.1 MB, free: 24.9 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.213/0.5944, allocations: 92.67 MB / 0.5232 GB, free: 9.832 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.005338/0.5998, allocations: 2.198 MB / 0.5254 GB, free: 9.242 MB / 346.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/Blocks/Sources.mo:2346:7-2347:66:writable] Warning: Unused input variable tableAvailable in function .Modelica.Blocks.Sources.CombiTimeTable$windFarm$wind.getDerTableValue. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/Blocks/Sources.mo:2312:7-2313:66:writable] Warning: Unused input variable tableAvailable in function .Modelica.Blocks.Sources.CombiTimeTable$windFarm$wind.getTableValue. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/Blocks/Sources.mo:2358:7-2359:66:writable] Warning: Unused input variable tableAvailable in function .Modelica.Blocks.Sources.CombiTimeTable$windFarm$wind.getTableTimeTmin. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/Blocks/Sources.mo:2369:7-2370:66:writable] Warning: Unused input variable tableAvailable in function .Modelica.Blocks.Sources.CombiTimeTable$windFarm$wind.getTableTimeTmax. Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 80 * Number of variables: 80 Notification: Performance of Generate backend data structure: time 0.04586/0.6457, allocations: 21.39 MB / 0.5463 GB, free: 11.22 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.969e-05/0.6458, allocations: 12 kB / 0.5463 GB, free: 11.21 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001246/0.647, allocations: 151.3 kB / 0.5464 GB, free: 11.06 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006692/0.6477, allocations: 416.3 kB / 0.5468 GB, free: 10.68 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.255e-05/0.6477, allocations: 8 kB / 0.5468 GB, free: 10.68 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.712e-05/0.6478, allocations: 20 kB / 0.5468 GB, free: 10.66 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0007502/0.6486, allocations: 0.4946 MB / 0.5473 GB, free: 10.3 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006744/0.6493, allocations: 494.9 kB / 0.5478 GB, free: 9.918 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.607e-05/0.6493, allocations: 7.047 kB / 0.5478 GB, free: 9.914 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.994e-05/0.6493, allocations: 0 / 0.5478 GB, free: 9.914 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.252e-05/0.6494, allocations: 36.53 kB / 0.5478 GB, free: 9.879 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002555/0.652, allocations: 1.948 MB / 0.5497 GB, free: 8.238 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000539/0.6526, allocations: 399.3 kB / 0.5501 GB, free: 7.949 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002086/0.6528, allocations: 167 kB / 0.5503 GB, free: 7.836 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.422e-05/0.6529, allocations: 11.06 kB / 0.5503 GB, free: 7.832 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003188/0.6532, allocations: 259.3 kB / 0.5505 GB, free: 7.625 MB / 362.7 MB Notification: Performance of pre-optimization done (n=36): time 1.673e-06/0.6532, allocations: 4 kB / 0.5505 GB, free: 7.621 MB / 362.7 MB Notification: Performance of matching and sorting (n=37): time 0.001131/0.6543, allocations: 0.684 MB / 0.5512 GB, free: 7.074 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.082e-05/0.6544, allocations: 109.7 kB / 0.5513 GB, free: 6.945 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003144/0.6547, allocations: 330 kB / 0.5516 GB, free: 6.688 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.914e-05/0.6548, allocations: 32.58 kB / 0.5517 GB, free: 6.652 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.945e-05/0.6549, allocations: 196.8 kB / 0.5518 GB, free: 6.473 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.044e-05/0.655, allocations: 128.5 kB / 0.552 GB, free: 6.363 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.19e-05/0.655, allocations: 3.938 kB / 0.552 GB, free: 6.359 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 9.881e-05/0.6551, allocations: 354.1 kB / 0.5523 GB, free: 6.02 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002411/0.6554, allocations: 173.4 kB / 0.5525 GB, free: 5.918 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002979/0.6557, allocations: 298.1 kB / 0.5528 GB, free: 5.648 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003043/0.656, allocations: 230.7 kB / 0.553 GB, free: 5.496 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.184e-06/0.656, allocations: 0 / 0.553 GB, free: 5.496 MB / 362.7 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.0008126/0.6568, allocations: 0.5672 MB / 0.5535 GB, free: 5.055 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.238e-05/0.6568, allocations: 8 kB / 0.5535 GB, free: 5.047 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.234e-05/0.6569, allocations: 7.984 kB / 0.5536 GB, free: 5.039 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001171/0.657, allocations: 23.98 kB / 0.5536 GB, free: 5.016 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004356/0.6574, allocations: 112 kB / 0.5537 GB, free: 4.91 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007761/0.6582, allocations: 1.257 MB / 0.5549 GB, free: 3.578 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000344/0.6586, allocations: 36.09 kB / 0.5549 GB, free: 3.543 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.155e-05/0.6586, allocations: 29.94 kB / 0.555 GB, free: 3.52 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 18 * 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 (54): * Single equations (assignments): 51 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0001156/0.6587, allocations: 119.8 kB / 0.5551 GB, free: 3.398 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.947e-05/0.6588, allocations: 43.52 kB / 0.5551 GB, free: 3.355 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008059/0.6596, allocations: 0.5092 MB / 0.5556 GB, free: 2.965 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.39e-06/0.6596, allocations: 4 kB / 0.5556 GB, free: 2.961 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.815e-06/0.6596, allocations: 4 kB / 0.5556 GB, free: 2.957 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.663e-06/0.6597, allocations: 3.906 kB / 0.5556 GB, free: 2.953 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001289/0.6609, allocations: 1.074 MB / 0.5567 GB, free: 2.078 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.915e-06/0.661, allocations: 0 / 0.5567 GB, free: 2.078 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003416/0.6613, allocations: 83.02 kB / 0.5568 GB, free: 2 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.052e-05/0.6614, allocations: 32.31 kB / 0.5568 GB, free: 1.969 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.284e-05/0.6614, allocations: 11.12 kB / 0.5568 GB, free: 1.961 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006757/0.6621, allocations: 1.242 MB / 0.558 GB, free: 0.6406 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.524e-06/0.6621, allocations: 0 / 0.558 GB, free: 0.6406 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0006533/0.6628, allocations: 0.599 MB / 0.5586 GB, free: 112 kB / 362.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0008083/0.6636, allocations: 0.9945 MB / 0.5596 GB, free: 15.19 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001728/0.6638, allocations: 159 kB / 0.5597 GB, free: 15.04 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.379e-05/0.6639, allocations: 7.562 kB / 0.5597 GB, free: 15.04 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003004/0.6642, allocations: 31.97 kB / 0.5598 GB, free: 15 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.812e-05/0.6643, allocations: 42.41 kB / 0.5598 GB, free: 14.97 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.154e-05/0.6643, allocations: 15.56 kB / 0.5598 GB, free: 14.96 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.0002116/0.6645, allocations: 255 kB / 0.5601 GB, free: 14.77 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001041/0.6656, allocations: 138.9 kB / 0.5602 GB, free: 14.64 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * 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.nextTimeEvent,windFarm.disturbance.count,windFarm.wind.nextTimeEventScaled) * Top-level inputs: 0 Notification: Strong component statistics for simulation (45): * Single equations (assignments): 39 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.0007025/0.6663, allocations: 377 kB / 0.5606 GB, free: 14.33 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0007122/0.667, allocations: 0.5768 MB / 0.5611 GB, free: 13.87 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.024e-06/0.667, allocations: 0 / 0.5611 GB, free: 13.87 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000358/0.6674, allocations: 322.9 kB / 0.5614 GB, free: 13.61 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003533/0.6677, allocations: 50.72 kB / 0.5615 GB, free: 13.58 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001153/0.6689, allocations: 0.6244 MB / 0.5621 GB, free: 13.02 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005128/0.6694, allocations: 0.9184 MB / 0.563 GB, free: 12.08 MB / 378.7 MB Notification: Performance of SimCode: time 2.4e-07/0.6694, allocations: 3.938 kB / 0.563 GB, free: 12.08 MB / 378.7 MB (rm -f PowerSystems_PowerSystems.Examples.PowerWorld.Test.WindFarmLoadTest.pipe ; mkfifo PowerSystems_PowerSystems.Examples.PowerWorld.Test.WindFarmLoadTest.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.PowerWorld.Test.WindFarmLoadTest.pipe >> ../files/PowerSystems_PowerSystems.Examples.PowerWorld.Test.WindFarmLoadTest.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_PowerWorld_Test_WindFarmLoadTest_fmu --startTime=0 --stopTime=86400 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_PowerWorld_Test_WindFarmLoadTest.fmu > PowerSystems_PowerSystems.Examples.PowerWorld.Test.WindFarmLoadTest.pipe 2>&1)