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.00158/0.00158, allocations: 110.4 kB / 17.07 MB, free: 5.996 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.001639/0.00164, allocations: 197.3 kB / 18 MB, free: 5.074 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.493/1.493, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1804/0.1804, allocations: 38.05 MB / 329.9 MB, free: 8.746 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001912/0.001912, allocations: 72.11 kB / 457.7 MB, free: 7.352 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3309/0.3328, allocations: 58.06 MB / 0.5036 GB, free: 7.484 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest): time 0.004838/0.3377, allocations: 3.681 MB / 0.5072 GB, free: 4.922 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002862/0.3406, allocations: 2.043 MB / 0.5092 GB, free: 3.496 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002253/0.3408, allocations: 10.19 kB / 0.5092 GB, free: 3.492 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007998/0.3417, allocations: 226.9 kB / 0.5094 GB, free: 3.359 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006244/0.3423, allocations: 289.3 kB / 0.5097 GB, free: 3.195 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007749/0.3431, allocations: 293.3 kB / 0.51 GB, free: 3.035 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006663/0.3438, allocations: 0.5269 MB / 0.5105 GB, free: 2.785 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003818/0.3441, allocations: 222.1 kB / 0.5107 GB, free: 2.695 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000527/0.3447, allocations: 226.8 kB / 0.5109 GB, free: 2.586 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002907/0.345, allocations: 212.4 kB / 0.5111 GB, free: 2.488 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.135e-05/0.3451, allocations: 38.66 kB / 0.5112 GB, free: 2.488 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007461/0.3458, allocations: 397.4 kB / 0.5116 GB, free: 2.344 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001306/0.3459, allocations: 130.9 kB / 0.5117 GB, free: 2.277 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000163/0.3461, allocations: 184.1 kB / 0.5119 GB, free: 2.156 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008681/0.347, allocations: 0.6347 MB / 0.5125 GB, free: 1.91 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.107e-06/0.347, allocations: 0 / 0.5125 GB, free: 1.91 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.242e-06/0.347, allocations: 0 / 0.5125 GB, free: 1.91 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.656e-06/0.347, allocations: 1 kB / 0.5125 GB, free: 1.91 MB / 382.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.00118/0.3482, allocations: 0.7621 MB / 0.5132 GB, free: 1.285 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.892e-05/0.3483, allocations: 13.42 kB / 0.5132 GB, free: 1.281 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.827e-05/0.3483, allocations: 61.67 kB / 0.5133 GB, free: 1.227 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008939/0.3492, allocations: 108.8 kB / 0.5134 GB, free: 1.199 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005231/0.3498, allocations: 422.7 kB / 0.5138 GB, free: 0.8789 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.41e-05/0.3498, allocations: 18.78 kB / 0.5138 GB, free: 0.8711 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.367e-05/0.3498, allocations: 33.44 kB / 0.5138 GB, free: 0.8555 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008231/0.3507, allocations: 443 kB / 0.5143 GB, free: 0.6484 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.418e-05/0.3507, allocations: 1.281 kB / 0.5143 GB, free: 0.6484 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.495e-05/0.3507, allocations: 11.45 kB / 0.5143 GB, free: 0.6406 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.469e-05/0.3508, allocations: 16.92 kB / 0.5143 GB, free: 0.6406 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001023/0.3518, allocations: 0.4957 MB / 0.5148 GB, free: 0.5 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002271/0.3541, allocations: 1.669 MB / 0.5164 GB, free: 15.3 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001061/0.3552, allocations: 380 kB / 0.5168 GB, free: 15.14 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004035/0.3556, allocations: 142.8 kB / 0.5169 GB, free: 15.08 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.856e-05/0.3556, allocations: 7.109 kB / 0.5169 GB, free: 15.08 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005962/0.3562, allocations: 291.2 kB / 0.5172 GB, free: 14.9 MB / 398.1 MB Notification: Performance of pre-optimization done (n=31): time 2.184e-06/0.3563, allocations: 0.5 kB / 0.5172 GB, free: 14.9 MB / 398.1 MB Notification: Performance of matching and sorting (n=31): time 0.001577/0.3578, allocations: 0.5267 MB / 0.5177 GB, free: 14.71 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001917/0.358, allocations: 298.8 kB / 0.518 GB, free: 14.36 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004358/0.3585, allocations: 331.5 kB / 0.5183 GB, free: 14.18 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 5.419e-05/0.3585, allocations: 35.66 kB / 0.5183 GB, free: 14.15 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001861/0.3587, allocations: 203.5 kB / 0.5185 GB, free: 13.98 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001181/0.3589, allocations: 109.6 kB / 0.5186 GB, free: 13.89 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001257/0.359, allocations: 71.66 kB / 0.5187 GB, free: 13.85 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001762/0.3592, allocations: 347.7 kB / 0.519 GB, free: 13.52 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003812/0.3596, allocations: 139.5 kB / 0.5192 GB, free: 13.48 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004951/0.3601, allocations: 282.8 kB / 0.5194 GB, free: 13.26 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008754/0.361, allocations: 452.5 kB / 0.5199 GB, free: 12.95 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.667e-06/0.361, allocations: 2.25 kB / 0.5199 GB, free: 12.95 MB / 398.1 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.001119/0.3621, allocations: 0.5176 MB / 0.5204 GB, free: 12.72 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.946e-05/0.3622, allocations: 35.64 kB / 0.5204 GB, free: 12.69 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.628e-06/0.3622, allocations: 3.719 kB / 0.5204 GB, free: 12.69 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.418e-05/0.3622, allocations: 6.781 kB / 0.5204 GB, free: 12.69 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000352/0.3626, allocations: 89.84 kB / 0.5205 GB, free: 12.68 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.48e-05/0.3626, allocations: 7.781 kB / 0.5205 GB, free: 12.68 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003205/0.3629, allocations: 46.19 kB / 0.5206 GB, free: 12.66 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.061e-05/0.363, allocations: 19.17 kB / 0.5206 GB, free: 12.65 MB / 398.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.0002573/0.3632, allocations: 204.6 kB / 0.5208 GB, free: 12.48 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.629e-05/0.3633, allocations: 43.17 kB / 0.5208 GB, free: 12.46 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001182/0.3634, allocations: 52.7 kB / 0.5209 GB, free: 12.43 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.532e-06/0.3634, allocations: 4.625 kB / 0.5209 GB, free: 12.43 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.038e-05/0.3635, allocations: 4.266 kB / 0.5209 GB, free: 12.43 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.075e-06/0.3635, allocations: 4.109 kB / 0.5209 GB, free: 12.43 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001046/0.3645, allocations: 1.032 MB / 0.5219 GB, free: 11.55 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.729e-06/0.3646, allocations: 1.656 kB / 0.5219 GB, free: 11.55 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002623/0.3648, allocations: 64.56 kB / 0.522 GB, free: 11.54 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.231e-06/0.3648, allocations: 2.625 kB / 0.522 GB, free: 11.54 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.026e-05/0.3649, allocations: 16.02 kB / 0.522 GB, free: 11.54 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.709e-06/0.3649, allocations: 4.281 kB / 0.522 GB, free: 11.54 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.38e-06/0.3649, allocations: 6.219 kB / 0.522 GB, free: 11.53 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009992/0.3659, allocations: 469.9 kB / 0.5224 GB, free: 11.28 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001033/0.366, allocations: 114 kB / 0.5225 GB, free: 11.16 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.768e-05/0.3661, allocations: 16.41 kB / 0.5226 GB, free: 11.16 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002248/0.3663, allocations: 32.39 kB / 0.5226 GB, free: 11.14 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001195/0.3664, allocations: 37.44 kB / 0.5226 GB, free: 11.13 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.284e-05/0.3665, allocations: 13.12 kB / 0.5226 GB, free: 11.13 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002911/0.3668, allocations: 236.9 kB / 0.5229 GB, free: 11 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.174e-06/0.3668, allocations: 0 / 0.5229 GB, free: 11 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004408/0.3672, allocations: 94.14 kB / 0.5229 GB, free: 10.98 MB / 398.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.002749/0.37, allocations: 1.353 MB / 0.5243 GB, free: 10.07 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0009541/0.371, allocations: 431.3 kB / 0.5247 GB, free: 9.887 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.354e-06/0.371, allocations: 0 / 0.5247 GB, free: 9.887 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004776/0.3715, allocations: 194.9 kB / 0.5249 GB, free: 9.824 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004747/0.3719, allocations: 82.91 kB / 0.5249 GB, free: 9.797 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005578/0.3775, allocations: 3.683 MB / 0.5285 GB, free: 7.383 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004582/0.378, allocations: 0.8041 MB / 0.5293 GB, free: 6.672 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0002618/0.3783, allocations: 88.2 kB / 0.5294 GB, free: 6.656 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002028/0.3785, allocations: 116.4 kB / 0.5295 GB, free: 6.582 MB / 398.1 MB Notification: Performance of SimCode: time 6.32e-07/0.3785, allocations: 3.938 kB / 0.5295 GB, free: 6.578 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03041/0.4089, allocations: 8.381 MB / 0.5377 GB, free: 2.969 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.461/8.87, allocations: 14.39 kB / 0.5377 GB, free: 2.957 MB / 398.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)