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.001686/0.001686, allocations: 118.9 kB / 17.79 MB, free: 5.285 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.002032/0.002032, allocations: 199.3 kB / 20.74 MB, free: 2.344 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.583/1.583, allocations: 230.6 MB / 254.1 MB, free: 15.11 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.1879/0.1879, allocations: 38.5 MB / 348.7 MB, free: 2.609 MB / 270.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.001949/0.001949, allocations: 63.91 kB / 487.1 MB, free: 22.1 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1123/0.1142, allocations: 62.41 MB / 0.5367 GB, free: 7.582 MB / 398.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest): time 0.005396/0.1196, allocations: 3.756 MB / 0.5403 GB, free: 3.809 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003374/0.123, allocations: 2.206 MB / 0.5425 GB, free: 1.594 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001643/0.1232, allocations: 15.88 kB / 0.5425 GB, free: 1.578 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008745/0.124, allocations: 246.5 kB / 0.5427 GB, free: 1.34 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008109/0.1249, allocations: 322.6 kB / 0.543 GB, free: 1.023 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006424/0.1255, allocations: 255.2 kB / 0.5433 GB, free: 0.7734 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006688/0.1262, allocations: 0.5377 MB / 0.5438 GB, free: 240 kB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003469/0.1265, allocations: 175.6 kB / 0.544 GB, free: 60 kB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005002/0.127, allocations: 247.1 kB / 0.5442 GB, free: 15.82 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003273/0.1273, allocations: 231.1 kB / 0.5444 GB, free: 15.59 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 6.168e-05/0.1274, allocations: 40 kB / 0.5445 GB, free: 15.55 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007564/0.1282, allocations: 459.1 kB / 0.5449 GB, free: 15.1 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001473/0.1283, allocations: 131.6 kB / 0.545 GB, free: 14.97 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001919/0.1285, allocations: 187 kB / 0.5452 GB, free: 14.79 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008878/0.1294, allocations: 0.7006 MB / 0.5459 GB, free: 14.09 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.138e-06/0.1294, allocations: 0 / 0.5459 GB, free: 14.09 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.032e-06/0.1294, allocations: 0 / 0.5459 GB, free: 14.09 MB / 414.1 MB Notification: Performance of Transformations before backend: time 6.913e-06/0.1294, allocations: 0 / 0.5459 GB, free: 14.09 MB / 414.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.001461/0.1309, allocations: 0.7774 MB / 0.5467 GB, free: 13.25 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.352e-05/0.1309, allocations: 12.02 kB / 0.5467 GB, free: 13.23 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.154e-05/0.131, allocations: 58.73 kB / 0.5467 GB, free: 13.17 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009398/0.1319, allocations: 104.6 kB / 0.5468 GB, free: 13.07 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006503/0.1326, allocations: 431.8 kB / 0.5472 GB, free: 12.61 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.093e-05/0.1326, allocations: 12.81 kB / 0.5472 GB, free: 12.59 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.617e-05/0.1327, allocations: 31.94 kB / 0.5473 GB, free: 12.56 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009122/0.1336, allocations: 446.7 kB / 0.5477 GB, free: 12.1 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.098e-05/0.1336, allocations: 0 / 0.5477 GB, free: 12.1 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.145e-05/0.1336, allocations: 12 kB / 0.5477 GB, free: 12.09 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.26e-05/0.1337, allocations: 20.42 kB / 0.5477 GB, free: 12.07 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001143/0.1348, allocations: 0.4934 MB / 0.5482 GB, free: 11.57 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002298/0.1371, allocations: 1.682 MB / 0.5499 GB, free: 9.797 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001042/0.1381, allocations: 349.2 kB / 0.5502 GB, free: 9.438 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004027/0.1385, allocations: 137.6 kB / 0.5503 GB, free: 9.297 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.668e-05/0.1386, allocations: 11.92 kB / 0.5503 GB, free: 9.285 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006313/0.1392, allocations: 288.3 kB / 0.5506 GB, free: 8.965 MB / 414.1 MB Notification: Performance of pre-optimization done (n=31): time 2.304e-06/0.1392, allocations: 3.938 kB / 0.5506 GB, free: 8.961 MB / 414.1 MB Notification: Performance of matching and sorting (n=31): time 0.001535/0.1408, allocations: 0.5248 MB / 0.5511 GB, free: 8.43 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001866/0.141, allocations: 298.7 kB / 0.5514 GB, free: 8.07 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004707/0.1414, allocations: 340.4 kB / 0.5517 GB, free: 7.73 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 5.518e-05/0.1415, allocations: 42.03 kB / 0.5518 GB, free: 7.684 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001689/0.1416, allocations: 204.6 kB / 0.552 GB, free: 7.48 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001126/0.1418, allocations: 103.2 kB / 0.5521 GB, free: 7.379 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001341/0.1419, allocations: 73.69 kB / 0.5521 GB, free: 7.301 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.000208/0.1421, allocations: 346.8 kB / 0.5525 GB, free: 6.953 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004044/0.1425, allocations: 139.9 kB / 0.5526 GB, free: 6.816 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005103/0.143, allocations: 291.4 kB / 0.5529 GB, free: 6.473 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009255/0.1439, allocations: 461.5 kB / 0.5533 GB, free: 5.957 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.647e-06/0.1439, allocations: 0 / 0.5533 GB, free: 5.957 MB / 414.1 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.001167/0.1451, allocations: 0.5213 MB / 0.5538 GB, free: 5.426 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.367e-05/0.1452, allocations: 33.7 kB / 0.5539 GB, free: 5.387 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.299e-05/0.1452, allocations: 4 kB / 0.5539 GB, free: 5.383 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.15e-05/0.1452, allocations: 8 kB / 0.5539 GB, free: 5.375 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003611/0.1455, allocations: 91.81 kB / 0.554 GB, free: 5.285 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.334e-05/0.1456, allocations: 8 kB / 0.554 GB, free: 5.277 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003019/0.1459, allocations: 47.75 kB / 0.554 GB, free: 5.23 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.714e-05/0.1459, allocations: 16 kB / 0.554 GB, free: 5.215 MB / 414.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.0002708/0.1462, allocations: 213.6 kB / 0.5542 GB, free: 4.996 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.428e-05/0.1463, allocations: 39.7 kB / 0.5543 GB, free: 4.957 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001272/0.1464, allocations: 51.28 kB / 0.5543 GB, free: 4.902 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.124e-06/0.1464, allocations: 4 kB / 0.5543 GB, free: 4.898 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.585e-06/0.1464, allocations: 0 / 0.5543 GB, free: 4.898 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.985e-06/0.1464, allocations: 7.984 kB / 0.5543 GB, free: 4.891 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001094/0.1475, allocations: 1.038 MB / 0.5553 GB, free: 3.773 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.841e-06/0.1475, allocations: 4 kB / 0.5553 GB, free: 3.77 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000274/0.1478, allocations: 59.89 kB / 0.5554 GB, free: 3.711 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.218e-06/0.1478, allocations: 0 / 0.5554 GB, free: 3.711 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.91e-05/0.1478, allocations: 20.17 kB / 0.5554 GB, free: 3.691 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.02e-06/0.1478, allocations: 4 kB / 0.5554 GB, free: 3.688 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.636e-06/0.1478, allocations: 3.938 kB / 0.5554 GB, free: 3.684 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001024/0.1488, allocations: 471.5 kB / 0.5559 GB, free: 3.18 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.523e-05/0.1489, allocations: 116.8 kB / 0.556 GB, free: 3.047 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.369e-05/0.149, allocations: 15.98 kB / 0.556 GB, free: 3.031 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002401/0.1492, allocations: 27.97 kB / 0.556 GB, free: 3.004 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.491e-05/0.1493, allocations: 35.91 kB / 0.5561 GB, free: 2.969 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.152e-05/0.1494, allocations: 19.92 kB / 0.5561 GB, free: 2.949 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.000284/0.1497, allocations: 247 kB / 0.5563 GB, free: 2.707 MB / 414.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1497, allocations: 0 / 0.5563 GB, free: 2.707 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0004684/0.1501, allocations: 107.8 kB / 0.5564 GB, free: 2.602 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.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 (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.003088/0.1532, allocations: 1.418 MB / 0.5578 GB, free: 1.324 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001066/0.1543, allocations: 398.8 kB / 0.5582 GB, free: 0.9219 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.416e-06/0.1543, allocations: 0 / 0.5582 GB, free: 0.9219 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004933/0.1548, allocations: 189.3 kB / 0.5584 GB, free: 0.7383 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005237/0.1553, allocations: 79.92 kB / 0.5584 GB, free: 0.6602 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005884/0.1612, allocations: 3.721 MB / 0.5621 GB, free: 12.69 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004718/0.1617, allocations: 0.8073 MB / 0.5629 GB, free: 11.86 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0002641/0.1619, allocations: 95.14 kB / 0.563 GB, free: 11.76 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002219/0.1621, allocations: 119.4 kB / 0.5631 GB, free: 11.64 MB / 430.1 MB Notification: Performance of SimCode: time 1.142e-06/0.1621, allocations: 0 / 0.5631 GB, free: 11.64 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0334/0.1955, allocations: 8.928 MB / 0.5718 GB, free: 2.762 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.291/8.487, allocations: 11.94 kB / 0.5718 GB, free: 2.75 MB / 430.1 MB " [Timeout remaining time 651] (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: 11.60398739601078] Failed to read output from testmodel.py, exit status != 0: 8.617944730998715 8.645609679 8.511392508 Calling exit ...