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.001348/0.001348, allocations: 105.1 kB / 21.22 MB, free: 0.6289 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.0015/0.0015, allocations: 214.7 kB / 24.52 MB, free: 3.914 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.529/1.529, allocations: 230.6 MB / 258.3 MB, free: 7.793 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.2035/0.2035, allocations: 38.55 MB / 353.2 MB, free: 12.35 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.002014/0.002014, allocations: 63.89 kB / 493.3 MB, free: 4.738 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3195/0.3215, allocations: 62.47 MB / 0.5427 GB, free: 260 kB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest): time 0.005732/0.3272, allocations: 3.666 MB / 0.5463 GB, free: 13.43 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003668/0.3309, allocations: 2.041 MB / 0.5483 GB, free: 11.87 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001995/0.3311, allocations: 14.22 kB / 0.5483 GB, free: 11.86 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008322/0.3319, allocations: 241.6 kB / 0.5485 GB, free: 11.68 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008765/0.3328, allocations: 335.8 kB / 0.5488 GB, free: 11.43 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007324/0.3335, allocations: 252.7 kB / 0.5491 GB, free: 11.23 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007202/0.3342, allocations: 0.5333 MB / 0.5496 GB, free: 10.91 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004047/0.3346, allocations: 198 kB / 0.5498 GB, free: 10.77 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004914/0.3351, allocations: 251 kB / 0.55 GB, free: 10.62 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003621/0.3355, allocations: 232.5 kB / 0.5502 GB, free: 10.46 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 6.468e-05/0.3356, allocations: 40.56 kB / 0.5503 GB, free: 10.46 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007575/0.3363, allocations: 410.2 kB / 0.5507 GB, free: 10.26 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001667/0.3365, allocations: 134.2 kB / 0.5508 GB, free: 10.16 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001896/0.3367, allocations: 154.3 kB / 0.551 GB, free: 10.06 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009523/0.3376, allocations: 0.6918 MB / 0.5516 GB, free: 9.602 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.088e-06/0.3376, allocations: 0 / 0.5516 GB, free: 9.602 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.232e-06/0.3376, allocations: 0 / 0.5516 GB, free: 9.602 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.141e-05/0.3376, allocations: 1.469 kB / 0.5516 GB, free: 9.602 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.001308/0.339, allocations: 0.7126 MB / 0.5523 GB, free: 8.992 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.09e-05/0.339, allocations: 12.83 kB / 0.5523 GB, free: 8.988 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.863e-05/0.339, allocations: 7.031 kB / 0.5523 GB, free: 8.988 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.217e-05/0.3391, allocations: 59.41 kB / 0.5524 GB, free: 8.93 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009272/0.34, allocations: 108.8 kB / 0.5525 GB, free: 8.879 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005868/0.3406, allocations: 332.1 kB / 0.5528 GB, free: 8.598 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.953e-05/0.3406, allocations: 21.75 kB / 0.5528 GB, free: 8.586 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.952e-05/0.3407, allocations: 26.52 kB / 0.5529 GB, free: 8.574 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009227/0.3416, allocations: 480.3 kB / 0.5533 GB, free: 8.254 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.375e-05/0.3416, allocations: 3.938 kB / 0.5533 GB, free: 8.25 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.157e-05/0.3417, allocations: 14.52 kB / 0.5533 GB, free: 8.238 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.759e-05/0.3417, allocations: 19.33 kB / 0.5534 GB, free: 8.23 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001114/0.3428, allocations: 0.5542 MB / 0.5539 GB, free: 7.961 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002321/0.3451, allocations: 1.598 MB / 0.5555 GB, free: 6.633 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001106/0.3462, allocations: 390.2 kB / 0.5558 GB, free: 6.414 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003781/0.3466, allocations: 145.9 kB / 0.556 GB, free: 6.332 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.654e-05/0.3467, allocations: 3.156 kB / 0.556 GB, free: 6.332 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006265/0.3473, allocations: 318.9 kB / 0.5563 GB, free: 6.078 MB / 398.1 MB Notification: Performance of pre-optimization done (n=31): time 2.575e-06/0.3473, allocations: 3.938 kB / 0.5563 GB, free: 6.074 MB / 398.1 MB Notification: Performance of matching and sorting (n=31): time 0.001458/0.3487, allocations: 0.5652 MB / 0.5568 GB, free: 5.539 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001693/0.3489, allocations: 294.7 kB / 0.5571 GB, free: 5.184 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005244/0.3494, allocations: 388.5 kB / 0.5575 GB, free: 4.797 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.55e-05/0.3495, allocations: 37.7 kB / 0.5575 GB, free: 4.754 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001646/0.3496, allocations: 200.6 kB / 0.5577 GB, free: 4.551 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001105/0.3498, allocations: 111.1 kB / 0.5578 GB, free: 4.441 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001276/0.3499, allocations: 69.64 kB / 0.5579 GB, free: 4.367 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001681/0.35, allocations: 355 kB / 0.5582 GB, free: 4.012 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004202/0.3505, allocations: 177.6 kB / 0.5584 GB, free: 3.832 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005461/0.351, allocations: 352.3 kB / 0.5587 GB, free: 3.414 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009197/0.3519, allocations: 485.6 kB / 0.5592 GB, free: 2.875 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.216e-06/0.3519, allocations: 0 / 0.5592 GB, free: 2.875 MB / 398.1 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.001187/0.3531, allocations: 0.5743 MB / 0.5598 GB, free: 2.281 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.991e-05/0.3532, allocations: 36.66 kB / 0.5598 GB, free: 2.242 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.199e-05/0.3532, allocations: 8.562 kB / 0.5598 GB, free: 2.234 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.924e-05/0.3532, allocations: 8 kB / 0.5598 GB, free: 2.227 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003596/0.3536, allocations: 91.81 kB / 0.5599 GB, free: 2.137 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.291e-05/0.3536, allocations: 8 kB / 0.5599 GB, free: 2.129 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003088/0.3539, allocations: 55.73 kB / 0.56 GB, free: 2.074 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.494e-05/0.3539, allocations: 12 kB / 0.56 GB, free: 2.062 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.0002389/0.3542, allocations: 197.6 kB / 0.5602 GB, free: 1.859 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.879e-05/0.3542, allocations: 47.75 kB / 0.5602 GB, free: 1.812 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00112/0.3554, allocations: 472.7 kB / 0.5607 GB, free: 1.34 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.628e-06/0.3554, allocations: 8 kB / 0.5607 GB, free: 1.332 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.41e-06/0.3554, allocations: 0 / 0.5607 GB, free: 1.332 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.042e-05/0.3554, allocations: 7.984 kB / 0.5607 GB, free: 1.324 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001145/0.3565, allocations: 1.007 MB / 0.5617 GB, free: 252 kB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.015e-06/0.3565, allocations: 0 / 0.5617 GB, free: 252 kB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000303/0.3568, allocations: 75.89 kB / 0.5617 GB, free: 176 kB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.384e-06/0.3568, allocations: 4 kB / 0.5617 GB, free: 172 kB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.66e-05/0.3569, allocations: 8 kB / 0.5617 GB, free: 164 kB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.072e-06/0.3569, allocations: 7.984 kB / 0.5617 GB, free: 156 kB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.751e-06/0.3569, allocations: 7.938 kB / 0.5618 GB, free: 148 kB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001089/0.358, allocations: 0.5418 MB / 0.5623 GB, free: 15.56 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.298e-05/0.3581, allocations: 47.64 kB / 0.5623 GB, free: 15.51 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.981e-05/0.3581, allocations: 12 kB / 0.5623 GB, free: 15.5 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000233/0.3584, allocations: 27.97 kB / 0.5624 GB, free: 15.47 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001098/0.3585, allocations: 47.81 kB / 0.5624 GB, free: 15.43 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.514e-05/0.3585, allocations: 15.98 kB / 0.5624 GB, free: 15.41 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0003263/0.3588, allocations: 279 kB / 0.5627 GB, free: 15.14 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3588, allocations: 4 kB / 0.5627 GB, free: 15.13 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0004944/0.3593, allocations: 119.7 kB / 0.5628 GB, free: 15.02 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.003204/0.3625, allocations: 1.507 MB / 0.5643 GB, free: 13.68 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0011/0.3636, allocations: 476.9 kB / 0.5647 GB, free: 13.2 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.436e-06/0.3636, allocations: 1.125 kB / 0.5647 GB, free: 13.2 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005357/0.3642, allocations: 220.1 kB / 0.5649 GB, free: 12.98 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005235/0.3647, allocations: 84.5 kB / 0.565 GB, free: 12.9 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006243/0.3709, allocations: 3.975 MB / 0.5689 GB, free: 8.648 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002395/0.3712, allocations: 217.5 kB / 0.5691 GB, free: 8.418 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0002944/0.3715, allocations: 83.22 kB / 0.5692 GB, free: 8.336 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002593/0.3717, allocations: 135.3 kB / 0.5693 GB, free: 8.203 MB / 414.1 MB Notification: Performance of SimCode: time 6.51e-07/0.3717, allocations: 0 / 0.5693 GB, free: 8.203 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03323/0.405, allocations: 9.996 MB / 0.5791 GB, free: 14.29 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.96/12.37, allocations: 3.938 kB / 0.5791 GB, free: 14.29 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.358297285041772] Failed to read output from testmodel.py, exit status != 0: 12.589017080026679 12.60586192 12.264867874 Calling exit ...