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.001424/0.001424, allocations: 112.8 kB / 17.06 MB, free: 5.969 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.001617/0.001617, allocations: 200 kB / 18.01 MB, free: 5.047 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.343/1.343, allocations: 222.9 MB / 241.7 MB, free: 15.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1803/0.1803, allocations: 38.04 MB / 329.9 MB, free: 8.66 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001265/0.001265, allocations: 63.91 kB / 457.7 MB, free: 7.305 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3231/0.3244, allocations: 58.06 MB / 0.5036 GB, free: 7.402 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Generation.TurbineGenerator): time 0.008028/0.3324, allocations: 7.521 MB / 0.511 GB, free: 2.156 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.004686/0.3372, allocations: 2.97 MB / 0.5139 GB, free: 68 kB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005932/0.3378, allocations: 33.66 kB / 0.5139 GB, free: 52 kB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002003/0.3398, allocations: 0.7266 MB / 0.5146 GB, free: 15.61 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001919/0.3418, allocations: 0.7067 MB / 0.5153 GB, free: 15.23 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001199/0.343, allocations: 374.1 kB / 0.5157 GB, free: 15.05 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.002629/0.3456, allocations: 1.358 MB / 0.517 GB, free: 14.46 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00126/0.3469, allocations: 0.7081 MB / 0.5177 GB, free: 14.16 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001235/0.3482, allocations: 0.5673 MB / 0.5182 GB, free: 13.91 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00119/0.3494, allocations: 0.6272 MB / 0.5188 GB, free: 13.66 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001527/0.3495, allocations: 74.75 kB / 0.5189 GB, free: 13.66 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00119/0.3507, allocations: 478.7 kB / 0.5194 GB, free: 13.53 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005741/0.3513, allocations: 448.2 kB / 0.5198 GB, free: 13.38 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007107/0.352, allocations: 0.5127 MB / 0.5203 GB, free: 13.07 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002151/0.3542, allocations: 1.428 MB / 0.5217 GB, free: 12.57 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.22e-06/0.3542, allocations: 0.75 kB / 0.5217 GB, free: 12.57 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.114e-06/0.3542, allocations: 0 / 0.5217 GB, free: 12.57 MB / 398.1 MB Notification: Performance of Transformations before backend: time 2.954e-05/0.3543, allocations: 0 / 0.5217 GB, free: 12.57 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.00273/0.357, allocations: 1.307 MB / 0.523 GB, free: 11.69 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.823e-05/0.3571, allocations: 13.84 kB / 0.523 GB, free: 11.68 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001949/0.3573, allocations: 142 kB / 0.5231 GB, free: 11.59 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001345/0.3586, allocations: 215.9 kB / 0.5233 GB, free: 11.52 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001739/0.3604, allocations: 0.7446 MB / 0.524 GB, free: 11.09 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.454e-05/0.3604, allocations: 63.09 kB / 0.5241 GB, free: 11.06 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002485/0.3607, allocations: 99.84 kB / 0.5242 GB, free: 11.03 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001908/0.3626, allocations: 1.092 MB / 0.5253 GB, free: 10.55 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.469e-05/0.3627, allocations: 7.391 kB / 0.5253 GB, free: 10.54 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.593e-05/0.3628, allocations: 35.39 kB / 0.5253 GB, free: 10.52 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001882/0.363, allocations: 69.06 kB / 0.5254 GB, free: 10.51 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001544/0.3645, allocations: 0.8723 MB / 0.5262 GB, free: 10.23 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005986/0.3705, allocations: 3.988 MB / 0.5301 GB, free: 7.504 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006893/0.3712, allocations: 429.3 kB / 0.5305 GB, free: 7.223 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003825/0.3716, allocations: 281.6 kB / 0.5308 GB, free: 7.078 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.883e-05/0.3717, allocations: 15.39 kB / 0.5308 GB, free: 7.07 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.746e-05/0.3717, allocations: 42.94 kB / 0.5309 GB, free: 7.02 MB / 398.1 MB Notification: Performance of pre-optimization done (n=48): time 3.206e-06/0.3718, allocations: 3.562 kB / 0.5309 GB, free: 7.02 MB / 398.1 MB Notification: Performance of matching and sorting (n=51): time 0.003411/0.3752, allocations: 1.735 MB / 0.5326 GB, free: 5.941 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.787e-05/0.3753, allocations: 82.05 kB / 0.5326 GB, free: 5.848 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006997/0.376, allocations: 0.59 MB / 0.5332 GB, free: 5.496 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.21e-05/0.376, allocations: 35.83 kB / 0.5332 GB, free: 5.457 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003088/0.3763, allocations: 478.6 kB / 0.5337 GB, free: 5.035 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001606/0.3765, allocations: 198.6 kB / 0.5339 GB, free: 4.863 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001995/0.3767, allocations: 139.1 kB / 0.534 GB, free: 4.781 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001552/0.3769, allocations: 380.1 kB / 0.5344 GB, free: 4.418 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003931/0.3773, allocations: 256.4 kB / 0.5346 GB, free: 4.293 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005458/0.3778, allocations: 477 kB / 0.5351 GB, free: 3.887 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001086/0.3789, allocations: 0.7783 MB / 0.5358 GB, free: 3.316 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.96e-06/0.3789, allocations: 2.719 kB / 0.5358 GB, free: 3.316 MB / 398.1 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.002052/0.381, allocations: 1.116 MB / 0.5369 GB, free: 2.664 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.172e-05/0.381, allocations: 7.969 kB / 0.5369 GB, free: 2.664 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.001404/0.3824, allocations: 0.7949 MB / 0.5377 GB, free: 2.203 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007683/0.3832, allocations: 224.3 kB / 0.5379 GB, free: 2.086 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005566/0.3838, allocations: 153.5 kB / 0.5381 GB, free: 2.051 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005693/0.3895, allocations: 5.672 MB / 0.5436 GB, free: 12.9 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006889/0.3902, allocations: 41.91 kB / 0.5437 GB, free: 12.88 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.269e-05/0.3903, allocations: 38.11 kB / 0.5437 GB, free: 12.87 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.0004936/0.3908, allocations: 301 kB / 0.544 GB, free: 12.64 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001266/0.3909, allocations: 75.3 kB / 0.5441 GB, free: 12.6 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009594/0.3919, allocations: 0.6064 MB / 0.5446 GB, free: 12.25 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.191e-06/0.3919, allocations: 6.906 kB / 0.5447 GB, free: 12.25 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.505e-06/0.3919, allocations: 4 kB / 0.5447 GB, free: 12.25 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.003e-06/0.3919, allocations: 3.984 kB / 0.5447 GB, free: 12.24 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002468/0.3944, allocations: 1.483 MB / 0.5461 GB, free: 11.26 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.85e-06/0.3944, allocations: 1.5 kB / 0.5461 GB, free: 11.26 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006495/0.3951, allocations: 121.9 kB / 0.5462 GB, free: 11.24 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.228e-06/0.3951, allocations: 7.594 kB / 0.5462 GB, free: 11.23 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.592e-05/0.3951, allocations: 18.39 kB / 0.5463 GB, free: 11.22 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.881e-06/0.3952, allocations: 11.66 kB / 0.5463 GB, free: 11.21 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.565e-06/0.3952, allocations: 1.312 kB / 0.5463 GB, free: 11.21 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001252/0.3964, allocations: 0.932 MB / 0.5472 GB, free: 10.65 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003357/0.3968, allocations: 191.6 kB / 0.5474 GB, free: 10.48 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001043/0.3969, allocations: 22.52 kB / 0.5474 GB, free: 10.46 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003442/0.3972, allocations: 20.2 kB / 0.5474 GB, free: 10.45 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.999e-05/0.3973, allocations: 28.06 kB / 0.5474 GB, free: 10.44 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.747e-05/0.3973, allocations: 19.3 kB / 0.5474 GB, free: 10.43 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0004931/0.3978, allocations: 418 kB / 0.5478 GB, free: 10.05 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3978, allocations: 0 / 0.5478 GB, free: 10.05 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0009646/0.3988, allocations: 235.9 kB / 0.5481 GB, free: 9.816 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.00167/0.4005, allocations: 1.523 MB / 0.5496 GB, free: 8.25 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001732/0.4022, allocations: 1.045 MB / 0.5506 GB, free: 7.168 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.336e-06/0.4023, allocations: 1.312 kB / 0.5506 GB, free: 7.168 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003622/0.4026, allocations: 262.3 kB / 0.5508 GB, free: 6.914 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009124/0.4036, allocations: 145.9 kB / 0.551 GB, free: 6.773 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01036/0.4139, allocations: 7.339 MB / 0.5581 GB, free: 15.07 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007347/0.4147, allocations: 1.082 MB / 0.5592 GB, free: 13.96 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0005975/0.4153, allocations: 193.9 kB / 0.5594 GB, free: 13.77 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004583/0.4158, allocations: 327.3 kB / 0.5597 GB, free: 13.45 MB / 430.1 MB Notification: Performance of SimCode: time 8.52e-07/0.4158, allocations: 0 / 0.5597 GB, free: 13.45 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04235/0.4582, allocations: 16.74 MB / 0.576 GB, free: 12.89 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.74/13.2, allocations: 0 / 0.576 GB, free: 12.89 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)