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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.00112/0.00112, allocations: 179.6 kB / 16.38 MB, free: 5.762 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.238/1.238, allocations: 194.5 MB / 211.6 MB, free: 2.961 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.001549/0.001549, allocations: 116.6 kB / 256.9 MB, free: 4.328 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo): time 0.1625/0.1625, allocations: 38 MB / 340.1 MB, free: 1.336 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003569/0.0003567, allocations: 12 kB / 403.9 MB, free: 68.7 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09024/0.09061, allocations: 53.23 MB / 457.1 MB, free: 15.47 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.308/0.3987, allocations: 90.57 MB / 0.5348 GB, free: 4.887 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.001623/0.4003, allocations: 0.8639 MB / 0.5357 GB, free: 4.422 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: Performance of FrontEnd - DAE generated: time 0.03828/0.4386, allocations: 16.27 MB / 0.5516 GB, free: 6.77 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.463e-06/0.4387, allocations: 0 / 0.5516 GB, free: 6.77 MB / 362.7 MB Notification: Performance of Transformations before backend: time 3.01e-05/0.4387, allocations: 4 kB / 0.5516 GB, free: 6.766 MB / 362.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.001432/0.4401, allocations: 0.7859 MB / 0.5523 GB, free: 5.945 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.972e-05/0.4402, allocations: 12.02 kB / 0.5524 GB, free: 5.934 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001214/0.4403, allocations: 63.91 kB / 0.5524 GB, free: 5.875 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009023/0.4412, allocations: 124.8 kB / 0.5525 GB, free: 5.754 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006728/0.4419, allocations: 386.6 kB / 0.5529 GB, free: 5.387 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.487e-05/0.442, allocations: 18.75 kB / 0.5529 GB, free: 5.375 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.006e-05/0.442, allocations: 21.38 kB / 0.5529 GB, free: 5.359 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008127/0.4429, allocations: 474 kB / 0.5534 GB, free: 4.988 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.909e-06/0.4429, allocations: 0 / 0.5534 GB, free: 4.988 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.97e-05/0.4429, allocations: 15.38 kB / 0.5534 GB, free: 4.98 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.117e-05/0.443, allocations: 20.36 kB / 0.5534 GB, free: 4.961 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001065/0.444, allocations: 0.572 MB / 0.554 GB, free: 4.531 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002303/0.4463, allocations: 1.76 MB / 0.5557 GB, free: 3.02 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001019/0.4474, allocations: 456.9 kB / 0.5561 GB, free: 2.664 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.221e-05/0.4474, allocations: 4.234 kB / 0.5561 GB, free: 2.66 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005969/0.448, allocations: 324.4 kB / 0.5565 GB, free: 2.363 MB / 362.7 MB Notification: Performance of pre-optimization done (n=31): time 3.557e-06/0.448, allocations: 0 / 0.5565 GB, free: 2.363 MB / 362.7 MB Notification: Performance of matching and sorting (n=31): time 0.001354/0.4494, allocations: 0.6099 MB / 0.5571 GB, free: 1.879 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001188/0.4495, allocations: 294.5 kB / 0.5573 GB, free: 1.527 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003571/0.4499, allocations: 324.4 kB / 0.5576 GB, free: 1.27 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 4.191e-05/0.4499, allocations: 41.62 kB / 0.5577 GB, free: 1.227 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000112/0.4501, allocations: 190.6 kB / 0.5579 GB, free: 1.082 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.052e-05/0.4501, allocations: 101.8 kB / 0.558 GB, free: 0.9961 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.283e-05/0.4502, allocations: 7.875 kB / 0.558 GB, free: 0.9922 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001118/0.4503, allocations: 350.1 kB / 0.5583 GB, free: 0.6562 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003868/0.4507, allocations: 182.1 kB / 0.5585 GB, free: 0.5312 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004352/0.4511, allocations: 314.1 kB / 0.5588 GB, free: 236 kB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004558/0.4516, allocations: 276.9 kB / 0.559 GB, free: 24 kB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.448e-06/0.4516, allocations: 0 / 0.559 GB, free: 24 kB / 362.7 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.001126/0.4528, allocations: 0.657 MB / 0.5597 GB, free: 15.48 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.494e-05/0.4528, allocations: 67.34 kB / 0.5597 GB, free: 15.41 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.002e-05/0.4528, allocations: 4 kB / 0.5597 GB, free: 15.4 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.581e-05/0.4529, allocations: 8 kB / 0.5598 GB, free: 15.39 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003401/0.4532, allocations: 95.75 kB / 0.5598 GB, free: 15.3 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.39e-05/0.4532, allocations: 11.94 kB / 0.5599 GB, free: 15.29 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003138/0.4536, allocations: 58.28 kB / 0.5599 GB, free: 15.24 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.854e-05/0.4536, allocations: 23.31 kB / 0.5599 GB, free: 15.22 MB / 378.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 (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.0002025/0.4538, allocations: 195.6 kB / 0.5601 GB, free: 15.05 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.847e-05/0.4539, allocations: 39.52 kB / 0.5602 GB, free: 15.02 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001003/0.4549, allocations: 0.4964 MB / 0.5606 GB, free: 14.63 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.027e-06/0.4549, allocations: 8 kB / 0.5607 GB, free: 14.62 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.789e-06/0.4549, allocations: 0 / 0.5607 GB, free: 14.62 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.298e-06/0.4549, allocations: 7.984 kB / 0.5607 GB, free: 14.61 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009608/0.4559, allocations: 1.097 MB / 0.5617 GB, free: 13.58 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.051e-06/0.4559, allocations: 4 kB / 0.5617 GB, free: 13.58 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002971/0.4562, allocations: 83.02 kB / 0.5618 GB, free: 13.5 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.392e-06/0.4562, allocations: 4 kB / 0.5618 GB, free: 13.5 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.999e-05/0.4563, allocations: 11 kB / 0.5618 GB, free: 13.49 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.482e-06/0.4563, allocations: 7.984 kB / 0.5618 GB, free: 13.48 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.613e-06/0.4563, allocations: 0 / 0.5618 GB, free: 13.48 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009968/0.4573, allocations: 0.6634 MB / 0.5625 GB, free: 12.84 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001845/0.4575, allocations: 153.2 kB / 0.5626 GB, free: 12.7 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.605e-05/0.4576, allocations: 22.3 kB / 0.5627 GB, free: 12.68 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002399/0.4578, allocations: 35.47 kB / 0.5627 GB, free: 12.65 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.289e-05/0.4579, allocations: 46.72 kB / 0.5627 GB, free: 12.61 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.554e-05/0.458, allocations: 23.16 kB / 0.5628 GB, free: 12.59 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0002476/0.4582, allocations: 254.9 kB / 0.563 GB, free: 12.4 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4582, allocations: 0 / 0.563 GB, free: 12.4 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0004749/0.4587, allocations: 117.3 kB / 0.5631 GB, free: 12.3 MB / 378.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) * Number of clocked states: 0 () * 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.002337/0.4611, allocations: 2.133 MB / 0.5652 GB, free: 10.24 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.000996/0.4621, allocations: 0.5671 MB / 0.5657 GB, free: 9.777 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.755e-06/0.4621, allocations: 0 / 0.5657 GB, free: 9.777 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004751/0.4626, allocations: 248 kB / 0.566 GB, free: 9.602 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003619/0.4629, allocations: 66.45 kB / 0.566 GB, free: 9.551 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002907/0.4659, allocations: 4.011 MB / 0.57 GB, free: 5.539 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003869/0.4663, allocations: 0.8258 MB / 0.5708 GB, free: 4.699 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0003567/0.4666, allocations: 90.84 kB / 0.5709 GB, free: 4.609 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000229/0.4669, allocations: 127.3 kB / 0.571 GB, free: 4.559 MB / 378.7 MB Notification: Performance of SimCode: time 7.61e-07/0.4669, allocations: 0 / 0.571 GB, free: 4.559 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0237/0.4906, allocations: 8.083 MB / 0.5789 GB, free: 12.46 MB / 394.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002078/0.4908, allocations: 222.9 kB / 0.5791 GB, free: 12.22 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.997/2.488, allocations: 0 / 0.5791 GB, free: 12.22 MB / 394.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)