Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.TurbineGeneratorLine.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.TurbineGeneratorLine,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Generation_TurbineGeneratorLine",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Generation.TurbineGeneratorLine,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Generation_TurbineGeneratorLine",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.00149/0.00149, allocations: 108.1 kB / 17.06 MB, free: 5.793 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.002055/0.002055, allocations: 200 kB / 18.01 MB, free: 4.918 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.33/1.33, 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-master/package.mo): time 0.1747/0.1747, allocations: 38.03 MB / 329.9 MB, free: 8.766 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001421/0.001421, allocations: 67.84 kB / 457.7 MB, free: 7.352 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3245/0.326, allocations: 58.05 MB / 0.5036 GB, free: 7.391 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Generation.TurbineGeneratorLine): time 0.01051/0.3365, allocations: 9.559 MB / 0.513 GB, free: 0.7188 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.006078/0.3427, allocations: 3.551 MB / 0.5164 GB, free: 14.21 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000697/0.3434, allocations: 33.44 kB / 0.5165 GB, free: 14.2 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002814/0.3463, allocations: 1.106 MB / 0.5175 GB, free: 13.54 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002438/0.3487, allocations: 0.8951 MB / 0.5184 GB, free: 13.05 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001415/0.3501, allocations: 480.3 kB / 0.5189 GB, free: 12.82 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.002865/0.353, allocations: 1.809 MB / 0.5206 GB, free: 12.05 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001296/0.3543, allocations: 0.977 MB / 0.5216 GB, free: 11.62 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00141/0.3558, allocations: 0.7781 MB / 0.5224 GB, free: 11.27 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001574/0.3573, allocations: 0.896 MB / 0.5232 GB, free: 10.92 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002553/0.3576, allocations: 109.4 kB / 0.5233 GB, free: 10.91 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001421/0.359, allocations: 0.5342 MB / 0.5239 GB, free: 10.77 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008319/0.3599, allocations: 0.6387 MB / 0.5245 GB, free: 10.55 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001003/0.3609, allocations: 0.6988 MB / 0.5252 GB, free: 10.14 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003323/0.3642, allocations: 1.911 MB / 0.527 GB, free: 9.469 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.462e-06/0.3643, allocations: 1.281 kB / 0.527 GB, free: 9.469 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.675e-06/0.3643, allocations: 4.516 kB / 0.527 GB, free: 9.465 MB / 398.1 MB Notification: Performance of Transformations before backend: time 4.395e-05/0.3643, allocations: 0 / 0.527 GB, free: 9.465 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: 298 * Number of variables: 298 Notification: Performance of Generate backend data structure: time 0.004146/0.3685, allocations: 1.664 MB / 0.5287 GB, free: 8.398 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.409e-05/0.3686, allocations: 13.2 kB / 0.5287 GB, free: 8.395 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002716/0.3688, allocations: 178.1 kB / 0.5288 GB, free: 8.281 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001816/0.3707, allocations: 279.3 kB / 0.5291 GB, free: 8.195 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002539/0.3732, allocations: 0.9586 MB / 0.5301 GB, free: 7.656 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.505e-05/0.3733, allocations: 78.83 kB / 0.5301 GB, free: 7.621 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003889/0.3737, allocations: 133.7 kB / 0.5303 GB, free: 7.57 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002524/0.3762, allocations: 1.492 MB / 0.5317 GB, free: 6.652 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.304e-05/0.3763, allocations: 11.25 kB / 0.5317 GB, free: 6.645 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001105/0.3764, allocations: 41.95 kB / 0.5318 GB, free: 6.613 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003214/0.3767, allocations: 103.1 kB / 0.5319 GB, free: 6.582 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002286/0.379, allocations: 1.258 MB / 0.5331 GB, free: 5.973 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008907/0.388, allocations: 5.647 MB / 0.5386 GB, free: 1.414 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009332/0.3889, allocations: 0.5891 MB / 0.5392 GB, free: 1.094 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005834/0.3895, allocations: 401.2 kB / 0.5396 GB, free: 0.8945 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.489e-05/0.3896, allocations: 10.86 kB / 0.5396 GB, free: 0.8906 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.088e-05/0.3896, allocations: 38.34 kB / 0.5396 GB, free: 0.8477 MB / 398.1 MB Notification: Performance of pre-optimization done (n=67): time 3.196e-06/0.3897, allocations: 5.125 kB / 0.5396 GB, free: 0.8438 MB / 398.1 MB Notification: Performance of matching and sorting (n=74): time 0.008176/0.3978, allocations: 3.67 MB / 0.5432 GB, free: 14.47 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.308e-05/0.3979, allocations: 90.3 kB / 0.5433 GB, free: 14.38 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001023/0.399, allocations: 0.7357 MB / 0.544 GB, free: 13.95 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 6.588e-05/0.3991, allocations: 36.33 kB / 0.544 GB, free: 13.91 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000413/0.3995, allocations: 0.6065 MB / 0.5446 GB, free: 13.37 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002511/0.3997, allocations: 287.7 kB / 0.5449 GB, free: 13.12 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002967/0.4, allocations: 183.4 kB / 0.5451 GB, free: 13.01 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0002015/0.4003, allocations: 402.1 kB / 0.5455 GB, free: 12.63 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006622/0.4009, allocations: 392.4 kB / 0.5458 GB, free: 12.45 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008663/0.4018, allocations: 0.6612 MB / 0.5465 GB, free: 11.9 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001461/0.4033, allocations: 1.141 MB / 0.5476 GB, free: 10.64 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.833e-06/0.4033, allocations: 0 / 0.5476 GB, free: 10.64 MB / 414.1 MB Notification: Performance of matching and sorting (n=125) (initialization): time 0.003404/0.4067, allocations: 1.718 MB / 0.5493 GB, free: 8.906 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.632e-05/0.4067, allocations: 8 kB / 0.5493 GB, free: 8.898 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.002565/0.4093, allocations: 1.306 MB / 0.5506 GB, free: 7.582 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001935/0.4113, allocations: 0.5835 MB / 0.5511 GB, free: 6.988 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006728/0.412, allocations: 171.7 kB / 0.5513 GB, free: 6.82 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01247/0.4245, allocations: 10.37 MB / 0.5614 GB, free: 11.88 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001059/0.4255, allocations: 47.92 kB / 0.5615 GB, free: 11.83 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.347e-05/0.4256, allocations: 40 kB / 0.5615 GB, free: 11.79 MB / 430.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 39 * 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 (93): * Single equations (assignments): 89 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,4,100.0%), (2,8,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(3,16)} Notification: Performance of prepare postOptimizeDAE: time 0.0008003/0.4264, allocations: 393.4 kB / 0.5619 GB, free: 11.4 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001908/0.4266, allocations: 99.38 kB / 0.562 GB, free: 11.3 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0023/0.429, allocations: 1.236 MB / 0.5632 GB, free: 10.04 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.629e-06/0.429, allocations: 8 kB / 0.5632 GB, free: 10.03 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.876e-06/0.429, allocations: 4 kB / 0.5632 GB, free: 10.02 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.127e-06/0.429, allocations: 3.984 kB / 0.5632 GB, free: 10.02 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004564/0.4336, allocations: 2.408 MB / 0.5655 GB, free: 7.508 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.634e-06/0.4336, allocations: 4 kB / 0.5655 GB, free: 7.504 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004445/0.4341, allocations: 107.8 kB / 0.5656 GB, free: 7.398 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001072/0.4351, allocations: 372.1 kB / 0.566 GB, free: 7.02 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.73e-05/0.4352, allocations: 31.97 kB / 0.566 GB, free: 6.988 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007667/0.4429, allocations: 9.291 MB / 0.5751 GB, free: 13 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.485e-06/0.4429, allocations: 0 / 0.5751 GB, free: 13 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002674/0.4456, allocations: 1.682 MB / 0.5767 GB, free: 11.27 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000592/0.4462, allocations: 232.4 kB / 0.577 GB, free: 11.02 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001336/0.4464, allocations: 31.94 kB / 0.577 GB, free: 10.99 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004554/0.4468, allocations: 23.98 kB / 0.577 GB, free: 10.96 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001518/0.447, allocations: 68.47 kB / 0.5771 GB, free: 10.89 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.173e-05/0.4471, allocations: 24.03 kB / 0.5771 GB, free: 10.87 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0006875/0.4478, allocations: 0.5106 MB / 0.5776 GB, free: 10.36 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.4478, allocations: 0 / 0.5776 GB, free: 10.36 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001538/0.4493, allocations: 363.9 kB / 0.578 GB, free: 10.01 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * 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 (57): * Single equations (assignments): 51 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 5 systems {(2,10,100.0%), (1,3,100.0%), (1,3,100.0%), (1,1,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.003009/0.4523, allocations: 2.288 MB / 0.5802 GB, free: 7.648 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.002335/0.4547, allocations: 1.59 MB / 0.5817 GB, free: 6.008 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.837e-06/0.4547, allocations: 0 / 0.5817 GB, free: 6.008 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001507/0.4562, allocations: 1.091 MB / 0.5828 GB, free: 4.852 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001135/0.4573, allocations: 202.3 kB / 0.583 GB, free: 4.664 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01511/0.4725, allocations: 9.948 MB / 0.5927 GB, free: 10.29 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009347/0.4734, allocations: 1.254 MB / 0.5939 GB, free: 9 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.0006307/0.4741, allocations: 219.6 kB / 0.5942 GB, free: 8.781 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005356/0.4746, allocations: 451.2 kB / 0.5946 GB, free: 8.34 MB / 462.1 MB Notification: Performance of SimCode: time 1.132e-06/0.4746, allocations: 0 / 0.5946 GB, free: 8.34 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05756/0.5322, allocations: 25.01 MB / 0.619 GB, free: 15.58 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.41/13.94, allocations: 2.344 kB / 0.619 GB, free: 15.58 MB / 494.1 MB (rm -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.TurbineGeneratorLine.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.TurbineGeneratorLine.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.TurbineGeneratorLine.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.TurbineGeneratorLine.sim & python3 -m fmpy simulate --output-file PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.TurbineGeneratorLine_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_TurbineGeneratorLine.fmu > PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.TurbineGeneratorLine.pipe 2>&1)