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.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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_latest_PowerSystems_Examples_PowerWorld_Test_WindFarmGridTest",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest,fileNamePrefix="PowerSystems_latest_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.0006567/0.0006567, allocations: 91.75 kB / 16.65 MB, free: 6.586 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.0007916/0.0007917, allocations: 183.8 kB / 17.56 MB, free: 6.203 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.252/1.252, allocations: 223.3 MB / 241.6 MB, free: 128 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1682/0.1682, allocations: 38.1 MB / 330.8 MB, free: 8.766 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003016/0.0003016, allocations: 8 kB / 400.8 MB, free: 34.09 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.108/0.1083, allocations: 59.16 MB / 460 MB, free: 7 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest): time 0.004261/0.1126, allocations: 3.755 MB / 463.7 MB, free: 3.223 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002936/0.1156, allocations: 2.148 MB / 465.9 MB, free: 1.066 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002259/0.1159, allocations: 15.88 kB / 465.9 MB, free: 1.051 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003269/0.1162, allocations: 59.67 kB / 465.9 MB, free: 0.9922 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006207/0.1168, allocations: 251.1 kB / 466.2 MB, free: 0.7461 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006384/0.1175, allocations: 258.6 kB / 466.4 MB, free: 0.4961 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006432/0.1181, allocations: 0.6235 MB / 467.1 MB, free: 15.87 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006578/0.1188, allocations: 376.6 kB / 467.4 MB, free: 15.48 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003968/0.1192, allocations: 187.1 kB / 467.6 MB, free: 15.3 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002767/0.1195, allocations: 199.2 kB / 467.8 MB, free: 15.1 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.502e-05/0.1195, allocations: 12 kB / 467.8 MB, free: 15.09 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006815/0.1202, allocations: 459 kB / 468.3 MB, free: 14.64 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001082/0.1203, allocations: 103.7 kB / 468.4 MB, free: 14.54 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001777/0.1205, allocations: 192.7 kB / 468.6 MB, free: 14.34 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007051/0.1212, allocations: 0.6152 MB / 469.2 MB, free: 13.73 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.376e-06/0.1213, allocations: 0 / 469.2 MB, free: 13.73 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.798e-06/0.1213, allocations: 11.98 kB / 469.2 MB, free: 13.71 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.204e-06/0.1213, allocations: 0 / 469.2 MB, free: 13.71 MB / 350.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.001158/0.1224, allocations: 0.6771 MB / 469.9 MB, free: 12.98 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.168e-05/0.1225, allocations: 12.03 kB / 469.9 MB, free: 12.97 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.286e-05/0.1226, allocations: 62.72 kB / 469.9 MB, free: 12.9 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008398/0.1234, allocations: 104.4 kB / 470 MB, free: 12.8 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00053/0.124, allocations: 407.6 kB / 470.4 MB, free: 12.36 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.662e-05/0.124, allocations: 12.81 kB / 470.5 MB, free: 12.35 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.289e-05/0.1241, allocations: 31.92 kB / 470.5 MB, free: 12.32 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008288/0.1249, allocations: 462.8 kB / 470.9 MB, free: 11.83 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.133e-05/0.1249, allocations: 0 / 470.9 MB, free: 11.83 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.63e-05/0.125, allocations: 12 kB / 470.9 MB, free: 11.82 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.281e-05/0.125, allocations: 20.42 kB / 471 MB, free: 11.8 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001025/0.126, allocations: 0.5207 MB / 471.5 MB, free: 11.28 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002108/0.1282, allocations: 1.686 MB / 473.2 MB, free: 9.496 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009604/0.1291, allocations: 394.7 kB / 473.6 MB, free: 9.094 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003641/0.1295, allocations: 153.6 kB / 473.7 MB, free: 8.938 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.732e-05/0.1296, allocations: 15.91 kB / 473.7 MB, free: 8.922 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005727/0.1301, allocations: 298.9 kB / 474 MB, free: 8.59 MB / 350.1 MB Notification: Performance of pre-optimization done (n=31): time 2.144e-06/0.1302, allocations: 4 kB / 474 MB, free: 8.586 MB / 350.1 MB Notification: Performance of matching and sorting (n=31): time 0.001347/0.1315, allocations: 0.56 MB / 474.6 MB, free: 8.02 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001386/0.1317, allocations: 294.7 kB / 474.9 MB, free: 7.664 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003617/0.132, allocations: 328.5 kB / 475.2 MB, free: 7.332 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.854e-05/0.1321, allocations: 41.69 kB / 475.2 MB, free: 7.285 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001315/0.1322, allocations: 192.4 kB / 475.4 MB, free: 7.09 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.477e-05/0.1323, allocations: 102.5 kB / 475.5 MB, free: 6.988 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.174e-05/0.1324, allocations: 37.7 kB / 475.6 MB, free: 6.945 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001334/0.1325, allocations: 350.8 kB / 475.9 MB, free: 6.594 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003815/0.1329, allocations: 155.8 kB / 476.1 MB, free: 6.441 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004614/0.1334, allocations: 289 kB / 476.3 MB, free: 6.098 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008653/0.1343, allocations: 498.3 kB / 476.8 MB, free: 5.547 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.12e-06/0.1343, allocations: 0 / 476.8 MB, free: 5.547 MB / 350.1 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.001123/0.1354, allocations: 0.5376 MB / 477.4 MB, free: 4.996 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.351e-05/0.1355, allocations: 37.69 kB / 477.4 MB, free: 4.953 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.055e-05/0.1355, allocations: 4.312 kB / 477.4 MB, free: 4.949 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.041e-05/0.1355, allocations: 12 kB / 477.4 MB, free: 4.938 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003412/0.1359, allocations: 87.89 kB / 477.5 MB, free: 4.852 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.61e-05/0.1359, allocations: 11.94 kB / 477.5 MB, free: 4.84 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003205/0.1362, allocations: 55.66 kB / 477.6 MB, free: 4.785 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.213e-05/0.1363, allocations: 20 kB / 477.6 MB, free: 4.766 MB / 350.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.0002454/0.1365, allocations: 197.6 kB / 477.8 MB, free: 4.562 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.499e-05/0.1366, allocations: 43.47 kB / 477.8 MB, free: 4.52 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001058/0.1367, allocations: 47.17 kB / 477.9 MB, free: 4.473 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.151e-06/0.1367, allocations: 4 kB / 477.9 MB, free: 4.469 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.233e-05/0.1368, allocations: 7.984 kB / 477.9 MB, free: 4.461 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.743e-06/0.1368, allocations: 0 / 477.9 MB, free: 4.461 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009637/0.1377, allocations: 1.034 MB / 478.9 MB, free: 3.348 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.397e-06/0.1377, allocations: 0 / 478.9 MB, free: 3.348 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002477/0.138, allocations: 68.09 kB / 479 MB, free: 3.281 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.454e-06/0.138, allocations: 7.984 kB / 479 MB, free: 3.273 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.379e-05/0.138, allocations: 8 kB / 479 MB, free: 3.266 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.869e-06/0.1381, allocations: 4 kB / 479 MB, free: 3.262 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.73e-06/0.1381, allocations: 7.938 kB / 479 MB, free: 3.254 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009496/0.139, allocations: 491.3 kB / 479.5 MB, free: 2.73 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.37e-05/0.1391, allocations: 120.6 kB / 479.6 MB, free: 2.594 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.844e-05/0.1392, allocations: 16 kB / 479.6 MB, free: 2.578 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002259/0.1394, allocations: 39.97 kB / 479.7 MB, free: 2.539 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001023/0.1395, allocations: 39.83 kB / 479.7 MB, free: 2.5 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.804e-05/0.1396, allocations: 15.94 kB / 479.7 MB, free: 2.484 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002503/0.1398, allocations: 235 kB / 479.9 MB, free: 2.258 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1398, allocations: 0 / 479.9 MB, free: 2.258 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004295/0.1403, allocations: 91.98 kB / 480 MB, free: 2.168 MB / 350.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.002166/0.1424, allocations: 1.393 MB / 481.4 MB, free: 0.9023 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0009241/0.1434, allocations: 437.5 kB / 481.8 MB, free: 476 kB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.357e-06/0.1434, allocations: 0 / 481.8 MB, free: 476 kB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004609/0.1439, allocations: 208.7 kB / 482.1 MB, free: 268 kB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005335/0.1444, allocations: 65.05 kB / 482.1 MB, free: 200 kB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005366/0.1498, allocations: 3.861 MB / 486 MB, free: 12.09 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000374/0.1502, allocations: 0.8037 MB / 486.8 MB, free: 11.26 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002548/0.1504, allocations: 103.1 kB / 486.9 MB, free: 11.16 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001803/0.1506, allocations: 115.4 kB / 487 MB, free: 11.05 MB / 366.1 MB Notification: Performance of SimCode: time 1.012e-06/0.1506, allocations: 0 / 487 MB, free: 11.05 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02079/0.1714, allocations: 7.594 MB / 494.6 MB, free: 3.648 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003353/0.1718, allocations: 259.6 kB / 494.8 MB, free: 3.383 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.84/2.012, allocations: 4 kB / 494.8 MB, free: 3.379 MB / 366.1 MB (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 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_PowerWorld_Test_WindFarmGridTest.fmu > PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest.pipe 2>&1)