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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00107/0.00107, allocations: 92.36 kB / 16.31 MB, free: 6.461 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001199/0.0012, allocations: 181.3 kB / 17.21 MB, free: 6.328 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.713/1.713, allocations: 205.4 MB / 223.4 MB, free: 5.785 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.3212/0.3212, allocations: 38.05 MB / 309.7 MB, free: 8.824 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0005518/0.000552, allocations: 18.19 kB / 376.6 MB, free: 15.17 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1381/0.1386, allocations: 56.33 MB / 433 MB, free: 6.742 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest): time 0.005334/0.144, allocations: 3.59 MB / 436.5 MB, free: 3.133 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.003366/0.1474, allocations: 1.966 MB / 438.5 MB, free: 1.156 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004571/0.1479, allocations: 15.88 kB / 438.5 MB, free: 1.141 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005209/0.1485, allocations: 67.53 kB / 438.6 MB, free: 1.074 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009463/0.1494, allocations: 242.9 kB / 438.8 MB, free: 0.8359 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008306/0.1503, allocations: 207.5 kB / 439 MB, free: 0.6328 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007927/0.1511, allocations: 0.5259 MB / 439.6 MB, free: 108 kB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008255/0.1519, allocations: 347 kB / 439.9 MB, free: 15.75 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006201/0.1526, allocations: 187.2 kB / 440.1 MB, free: 15.57 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004387/0.153, allocations: 191.3 kB / 440.3 MB, free: 15.38 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 8.047e-05/0.1531, allocations: 16 kB / 440.3 MB, free: 15.36 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006628/0.1538, allocations: 223.5 kB / 440.5 MB, free: 15.14 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001764/0.154, allocations: 103.6 kB / 440.6 MB, free: 15.04 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001459/0.1541, allocations: 93.44 kB / 440.7 MB, free: 14.95 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008194/0.1549, allocations: 474.9 kB / 441.2 MB, free: 14.48 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.281e-06/0.155, allocations: 0 / 441.2 MB, free: 14.48 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.843e-06/0.155, allocations: 4 kB / 441.2 MB, free: 14.48 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.707e-05/0.155, allocations: 0 / 441.2 MB, free: 14.48 MB / 382.1 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.001604/0.1566, allocations: 0.6847 MB / 441.8 MB, free: 13.73 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.094e-05/0.1567, allocations: 12.03 kB / 441.9 MB, free: 13.72 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000149/0.1568, allocations: 62.47 kB / 441.9 MB, free: 13.65 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001014/0.1578, allocations: 111.4 kB / 442 MB, free: 13.54 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007921/0.1587, allocations: 386.6 kB / 442.4 MB, free: 13.12 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.898e-05/0.1587, allocations: 20.44 kB / 442.4 MB, free: 13.11 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.348e-05/0.1588, allocations: 16 kB / 442.4 MB, free: 13.09 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001003/0.1598, allocations: 458.8 kB / 442.9 MB, free: 12.61 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.826e-05/0.1598, allocations: 3.953 kB / 442.9 MB, free: 12.61 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.397e-05/0.1599, allocations: 19.98 kB / 442.9 MB, free: 12.59 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.136e-05/0.1599, allocations: 16.42 kB / 442.9 MB, free: 12.57 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001141/0.1611, allocations: 0.5246 MB / 443.4 MB, free: 12.05 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002703/0.1638, allocations: 1.682 MB / 445.1 MB, free: 10.27 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009798/0.1648, allocations: 385.1 kB / 445.5 MB, free: 9.879 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003798/0.1652, allocations: 153.6 kB / 445.7 MB, free: 9.723 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.164e-05/0.1652, allocations: 4 kB / 445.7 MB, free: 9.719 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005934/0.1658, allocations: 298.9 kB / 446 MB, free: 9.387 MB / 382.1 MB Notification: Performance of pre-optimization done (n=31): time 2.886e-06/0.1659, allocations: 4 kB / 446 MB, free: 9.383 MB / 382.1 MB Notification: Performance of matching and sorting (n=31): time 0.001447/0.1673, allocations: 0.5523 MB / 446.5 MB, free: 8.824 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002213/0.1675, allocations: 298.7 kB / 446.8 MB, free: 8.465 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004952/0.168, allocations: 324.5 kB / 447.1 MB, free: 8.141 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 5.345e-05/0.1681, allocations: 37.7 kB / 447.2 MB, free: 8.098 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002001/0.1683, allocations: 196.3 kB / 447.3 MB, free: 7.902 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00013/0.1685, allocations: 110.5 kB / 447.5 MB, free: 7.793 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.082e-05/0.1685, allocations: 8 kB / 447.5 MB, free: 7.785 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0002068/0.1687, allocations: 350.8 kB / 447.8 MB, free: 7.434 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004034/0.1691, allocations: 151.9 kB / 448 MB, free: 7.285 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000479/0.1696, allocations: 285 kB / 448.2 MB, free: 6.945 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000444/0.1701, allocations: 209.6 kB / 448.4 MB, free: 6.734 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.269e-06/0.1701, allocations: 0 / 448.4 MB, free: 6.734 MB / 382.1 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.001086/0.1712, allocations: 0.5376 MB / 449 MB, free: 6.184 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.218e-05/0.1713, allocations: 37.64 kB / 449 MB, free: 6.141 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.237e-05/0.1713, allocations: 4 kB / 449 MB, free: 6.137 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.718e-05/0.1713, allocations: 8 kB / 449 MB, free: 6.129 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003271/0.1716, allocations: 91.88 kB / 449.1 MB, free: 6.039 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.768e-05/0.1717, allocations: 12.22 kB / 449.1 MB, free: 6.027 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003399/0.172, allocations: 63.64 kB / 449.2 MB, free: 5.965 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.362e-05/0.1721, allocations: 16 kB / 449.2 MB, free: 5.949 MB / 382.1 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 (43): * Single equations (assignments): 42 * Array equations: 0 * Algorithm blocks: 1 * 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.0002815/0.1724, allocations: 201.4 kB / 449.4 MB, free: 5.742 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.997e-05/0.1725, allocations: 35.53 kB / 449.4 MB, free: 5.707 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001285/0.1726, allocations: 55.09 kB / 449.5 MB, free: 5.648 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.744e-06/0.1726, allocations: 8 kB / 449.5 MB, free: 5.641 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.195e-05/0.1727, allocations: 4 kB / 449.5 MB, free: 5.637 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.506e-06/0.1727, allocations: 4 kB / 449.5 MB, free: 5.633 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001247/0.1739, allocations: 1.035 MB / 450.5 MB, free: 4.52 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.642e-06/0.1739, allocations: 4 kB / 450.5 MB, free: 4.516 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000249/0.1742, allocations: 63.89 kB / 450.6 MB, free: 4.453 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.384e-06/0.1742, allocations: 4 kB / 450.6 MB, free: 4.449 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.998e-05/0.1742, allocations: 16 kB / 450.6 MB, free: 4.434 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.316e-06/0.1743, allocations: 7.938 kB / 450.6 MB, free: 4.426 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.268e-06/0.1743, allocations: 4 kB / 450.6 MB, free: 4.422 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009366/0.1752, allocations: 496.3 kB / 451.1 MB, free: 3.895 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001311/0.1754, allocations: 116.7 kB / 451.2 MB, free: 3.762 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.06e-05/0.1754, allocations: 16 kB / 451.2 MB, free: 3.746 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002084/0.1756, allocations: 27.97 kB / 451.3 MB, free: 3.719 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.8e-05/0.1758, allocations: 43.84 kB / 451.3 MB, free: 3.676 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.596e-05/0.1758, allocations: 19.98 kB / 451.3 MB, free: 3.656 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003233/0.1761, allocations: 231 kB / 451.6 MB, free: 3.43 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.1761, allocations: 0 / 451.6 MB, free: 3.43 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0004947/0.1766, allocations: 87.91 kB / 451.7 MB, free: 3.344 MB / 382.1 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.wind.nextTimeEventScaled,windFarm.disturbance.count,windFarm.wind.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (31): * Single equations (assignments): 26 * 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.002315/0.179, allocations: 1.389 MB / 453 MB, free: 1.898 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0009401/0.1799, allocations: 435.6 kB / 453.5 MB, free: 1.461 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.661e-06/0.1799, allocations: 4.375 kB / 453.5 MB, free: 1.457 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004734/0.1804, allocations: 211.7 kB / 453.7 MB, free: 1.25 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004694/0.1809, allocations: 77.41 kB / 453.8 MB, free: 1.176 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2225/0.4034, allocations: 2.288 MB / 456 MB, free: 50.72 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002674/0.4037, allocations: 0.8105 MB / 456.8 MB, free: 50.02 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003019/0.404, allocations: 85.09 kB / 456.9 MB, free: 50.02 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002067/0.4042, allocations: 118.5 kB / 457 MB, free: 50.01 MB / 382.1 MB Notification: Performance of SimCode: time 7.21e-07/0.4042, allocations: 1.531 kB / 457 MB, free: 50.01 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02231/0.4265, allocations: 7.574 MB / 464.6 MB, free: 49.53 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001473/0.4267, allocations: 230.3 kB / 464.8 MB, free: 49.29 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.949/2.375, allocations: 0 / 464.8 MB, free: 49.29 MB / 382.1 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) Environment - environmentSimulation: