Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest.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.WindFarmGridTest,fileNamePrefix="PowerSystems_PowerSystems_Examples_PowerWorld_Test_WindFarmGridTest",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest,fileNamePrefix="PowerSystems_PowerSystems_Examples_PowerWorld_Test_WindFarmGridTest",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.0009994/0.0009994, allocations: 192.7 kB / 8.137 MB, free: 2.066 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.9464/0.9464, allocations: 194.2 MB / 202.8 MB, free: 8.734 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.001591/0.001591, allocations: 119.1 kB / 247.7 MB, free: 6.406 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo): time 0.1499/0.1499, allocations: 37.92 MB / 330.5 MB, free: 6.93 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1559/0.3059, allocations: 59.34 MB / 389.9 MB, free: 78.04 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06611/0.372, allocations: 53.23 MB / 443.1 MB, free: 24.89 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.21/0.5821, allocations: 89.79 MB / 0.5204 GB, free: 10.66 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.00535/0.5874, allocations: 2.197 MB / 0.5226 GB, free: 10.06 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: 59 * Number of variables: 59 Notification: Performance of Generate backend data structure: time 0.03594/0.6234, allocations: 16.55 MB / 0.5387 GB, free: 1.363 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.822e-05/0.6234, allocations: 12 kB / 0.5387 GB, free: 1.352 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009611/0.6244, allocations: 123.3 kB / 0.5388 GB, free: 1.23 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005466/0.625, allocations: 392.8 kB / 0.5392 GB, free: 0.8711 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.395e-05/0.625, allocations: 8 kB / 0.5392 GB, free: 0.8633 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.242e-05/0.6251, allocations: 23.48 kB / 0.5393 GB, free: 0.8438 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005418/0.6256, allocations: 409.9 kB / 0.5396 GB, free: 0.5625 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004685/0.6261, allocations: 403.5 kB / 0.54 GB, free: 244 kB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.878e-06/0.6261, allocations: 0 / 0.54 GB, free: 244 kB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.351e-05/0.6261, allocations: 4 kB / 0.54 GB, free: 240 kB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.559e-05/0.6262, allocations: 19.73 kB / 0.5401 GB, free: 224 kB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002073/0.6283, allocations: 1.718 MB / 0.5417 GB, free: 14.77 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004189/0.6287, allocations: 297.9 kB / 0.542 GB, free: 14.55 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001724/0.6289, allocations: 123.5 kB / 0.5421 GB, free: 14.46 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.348e-05/0.6289, allocations: 7.234 kB / 0.5421 GB, free: 14.46 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000309/0.6292, allocations: 255.6 kB / 0.5424 GB, free: 14.23 MB / 362.7 MB Notification: Performance of pre-optimization done (n=31): time 1.523e-06/0.6292, allocations: 0 / 0.5424 GB, free: 14.23 MB / 362.7 MB Notification: Performance of matching and sorting (n=31): time 0.0005705/0.6298, allocations: 343.4 kB / 0.5427 GB, free: 13.96 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001053/0.6299, allocations: 286.7 kB / 0.543 GB, free: 13.61 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003003/0.6302, allocations: 310.6 kB / 0.5433 GB, free: 13.36 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 4.054e-05/0.6303, allocations: 33.69 kB / 0.5433 GB, free: 13.32 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.24e-05/0.6304, allocations: 162.1 kB / 0.5435 GB, free: 13.18 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.18e-05/0.6305, allocations: 97.47 kB / 0.5436 GB, free: 13.09 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.921e-05/0.6305, allocations: 0 / 0.5436 GB, free: 13.09 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001173/0.6306, allocations: 349.7 kB / 0.5439 GB, free: 12.76 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001999/0.6308, allocations: 133.2 kB / 0.544 GB, free: 12.68 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002601/0.6311, allocations: 264.9 kB / 0.5443 GB, free: 12.43 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002393/0.6313, allocations: 170.2 kB / 0.5444 GB, free: 12.32 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.997e-06/0.6313, allocations: 7.938 kB / 0.5444 GB, free: 12.31 MB / 362.7 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.0006593/0.632, allocations: 459.4 kB / 0.5449 GB, free: 11.96 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.214e-05/0.632, allocations: 8 kB / 0.5449 GB, free: 11.95 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.774e-06/0.632, allocations: 4 kB / 0.5449 GB, free: 11.95 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.649e-05/0.6321, allocations: 8 kB / 0.5449 GB, free: 11.94 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003687/0.6324, allocations: 99.62 kB / 0.545 GB, free: 11.84 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.778e-06/0.6324, allocations: 7.938 kB / 0.545 GB, free: 11.84 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003039/0.6328, allocations: 59.56 kB / 0.5451 GB, free: 11.78 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.13e-05/0.6328, allocations: 27.91 kB / 0.5451 GB, free: 11.75 MB / 362.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 (44): * Single equations (assignments): 42 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001029/0.6329, allocations: 124.5 kB / 0.5452 GB, free: 11.63 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.251e-05/0.633, allocations: 35.62 kB / 0.5452 GB, free: 11.59 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006315/0.6336, allocations: 395.5 kB / 0.5456 GB, free: 11.3 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.502e-06/0.6336, allocations: 8 kB / 0.5456 GB, free: 11.29 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.522e-06/0.6337, allocations: 11.94 kB / 0.5456 GB, free: 11.28 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.584e-06/0.6337, allocations: 3.984 kB / 0.5456 GB, free: 11.27 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007698/0.6344, allocations: 1.025 MB / 0.5466 GB, free: 10.32 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.487e-06/0.6345, allocations: 8.188 kB / 0.5466 GB, free: 10.31 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003106/0.6348, allocations: 79.77 kB / 0.5467 GB, free: 10.23 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.623e-06/0.6348, allocations: 4 kB / 0.5467 GB, free: 10.23 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.938e-05/0.6348, allocations: 11.98 kB / 0.5467 GB, free: 10.22 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.052e-06/0.6348, allocations: 11.94 kB / 0.5467 GB, free: 10.21 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.527e-06/0.6348, allocations: 3.906 kB / 0.5468 GB, free: 10.2 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0005741/0.6354, allocations: 0.5281 MB / 0.5473 GB, free: 9.68 MB / 362.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0006503/0.6361, allocations: 0.9153 MB / 0.5482 GB, free: 8.781 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001506/0.6362, allocations: 163 kB / 0.5483 GB, free: 8.625 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.707e-05/0.6363, allocations: 7.875 kB / 0.5483 GB, free: 8.621 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002494/0.6366, allocations: 31.97 kB / 0.5484 GB, free: 8.59 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.605e-05/0.6367, allocations: 39.73 kB / 0.5484 GB, free: 8.555 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.209e-05/0.6367, allocations: 19.8 kB / 0.5484 GB, free: 8.539 MB / 362.7 MB Notification: Performance of sort global known variables: time 0.0001869/0.6369, allocations: 232.7 kB / 0.5486 GB, free: 8.367 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0009896/0.6379, allocations: 111.6 kB / 0.5487 GB, free: 8.266 MB / 362.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.0006887/0.6386, allocations: 373 kB / 0.5491 GB, free: 7.965 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0004995/0.6391, allocations: 401.7 kB / 0.5495 GB, free: 7.672 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.704e-06/0.6391, allocations: 384 / 0.5495 GB, free: 7.672 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002883/0.6394, allocations: 201.8 kB / 0.5497 GB, free: 7.539 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00033/0.6397, allocations: 53.83 kB / 0.5497 GB, free: 7.496 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001026/0.6408, allocations: 0.5427 MB / 0.5503 GB, free: 6.996 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005352/0.6413, allocations: 0.8779 MB / 0.5511 GB, free: 6.109 MB / 362.7 MB Notification: Performance of SimCode: time 2.61e-07/0.6413, allocations: 0 / 0.5511 GB, free: 6.109 MB / 362.7 MB (rm -f PowerSystems_PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest.pipe ; mkfifo PowerSystems_PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest.pipe >> ../files/PowerSystems_PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_PowerWorld_Test_WindFarmGridTest_fmu --startTime=0 --stopTime=86400 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_PowerWorld_Test_WindFarmGridTest.fmu > PowerSystems_PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest.pipe 2>&1)