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.001163/0.001163, allocations: 103.5 kB / 16.62 MB, free: 6.801 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.001128/0.001128, allocations: 193.8 kB / 17.55 MB, free: 5.949 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.296/1.296, allocations: 222.9 MB / 241.2 MB, free: 15.43 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1744/0.1744, allocations: 38.04 MB / 329.4 MB, free: 9.039 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001231/0.001231, allocations: 68.31 kB / 398.4 MB, free: 34.36 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08714/0.08839, allocations: 58.06 MB / 456.5 MB, free: 8.344 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest): time 0.005168/0.0936, allocations: 4.129 MB / 460.6 MB, free: 4.191 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002888/0.09651, allocations: 2.16 MB / 462.7 MB, free: 2.023 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002889/0.09682, allocations: 19.88 kB / 462.8 MB, free: 2.004 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008582/0.09772, allocations: 223.2 kB / 463 MB, free: 1.785 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006287/0.09837, allocations: 259.1 kB / 463.2 MB, free: 1.531 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006934/0.09907, allocations: 257.1 kB / 463.5 MB, free: 1.281 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005647/0.09965, allocations: 0.5338 MB / 464 MB, free: 0.7461 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003723/0.1, allocations: 223.5 kB / 464.2 MB, free: 0.5195 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003746/0.1004, allocations: 223.2 kB / 464.5 MB, free: 308 kB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002546/0.1007, allocations: 227.1 kB / 464.7 MB, free: 80 kB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.588e-05/0.1007, allocations: 40 kB / 464.7 MB, free: 40 kB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005255/0.1013, allocations: 403.2 kB / 465.1 MB, free: 15.64 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001177/0.1014, allocations: 127.6 kB / 465.2 MB, free: 15.52 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001528/0.1016, allocations: 187 kB / 465.4 MB, free: 15.34 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006854/0.1023, allocations: 0.6505 MB / 466.1 MB, free: 14.68 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.188e-06/0.1023, allocations: 0 / 466.1 MB, free: 14.68 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.213e-06/0.1023, allocations: 0 / 466.1 MB, free: 14.68 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.554e-06/0.1023, allocations: 0 / 466.1 MB, free: 14.68 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.001362/0.1037, allocations: 0.7471 MB / 466.8 MB, free: 13.88 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.072e-05/0.1037, allocations: 15.89 kB / 466.8 MB, free: 13.87 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.538e-05/0.1038, allocations: 62.66 kB / 466.9 MB, free: 13.8 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009243/0.1047, allocations: 108.3 kB / 467 MB, free: 13.69 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005552/0.1053, allocations: 399.6 kB / 467.4 MB, free: 13.26 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.965e-05/0.1053, allocations: 20.81 kB / 467.4 MB, free: 13.24 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.325e-05/0.1054, allocations: 23.92 kB / 467.4 MB, free: 13.22 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008345/0.1062, allocations: 454.7 kB / 467.9 MB, free: 12.74 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.265e-05/0.1063, allocations: 0 / 467.9 MB, free: 12.74 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.756e-05/0.1063, allocations: 8 kB / 467.9 MB, free: 12.73 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.995e-05/0.1064, allocations: 28.42 kB / 467.9 MB, free: 12.7 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009533/0.1073, allocations: 0.4934 MB / 468.4 MB, free: 12.21 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0021/0.1094, allocations: 1.678 MB / 470.1 MB, free: 10.44 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009568/0.1104, allocations: 370.7 kB / 470.4 MB, free: 10.06 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003401/0.1107, allocations: 133.6 kB / 470.6 MB, free: 9.922 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.293e-05/0.1108, allocations: 19.95 kB / 470.6 MB, free: 9.902 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005333/0.1114, allocations: 290.9 kB / 470.9 MB, free: 9.578 MB / 350.1 MB Notification: Performance of pre-optimization done (n=31): time 1.944e-06/0.1114, allocations: 0 / 470.9 MB, free: 9.578 MB / 350.1 MB Notification: Performance of matching and sorting (n=31): time 0.001282/0.1127, allocations: 0.5233 MB / 471.4 MB, free: 9.051 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001437/0.1128, allocations: 291.4 kB / 471.7 MB, free: 8.699 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003499/0.1132, allocations: 344.3 kB / 472 MB, free: 8.352 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.911e-05/0.1132, allocations: 33.7 kB / 472.1 MB, free: 8.312 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000141/0.1134, allocations: 200.4 kB / 472.3 MB, free: 8.109 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.477e-05/0.1135, allocations: 98.64 kB / 472.3 MB, free: 8.012 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001298/0.1136, allocations: 73.59 kB / 472.4 MB, free: 7.934 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001305/0.1137, allocations: 342.8 kB / 472.8 MB, free: 7.59 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000362/0.1141, allocations: 147.9 kB / 472.9 MB, free: 7.445 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004165/0.1145, allocations: 277 kB / 473.2 MB, free: 7.113 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008075/0.1153, allocations: 462.3 kB / 473.6 MB, free: 6.598 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.707e-06/0.1154, allocations: 4 kB / 473.6 MB, free: 6.594 MB / 350.1 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.0009925/0.1164, allocations: 0.5102 MB / 474.1 MB, free: 6.07 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.696e-05/0.1164, allocations: 40.03 kB / 474.2 MB, free: 6.027 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.245e-06/0.1164, allocations: 4 kB / 474.2 MB, free: 6.023 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.565e-05/0.1164, allocations: 8 kB / 474.2 MB, free: 6.016 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003095/0.1167, allocations: 84.27 kB / 474.3 MB, free: 5.934 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.214e-05/0.1168, allocations: 15.92 kB / 474.3 MB, free: 5.918 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002711/0.117, allocations: 43.67 kB / 474.3 MB, free: 5.875 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.228e-05/0.1171, allocations: 23.98 kB / 474.3 MB, free: 5.852 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.0001848/0.1173, allocations: 197.6 kB / 474.5 MB, free: 5.648 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.81e-05/0.1174, allocations: 39.47 kB / 474.6 MB, free: 5.609 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.68e-05/0.1175, allocations: 59.08 kB / 474.6 MB, free: 5.551 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.541e-06/0.1175, allocations: 4 kB / 474.6 MB, free: 5.547 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.402e-06/0.1175, allocations: 8 kB / 474.7 MB, free: 5.539 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.222e-06/0.1175, allocations: 4 kB / 474.7 MB, free: 5.535 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007869/0.1183, allocations: 1.027 MB / 475.7 MB, free: 4.43 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.917e-06/0.1183, allocations: 8.188 kB / 475.7 MB, free: 4.422 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002401/0.1185, allocations: 63.89 kB / 475.8 MB, free: 4.359 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.09e-06/0.1186, allocations: 4 kB / 475.8 MB, free: 4.355 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.496e-05/0.1186, allocations: 8 kB / 475.8 MB, free: 4.348 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.157e-06/0.1186, allocations: 4 kB / 475.8 MB, free: 4.344 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.224e-06/0.1186, allocations: 11.88 kB / 475.8 MB, free: 4.332 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009013/0.1195, allocations: 471.4 kB / 476.2 MB, free: 3.828 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.309e-05/0.1196, allocations: 104.7 kB / 476.3 MB, free: 3.707 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.365e-05/0.1197, allocations: 19.98 kB / 476.4 MB, free: 3.688 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002217/0.1199, allocations: 23.97 kB / 476.4 MB, free: 3.664 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.487e-05/0.12, allocations: 39.84 kB / 476.4 MB, free: 3.625 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.945e-05/0.12, allocations: 19.92 kB / 476.4 MB, free: 3.605 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002206/0.1203, allocations: 243 kB / 476.7 MB, free: 3.371 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1203, allocations: 0 / 476.7 MB, free: 3.371 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004013/0.1207, allocations: 83.91 kB / 476.8 MB, free: 3.289 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.001993/0.1227, allocations: 1.353 MB / 478.1 MB, free: 2.059 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0009223/0.1236, allocations: 446.8 kB / 478.6 MB, free: 1.609 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.166e-06/0.1236, allocations: 3.938 kB / 478.6 MB, free: 1.605 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004409/0.1241, allocations: 199.8 kB / 478.7 MB, free: 1.414 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004414/0.1245, allocations: 74 kB / 478.8 MB, free: 1.344 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005178/0.1297, allocations: 3.776 MB / 482.6 MB, free: 13.32 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003514/0.1301, allocations: 0.7995 MB / 483.4 MB, free: 12.49 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.000248/0.1303, allocations: 99.19 kB / 483.5 MB, free: 12.39 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002251/0.1306, allocations: 123.3 kB / 483.6 MB, free: 12.27 MB / 366.1 MB Notification: Performance of SimCode: time 5.11e-07/0.1306, allocations: 0 / 483.6 MB, free: 12.27 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02232/0.1529, allocations: 8.059 MB / 491.7 MB, free: 4.387 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001866/0.1531, allocations: 261.1 kB / 491.9 MB, free: 4.094 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.969/2.122, allocations: 0 / 491.9 MB, free: 4.094 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)