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.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/package.mo", uses=false) 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.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_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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00124/0.00124, allocations: 102.1 kB / 16.62 MB, free: 6.809 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.0012/0.0012, allocations: 193.8 kB / 17.55 MB, free: 5.953 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.284/1.284, allocations: 222.9 MB / 241.2 MB, free: 13.7 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1758/0.1758, allocations: 38.02 MB / 329.4 MB, free: 8.742 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001263/0.001263, allocations: 65.05 kB / 398.4 MB, free: 34.26 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09444/0.09572, allocations: 58.07 MB / 456.5 MB, free: 8.277 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest): time 0.006438/0.1022, allocations: 4.125 MB / 460.6 MB, free: 4.129 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003472/0.1057, allocations: 2.152 MB / 462.7 MB, free: 1.969 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003705/0.1061, allocations: 23.88 kB / 462.8 MB, free: 1.945 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009584/0.1071, allocations: 230.4 kB / 463 MB, free: 1.723 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007083/0.1078, allocations: 251.1 kB / 463.2 MB, free: 1.477 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006863/0.1085, allocations: 259.5 kB / 463.5 MB, free: 1.223 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005729/0.1091, allocations: 0.5299 MB / 464 MB, free: 0.6914 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004019/0.1095, allocations: 223.6 kB / 464.2 MB, free: 480 kB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004402/0.1099, allocations: 227.2 kB / 464.4 MB, free: 252 kB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000359/0.1103, allocations: 227.2 kB / 464.7 MB, free: 24 kB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 9.067e-05/0.1104, allocations: 43.98 kB / 464.7 MB, free: 15.98 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006235/0.111, allocations: 399.1 kB / 465.1 MB, free: 15.59 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001483/0.1112, allocations: 131.6 kB / 465.2 MB, free: 15.46 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002245/0.1114, allocations: 191 kB / 465.4 MB, free: 15.27 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009301/0.1124, allocations: 0.6466 MB / 466.1 MB, free: 14.62 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.442e-06/0.1124, allocations: 4 kB / 466.1 MB, free: 14.62 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.126e-06/0.1124, allocations: 4 kB / 466.1 MB, free: 14.62 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.562e-05/0.1124, allocations: 0 / 466.1 MB, free: 14.62 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.00153/0.114, allocations: 0.747 MB / 466.8 MB, free: 13.81 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.521e-05/0.114, allocations: 11.89 kB / 466.8 MB, free: 13.8 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.507e-05/0.1141, allocations: 54.73 kB / 466.9 MB, free: 13.74 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009737/0.1151, allocations: 112.4 kB / 467 MB, free: 13.63 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006836/0.1158, allocations: 403.6 kB / 467.4 MB, free: 13.2 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.265e-05/0.1158, allocations: 12.81 kB / 467.4 MB, free: 13.18 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.475e-05/0.1159, allocations: 31.94 kB / 467.4 MB, free: 13.15 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009306/0.1169, allocations: 442.8 kB / 467.9 MB, free: 12.68 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.438e-05/0.1169, allocations: 0 / 467.9 MB, free: 12.68 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.102e-05/0.1169, allocations: 15.98 kB / 467.9 MB, free: 12.67 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.875e-05/0.117, allocations: 16.44 kB / 467.9 MB, free: 12.65 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001079/0.1181, allocations: 0.4973 MB / 468.4 MB, free: 12.16 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002451/0.1205, allocations: 1.678 MB / 470.1 MB, free: 10.38 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009565/0.1215, allocations: 370.7 kB / 470.4 MB, free: 10 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003497/0.1219, allocations: 141.6 kB / 470.6 MB, free: 9.859 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.69e-05/0.1219, allocations: 11.98 kB / 470.6 MB, free: 9.848 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005484/0.1225, allocations: 286.9 kB / 470.9 MB, free: 9.527 MB / 350.1 MB Notification: Performance of pre-optimization done (n=31): time 2.846e-06/0.1225, allocations: 0 / 470.9 MB, free: 9.527 MB / 350.1 MB Notification: Performance of matching and sorting (n=31): time 0.001391/0.1239, allocations: 0.5238 MB / 471.4 MB, free: 9 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001767/0.1241, allocations: 302.7 kB / 471.7 MB, free: 8.637 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003919/0.1245, allocations: 340.3 kB / 472 MB, free: 8.293 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.451e-05/0.1245, allocations: 33.7 kB / 472 MB, free: 8.254 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001416/0.1247, allocations: 192.4 kB / 472.2 MB, free: 8.059 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000117/0.1248, allocations: 106.6 kB / 472.3 MB, free: 7.953 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001137/0.1249, allocations: 69.61 kB / 472.4 MB, free: 7.879 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001434/0.1251, allocations: 350.8 kB / 472.7 MB, free: 7.527 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003637/0.1254, allocations: 143.9 kB / 472.9 MB, free: 7.387 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004462/0.1259, allocations: 273 kB / 473.2 MB, free: 7.059 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008297/0.1267, allocations: 462.3 kB / 473.6 MB, free: 6.543 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.311e-06/0.1267, allocations: 3.938 kB / 473.6 MB, free: 6.539 MB / 350.1 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.001102/0.1279, allocations: 0.5178 MB / 474.1 MB, free: 6.008 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.876e-05/0.1279, allocations: 33.7 kB / 474.2 MB, free: 5.969 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.544e-05/0.1279, allocations: 4 kB / 474.2 MB, free: 5.965 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.176e-05/0.128, allocations: 4.562 kB / 474.2 MB, free: 5.961 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000336/0.1283, allocations: 91.88 kB / 474.3 MB, free: 5.871 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.43e-05/0.1283, allocations: 11.94 kB / 474.3 MB, free: 5.859 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003151/0.1287, allocations: 47.66 kB / 474.3 MB, free: 5.812 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.534e-05/0.1287, allocations: 20 kB / 474.3 MB, free: 5.793 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.0002461/0.129, allocations: 193.6 kB / 474.5 MB, free: 5.594 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.145e-05/0.1291, allocations: 47.47 kB / 474.6 MB, free: 5.547 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001037/0.1292, allocations: 39.17 kB / 474.6 MB, free: 5.508 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.504e-06/0.1292, allocations: 12 kB / 474.6 MB, free: 5.496 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.262e-06/0.1292, allocations: 3.938 kB / 474.6 MB, free: 5.492 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.801e-05/0.1292, allocations: 7.984 kB / 474.6 MB, free: 5.484 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00102/0.1303, allocations: 1.035 MB / 475.7 MB, free: 4.371 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.462e-06/0.1303, allocations: 3.984 kB / 475.7 MB, free: 4.367 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002443/0.1305, allocations: 55.91 kB / 475.7 MB, free: 4.312 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.544e-06/0.1305, allocations: 4 kB / 475.7 MB, free: 4.309 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.026e-05/0.1306, allocations: 15.98 kB / 475.7 MB, free: 4.293 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.38e-06/0.1306, allocations: 4 kB / 475.7 MB, free: 4.289 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5e-06/0.1306, allocations: 7.875 kB / 475.8 MB, free: 4.281 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009139/0.1315, allocations: 471.6 kB / 476.2 MB, free: 3.777 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.552e-05/0.1316, allocations: 108.7 kB / 476.3 MB, free: 3.652 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.514e-05/0.1317, allocations: 16 kB / 476.3 MB, free: 3.637 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002179/0.1319, allocations: 23.97 kB / 476.4 MB, free: 3.613 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.471e-05/0.132, allocations: 47.83 kB / 476.4 MB, free: 3.566 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.628e-05/0.132, allocations: 11.94 kB / 476.4 MB, free: 3.555 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002555/0.1323, allocations: 239 kB / 476.7 MB, free: 3.324 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1323, allocations: 0 / 476.7 MB, free: 3.324 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004489/0.1328, allocations: 91.89 kB / 476.7 MB, free: 3.234 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.002104/0.1349, allocations: 1.356 MB / 478.1 MB, free: 2.004 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0009373/0.1358, allocations: 449.2 kB / 478.5 MB, free: 1.555 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.977e-06/0.1358, allocations: 1.125 kB / 478.5 MB, free: 1.555 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004596/0.1363, allocations: 204.1 kB / 478.7 MB, free: 1.355 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004984/0.1368, allocations: 65.05 kB / 478.8 MB, free: 1.289 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005364/0.1422, allocations: 3.776 MB / 482.6 MB, free: 13.27 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003744/0.1426, allocations: 0.8112 MB / 483.4 MB, free: 12.43 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002686/0.1429, allocations: 99.11 kB / 483.5 MB, free: 12.33 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000193/0.1431, allocations: 115.4 kB / 483.6 MB, free: 12.22 MB / 366.1 MB Notification: Performance of SimCode: time 6.31e-07/0.1431, allocations: 0 / 483.6 MB, free: 12.22 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02193/0.165, allocations: 8.06 MB / 491.7 MB, free: 4.324 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002302/0.1653, allocations: 251.9 kB / 491.9 MB, free: 4.066 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.019/2.185, allocations: 0 / 491.9 MB, free: 4.066 MB / 366.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_PowerWorld_Test_WindFarmGridTest_fmu --startTime=0 --stopTime=86400 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_PowerWorld_Test_WindFarmGridTest.fmu > PowerSystems_PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest.pipe 2>&1)