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.001179/0.001179, allocations: 109.8 kB / 17.06 MB, free: 5.977 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.001166/0.001166, allocations: 197.3 kB / 18.01 MB, free: 5.051 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.351/1.351, allocations: 222.9 MB / 241.7 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1797/0.1797, allocations: 38.03 MB / 329.9 MB, free: 8.684 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001908/0.001908, allocations: 79.81 kB / 457.6 MB, free: 7.344 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.338/0.3399, allocations: 58.06 MB / 0.5036 GB, free: 7.477 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest): time 0.00485/0.3448, allocations: 3.682 MB / 0.5072 GB, free: 4.914 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.00257/0.3474, allocations: 2.039 MB / 0.5092 GB, free: 3.492 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002062/0.3477, allocations: 9.75 kB / 0.5092 GB, free: 3.488 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007952/0.3485, allocations: 235.5 kB / 0.5094 GB, free: 3.348 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006416/0.3492, allocations: 280.5 kB / 0.5097 GB, free: 3.191 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007296/0.3499, allocations: 289.1 kB / 0.51 GB, free: 3.035 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005841/0.3505, allocations: 0.5347 MB / 0.5105 GB, free: 2.781 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003705/0.3509, allocations: 218.9 kB / 0.5107 GB, free: 2.691 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004505/0.3513, allocations: 221.9 kB / 0.5109 GB, free: 2.586 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002878/0.3516, allocations: 213.7 kB / 0.5111 GB, free: 2.488 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.208e-05/0.3517, allocations: 37.69 kB / 0.5112 GB, free: 2.488 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007092/0.3524, allocations: 398 kB / 0.5115 GB, free: 2.344 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001338/0.3526, allocations: 130.2 kB / 0.5117 GB, free: 2.277 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001729/0.3527, allocations: 184 kB / 0.5118 GB, free: 2.156 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009329/0.3537, allocations: 0.643 MB / 0.5125 GB, free: 1.902 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.807e-06/0.3537, allocations: 0 / 0.5125 GB, free: 1.902 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.044e-06/0.3537, allocations: 0 / 0.5125 GB, free: 1.902 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.105e-05/0.3537, allocations: 0.9688 kB / 0.5125 GB, free: 1.902 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.001199/0.3549, allocations: 0.7606 MB / 0.5132 GB, free: 1.277 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.977e-05/0.355, allocations: 15.16 kB / 0.5132 GB, free: 1.273 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.045e-05/0.355, allocations: 60.72 kB / 0.5133 GB, free: 1.219 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008973/0.3559, allocations: 109.1 kB / 0.5134 GB, free: 1.191 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005366/0.3565, allocations: 422.8 kB / 0.5138 GB, free: 0.8711 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.969e-05/0.3565, allocations: 18.73 kB / 0.5138 GB, free: 0.8633 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.002e-05/0.3566, allocations: 32.08 kB / 0.5138 GB, free: 0.8477 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008088/0.3574, allocations: 439.6 kB / 0.5143 GB, free: 0.6445 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.525e-05/0.3574, allocations: 3.406 kB / 0.5143 GB, free: 0.6445 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.744e-05/0.3575, allocations: 15.81 kB / 0.5143 GB, free: 0.6328 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.535e-05/0.3575, allocations: 20.23 kB / 0.5143 GB, free: 0.6289 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001002/0.3585, allocations: 0.4926 MB / 0.5148 GB, free: 0.4922 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002203/0.3607, allocations: 1.667 MB / 0.5164 GB, free: 15.29 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001052/0.3618, allocations: 372.7 kB / 0.5168 GB, free: 15.14 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004303/0.3622, allocations: 143.3 kB / 0.5169 GB, free: 15.08 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.267e-05/0.3623, allocations: 6.953 kB / 0.5169 GB, free: 15.08 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006567/0.363, allocations: 287.2 kB / 0.5172 GB, free: 14.9 MB / 398.1 MB Notification: Performance of pre-optimization done (n=31): time 3.156e-06/0.363, allocations: 0 / 0.5172 GB, free: 14.9 MB / 398.1 MB Notification: Performance of matching and sorting (n=31): time 0.001616/0.3646, allocations: 0.5323 MB / 0.5177 GB, free: 14.71 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001971/0.3648, allocations: 293.1 kB / 0.518 GB, free: 14.36 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004339/0.3652, allocations: 332.4 kB / 0.5183 GB, free: 14.19 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.87e-05/0.3653, allocations: 39.17 kB / 0.5183 GB, free: 14.15 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001755/0.3655, allocations: 203.9 kB / 0.5185 GB, free: 13.98 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001143/0.3656, allocations: 109 kB / 0.5186 GB, free: 13.89 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001245/0.3657, allocations: 68.23 kB / 0.5187 GB, free: 13.86 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001708/0.3659, allocations: 343 kB / 0.519 GB, free: 13.53 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003693/0.3663, allocations: 139.6 kB / 0.5192 GB, free: 13.49 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005021/0.3668, allocations: 281 kB / 0.5194 GB, free: 13.27 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001011/0.3678, allocations: 455.2 kB / 0.5199 GB, free: 12.96 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.464e-06/0.3678, allocations: 5.188 kB / 0.5199 GB, free: 12.95 MB / 398.1 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.001163/0.369, allocations: 0.5197 MB / 0.5204 GB, free: 12.72 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.402e-05/0.3691, allocations: 33.52 kB / 0.5204 GB, free: 12.69 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.187e-06/0.3691, allocations: 4.344 kB / 0.5204 GB, free: 12.69 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.996e-05/0.3691, allocations: 5.812 kB / 0.5204 GB, free: 12.69 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003371/0.3695, allocations: 90.2 kB / 0.5205 GB, free: 12.68 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.454e-05/0.3695, allocations: 7.531 kB / 0.5205 GB, free: 12.68 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000307/0.3698, allocations: 51.14 kB / 0.5206 GB, free: 12.66 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.857e-05/0.3698, allocations: 19.38 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.3701, allocations: 212.7 kB / 0.5208 GB, free: 12.48 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.181e-05/0.3702, allocations: 43.27 kB / 0.5208 GB, free: 12.45 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001183/0.3703, allocations: 52.23 kB / 0.5209 GB, free: 12.42 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.52e-06/0.3703, allocations: 5 kB / 0.5209 GB, free: 12.42 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.04e-05/0.3703, allocations: 3.469 kB / 0.5209 GB, free: 12.42 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.335e-06/0.3704, allocations: 3.5 kB / 0.5209 GB, free: 12.42 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001041/0.3714, allocations: 1.033 MB / 0.5219 GB, free: 11.54 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.358e-06/0.3714, allocations: 1.188 kB / 0.5219 GB, free: 11.54 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000246/0.3717, allocations: 55.86 kB / 0.5219 GB, free: 11.54 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.701e-06/0.3717, allocations: 3.656 kB / 0.5219 GB, free: 11.54 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.142e-05/0.3717, allocations: 12.14 kB / 0.522 GB, free: 11.54 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.923e-06/0.3717, allocations: 12.2 kB / 0.522 GB, free: 11.53 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.15e-06/0.3717, allocations: 6.188 kB / 0.522 GB, free: 11.53 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001037/0.3728, allocations: 469.4 kB / 0.5224 GB, free: 11.28 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.542e-05/0.3729, allocations: 118.3 kB / 0.5225 GB, free: 11.16 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.473e-05/0.373, allocations: 11.75 kB / 0.5225 GB, free: 11.15 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002193/0.3732, allocations: 28.16 kB / 0.5226 GB, free: 11.14 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001092/0.3733, allocations: 38.5 kB / 0.5226 GB, free: 11.13 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.311e-05/0.3734, allocations: 15.84 kB / 0.5226 GB, free: 11.13 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002918/0.3736, allocations: 233.7 kB / 0.5228 GB, free: 11 MB / 398.1 MB Notification: Performance of sort global known variables: time 3.01e-07/0.3737, allocations: 0 / 0.5228 GB, free: 11 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.000466/0.3741, allocations: 94.92 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.002993/0.3771, allocations: 1.356 MB / 0.5243 GB, free: 10.07 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001028/0.3782, allocations: 428 kB / 0.5247 GB, free: 9.891 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.096e-06/0.3782, allocations: 0 / 0.5247 GB, free: 9.891 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004929/0.3787, allocations: 198.4 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.0005163/0.3792, allocations: 88.08 kB / 0.5249 GB, free: 9.789 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00595/0.3852, allocations: 3.677 MB / 0.5285 GB, free: 7.379 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004965/0.3857, allocations: 0.808 MB / 0.5293 GB, free: 6.664 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0003189/0.386, allocations: 84 kB / 0.5294 GB, free: 6.652 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002344/0.3863, allocations: 117.4 kB / 0.5295 GB, free: 6.578 MB / 398.1 MB Notification: Performance of SimCode: time 9.02e-07/0.3863, allocations: 0 / 0.5295 GB, free: 6.578 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03196/0.4182, allocations: 8.379 MB / 0.5377 GB, free: 2.996 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.292/8.71, allocations: 9.125 kB / 0.5377 GB, free: 2.988 MB / 398.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)