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.001308/0.001308, allocations: 113 kB / 17.07 MB, free: 6.016 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.001321/0.001321, allocations: 189.4 kB / 18 MB, free: 5.098 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.422/1.422, allocations: 222.9 MB / 241.7 MB, free: 15.2 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1912/0.1912, allocations: 38.04 MB / 329.9 MB, free: 8.711 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001962/0.001962, allocations: 67.91 kB / 457.7 MB, free: 7.344 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3233/0.3253, allocations: 58.05 MB / 0.5036 GB, free: 7.562 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Generation.TurbineGenerator): time 0.007492/0.3329, allocations: 7.511 MB / 0.511 GB, free: 2.324 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.004424/0.3373, allocations: 2.976 MB / 0.5139 GB, free: 236 kB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005641/0.3379, allocations: 28.97 kB / 0.5139 GB, free: 224 kB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00206/0.34, allocations: 0.7309 MB / 0.5146 GB, free: 15.78 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002199/0.3422, allocations: 0.6919 MB / 0.5153 GB, free: 15.4 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001127/0.3434, allocations: 382.3 kB / 0.5156 GB, free: 15.22 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.002093/0.3455, allocations: 1.344 MB / 0.517 GB, free: 14.64 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001096/0.3466, allocations: 0.7207 MB / 0.5177 GB, free: 14.33 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001115/0.3477, allocations: 0.5512 MB / 0.5182 GB, free: 14.08 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001275/0.349, allocations: 0.6268 MB / 0.5188 GB, free: 13.83 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001452/0.3492, allocations: 74.22 kB / 0.5189 GB, free: 13.83 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001164/0.3503, allocations: 479.8 kB / 0.5193 GB, free: 13.7 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005453/0.3509, allocations: 447.2 kB / 0.5198 GB, free: 13.55 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006504/0.3516, allocations: 0.5172 MB / 0.5203 GB, free: 13.24 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002037/0.3536, allocations: 1.423 MB / 0.5217 GB, free: 12.75 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.11e-06/0.3536, allocations: 1.188 kB / 0.5217 GB, free: 12.75 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.854e-06/0.3536, allocations: 0 / 0.5217 GB, free: 12.75 MB / 398.1 MB Notification: Performance of Transformations before backend: time 2.261e-05/0.3537, allocations: 0 / 0.5217 GB, free: 12.75 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.002634/0.3563, allocations: 1.307 MB / 0.5229 GB, free: 11.86 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.814e-05/0.3564, allocations: 13.97 kB / 0.523 GB, free: 11.86 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002074/0.3566, allocations: 141.8 kB / 0.5231 GB, free: 11.76 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001322/0.3579, allocations: 211.2 kB / 0.5233 GB, free: 11.7 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001613/0.3595, allocations: 0.7487 MB / 0.524 GB, free: 11.27 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.191e-05/0.3596, allocations: 68.08 kB / 0.5241 GB, free: 11.23 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002378/0.3599, allocations: 97.47 kB / 0.5242 GB, free: 11.2 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001888/0.3618, allocations: 1.091 MB / 0.5252 GB, free: 10.72 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.566e-05/0.3618, allocations: 10.36 kB / 0.5253 GB, free: 10.71 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.017e-05/0.3619, allocations: 40.08 kB / 0.5253 GB, free: 10.68 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001826/0.3621, allocations: 76.98 kB / 0.5254 GB, free: 10.66 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001514/0.3636, allocations: 0.8672 MB / 0.5262 GB, free: 10.39 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005914/0.3696, allocations: 3.988 MB / 0.5301 GB, free: 7.656 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000659/0.3702, allocations: 433.8 kB / 0.5305 GB, free: 7.367 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004075/0.3707, allocations: 276.9 kB / 0.5308 GB, free: 7.23 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.887e-05/0.3707, allocations: 6.188 kB / 0.5308 GB, free: 7.23 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.342e-05/0.3708, allocations: 45.09 kB / 0.5308 GB, free: 7.18 MB / 398.1 MB Notification: Performance of pre-optimization done (n=48): time 2.254e-06/0.3708, allocations: 0 / 0.5308 GB, free: 7.18 MB / 398.1 MB Notification: Performance of matching and sorting (n=51): time 0.003352/0.3741, allocations: 1.73 MB / 0.5325 GB, free: 6.109 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.582e-05/0.3742, allocations: 91.11 kB / 0.5326 GB, free: 6.008 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007794/0.375, allocations: 0.5941 MB / 0.5332 GB, free: 5.652 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.694e-05/0.375, allocations: 39.72 kB / 0.5332 GB, free: 5.609 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003713/0.3754, allocations: 474.5 kB / 0.5337 GB, free: 5.191 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001891/0.3756, allocations: 198.5 kB / 0.5339 GB, free: 5.02 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002269/0.3759, allocations: 137.8 kB / 0.534 GB, free: 4.938 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002031/0.3761, allocations: 376.5 kB / 0.5344 GB, free: 4.578 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004162/0.3765, allocations: 256.4 kB / 0.5346 GB, free: 4.453 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006/0.3771, allocations: 476.5 kB / 0.5351 GB, free: 4.047 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001119/0.3782, allocations: 0.7761 MB / 0.5358 GB, free: 3.48 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.789e-06/0.3782, allocations: 1.156 kB / 0.5358 GB, free: 3.48 MB / 398.1 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.002241/0.3805, allocations: 1.12 MB / 0.5369 GB, free: 2.824 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.035e-05/0.3805, allocations: 11.03 kB / 0.5369 GB, free: 2.824 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.001492/0.382, allocations: 0.7991 MB / 0.5377 GB, free: 2.359 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007628/0.3828, allocations: 216 kB / 0.5379 GB, free: 2.25 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005479/0.3834, allocations: 158.3 kB / 0.5381 GB, free: 2.211 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006599/0.39, allocations: 5.675 MB / 0.5436 GB, free: 13.06 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007553/0.3908, allocations: 41.78 kB / 0.5436 GB, free: 13.04 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.855e-05/0.3908, allocations: 28.94 kB / 0.5437 GB, free: 13.03 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.0005383/0.3914, allocations: 302 kB / 0.544 GB, free: 12.8 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001293/0.3915, allocations: 71.09 kB / 0.544 GB, free: 12.77 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001049/0.3926, allocations: 0.6147 MB / 0.5446 GB, free: 12.41 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.162e-06/0.3926, allocations: 5.5 kB / 0.5446 GB, free: 12.41 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.795e-06/0.3926, allocations: 5.375 kB / 0.5446 GB, free: 12.41 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.751e-06/0.3926, allocations: 0 / 0.5446 GB, free: 12.41 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002559/0.3952, allocations: 1.483 MB / 0.5461 GB, free: 11.43 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.198e-06/0.3952, allocations: 1.312 kB / 0.5461 GB, free: 11.43 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006178/0.3958, allocations: 129.6 kB / 0.5462 GB, free: 11.39 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.165e-05/0.3958, allocations: 8.094 kB / 0.5462 GB, free: 11.39 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.267e-05/0.3959, allocations: 18.08 kB / 0.5462 GB, free: 11.38 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.128e-05/0.3959, allocations: 4.188 kB / 0.5462 GB, free: 11.38 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.815e-06/0.3959, allocations: 5.125 kB / 0.5462 GB, free: 11.38 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001288/0.3972, allocations: 0.9318 MB / 0.5472 GB, free: 10.77 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003025/0.3975, allocations: 188.5 kB / 0.5473 GB, free: 10.56 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001002/0.3976, allocations: 16 kB / 0.5473 GB, free: 10.55 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003284/0.398, allocations: 32.25 kB / 0.5474 GB, free: 10.52 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.698e-05/0.398, allocations: 28.41 kB / 0.5474 GB, free: 10.49 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.694e-05/0.3981, allocations: 23.97 kB / 0.5474 GB, free: 10.46 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0005376/0.3986, allocations: 423 kB / 0.5478 GB, free: 10.06 MB / 414.1 MB Notification: Performance of sort global known variables: time 3.928e-06/0.3986, allocations: 0 / 0.5478 GB, free: 10.06 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0009285/0.3996, allocations: 235.9 kB / 0.5481 GB, free: 9.828 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.001864/0.4014, allocations: 1.519 MB / 0.5495 GB, free: 8.266 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001859/0.4033, allocations: 1.037 MB / 0.5506 GB, free: 7.191 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 5.5e-06/0.4033, allocations: 4 kB / 0.5506 GB, free: 7.188 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003983/0.4037, allocations: 263.6 kB / 0.5508 GB, free: 6.934 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008524/0.4046, allocations: 143.2 kB / 0.5509 GB, free: 6.793 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0113/0.4159, allocations: 7.334 MB / 0.5581 GB, free: 15.1 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008423/0.4168, allocations: 1.09 MB / 0.5592 GB, free: 13.98 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0005427/0.4173, allocations: 189.9 kB / 0.5594 GB, free: 13.79 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004968/0.4178, allocations: 331.3 kB / 0.5597 GB, free: 13.47 MB / 430.1 MB Notification: Performance of SimCode: time 8.01e-07/0.4178, allocations: 0 / 0.5597 GB, free: 13.47 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05297/0.4708, allocations: 16.73 MB / 0.576 GB, free: 12.91 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.49/13.96, allocations: 0 / 0.576 GB, free: 12.91 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)