Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001406/0.001406, allocations: 112.2 kB / 21.22 MB, free: 0.7305 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001692/0.001692, allocations: 212.2 kB / 24.53 MB, free: 4.07 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.553/1.553, allocations: 230.6 MB / 258.3 MB, free: 8 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems master/package.mo): time 0.2479/0.2479, allocations: 38.53 MB / 353.2 MB, free: 12.54 MB / 286.1 MB " [Timeout remaining time 180] Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_PowerWorld_Test_WindFarmGridTest",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_PowerWorld_Test_WindFarmGridTest",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: PowerSystems requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.00222/0.00222, allocations: 74.55 kB / 493.3 MB, free: 4.891 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3221/0.3243, allocations: 62.48 MB / 0.5428 GB, free: 432 kB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest): time 0.005901/0.3302, allocations: 3.84 MB / 0.5465 GB, free: 13.41 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003677/0.3339, allocations: 2.237 MB / 0.5487 GB, free: 11.64 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002844/0.3341, allocations: 15.09 kB / 0.5487 GB, free: 11.63 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009429/0.3351, allocations: 241.8 kB / 0.5489 GB, free: 11.45 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009613/0.3361, allocations: 324.9 kB / 0.5493 GB, free: 11.2 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007696/0.3368, allocations: 253.2 kB / 0.5495 GB, free: 11.01 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007657/0.3376, allocations: 0.5375 MB / 0.55 GB, free: 10.69 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004077/0.338, allocations: 201.9 kB / 0.5502 GB, free: 10.54 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005716/0.3386, allocations: 250.2 kB / 0.5505 GB, free: 10.39 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003573/0.3389, allocations: 231 kB / 0.5507 GB, free: 10.23 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.806e-05/0.339, allocations: 43.03 kB / 0.5507 GB, free: 10.23 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008516/0.3398, allocations: 460.4 kB / 0.5512 GB, free: 10 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001724/0.34, allocations: 133.5 kB / 0.5513 GB, free: 9.906 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002269/0.3402, allocations: 185.8 kB / 0.5515 GB, free: 9.77 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001149/0.3414, allocations: 0.6847 MB / 0.5521 GB, free: 9.312 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.801e-06/0.3414, allocations: 7.938 kB / 0.5521 GB, free: 9.305 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.3414, allocations: 1.094 kB / 0.5521 GB, free: 9.305 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.263e-05/0.3414, allocations: 3.938 kB / 0.5521 GB, free: 9.301 MB / 398.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.001514/0.3429, allocations: 0.7029 MB / 0.5528 GB, free: 8.703 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.261e-05/0.343, allocations: 16.75 kB / 0.5528 GB, free: 8.695 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.404e-05/0.343, allocations: 6.031 kB / 0.5529 GB, free: 8.695 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.917e-05/0.3431, allocations: 59.58 kB / 0.5529 GB, free: 8.637 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009965/0.3441, allocations: 109.3 kB / 0.553 GB, free: 8.586 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006842/0.3447, allocations: 364.7 kB / 0.5534 GB, free: 8.281 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.761e-05/0.3448, allocations: 17.69 kB / 0.5534 GB, free: 8.273 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.443e-05/0.3448, allocations: 27.64 kB / 0.5534 GB, free: 8.262 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008943/0.3457, allocations: 445.7 kB / 0.5538 GB, free: 7.969 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.198e-05/0.3457, allocations: 0 / 0.5538 GB, free: 7.969 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.941e-05/0.3458, allocations: 11.22 kB / 0.5538 GB, free: 7.961 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.985e-05/0.3458, allocations: 19.17 kB / 0.5539 GB, free: 7.957 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001095/0.3469, allocations: 0.499 MB / 0.5543 GB, free: 7.719 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002344/0.3493, allocations: 1.652 MB / 0.556 GB, free: 6.316 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001008/0.3503, allocations: 346.3 kB / 0.5563 GB, free: 6.125 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003693/0.3506, allocations: 131.4 kB / 0.5564 GB, free: 6.051 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.352e-05/0.3507, allocations: 9.719 kB / 0.5564 GB, free: 6.047 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006129/0.3513, allocations: 294.1 kB / 0.5567 GB, free: 5.809 MB / 398.1 MB Notification: Performance of pre-optimization done (n=31): time 2.455e-06/0.3513, allocations: 0 / 0.5567 GB, free: 5.809 MB / 398.1 MB Notification: Performance of matching and sorting (n=31): time 0.00148/0.3528, allocations: 0.5278 MB / 0.5572 GB, free: 5.438 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001927/0.353, allocations: 290.7 kB / 0.5575 GB, free: 5.086 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004701/0.3534, allocations: 348.4 kB / 0.5578 GB, free: 4.734 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 5.429e-05/0.3535, allocations: 41.69 kB / 0.5579 GB, free: 4.688 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001742/0.3536, allocations: 196.6 kB / 0.5581 GB, free: 4.488 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001119/0.3538, allocations: 107.2 kB / 0.5582 GB, free: 4.383 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001482/0.3539, allocations: 77.72 kB / 0.5582 GB, free: 4.301 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001813/0.3541, allocations: 346.8 kB / 0.5586 GB, free: 3.953 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004051/0.3545, allocations: 135.9 kB / 0.5587 GB, free: 3.82 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005005/0.355, allocations: 269 kB / 0.5589 GB, free: 3.496 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009056/0.3559, allocations: 465.7 kB / 0.5594 GB, free: 2.977 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.336e-06/0.3559, allocations: 0 / 0.5594 GB, free: 2.977 MB / 398.1 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.001176/0.3571, allocations: 0.5257 MB / 0.5599 GB, free: 2.438 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.31e-05/0.3571, allocations: 37.7 kB / 0.5599 GB, free: 2.395 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.079e-05/0.3571, allocations: 4.562 kB / 0.5599 GB, free: 2.391 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.561e-05/0.3572, allocations: 15.94 kB / 0.56 GB, free: 2.375 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003738/0.3575, allocations: 79.88 kB / 0.56 GB, free: 2.297 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.407e-05/0.3576, allocations: 11.94 kB / 0.56 GB, free: 2.285 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003576/0.3579, allocations: 51.75 kB / 0.5601 GB, free: 2.234 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.751e-05/0.358, allocations: 23.94 kB / 0.5601 GB, free: 2.211 MB / 398.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 ($PRE.windFarm.wind.nextTimeEvent,$whenCondition2,windFarm.disturbance.count,$PRE.windFarm.disturbance.count,windFarm.disturbance.T_start,$PRE.windFarm.disturbance.T_start,windFarm.wind.nextTimeEventScaled,$PRE.windFarm.wind.nextTimeEventScaled,windFarm.wind.nextTimeEvent,$whenCondition1,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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002874/0.3582, allocations: 189.7 kB / 0.5603 GB, free: 2.016 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.609e-05/0.3583, allocations: 43.77 kB / 0.5603 GB, free: 1.973 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001043/0.3594, allocations: 402.8 kB / 0.5607 GB, free: 1.57 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.197e-06/0.3594, allocations: 8 kB / 0.5607 GB, free: 1.562 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.186e-06/0.3594, allocations: 4 kB / 0.5607 GB, free: 1.559 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.556e-06/0.3594, allocations: 4 kB / 0.5607 GB, free: 1.555 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00111/0.3605, allocations: 1.014 MB / 0.5617 GB, free: 480 kB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.462e-06/0.3605, allocations: 3.984 kB / 0.5617 GB, free: 476 kB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000274/0.3608, allocations: 52.16 kB / 0.5618 GB, free: 424 kB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.925e-06/0.3608, allocations: 8 kB / 0.5618 GB, free: 416 kB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.142e-05/0.3608, allocations: 15.98 kB / 0.5618 GB, free: 400 kB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.181e-06/0.3608, allocations: 7.938 kB / 0.5618 GB, free: 392 kB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.14e-06/0.3608, allocations: 3.938 kB / 0.5618 GB, free: 388 kB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001075/0.3619, allocations: 471.6 kB / 0.5623 GB, free: 15.87 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.938e-05/0.362, allocations: 39.7 kB / 0.5623 GB, free: 15.83 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.171e-05/0.3621, allocations: 19.98 kB / 0.5623 GB, free: 15.81 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002272/0.3623, allocations: 23.97 kB / 0.5624 GB, free: 15.79 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000104/0.3624, allocations: 39.88 kB / 0.5624 GB, free: 15.75 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.288e-05/0.3624, allocations: 15.98 kB / 0.5624 GB, free: 15.73 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0003081/0.3627, allocations: 247 kB / 0.5626 GB, free: 15.49 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.3627, allocations: 0 / 0.5626 GB, free: 15.49 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0005286/0.3633, allocations: 107.8 kB / 0.5627 GB, free: 15.39 MB / 414.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.disturbance.count,windFarm.wind.nextTimeEvent,windFarm.wind.nextTimeEventScaled) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.003166/0.3664, allocations: 1.414 MB / 0.5641 GB, free: 14.12 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001098/0.3675, allocations: 406 kB / 0.5645 GB, free: 13.71 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.869e-06/0.3675, allocations: 1.125 kB / 0.5645 GB, free: 13.71 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000484/0.368, allocations: 192 kB / 0.5647 GB, free: 13.52 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005593/0.3686, allocations: 72.77 kB / 0.5648 GB, free: 13.46 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00614/0.3747, allocations: 3.73 MB / 0.5684 GB, free: 9.48 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004572/0.3752, allocations: 0.8034 MB / 0.5692 GB, free: 8.652 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0002827/0.3755, allocations: 87.2 kB / 0.5693 GB, free: 8.566 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002277/0.3757, allocations: 123.4 kB / 0.5694 GB, free: 8.445 MB / 414.1 MB Notification: Performance of SimCode: time 1.042e-06/0.3757, allocations: 0 / 0.5694 GB, free: 8.445 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03456/0.4103, allocations: 9.305 MB / 0.5785 GB, free: 15.2 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.87/12.28, allocations: 5.562 kB / 0.5785 GB, free: 15.19 MB / 430.1 MB " [Timeout remaining time 647] (rm -f PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_PowerWorld_Test_WindFarmGridTest_fmu --startTime=0 --stopTime=86400 --stepSize=34.56 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_PowerWorld_Test_WindFarmGridTest.fmu > PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 15.360554429993499] Failed to read output from testmodel.py, exit status != 0: 12.507325118989684 12.526896698 12.181308066 Calling exit ...