Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_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/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.AC3ph.Generation.TurbineGenerator,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Generation_TurbineGenerator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Generation.TurbineGenerator,fileNamePrefix="PowerSystems_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.001704/0.001704, allocations: 109.3 kB / 17.06 MB, free: 5.992 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.001914/0.001914, allocations: 200 kB / 18.01 MB, free: 5.066 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.521/1.521, allocations: 222.9 MB / 241.7 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.2239/0.2239, allocations: 38.04 MB / 329.9 MB, free: 8.676 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001482/0.001483, allocations: 63.91 kB / 457.7 MB, free: 7.312 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3978/0.3993, allocations: 58.05 MB / 0.5036 GB, free: 7.465 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Generation.TurbineGenerator): time 0.00894/0.4082, allocations: 7.516 MB / 0.511 GB, free: 2.227 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.005684/0.414, allocations: 2.968 MB / 0.5139 GB, free: 140 kB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009899/0.415, allocations: 25.62 kB / 0.5139 GB, free: 132 kB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002527/0.4176, allocations: 0.7327 MB / 0.5146 GB, free: 15.69 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002644/0.4203, allocations: 0.7108 MB / 0.5153 GB, free: 15.3 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001427/0.4217, allocations: 369 kB / 0.5157 GB, free: 15.12 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.002927/0.4247, allocations: 1.363 MB / 0.517 GB, free: 14.53 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001421/0.4261, allocations: 0.7075 MB / 0.5177 GB, free: 14.23 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001522/0.4277, allocations: 0.5675 MB / 0.5182 GB, free: 13.98 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001632/0.4293, allocations: 0.6254 MB / 0.5188 GB, free: 13.73 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002479/0.4296, allocations: 75.22 kB / 0.5189 GB, free: 13.73 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001495/0.4311, allocations: 475.3 kB / 0.5194 GB, free: 13.6 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007011/0.4318, allocations: 451.8 kB / 0.5198 GB, free: 13.45 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009551/0.4328, allocations: 0.508 MB / 0.5203 GB, free: 13.14 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002903/0.4357, allocations: 1.428 MB / 0.5217 GB, free: 12.65 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.532e-06/0.4358, allocations: 4 kB / 0.5217 GB, free: 12.64 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.875e-06/0.4358, allocations: 0.6094 kB / 0.5217 GB, free: 12.64 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.282e-05/0.4358, allocations: 1.438 kB / 0.5217 GB, free: 12.64 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.003433/0.4393, allocations: 1.307 MB / 0.523 GB, free: 11.76 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.651e-05/0.4393, allocations: 13.45 kB / 0.523 GB, free: 11.75 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002546/0.4396, allocations: 136.8 kB / 0.5231 GB, free: 11.66 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001434/0.441, allocations: 215.6 kB / 0.5233 GB, free: 11.6 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001967/0.443, allocations: 0.7457 MB / 0.524 GB, free: 11.17 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.081e-05/0.4431, allocations: 70.72 kB / 0.5241 GB, free: 11.13 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000328/0.4435, allocations: 92.92 kB / 0.5242 GB, free: 11.1 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002206/0.4457, allocations: 1.1 MB / 0.5253 GB, free: 10.61 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.121e-05/0.4458, allocations: 6.203 kB / 0.5253 GB, free: 10.61 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.023e-05/0.4459, allocations: 31.47 kB / 0.5253 GB, free: 10.59 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002444/0.4461, allocations: 73.55 kB / 0.5254 GB, free: 10.57 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001953/0.4481, allocations: 0.8711 MB / 0.5262 GB, free: 10.3 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007475/0.4556, allocations: 3.988 MB / 0.5301 GB, free: 7.531 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007823/0.4564, allocations: 433.3 kB / 0.5305 GB, free: 7.246 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004349/0.4569, allocations: 276.6 kB / 0.5308 GB, free: 7.105 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.275e-05/0.4569, allocations: 9.641 kB / 0.5308 GB, free: 7.102 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.69e-05/0.457, allocations: 41.28 kB / 0.5309 GB, free: 7.055 MB / 398.1 MB Notification: Performance of pre-optimization done (n=48): time 2.855e-06/0.457, allocations: 3.938 kB / 0.5309 GB, free: 7.051 MB / 398.1 MB Notification: Performance of matching and sorting (n=51): time 0.004118/0.4611, allocations: 1.737 MB / 0.5326 GB, free: 5.973 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.763e-05/0.4612, allocations: 87.48 kB / 0.5326 GB, free: 5.875 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001045/0.4623, allocations: 0.5939 MB / 0.5332 GB, free: 5.52 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 7.619e-05/0.4624, allocations: 35.95 kB / 0.5332 GB, free: 5.48 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004018/0.4628, allocations: 474.2 kB / 0.5337 GB, free: 5.062 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002253/0.463, allocations: 199 kB / 0.5339 GB, free: 4.891 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002351/0.4633, allocations: 138.5 kB / 0.534 GB, free: 4.809 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002061/0.4635, allocations: 380.9 kB / 0.5344 GB, free: 4.445 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004603/0.464, allocations: 251.2 kB / 0.5346 GB, free: 4.324 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006246/0.4646, allocations: 477.6 kB / 0.5351 GB, free: 3.918 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001259/0.4659, allocations: 0.7747 MB / 0.5358 GB, free: 3.352 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.159e-05/0.4659, allocations: 2.75 kB / 0.5358 GB, free: 3.352 MB / 398.1 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.00253/0.4684, allocations: 1.115 MB / 0.5369 GB, free: 2.699 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.483e-05/0.4685, allocations: 11.62 kB / 0.5369 GB, free: 2.695 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.001584/0.4701, allocations: 0.7957 MB / 0.5377 GB, free: 2.234 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008247/0.4709, allocations: 223.9 kB / 0.5379 GB, free: 2.117 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005923/0.4715, allocations: 149.9 kB / 0.5381 GB, free: 2.086 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006607/0.4781, allocations: 5.684 MB / 0.5436 GB, free: 12.93 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000792/0.479, allocations: 33.84 kB / 0.5437 GB, free: 12.91 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001052/0.4791, allocations: 32.5 kB / 0.5437 GB, free: 12.9 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.000665/0.4798, allocations: 306.5 kB / 0.544 GB, free: 12.67 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000213/0.48, allocations: 74.84 kB / 0.5441 GB, free: 12.63 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001229/0.4812, allocations: 0.6064 MB / 0.5446 GB, free: 12.28 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.246e-06/0.4813, allocations: 5.969 kB / 0.5447 GB, free: 12.28 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.747e-06/0.4813, allocations: 1.562 kB / 0.5447 GB, free: 12.28 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.576e-06/0.4813, allocations: 7.984 kB / 0.5447 GB, free: 12.27 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003107/0.4844, allocations: 1.483 MB / 0.5461 GB, free: 11.29 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.771e-06/0.4844, allocations: 1.219 kB / 0.5461 GB, free: 11.29 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006434/0.4851, allocations: 126 kB / 0.5462 GB, free: 11.27 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.515e-05/0.4851, allocations: 11.89 kB / 0.5462 GB, free: 11.26 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.263e-05/0.4852, allocations: 14.19 kB / 0.5463 GB, free: 11.25 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.484e-06/0.4852, allocations: 7.25 kB / 0.5463 GB, free: 11.25 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.208e-06/0.4852, allocations: 2.094 kB / 0.5463 GB, free: 11.25 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001527/0.4867, allocations: 0.9346 MB / 0.5472 GB, free: 10.68 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003891/0.4871, allocations: 188.3 kB / 0.5474 GB, free: 10.51 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001646/0.4873, allocations: 18.3 kB / 0.5474 GB, free: 10.5 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004007/0.4877, allocations: 20.55 kB / 0.5474 GB, free: 10.49 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.883e-05/0.4878, allocations: 43.98 kB / 0.5474 GB, free: 10.45 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.606e-05/0.4879, allocations: 16 kB / 0.5474 GB, free: 10.43 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0005864/0.4884, allocations: 423 kB / 0.5479 GB, free: 10.03 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4885, allocations: 3.938 kB / 0.5479 GB, free: 10.02 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001046/0.4895, allocations: 231.9 kB / 0.5481 GB, free: 9.797 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.00187/0.4914, allocations: 1.523 MB / 0.5496 GB, free: 8.23 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001889/0.4933, allocations: 1.033 MB / 0.5506 GB, free: 7.16 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.769e-06/0.4933, allocations: 0 / 0.5506 GB, free: 7.16 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004006/0.4937, allocations: 267.6 kB / 0.5508 GB, free: 6.902 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001038/0.4948, allocations: 148.2 kB / 0.551 GB, free: 6.762 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01145/0.5062, allocations: 7.342 MB / 0.5581 GB, free: 15.06 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000844/0.5071, allocations: 1.079 MB / 0.5592 GB, free: 13.95 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0005655/0.5077, allocations: 189.9 kB / 0.5594 GB, free: 13.77 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004683/0.5082, allocations: 327.3 kB / 0.5597 GB, free: 13.45 MB / 430.1 MB Notification: Performance of SimCode: time 9.12e-07/0.5082, allocations: 0 / 0.5597 GB, free: 13.45 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.008/2.517, allocations: 16.73 MB / 0.576 GB, free: 12.89 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 22.01/24.52, allocations: 8.047 kB / 0.576 GB, free: 12.88 MB / 446.1 MB (rm -f PowerSystems_PowerSystems.Examples.AC3ph.Generation.TurbineGenerator.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC3ph.Generation.TurbineGenerator.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC3ph.Generation.TurbineGenerator.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC3ph.Generation.TurbineGenerator.sim & python3 -m fmpy simulate --output-file PowerSystems_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_PowerSystems_Examples_AC3ph_Generation_TurbineGenerator.fmu > PowerSystems_PowerSystems.Examples.AC3ph.Generation.TurbineGenerator.pipe 2>&1)