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.001985/0.001985, allocations: 179.6 kB / 8.351 MB, free: 0.7227 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.878/1.878, allocations: 194.3 MB / 203.1 MB, free: 13.02 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.001755/0.001755, allocations: 116.6 kB / 248.1 MB, free: 28 kB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo): time 0.1831/0.1831, allocations: 37.93 MB / 330.9 MB, free: 2.66 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.445e-05/2.453e-05, allocations: 4 kB / 390.5 MB, free: 7.012 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2961/0.2961, allocations: 53.23 MB / 443.7 MB, free: 17.67 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1244/0.4206, allocations: 89.82 MB / 0.521 GB, free: 7.727 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.001493/0.4221, allocations: 0.5738 MB / 0.5216 GB, free: 7.152 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.3005/0.7227, allocations: 16.09 MB / 0.5373 GB, free: 87.62 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.084e-06/0.7227, allocations: 3.938 kB / 0.5373 GB, free: 87.62 MB / 378.7 MB Notification: Performance of Transformations before backend: time 2.703e-05/0.7228, allocations: 4.484 kB / 0.5373 GB, free: 87.62 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.001174/0.7239, allocations: 0.7346 MB / 0.538 GB, free: 87.01 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.586e-05/0.724, allocations: 10.53 kB / 0.538 GB, free: 87.01 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008959/0.7249, allocations: 120.7 kB / 0.5381 GB, free: 86.98 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005349/0.7254, allocations: 377.5 kB / 0.5385 GB, free: 86.7 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.303e-05/0.7255, allocations: 7.531 kB / 0.5385 GB, free: 86.7 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.298e-05/0.7255, allocations: 17.66 kB / 0.5385 GB, free: 86.7 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005489/0.7261, allocations: 426.3 kB / 0.5389 GB, free: 86.57 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005037/0.7266, allocations: 396.4 kB / 0.5393 GB, free: 86.36 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.371e-05/0.7266, allocations: 3.219 kB / 0.5393 GB, free: 86.36 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.563e-05/0.7267, allocations: 0 / 0.5393 GB, free: 86.36 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.111e-05/0.7267, allocations: 16.81 kB / 0.5393 GB, free: 86.36 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001826/0.7285, allocations: 1.72 MB / 0.541 GB, free: 85.16 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005819/0.7291, allocations: 342.6 kB / 0.5413 GB, free: 84.96 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001575/0.7293, allocations: 124.5 kB / 0.5414 GB, free: 84.89 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.18e-05/0.7293, allocations: 13.02 kB / 0.5415 GB, free: 84.89 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003068/0.7296, allocations: 263.2 kB / 0.5417 GB, free: 84.67 MB / 378.7 MB Notification: Performance of pre-optimization done (n=31): time 2.024e-06/0.7297, allocations: 3.938 kB / 0.5417 GB, free: 84.67 MB / 378.7 MB Notification: Performance of matching and sorting (n=31): time 0.0005495/0.7302, allocations: 360.8 kB / 0.5421 GB, free: 84.49 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.014e-05/0.7303, allocations: 289.9 kB / 0.5423 GB, free: 84.15 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002553/0.7306, allocations: 299.4 kB / 0.5426 GB, free: 83.95 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.339e-05/0.7306, allocations: 38.69 kB / 0.5427 GB, free: 83.91 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.316e-05/0.7307, allocations: 194.5 kB / 0.5428 GB, free: 83.73 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.156e-05/0.7308, allocations: 97.06 kB / 0.5429 GB, free: 83.66 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.985e-05/0.7308, allocations: 0 / 0.5429 GB, free: 83.66 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 6.551e-05/0.7309, allocations: 354.3 kB / 0.5433 GB, free: 83.31 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001723/0.7311, allocations: 131.8 kB / 0.5434 GB, free: 83.25 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002057/0.7313, allocations: 258.7 kB / 0.5436 GB, free: 83.01 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002071/0.7315, allocations: 165.2 kB / 0.5438 GB, free: 82.93 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.616e-06/0.7315, allocations: 0 / 0.5438 GB, free: 82.93 MB / 378.7 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.0006119/0.7321, allocations: 482.5 kB / 0.5443 GB, free: 82.7 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.491e-05/0.7322, allocations: 62.86 kB / 0.5443 GB, free: 82.63 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.075e-06/0.7322, allocations: 11.53 kB / 0.5443 GB, free: 82.63 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.917e-05/0.7322, allocations: 3.906 kB / 0.5443 GB, free: 82.63 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003385/0.7325, allocations: 98.81 kB / 0.5444 GB, free: 82.6 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.247e-05/0.7326, allocations: 7.312 kB / 0.5444 GB, free: 82.6 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002857/0.7329, allocations: 57.84 kB / 0.5445 GB, free: 82.57 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.431e-05/0.7329, allocations: 21.38 kB / 0.5445 GB, free: 82.57 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.0001056/0.733, allocations: 136.3 kB / 0.5446 GB, free: 82.44 MB / 378.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0004513/0.7335, allocations: 354.2 kB / 0.545 GB, free: 82.27 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.86e-05/0.7335, allocations: 38.98 kB / 0.545 GB, free: 82.25 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005376/0.7341, allocations: 394.6 kB / 0.5454 GB, free: 82.04 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.462e-06/0.7341, allocations: 7.688 kB / 0.5454 GB, free: 82.04 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.612e-06/0.7341, allocations: 3.906 kB / 0.5454 GB, free: 82.04 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.594e-06/0.7341, allocations: 7.938 kB / 0.5454 GB, free: 82.04 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006688/0.7348, allocations: 1.031 MB / 0.5464 GB, free: 81.09 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.657e-06/0.7348, allocations: 7.375 kB / 0.5464 GB, free: 81.08 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002782/0.7351, allocations: 79.8 kB / 0.5465 GB, free: 81.06 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.931e-06/0.7351, allocations: 7.875 kB / 0.5465 GB, free: 81.06 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.682e-05/0.7351, allocations: 15.88 kB / 0.5465 GB, free: 81.05 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.856e-06/0.7352, allocations: 0 / 0.5465 GB, free: 81.05 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.687e-06/0.7352, allocations: 7.844 kB / 0.5465 GB, free: 81.05 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005218/0.7357, allocations: 0.5475 MB / 0.5471 GB, free: 80.61 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000151/0.7358, allocations: 159.9 kB / 0.5472 GB, free: 80.46 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.26e-05/0.7359, allocations: 15.89 kB / 0.5472 GB, free: 80.45 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002261/0.7362, allocations: 23.5 kB / 0.5473 GB, free: 80.44 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.094e-05/0.7363, allocations: 47.38 kB / 0.5473 GB, free: 80.41 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.033e-05/0.7363, allocations: 16.73 kB / 0.5473 GB, free: 80.4 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001741/0.7365, allocations: 236.5 kB / 0.5475 GB, free: 80.17 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.7365, allocations: 0 / 0.5475 GB, free: 80.17 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0004429/0.7369, allocations: 104.7 kB / 0.5476 GB, free: 80.07 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.00145/0.7384, allocations: 1.936 MB / 0.5495 GB, free: 78.07 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0004998/0.7389, allocations: 463.5 kB / 0.55 GB, free: 77.6 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.146e-06/0.7389, allocations: 4.375 kB / 0.55 GB, free: 77.59 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002434/0.7392, allocations: 200.6 kB / 0.5502 GB, free: 77.4 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003541/0.7395, allocations: 61 kB / 0.5502 GB, free: 77.34 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00117/0.7407, allocations: 0.6398 MB / 0.5508 GB, free: 76.64 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000235/0.7409, allocations: 0.8278 MB / 0.5517 GB, free: 75.78 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0002297/0.7412, allocations: 91.14 kB / 0.5517 GB, free: 75.7 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001878/0.7414, allocations: 123.4 kB / 0.5519 GB, free: 75.57 MB / 378.7 MB Notification: Performance of SimCode: time 4.61e-07/0.7414, allocations: 0 / 0.5519 GB, free: 75.57 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02662/0.768, allocations: 7.486 MB / 0.5592 GB, free: 68.08 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001438/0.7682, allocations: 178.4 kB / 0.5593 GB, free: 67.88 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.249/3.017, allocations: 0 / 0.5593 GB, free: 67.88 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)