Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.TurbineGenerator.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.AC3ph.Generation.TurbineGenerator,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Generation_TurbineGenerator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Generation.TurbineGenerator,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Generation_TurbineGenerator",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.001725/0.001725, 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.002068/0.002068, 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.355/1.355, 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-master/package.mo): time 0.1792/0.1792, allocations: 38.04 MB / 329.9 MB, free: 8.738 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001231/0.001231, allocations: 67.89 kB / 457.7 MB, free: 7.312 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3128/0.314, allocations: 58.05 MB / 0.5036 GB, free: 7.535 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Generation.TurbineGenerator): time 0.008431/0.3225, allocations: 7.51 MB / 0.511 GB, free: 2.301 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.004558/0.3271, allocations: 2.979 MB / 0.5139 GB, free: 208 kB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006702/0.3278, allocations: 26 kB / 0.5139 GB, free: 200 kB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001984/0.3298, allocations: 0.7346 MB / 0.5146 GB, free: 15.75 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00192/0.3317, allocations: 0.7075 MB / 0.5153 GB, free: 15.37 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001094/0.3328, allocations: 368.6 kB / 0.5157 GB, free: 15.2 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.001936/0.3348, allocations: 1.353 MB / 0.517 GB, free: 14.61 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001007/0.3358, allocations: 0.7187 MB / 0.5177 GB, free: 14.3 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001037/0.3369, allocations: 0.5624 MB / 0.5182 GB, free: 14.05 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001071/0.3379, allocations: 0.6271 MB / 0.5188 GB, free: 13.8 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001462/0.3381, allocations: 75.38 kB / 0.5189 GB, free: 13.8 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001053/0.3392, allocations: 478.8 kB / 0.5194 GB, free: 13.66 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004918/0.3397, allocations: 447.6 kB / 0.5198 GB, free: 13.51 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005851/0.3403, allocations: 0.5119 MB / 0.5203 GB, free: 13.21 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001978/0.3422, allocations: 1.424 MB / 0.5217 GB, free: 12.71 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.989e-06/0.3423, allocations: 1.156 kB / 0.5217 GB, free: 12.71 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.283e-06/0.3423, allocations: 0 / 0.5217 GB, free: 12.71 MB / 398.1 MB Notification: Performance of Transformations before backend: time 2.383e-05/0.3423, allocations: 0 / 0.5217 GB, free: 12.71 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 222 * Number of variables: 222 Notification: Performance of Generate backend data structure: time 0.002483/0.3448, allocations: 1.314 MB / 0.523 GB, free: 11.82 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.212e-05/0.3448, allocations: 13.48 kB / 0.523 GB, free: 11.82 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001808/0.345, allocations: 142 kB / 0.5231 GB, free: 11.73 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001243/0.3463, allocations: 215.4 kB / 0.5233 GB, free: 11.66 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001573/0.3479, allocations: 0.7445 MB / 0.5241 GB, free: 11.23 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.257e-05/0.3479, allocations: 67.61 kB / 0.5241 GB, free: 11.2 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002397/0.3482, allocations: 92.48 kB / 0.5242 GB, free: 11.17 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001777/0.35, allocations: 1.1 MB / 0.5253 GB, free: 10.68 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.335e-05/0.35, allocations: 15.02 kB / 0.5253 GB, free: 10.67 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.7e-05/0.3501, allocations: 31.06 kB / 0.5253 GB, free: 10.64 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000173/0.3503, allocations: 69.41 kB / 0.5254 GB, free: 10.64 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001447/0.3517, allocations: 0.8713 MB / 0.5262 GB, free: 10.36 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005812/0.3576, allocations: 3.984 MB / 0.5301 GB, free: 7.547 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006202/0.3582, allocations: 442.1 kB / 0.5306 GB, free: 7.254 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003632/0.3586, allocations: 273.2 kB / 0.5308 GB, free: 7.117 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.735e-05/0.3586, allocations: 6 kB / 0.5308 GB, free: 7.117 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.605e-05/0.3587, allocations: 40.69 kB / 0.5309 GB, free: 7.07 MB / 398.1 MB Notification: Performance of pre-optimization done (n=48): time 2.024e-06/0.3587, allocations: 0 / 0.5309 GB, free: 7.07 MB / 398.1 MB Notification: Performance of matching and sorting (n=51): time 0.003167/0.3618, allocations: 1.741 MB / 0.5326 GB, free: 5.988 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.031e-05/0.3619, allocations: 83.14 kB / 0.5326 GB, free: 5.895 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006692/0.3626, allocations: 0.5899 MB / 0.5332 GB, free: 5.543 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.027e-05/0.3626, allocations: 40.17 kB / 0.5333 GB, free: 5.5 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003002/0.3629, allocations: 482.1 kB / 0.5337 GB, free: 5.074 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001493/0.3631, allocations: 199.4 kB / 0.5339 GB, free: 4.902 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001993/0.3633, allocations: 137.6 kB / 0.534 GB, free: 4.82 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001522/0.3635, allocations: 380.7 kB / 0.5344 GB, free: 4.457 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003774/0.3638, allocations: 252.9 kB / 0.5346 GB, free: 4.336 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005277/0.3644, allocations: 476.5 kB / 0.5351 GB, free: 3.93 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009761/0.3654, allocations: 0.7759 MB / 0.5359 GB, free: 3.363 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.158e-06/0.3654, allocations: 1.719 kB / 0.5359 GB, free: 3.363 MB / 398.1 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.00198/0.3674, allocations: 1.121 MB / 0.537 GB, free: 2.707 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.119e-05/0.3674, allocations: 7.5 kB / 0.537 GB, free: 2.707 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.00135/0.3687, allocations: 0.7946 MB / 0.5377 GB, free: 2.246 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006948/0.3695, allocations: 224.4 kB / 0.5379 GB, free: 2.129 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005075/0.37, allocations: 152.5 kB / 0.5381 GB, free: 2.094 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00561/0.3756, allocations: 5.672 MB / 0.5436 GB, free: 12.95 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008368/0.3765, allocations: 33.69 kB / 0.5437 GB, free: 12.93 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.94e-05/0.3766, allocations: 36.73 kB / 0.5437 GB, free: 12.92 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 31 * Number of states: 0 () * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (80): * Single equations (assignments): 77 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,3,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,7)} Notification: Performance of prepare postOptimizeDAE: time 0.0006231/0.3772, allocations: 306.7 kB / 0.544 GB, free: 12.69 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001516/0.3774, allocations: 71.16 kB / 0.5441 GB, free: 12.65 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009699/0.3783, allocations: 0.6101 MB / 0.5447 GB, free: 12.3 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.111e-06/0.3783, allocations: 5.5 kB / 0.5447 GB, free: 12.3 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.625e-06/0.3784, allocations: 1.375 kB / 0.5447 GB, free: 12.3 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.366e-06/0.3784, allocations: 3.984 kB / 0.5447 GB, free: 12.29 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002783/0.3812, allocations: 1.483 MB / 0.5461 GB, free: 11.31 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.93e-06/0.3812, allocations: 1.656 kB / 0.5461 GB, free: 11.31 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000617/0.3818, allocations: 130.3 kB / 0.5462 GB, free: 11.28 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.039e-05/0.3818, allocations: 7.688 kB / 0.5462 GB, free: 11.28 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.304e-05/0.3819, allocations: 23.02 kB / 0.5463 GB, free: 11.26 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.301e-06/0.3819, allocations: 2.75 kB / 0.5463 GB, free: 11.26 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.266e-06/0.3819, allocations: 1.844 kB / 0.5463 GB, free: 11.26 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001267/0.3832, allocations: 0.9313 MB / 0.5472 GB, free: 10.7 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003762/0.3836, allocations: 189.3 kB / 0.5474 GB, free: 10.5 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.176e-05/0.3837, allocations: 23.98 kB / 0.5474 GB, free: 10.47 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003296/0.384, allocations: 19.98 kB / 0.5474 GB, free: 10.45 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.668e-05/0.3841, allocations: 32.39 kB / 0.5474 GB, free: 10.42 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.141e-05/0.3841, allocations: 20 kB / 0.5475 GB, free: 10.4 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.000506/0.3846, allocations: 415 kB / 0.5479 GB, free: 10 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.403e-06/0.3846, allocations: 0 / 0.5479 GB, free: 10 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001187/0.3858, allocations: 243.9 kB / 0.5481 GB, free: 9.766 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 8 (turboGrp.phi,turboGrp.w,generator.i_s[1],generator.i_s[2],generator.i_s[3],RLgen1.i[1],RLgen1.i[2],RLgen1.i[3]) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (54): * Single equations (assignments): 53 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.001687/0.3875, allocations: 1.513 MB / 0.5496 GB, free: 8.207 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001901/0.3895, allocations: 1.045 MB / 0.5506 GB, free: 7.125 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 5.35e-06/0.3895, allocations: 96 / 0.5506 GB, free: 7.125 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003891/0.3899, allocations: 266.2 kB / 0.5508 GB, free: 6.867 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001013/0.3909, allocations: 155.4 kB / 0.551 GB, free: 6.723 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009982/0.4009, allocations: 7.331 MB / 0.5581 GB, free: 15.03 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006638/0.4016, allocations: 1.086 MB / 0.5592 GB, free: 13.91 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0005053/0.4021, allocations: 185.9 kB / 0.5594 GB, free: 13.73 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00041/0.4025, allocations: 327.3 kB / 0.5597 GB, free: 13.41 MB / 430.1 MB Notification: Performance of SimCode: time 6.51e-07/0.4025, allocations: 0 / 0.5597 GB, free: 13.41 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06775/0.4703, allocations: 16.75 MB / 0.5761 GB, free: 12.88 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.9/13.37, allocations: 2.812 kB / 0.5761 GB, free: 12.88 MB / 446.1 MB (rm -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.TurbineGenerator.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.TurbineGenerator.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.TurbineGenerator.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.TurbineGenerator.sim & python3 -m fmpy simulate --output-file PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.TurbineGenerator_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 PowerSystems_latest_PowerSystems_Examples_AC3ph_Generation_TurbineGenerator.fmu > PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.TurbineGenerator.pipe 2>&1)