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.00171/0.00171, allocations: 181.2 kB / 13.64 MB, free: 1.676 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.596/1.596, allocations: 194.3 MB / 208.4 MB, free: 6.707 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.00157/0.00157, allocations: 124.7 kB / 253.5 MB, free: 9.574 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo): time 0.1601/0.1601, allocations: 37.91 MB / 336.4 MB, free: 14.27 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 3.966e-05/3.974e-05, allocations: 7.984 kB / 397.6 MB, free: 0.9453 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.271/0.2711, allocations: 53.22 MB / 450.9 MB, free: 13.47 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1149/0.386, allocations: 90.48 MB / 0.5287 GB, free: 2.855 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.001582/0.3876, allocations: 0.6906 MB / 0.5293 GB, free: 2.168 MB / 378.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.2856/0.6732, allocations: 16.19 MB / 0.5451 GB, free: 83.53 MB / 378.7 MB Notification: Performance of FrontEnd: time 3.086e-06/0.6733, allocations: 0 / 0.5451 GB, free: 83.53 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.734e-05/0.6733, allocations: 7.781 kB / 0.5451 GB, free: 83.53 MB / 378.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.001753/0.6751, allocations: 0.7438 MB / 0.5459 GB, free: 82.86 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.858e-05/0.6751, allocations: 7.812 kB / 0.5459 GB, free: 82.86 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001048/0.6753, allocations: 58.33 kB / 0.5459 GB, free: 82.8 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001706/0.677, allocations: 120.8 kB / 0.546 GB, free: 82.75 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009173/0.6779, allocations: 386.9 kB / 0.5464 GB, free: 82.41 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.493e-05/0.678, allocations: 20 kB / 0.5464 GB, free: 82.4 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.417e-05/0.6781, allocations: 23.56 kB / 0.5465 GB, free: 82.39 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00102/0.6791, allocations: 420.2 kB / 0.5469 GB, free: 82.04 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.502e-05/0.6792, allocations: 0 / 0.5469 GB, free: 82.04 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.87e-05/0.6792, allocations: 12 kB / 0.5469 GB, free: 82.03 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.804e-05/0.6793, allocations: 20.42 kB / 0.5469 GB, free: 82.01 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001203/0.6805, allocations: 497.4 kB / 0.5474 GB, free: 81.52 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003306/0.6839, allocations: 1.764 MB / 0.5491 GB, free: 79.67 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001164/0.685, allocations: 369.8 kB / 0.5494 GB, free: 79.29 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000323/0.6854, allocations: 122.2 kB / 0.5496 GB, free: 79.16 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.023e-05/0.6854, allocations: 12.06 kB / 0.5496 GB, free: 79.16 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005655/0.686, allocations: 275.1 kB / 0.5498 GB, free: 78.85 MB / 378.7 MB Notification: Performance of pre-optimization done (n=31): time 5.52e-06/0.6861, allocations: 0 / 0.5498 GB, free: 78.85 MB / 378.7 MB Notification: Performance of matching and sorting (n=31): time 0.00109/0.6872, allocations: 381.2 kB / 0.5502 GB, free: 78.47 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001077/0.6873, allocations: 302.7 kB / 0.5505 GB, free: 78.11 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005877/0.6879, allocations: 318.6 kB / 0.5508 GB, free: 77.79 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 6.105e-05/0.688, allocations: 33.7 kB / 0.5508 GB, free: 77.75 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001754/0.6882, allocations: 196.4 kB / 0.551 GB, free: 77.55 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001171/0.6883, allocations: 106.5 kB / 0.5511 GB, free: 77.45 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.273e-05/0.6883, allocations: 4 kB / 0.5511 GB, free: 77.45 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001253/0.6885, allocations: 354.7 kB / 0.5514 GB, free: 77.09 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003879/0.6889, allocations: 132.4 kB / 0.5516 GB, free: 76.96 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004624/0.6894, allocations: 279.7 kB / 0.5518 GB, free: 76.62 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004654/0.6899, allocations: 227.3 kB / 0.5521 GB, free: 76.39 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.23e-06/0.6899, allocations: 0 / 0.5521 GB, free: 76.39 MB / 378.7 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.001273/0.6912, allocations: 0.5673 MB / 0.5526 GB, free: 75.8 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.916e-05/0.6913, allocations: 67.39 kB / 0.5527 GB, free: 75.73 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.635e-05/0.6913, allocations: 7.984 kB / 0.5527 GB, free: 75.72 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.161e-05/0.6913, allocations: 8 kB / 0.5527 GB, free: 75.71 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005716/0.6919, allocations: 95.81 kB / 0.5528 GB, free: 75.62 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.546e-05/0.692, allocations: 8 kB / 0.5528 GB, free: 75.61 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004773/0.6924, allocations: 59.84 kB / 0.5528 GB, free: 75.55 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.641e-05/0.6925, allocations: 20 kB / 0.5529 GB, free: 75.53 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 () * 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.0001647/0.6927, allocations: 140.6 kB / 0.553 GB, free: 75.39 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.416e-05/0.6928, allocations: 39.48 kB / 0.553 GB, free: 75.35 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001028/0.6938, allocations: 420.3 kB / 0.5534 GB, free: 74.93 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.317e-06/0.6939, allocations: 4 kB / 0.5534 GB, free: 74.93 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.003e-05/0.6939, allocations: 4 kB / 0.5534 GB, free: 74.92 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.759e-06/0.6939, allocations: 7.938 kB / 0.5535 GB, free: 74.91 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001209/0.6951, allocations: 1.1 MB / 0.5545 GB, free: 73.75 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.332e-06/0.6951, allocations: 4 kB / 0.5545 GB, free: 73.74 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004884/0.6956, allocations: 79.89 kB / 0.5546 GB, free: 73.66 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.082e-05/0.6957, allocations: 4 kB / 0.5546 GB, free: 73.66 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.224e-05/0.6957, allocations: 12 kB / 0.5546 GB, free: 73.65 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.171e-06/0.6957, allocations: 4 kB / 0.5546 GB, free: 73.64 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.5e-06/0.6958, allocations: 12.11 kB / 0.5546 GB, free: 73.63 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009232/0.6967, allocations: 0.5565 MB / 0.5552 GB, free: 72.98 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002305/0.6969, allocations: 172.5 kB / 0.5553 GB, free: 72.79 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.539e-05/0.697, allocations: 19.98 kB / 0.5554 GB, free: 72.77 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003915/0.6974, allocations: 35.97 kB / 0.5554 GB, free: 72.74 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001246/0.6976, allocations: 35.91 kB / 0.5554 GB, free: 72.7 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.141e-05/0.6976, allocations: 19.98 kB / 0.5555 GB, free: 72.68 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0003837/0.698, allocations: 258.2 kB / 0.5557 GB, free: 72.43 MB / 378.7 MB Notification: Performance of sort global known variables: time 3.51e-07/0.6981, allocations: 0 / 0.5557 GB, free: 72.43 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0007792/0.6988, allocations: 119.8 kB / 0.5558 GB, free: 72.32 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) * 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.002585/0.7014, allocations: 1.991 MB / 0.5578 GB, free: 70.27 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0009135/0.7024, allocations: 490.5 kB / 0.5582 GB, free: 69.77 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.439e-06/0.7024, allocations: 0 / 0.5582 GB, free: 69.77 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004901/0.7029, allocations: 205 kB / 0.5584 GB, free: 69.57 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004961/0.7034, allocations: 65.48 kB / 0.5585 GB, free: 69.5 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001824/0.7053, allocations: 0.667 MB / 0.5591 GB, free: 68.78 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003215/0.7056, allocations: 0.8281 MB / 0.5599 GB, free: 67.93 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0004231/0.706, allocations: 86.8 kB / 0.56 GB, free: 67.84 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002848/0.7063, allocations: 127.4 kB / 0.5601 GB, free: 67.71 MB / 378.7 MB Notification: Performance of SimCode: time 7.92e-07/0.7064, allocations: 4 kB / 0.5602 GB, free: 67.71 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0309/0.7373, allocations: 8.201 MB / 0.5682 GB, free: 59.5 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002024/0.7375, allocations: 200.1 kB / 0.5684 GB, free: 59.27 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.194/2.931, allocations: 0 / 0.5684 GB, free: 59.27 MB / 378.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)