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.001207/0.001207, allocations: 100.7 kB / 16.5 MB, free: 6.641 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.001193/0.001193, allocations: 193.3 kB / 17.42 MB, free: 6.066 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.216/1.216, allocations: 222.9 MB / 241.1 MB, free: 13.62 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1602/0.1602, allocations: 38.04 MB / 329.3 MB, free: 8.852 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001128/0.001128, allocations: 62.73 kB / 398.2 MB, free: 34.42 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09901/0.1002, allocations: 58.07 MB / 456.3 MB, free: 8.418 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest): time 0.00508/0.1053, allocations: 4.122 MB / 460.4 MB, free: 4.27 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002768/0.1081, allocations: 2.191 MB / 462.6 MB, free: 2.07 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001714/0.1082, allocations: 23.88 kB / 462.6 MB, free: 2.047 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007344/0.109, allocations: 215.2 kB / 462.8 MB, free: 1.836 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005065/0.1095, allocations: 251.1 kB / 463 MB, free: 1.59 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005443/0.1101, allocations: 254.1 kB / 463.3 MB, free: 1.344 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005102/0.1106, allocations: 0.6235 MB / 463.9 MB, free: 0.7188 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003265/0.1109, allocations: 191.8 kB / 464.1 MB, free: 0.5273 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003266/0.1113, allocations: 191.2 kB / 464.3 MB, free: 348 kB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002488/0.1115, allocations: 215.2 kB / 464.5 MB, free: 132 kB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.307e-05/0.1116, allocations: 20 kB / 464.5 MB, free: 112 kB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006132/0.1122, allocations: 455 kB / 465 MB, free: 15.66 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001093/0.1123, allocations: 119.6 kB / 465.1 MB, free: 15.55 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001476/0.1125, allocations: 171 kB / 465.2 MB, free: 15.38 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006106/0.1131, allocations: 0.631 MB / 465.9 MB, free: 14.75 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.551e-06/0.1131, allocations: 4 kB / 465.9 MB, free: 14.74 MB / 350.1 MB Notification: Performance of FrontEnd: time 7.42e-07/0.1131, allocations: 0 / 465.9 MB, free: 14.74 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.14e-06/0.1131, allocations: 0 / 465.9 MB, free: 14.74 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.001118/0.1142, allocations: 0.7471 MB / 466.6 MB, free: 13.94 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.42e-05/0.1143, allocations: 8.031 kB / 466.6 MB, free: 13.93 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.204e-05/0.1143, allocations: 58.67 kB / 466.7 MB, free: 13.86 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008241/0.1152, allocations: 104.4 kB / 466.8 MB, free: 13.76 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004835/0.1157, allocations: 411.6 kB / 467.2 MB, free: 13.32 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.967e-05/0.1157, allocations: 16.81 kB / 467.2 MB, free: 13.3 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.592e-05/0.1158, allocations: 27.94 kB / 467.2 MB, free: 13.28 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007892/0.1165, allocations: 442.8 kB / 467.7 MB, free: 12.81 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.706e-06/0.1166, allocations: 0 / 467.7 MB, free: 12.81 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.308e-05/0.1166, allocations: 12 kB / 467.7 MB, free: 12.8 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.989e-05/0.1166, allocations: 20.42 kB / 467.7 MB, free: 12.78 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000929/0.1176, allocations: 0.4973 MB / 468.2 MB, free: 12.28 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001841/0.1194, allocations: 1.686 MB / 469.9 MB, free: 10.5 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000861/0.1203, allocations: 361.2 kB / 470.2 MB, free: 10.13 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003286/0.1206, allocations: 145.6 kB / 470.4 MB, free: 9.98 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.362e-05/0.1207, allocations: 11.98 kB / 470.4 MB, free: 9.969 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004849/0.1212, allocations: 282.9 kB / 470.7 MB, free: 9.652 MB / 350.1 MB Notification: Performance of pre-optimization done (n=31): time 1.463e-06/0.1212, allocations: 0 / 470.7 MB, free: 9.652 MB / 350.1 MB Notification: Performance of matching and sorting (n=31): time 0.001203/0.1224, allocations: 0.5238 MB / 471.2 MB, free: 9.125 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001396/0.1226, allocations: 302.8 kB / 471.5 MB, free: 8.762 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003224/0.1229, allocations: 336.3 kB / 471.8 MB, free: 8.422 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.689e-05/0.1229, allocations: 37.7 kB / 471.9 MB, free: 8.379 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001162/0.123, allocations: 192.4 kB / 472 MB, free: 8.184 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.83e-05/0.1231, allocations: 102.6 kB / 472.1 MB, free: 8.082 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.926e-05/0.1232, allocations: 73.61 kB / 472.2 MB, free: 8.004 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001301/0.1234, allocations: 346.8 kB / 472.6 MB, free: 7.656 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003343/0.1237, allocations: 147.9 kB / 472.7 MB, free: 7.512 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004066/0.1241, allocations: 276.1 kB / 473 MB, free: 7.184 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007496/0.1249, allocations: 470.3 kB / 473.4 MB, free: 6.66 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.905e-06/0.1249, allocations: 0 / 473.4 MB, free: 6.66 MB / 350.1 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.0009448/0.1259, allocations: 0.5141 MB / 473.9 MB, free: 6.133 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.667e-05/0.1259, allocations: 37.64 kB / 474 MB, free: 6.09 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.713e-06/0.1259, allocations: 4 kB / 474 MB, free: 6.086 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.464e-05/0.1259, allocations: 4 kB / 474 MB, free: 6.082 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002996/0.1262, allocations: 92.34 kB / 474.1 MB, free: 5.992 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.053e-05/0.1263, allocations: 11.94 kB / 474.1 MB, free: 5.98 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00025/0.1265, allocations: 47.66 kB / 474.1 MB, free: 5.934 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.993e-05/0.1266, allocations: 20 kB / 474.2 MB, free: 5.914 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.0001778/0.1267, allocations: 193.6 kB / 474.3 MB, free: 5.715 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.737e-05/0.1268, allocations: 51.39 kB / 474.4 MB, free: 5.664 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.274e-05/0.1269, allocations: 47.17 kB / 474.4 MB, free: 5.617 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.558e-06/0.1269, allocations: 4 kB / 474.4 MB, free: 5.613 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.763e-06/0.1269, allocations: 8 kB / 474.5 MB, free: 5.605 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.18e-06/0.1269, allocations: 3.984 kB / 474.5 MB, free: 5.602 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007676/0.1277, allocations: 1.031 MB / 475.5 MB, free: 4.492 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.765e-06/0.1277, allocations: 0 / 475.5 MB, free: 4.492 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000238/0.128, allocations: 63.89 kB / 475.5 MB, free: 4.43 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.89e-06/0.128, allocations: 4 kB / 475.6 MB, free: 4.426 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.407e-05/0.128, allocations: 15.98 kB / 475.6 MB, free: 4.41 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.138e-06/0.128, allocations: 4 kB / 475.6 MB, free: 4.406 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.466e-06/0.128, allocations: 3.938 kB / 475.6 MB, free: 4.402 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008383/0.1289, allocations: 467.4 kB / 476 MB, free: 3.902 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.913e-05/0.129, allocations: 112.7 kB / 476.1 MB, free: 3.773 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.861e-05/0.129, allocations: 16 kB / 476.2 MB, free: 3.758 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002074/0.1292, allocations: 23.97 kB / 476.2 MB, free: 3.734 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.651e-05/0.1293, allocations: 39.83 kB / 476.2 MB, free: 3.695 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.481e-05/0.1294, allocations: 19.94 kB / 476.2 MB, free: 3.676 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002155/0.1296, allocations: 235 kB / 476.5 MB, free: 3.449 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1296, allocations: 0 / 476.5 MB, free: 3.449 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003835/0.13, allocations: 91.89 kB / 476.6 MB, free: 3.359 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.001992/0.132, allocations: 1.355 MB / 477.9 MB, free: 2.129 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0008097/0.1328, allocations: 410.8 kB / 478.3 MB, free: 1.715 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.725e-06/0.1328, allocations: 3.938 kB / 478.3 MB, free: 1.711 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004297/0.1332, allocations: 207.4 kB / 478.5 MB, free: 1.512 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004324/0.1337, allocations: 65.05 kB / 478.6 MB, free: 1.445 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004774/0.1385, allocations: 3.783 MB / 482.4 MB, free: 13.42 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003315/0.1388, allocations: 0.8037 MB / 483.2 MB, free: 12.59 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002339/0.1391, allocations: 91.2 kB / 483.3 MB, free: 12.5 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001804/0.1392, allocations: 123.3 kB / 483.4 MB, free: 12.38 MB / 366.1 MB Notification: Performance of SimCode: time 3.1e-07/0.1392, allocations: 0 / 483.4 MB, free: 12.38 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02124/0.1605, allocations: 7.861 MB / 491.2 MB, free: 4.699 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002383/0.1608, allocations: 258.3 kB / 491.5 MB, free: 4.41 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.809/1.97, allocations: 0 / 491.5 MB, free: 4.41 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)