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.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.001301/0.001301, allocations: 111.1 kB / 20.44 MB, free: 1.062 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.001539/0.001539, allocations: 214.3 kB / 23.73 MB, free: 4.16 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.457/1.457, allocations: 230.6 MB / 257.5 MB, free: 7.812 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1855/0.1855, allocations: 38.55 MB / 352.5 MB, free: 12.33 MB / 286.1 MB " [Timeout remaining time 180] Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/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_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"}) [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.00208/0.00208, allocations: 71.89 kB / 492.5 MB, free: 4.727 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3021/0.3042, allocations: 62.46 MB / 0.5419 GB, free: 280 kB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest): time 0.005773/0.31, allocations: 3.679 MB / 0.5455 GB, free: 13.44 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003689/0.3137, allocations: 2.053 MB / 0.5475 GB, free: 11.88 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002426/0.3139, allocations: 13.72 kB / 0.5475 GB, free: 11.87 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008369/0.3148, allocations: 231.1 kB / 0.5478 GB, free: 11.7 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008445/0.3156, allocations: 331.5 kB / 0.5481 GB, free: 11.45 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006757/0.3163, allocations: 248.6 kB / 0.5483 GB, free: 11.26 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006093/0.3169, allocations: 0.5405 MB / 0.5488 GB, free: 10.93 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003641/0.3172, allocations: 198 kB / 0.549 GB, free: 10.79 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004488/0.3177, allocations: 248.4 kB / 0.5493 GB, free: 10.63 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003275/0.318, allocations: 211.8 kB / 0.5495 GB, free: 10.5 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 6.303e-05/0.3181, allocations: 41.75 kB / 0.5495 GB, free: 10.5 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007139/0.3188, allocations: 393.9 kB / 0.5499 GB, free: 10.31 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001462/0.3189, allocations: 135 kB / 0.55 GB, free: 10.21 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001711/0.3191, allocations: 153.5 kB / 0.5502 GB, free: 10.11 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000928/0.32, allocations: 0.6956 MB / 0.5508 GB, free: 9.648 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.568e-06/0.3201, allocations: 4 kB / 0.5508 GB, free: 9.645 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.3201, allocations: 0 / 0.5508 GB, free: 9.645 MB / 398.1 MB Notification: Performance of Transformations before backend: time 8.526e-06/0.3201, allocations: 0 / 0.5508 GB, free: 9.645 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.001386/0.3214, allocations: 0.7093 MB / 0.5515 GB, free: 9.039 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.34e-05/0.3215, allocations: 17.95 kB / 0.5516 GB, free: 9.031 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.738e-05/0.3216, allocations: 55.36 kB / 0.5516 GB, free: 8.977 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008818/0.3225, allocations: 112.8 kB / 0.5517 GB, free: 8.922 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006197/0.3231, allocations: 327.3 kB / 0.552 GB, free: 8.645 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.22e-05/0.3231, allocations: 22.62 kB / 0.552 GB, free: 8.633 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.421e-05/0.3232, allocations: 22.66 kB / 0.5521 GB, free: 8.625 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009105/0.3241, allocations: 491.8 kB / 0.5525 GB, free: 8.293 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.308e-05/0.3241, allocations: 3.938 kB / 0.5525 GB, free: 8.289 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.57e-05/0.3241, allocations: 7.188 kB / 0.5525 GB, free: 8.285 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.663e-05/0.3242, allocations: 27.09 kB / 0.5526 GB, free: 8.273 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00107/0.3252, allocations: 0.5393 MB / 0.5531 GB, free: 8.008 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002308/0.3275, allocations: 1.61 MB / 0.5547 GB, free: 6.668 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001059/0.3286, allocations: 388.9 kB / 0.555 GB, free: 6.449 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000371/0.329, allocations: 149.9 kB / 0.5552 GB, free: 6.363 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.063e-05/0.329, allocations: 3.438 kB / 0.5552 GB, free: 6.363 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006011/0.3296, allocations: 309.9 kB / 0.5555 GB, free: 6.117 MB / 398.1 MB Notification: Performance of pre-optimization done (n=31): time 2.164e-06/0.3296, allocations: 0 / 0.5555 GB, free: 6.117 MB / 398.1 MB Notification: Performance of matching and sorting (n=31): time 0.001459/0.331, allocations: 0.569 MB / 0.556 GB, free: 5.582 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001737/0.3312, allocations: 294.7 kB / 0.5563 GB, free: 5.227 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004976/0.3317, allocations: 396.4 kB / 0.5567 GB, free: 4.832 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.768e-05/0.3318, allocations: 41.7 kB / 0.5567 GB, free: 4.785 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001571/0.3319, allocations: 192.6 kB / 0.5569 GB, free: 4.59 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001031/0.332, allocations: 111.1 kB / 0.557 GB, free: 4.48 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001234/0.3321, allocations: 73.66 kB / 0.5571 GB, free: 4.402 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.000165/0.3323, allocations: 346.8 kB / 0.5574 GB, free: 4.055 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004134/0.3327, allocations: 177.6 kB / 0.5576 GB, free: 3.875 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005309/0.3333, allocations: 352.3 kB / 0.5579 GB, free: 3.457 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008944/0.3341, allocations: 486.3 kB / 0.5584 GB, free: 2.918 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.146e-06/0.3342, allocations: 4 kB / 0.5584 GB, free: 2.914 MB / 398.1 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.001156/0.3353, allocations: 0.5746 MB / 0.559 GB, free: 2.32 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.255e-05/0.3354, allocations: 37.69 kB / 0.559 GB, free: 2.277 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.3e-05/0.3354, allocations: 4 kB / 0.559 GB, free: 2.273 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.037e-05/0.3354, allocations: 8 kB / 0.559 GB, free: 2.266 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003474/0.3357, allocations: 91.81 kB / 0.5591 GB, free: 2.176 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.115e-05/0.3357, allocations: 7.938 kB / 0.5591 GB, free: 2.168 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000312/0.3361, allocations: 59.98 kB / 0.5592 GB, free: 2.109 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.536e-05/0.3361, allocations: 16 kB / 0.5592 GB, free: 2.094 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.0002313/0.3363, allocations: 197.6 kB / 0.5594 GB, free: 1.891 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.124e-05/0.3364, allocations: 43.69 kB / 0.5594 GB, free: 1.848 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001066/0.3375, allocations: 456.8 kB / 0.5598 GB, free: 1.391 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.628e-06/0.3375, allocations: 15.98 kB / 0.5599 GB, free: 1.375 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.582e-06/0.3375, allocations: 4 kB / 0.5599 GB, free: 1.371 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.973e-06/0.3375, allocations: 3.984 kB / 0.5599 GB, free: 1.367 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001064/0.3386, allocations: 1.002 MB / 0.5608 GB, free: 300 kB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.169e-06/0.3386, allocations: 4 kB / 0.5609 GB, free: 296 kB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002931/0.3389, allocations: 71.89 kB / 0.5609 GB, free: 224 kB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.995e-06/0.3389, allocations: 4 kB / 0.5609 GB, free: 220 kB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.764e-05/0.3389, allocations: 12.19 kB / 0.5609 GB, free: 208 kB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.252e-06/0.3389, allocations: 11.98 kB / 0.5609 GB, free: 196 kB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.877e-06/0.3389, allocations: 3.938 kB / 0.561 GB, free: 192 kB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001101/0.34, allocations: 0.5341 MB / 0.5615 GB, free: 15.61 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.856e-05/0.3401, allocations: 51.58 kB / 0.5615 GB, free: 15.56 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.668e-05/0.3401, allocations: 16 kB / 0.5615 GB, free: 15.55 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002304/0.3404, allocations: 31.97 kB / 0.5616 GB, free: 15.52 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.916e-05/0.3405, allocations: 43.81 kB / 0.5616 GB, free: 15.47 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.51e-05/0.3405, allocations: 19.98 kB / 0.5616 GB, free: 15.45 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0003241/0.3408, allocations: 279 kB / 0.5619 GB, free: 15.18 MB / 414.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.3408, allocations: 0 / 0.5619 GB, free: 15.18 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0004686/0.3413, allocations: 111.8 kB / 0.562 GB, free: 15.07 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 (40): * Single equations (assignments): 35 * 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.003234/0.3445, allocations: 1.535 MB / 0.5635 GB, free: 13.71 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001036/0.3456, allocations: 473.5 kB / 0.564 GB, free: 13.23 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.859e-06/0.3456, allocations: 4 kB / 0.564 GB, free: 13.22 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005103/0.3461, allocations: 211.7 kB / 0.5642 GB, free: 13.02 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000473/0.3466, allocations: 74.27 kB / 0.5642 GB, free: 12.95 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005887/0.3524, allocations: 3.975 MB / 0.5681 GB, free: 8.695 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002388/0.3527, allocations: 209.6 kB / 0.5683 GB, free: 8.473 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0002693/0.353, allocations: 87.2 kB / 0.5684 GB, free: 8.387 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002516/0.3532, allocations: 139.3 kB / 0.5685 GB, free: 8.25 MB / 414.1 MB Notification: Performance of SimCode: time 1.062e-06/0.3532, allocations: 0 / 0.5685 GB, free: 8.25 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03886/0.3921, allocations: 10.27 MB / 0.5786 GB, free: 14.05 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.46/11.85, allocations: 14.14 kB / 0.5786 GB, free: 14.04 MB / 430.1 MB " [Timeout remaining time 648] (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 & python3 -m fmpy simulate --output-file PowerSystems_PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest_res.csv --start-time 0 --stop-time 86400 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 34.56 PowerSystems_PowerSystems_Examples_PowerWorld_Test_WindFarmGridTest.fmu > PowerSystems_PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 14.770654624793679] Failed to read output from testmodel.py, exit status != 0: 12.02732847398147 12.043886588 11.720544493 Calling exit ...