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.001682/0.001682, allocations: 113.4 kB / 17.07 MB, free: 5.988 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.001989/0.001989, allocations: 195 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.433/1.433, allocations: 222.9 MB / 241.7 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1751/0.1751, allocations: 38.03 MB / 329.9 MB, free: 8.695 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001792/0.001792, allocations: 60.14 kB / 457.6 MB, free: 7.34 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3631/0.3649, allocations: 58.05 MB / 0.5036 GB, free: 7.562 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest): time 0.004933/0.3699, allocations: 3.689 MB / 0.5072 GB, free: 4.996 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002967/0.3729, allocations: 2.039 MB / 0.5092 GB, free: 3.578 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002713/0.3732, allocations: 11.09 kB / 0.5092 GB, free: 3.574 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009708/0.3742, allocations: 238 kB / 0.5094 GB, free: 3.43 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007273/0.3749, allocations: 282 kB / 0.5097 GB, free: 3.273 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007411/0.3757, allocations: 290.5 kB / 0.51 GB, free: 3.117 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005993/0.3763, allocations: 0.5316 MB / 0.5105 GB, free: 2.863 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004111/0.3767, allocations: 218.5 kB / 0.5107 GB, free: 2.773 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005111/0.3772, allocations: 230.8 kB / 0.5109 GB, free: 2.664 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003271/0.3775, allocations: 225 kB / 0.5111 GB, free: 2.555 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 7.455e-05/0.3776, allocations: 38 kB / 0.5112 GB, free: 2.555 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008021/0.3784, allocations: 394 kB / 0.5116 GB, free: 2.414 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001348/0.3786, allocations: 127.3 kB / 0.5117 GB, free: 2.352 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001673/0.3788, allocations: 192.5 kB / 0.5119 GB, free: 2.223 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008414/0.3796, allocations: 0.6356 MB / 0.5125 GB, free: 1.977 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.38e-06/0.3796, allocations: 0.75 kB / 0.5125 GB, free: 1.977 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.443e-06/0.3796, allocations: 0 / 0.5125 GB, free: 1.977 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.603e-06/0.3796, allocations: 0.9062 kB / 0.5125 GB, free: 1.977 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.001182/0.3808, allocations: 0.7598 MB / 0.5132 GB, free: 1.355 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.765e-05/0.3809, allocations: 13.91 kB / 0.5132 GB, free: 1.352 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.429e-05/0.381, allocations: 61.62 kB / 0.5133 GB, free: 1.297 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008958/0.3819, allocations: 108.6 kB / 0.5134 GB, free: 1.27 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005584/0.3824, allocations: 427.1 kB / 0.5138 GB, free: 0.9453 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.399e-05/0.3825, allocations: 18.67 kB / 0.5138 GB, free: 0.9375 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.113e-05/0.3825, allocations: 23.8 kB / 0.5138 GB, free: 0.9297 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008177/0.3833, allocations: 447.5 kB / 0.5143 GB, free: 0.7188 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.389e-05/0.3834, allocations: 2.141 kB / 0.5143 GB, free: 0.7188 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.649e-05/0.3834, allocations: 11 kB / 0.5143 GB, free: 0.7109 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.587e-05/0.3834, allocations: 18.38 kB / 0.5143 GB, free: 0.7109 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001022/0.3845, allocations: 0.5034 MB / 0.5148 GB, free: 0.5625 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002106/0.3866, allocations: 1.676 MB / 0.5164 GB, free: 15.36 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001055/0.3877, allocations: 375 kB / 0.5168 GB, free: 15.2 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003967/0.3881, allocations: 138.7 kB / 0.5169 GB, free: 15.14 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.272e-05/0.3881, allocations: 7.172 kB / 0.5169 GB, free: 15.14 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006028/0.3888, allocations: 287.2 kB / 0.5172 GB, free: 14.96 MB / 398.1 MB Notification: Performance of pre-optimization done (n=31): time 2.064e-06/0.3888, allocations: 0 / 0.5172 GB, free: 14.96 MB / 398.1 MB Notification: Performance of matching and sorting (n=31): time 0.001586/0.3904, allocations: 0.5316 MB / 0.5177 GB, free: 14.77 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001397/0.3905, allocations: 297.8 kB / 0.518 GB, free: 14.42 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004381/0.391, allocations: 329.2 kB / 0.5183 GB, free: 14.25 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.745e-05/0.391, allocations: 38.27 kB / 0.5184 GB, free: 14.21 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000157/0.3912, allocations: 195.8 kB / 0.5185 GB, free: 14.05 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.837e-05/0.3913, allocations: 112.5 kB / 0.5186 GB, free: 13.96 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000121/0.3914, allocations: 68.81 kB / 0.5187 GB, free: 13.92 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001359/0.3916, allocations: 347.6 kB / 0.519 GB, free: 13.59 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003984/0.392, allocations: 143.8 kB / 0.5192 GB, free: 13.55 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000497/0.3925, allocations: 272.4 kB / 0.5194 GB, free: 13.33 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008414/0.3933, allocations: 461.4 kB / 0.5199 GB, free: 13.02 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.248e-06/0.3933, allocations: 1.094 kB / 0.5199 GB, free: 13.02 MB / 398.1 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.001072/0.3944, allocations: 0.5144 MB / 0.5204 GB, free: 12.79 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.002e-05/0.3945, allocations: 42.02 kB / 0.5204 GB, free: 12.75 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.007e-06/0.3945, allocations: 4.5 kB / 0.5204 GB, free: 12.75 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.857e-05/0.3945, allocations: 5.781 kB / 0.5204 GB, free: 12.75 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003393/0.3949, allocations: 87.17 kB / 0.5205 GB, free: 12.74 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.43e-05/0.3949, allocations: 10.22 kB / 0.5205 GB, free: 12.74 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003216/0.3952, allocations: 50.56 kB / 0.5206 GB, free: 12.71 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.997e-05/0.3953, allocations: 20.41 kB / 0.5206 GB, free: 12.71 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.0002569/0.3955, allocations: 196.3 kB / 0.5208 GB, free: 12.55 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.482e-05/0.3956, allocations: 42.67 kB / 0.5208 GB, free: 12.53 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001094/0.3957, allocations: 48.83 kB / 0.5209 GB, free: 12.5 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.316e-06/0.3957, allocations: 5.344 kB / 0.5209 GB, free: 12.5 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.175e-05/0.3958, allocations: 7.625 kB / 0.5209 GB, free: 12.49 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.145e-06/0.3958, allocations: 3.781 kB / 0.5209 GB, free: 12.49 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001078/0.3969, allocations: 1.032 MB / 0.5219 GB, free: 11.62 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.879e-06/0.3969, allocations: 2.188 kB / 0.5219 GB, free: 11.62 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002612/0.3971, allocations: 63.58 kB / 0.522 GB, free: 11.61 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.362e-06/0.3972, allocations: 3.219 kB / 0.522 GB, free: 11.61 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.461e-05/0.3972, allocations: 8.094 kB / 0.522 GB, free: 11.61 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.299e-06/0.3972, allocations: 3.969 kB / 0.522 GB, free: 11.61 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.759e-06/0.3972, allocations: 5.75 kB / 0.522 GB, free: 11.61 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001038/0.3982, allocations: 474.7 kB / 0.5224 GB, free: 11.35 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001077/0.3984, allocations: 121.1 kB / 0.5225 GB, free: 11.23 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.007e-05/0.3984, allocations: 16.28 kB / 0.5226 GB, free: 11.22 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00023/0.3987, allocations: 25.72 kB / 0.5226 GB, free: 11.21 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000104/0.3988, allocations: 40.8 kB / 0.5226 GB, free: 11.2 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.472e-05/0.3988, allocations: 21.2 kB / 0.5226 GB, free: 11.19 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002801/0.3991, allocations: 233.2 kB / 0.5229 GB, free: 11.07 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.31e-07/0.3991, allocations: 0 / 0.5229 GB, free: 11.07 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004886/0.3996, allocations: 94.78 kB / 0.523 GB, free: 11.04 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.002226/0.4019, allocations: 1.347 MB / 0.5243 GB, free: 10.14 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.000989/0.4029, allocations: 430.1 kB / 0.5247 GB, free: 9.957 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.567e-06/0.4029, allocations: 0 / 0.5247 GB, free: 9.957 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000473/0.4034, allocations: 201.3 kB / 0.5249 GB, free: 9.891 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000537/0.4039, allocations: 71.8 kB / 0.5249 GB, free: 9.863 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006231/0.4102, allocations: 3.689 MB / 0.5285 GB, free: 7.441 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004301/0.4106, allocations: 0.8024 MB / 0.5293 GB, free: 6.734 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0003367/0.411, allocations: 91.03 kB / 0.5294 GB, free: 6.715 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002129/0.4112, allocations: 116 kB / 0.5295 GB, free: 6.641 MB / 398.1 MB Notification: Performance of SimCode: time 1.263e-06/0.4112, allocations: 1.438 kB / 0.5295 GB, free: 6.641 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02936/0.4406, allocations: 8.376 MB / 0.5377 GB, free: 2.984 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.987/8.427, allocations: 7.625 kB / 0.5377 GB, free: 2.98 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 & python3 -m fmpy simulate --output-file PowerSystems_PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest_res.csv --start-time 0 --stop-time 86400 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 34.56 PowerSystems_PowerSystems_Examples_PowerWorld_Test_WindFarmGridTest.fmu > PowerSystems_PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest.pipe 2>&1)