Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_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/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.TurbineGeneratorLine,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Generation_TurbineGeneratorLine",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Generation.TurbineGeneratorLine,fileNamePrefix="PowerSystems_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.001301/0.001301, 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.001205/0.001205, 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.435/1.435, allocations: 222.9 MB / 241.7 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1917/0.1917, allocations: 38.03 MB / 329.9 MB, free: 8.703 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002596/0.002596, allocations: 63.91 kB / 457.7 MB, free: 7.328 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4099/0.4125, allocations: 58.06 MB / 0.5036 GB, free: 7.484 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Generation.TurbineGeneratorLine): time 0.009933/0.4225, allocations: 9.558 MB / 0.513 GB, free: 0.8125 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.006742/0.4292, allocations: 3.553 MB / 0.5164 GB, free: 14.31 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007949/0.4301, allocations: 33.84 kB / 0.5165 GB, free: 14.3 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003253/0.4334, allocations: 1.101 MB / 0.5175 GB, free: 13.64 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003392/0.4368, allocations: 0.8845 MB / 0.5184 GB, free: 13.15 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001942/0.4388, allocations: 483.7 kB / 0.5189 GB, free: 12.92 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.004089/0.4429, allocations: 1.807 MB / 0.5206 GB, free: 12.15 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001635/0.4445, allocations: 0.9764 MB / 0.5216 GB, free: 11.72 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001929/0.4465, allocations: 0.7621 MB / 0.5223 GB, free: 11.38 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001782/0.4483, allocations: 0.8988 MB / 0.5232 GB, free: 11.02 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000239/0.4485, allocations: 106 kB / 0.5233 GB, free: 11.02 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001588/0.4501, allocations: 0.5338 MB / 0.5238 GB, free: 10.88 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009291/0.4511, allocations: 0.6396 MB / 0.5244 GB, free: 10.66 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001193/0.4523, allocations: 0.7027 MB / 0.5251 GB, free: 10.25 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003529/0.4558, allocations: 1.903 MB / 0.527 GB, free: 9.582 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.204e-06/0.4559, allocations: 9.031 kB / 0.527 GB, free: 9.574 MB / 398.1 MB Notification: Performance of FrontEnd: time 3.025e-06/0.4559, allocations: 0 / 0.527 GB, free: 9.574 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.179e-05/0.4559, allocations: 0 / 0.527 GB, free: 9.574 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.004344/0.4603, allocations: 1.664 MB / 0.5286 GB, free: 8.508 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.655e-05/0.4603, allocations: 12.86 kB / 0.5286 GB, free: 8.504 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002863/0.4606, allocations: 186.8 kB / 0.5288 GB, free: 8.383 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00187/0.4625, allocations: 283 kB / 0.5291 GB, free: 8.293 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002664/0.4652, allocations: 0.9524 MB / 0.53 GB, free: 7.688 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001047/0.4653, allocations: 81.69 kB / 0.5301 GB, free: 7.648 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004784/0.4658, allocations: 136 kB / 0.5302 GB, free: 7.598 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00296/0.4688, allocations: 1.496 MB / 0.5317 GB, free: 6.676 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.203e-05/0.4688, allocations: 2.531 kB / 0.5317 GB, free: 6.676 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001193/0.469, allocations: 50.47 kB / 0.5317 GB, free: 6.637 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003188/0.4693, allocations: 98.88 kB / 0.5318 GB, free: 6.609 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002382/0.4717, allocations: 1.258 MB / 0.5331 GB, free: 6 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009769/0.4815, allocations: 5.632 MB / 0.5386 GB, free: 1.457 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001053/0.4826, allocations: 0.5969 MB / 0.5391 GB, free: 1.129 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006472/0.4832, allocations: 408.1 kB / 0.5395 GB, free: 0.9258 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.284e-05/0.4833, allocations: 11.33 kB / 0.5395 GB, free: 0.9219 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.474e-05/0.4834, allocations: 42.34 kB / 0.5396 GB, free: 0.875 MB / 398.1 MB Notification: Performance of pre-optimization done (n=67): time 2.695e-06/0.4834, allocations: 4 kB / 0.5396 GB, free: 0.8711 MB / 398.1 MB Notification: Performance of matching and sorting (n=74): time 0.008973/0.4924, allocations: 3.667 MB / 0.5432 GB, free: 14.51 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.02e-05/0.4925, allocations: 90 kB / 0.5433 GB, free: 14.41 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001182/0.4937, allocations: 0.7285 MB / 0.544 GB, free: 13.99 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001136/0.4938, allocations: 44.58 kB / 0.544 GB, free: 13.95 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005375/0.4943, allocations: 0.6067 MB / 0.5446 GB, free: 13.4 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003383/0.4947, allocations: 279.3 kB / 0.5449 GB, free: 13.16 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003063/0.495, allocations: 182.5 kB / 0.545 GB, free: 13.05 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0002472/0.4953, allocations: 399.6 kB / 0.5454 GB, free: 12.68 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006845/0.4959, allocations: 395.3 kB / 0.5458 GB, free: 12.49 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009864/0.4969, allocations: 0.6589 MB / 0.5464 GB, free: 11.92 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001751/0.4987, allocations: 1.144 MB / 0.5476 GB, free: 10.65 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.125e-06/0.4987, allocations: 4 kB / 0.5476 GB, free: 10.65 MB / 414.1 MB Notification: Performance of matching and sorting (n=125) (initialization): time 0.00395/0.5027, allocations: 1.714 MB / 0.5492 GB, free: 8.914 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.734e-05/0.5027, allocations: 8 kB / 0.5492 GB, free: 8.906 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.002847/0.5056, allocations: 1.31 MB / 0.5505 GB, free: 7.586 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002047/0.5077, allocations: 0.5791 MB / 0.5511 GB, free: 6.996 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006913/0.5084, allocations: 175.7 kB / 0.5513 GB, free: 6.824 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01431/0.5227, allocations: 10.36 MB / 0.5614 GB, free: 11.88 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001135/0.5239, allocations: 51.92 kB / 0.5614 GB, free: 11.83 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001151/0.524, allocations: 47.98 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.000849/0.5249, allocations: 381.4 kB / 0.5618 GB, free: 11.4 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002433/0.5251, allocations: 95.39 kB / 0.5619 GB, free: 11.31 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002697/0.5278, allocations: 1.244 MB / 0.5631 GB, free: 10.04 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.671e-05/0.5279, allocations: 8 kB / 0.5631 GB, free: 10.03 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.077e-06/0.5279, allocations: 4 kB / 0.5632 GB, free: 10.02 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.298e-05/0.5279, allocations: 3.984 kB / 0.5632 GB, free: 10.02 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004899/0.5328, allocations: 2.408 MB / 0.5655 GB, free: 7.508 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.454e-06/0.5328, allocations: 4.188 kB / 0.5655 GB, free: 7.504 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004904/0.5333, allocations: 107.9 kB / 0.5656 GB, free: 7.398 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001197/0.5346, allocations: 380 kB / 0.566 GB, free: 7.012 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.951e-05/0.5346, allocations: 27.98 kB / 0.566 GB, free: 6.984 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009598/0.5442, allocations: 9.295 MB / 0.5751 GB, free: 12.99 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.884e-06/0.5443, allocations: 7.969 kB / 0.5751 GB, free: 12.98 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003229/0.5475, allocations: 1.667 MB / 0.5767 GB, free: 11.27 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005852/0.5481, allocations: 240.3 kB / 0.5769 GB, free: 11.01 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001574/0.5483, allocations: 27.95 kB / 0.577 GB, free: 10.98 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004901/0.5488, allocations: 27.97 kB / 0.577 GB, free: 10.96 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000168/0.549, allocations: 64.42 kB / 0.5771 GB, free: 10.89 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.459e-05/0.5491, allocations: 23.98 kB / 0.5771 GB, free: 10.87 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0007685/0.5498, allocations: 0.5029 MB / 0.5776 GB, free: 10.37 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.5498, allocations: 0 / 0.5776 GB, free: 10.37 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001652/0.5515, allocations: 363.9 kB / 0.5779 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.00364/0.5551, allocations: 2.284 MB / 0.5802 GB, free: 7.656 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.002934/0.5581, allocations: 1.593 MB / 0.5817 GB, free: 6.012 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 8.426e-06/0.5581, allocations: 4 kB / 0.5817 GB, free: 6.008 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001795/0.5599, allocations: 1.092 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.001355/0.5613, allocations: 206.7 kB / 0.583 GB, free: 4.66 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01853/0.5799, allocations: 9.952 MB / 0.5927 GB, free: 10.28 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001294/0.5812, allocations: 1.251 MB / 0.5939 GB, free: 8.996 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.0007017/0.5819, allocations: 215.6 kB / 0.5941 GB, free: 8.781 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006238/0.5826, allocations: 439.3 kB / 0.5945 GB, free: 8.352 MB / 462.1 MB Notification: Performance of SimCode: time 9.12e-07/0.5826, allocations: 4 kB / 0.5945 GB, free: 8.348 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09545/0.678, allocations: 25 MB / 0.619 GB, free: 15.55 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.01/14.69, allocations: 8 kB / 0.619 GB, free: 15.54 MB / 494.1 MB (rm -f PowerSystems_PowerSystems.Examples.AC3ph.Generation.TurbineGeneratorLine.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC3ph.Generation.TurbineGeneratorLine.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC3ph.Generation.TurbineGeneratorLine.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC3ph.Generation.TurbineGeneratorLine.sim & python3 -m fmpy simulate --output-file PowerSystems_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_PowerSystems_Examples_AC3ph_Generation_TurbineGeneratorLine.fmu > PowerSystems_PowerSystems.Examples.AC3ph.Generation.TurbineGeneratorLine.pipe 2>&1)