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.00142/0.00142, allocations: 113.8 kB / 17.06 MB, free: 5.953 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.001668/0.001668, allocations: 198.8 kB / 18 MB, free: 5.043 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.382/1.382, allocations: 222.9 MB / 241.7 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1809/0.1809, allocations: 38.03 MB / 329.9 MB, free: 8.684 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001223/0.001223, allocations: 67.91 kB / 457.7 MB, free: 7.309 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4025/0.4037, allocations: 58.05 MB / 0.5036 GB, free: 7.52 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Generation.TurbineGeneratorLine): time 0.01075/0.4145, allocations: 9.556 MB / 0.513 GB, free: 0.8438 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.007586/0.4221, allocations: 3.554 MB / 0.5164 GB, free: 14.34 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001542/0.4237, allocations: 33.47 kB / 0.5165 GB, free: 14.33 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003628/0.4274, allocations: 1.108 MB / 0.5175 GB, free: 13.66 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003175/0.4306, allocations: 0.8924 MB / 0.5184 GB, free: 13.17 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001732/0.4324, allocations: 484.6 kB / 0.5189 GB, free: 12.94 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.003397/0.4358, allocations: 1.805 MB / 0.5206 GB, free: 12.17 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001825/0.4376, allocations: 0.985 MB / 0.5216 GB, free: 11.73 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001841/0.4395, allocations: 0.7755 MB / 0.5224 GB, free: 11.38 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001723/0.4412, allocations: 0.8887 MB / 0.5232 GB, free: 11.04 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003436/0.4416, allocations: 109.6 kB / 0.5233 GB, free: 11.04 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001341/0.4429, allocations: 0.5374 MB / 0.5239 GB, free: 10.89 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007429/0.4437, allocations: 0.6391 MB / 0.5245 GB, free: 10.67 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009265/0.4446, allocations: 0.7028 MB / 0.5252 GB, free: 10.26 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002969/0.4476, allocations: 1.908 MB / 0.527 GB, free: 9.59 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.843e-06/0.4476, allocations: 3.938 kB / 0.527 GB, free: 9.586 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.304e-06/0.4476, allocations: 0.9688 kB / 0.527 GB, free: 9.586 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.033e-05/0.4477, allocations: 0 / 0.527 GB, free: 9.586 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.00423/0.4519, allocations: 1.663 MB / 0.5287 GB, free: 8.52 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.852e-05/0.452, allocations: 14.78 kB / 0.5287 GB, free: 8.516 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002785/0.4523, allocations: 181.8 kB / 0.5288 GB, free: 8.398 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001812/0.4541, allocations: 274.5 kB / 0.5291 GB, free: 8.316 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002334/0.4565, allocations: 0.9633 MB / 0.53 GB, free: 7.695 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.116e-05/0.4566, allocations: 78.2 kB / 0.5301 GB, free: 7.66 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003747/0.4569, allocations: 138.7 kB / 0.5302 GB, free: 7.605 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002485/0.4594, allocations: 1.492 MB / 0.5317 GB, free: 6.688 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.064e-05/0.4595, allocations: 3.219 kB / 0.5317 GB, free: 6.688 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001127/0.4596, allocations: 45.52 kB / 0.5318 GB, free: 6.652 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003254/0.4599, allocations: 99.62 kB / 0.5318 GB, free: 6.625 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002237/0.4622, allocations: 1.259 MB / 0.5331 GB, free: 6.016 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008602/0.4708, allocations: 5.638 MB / 0.5386 GB, free: 1.465 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009316/0.4718, allocations: 0.5895 MB / 0.5392 GB, free: 1.145 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005839/0.4724, allocations: 404.3 kB / 0.5395 GB, free: 0.9414 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.119e-05/0.4724, allocations: 15.45 kB / 0.5396 GB, free: 0.9336 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.142e-05/0.4725, allocations: 38.44 kB / 0.5396 GB, free: 0.8906 MB / 398.1 MB Notification: Performance of pre-optimization done (n=67): time 3.216e-06/0.4725, allocations: 0 / 0.5396 GB, free: 0.8906 MB / 398.1 MB Notification: Performance of matching and sorting (n=74): time 0.007949/0.4804, allocations: 3.68 MB / 0.5432 GB, free: 14.52 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.92e-05/0.4805, allocations: 85.52 kB / 0.5433 GB, free: 14.42 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001087/0.4816, allocations: 0.7318 MB / 0.544 GB, free: 14 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 7.687e-05/0.4817, allocations: 36.95 kB / 0.544 GB, free: 13.96 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004673/0.4822, allocations: 0.6021 MB / 0.5446 GB, free: 13.42 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003058/0.4825, allocations: 292 kB / 0.5449 GB, free: 13.17 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002829/0.4828, allocations: 182.4 kB / 0.5451 GB, free: 13.06 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.000199/0.483, allocations: 403.5 kB / 0.5454 GB, free: 12.68 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006099/0.4836, allocations: 395.7 kB / 0.5458 GB, free: 12.49 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007714/0.4844, allocations: 0.6621 MB / 0.5465 GB, free: 11.84 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001432/0.4859, allocations: 1.144 MB / 0.5476 GB, free: 10.58 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.859e-06/0.4859, allocations: 0 / 0.5476 GB, free: 10.58 MB / 414.1 MB Notification: Performance of matching and sorting (n=125) (initialization): time 0.00334/0.4892, allocations: 1.714 MB / 0.5493 GB, free: 8.844 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.443e-05/0.4893, allocations: 12.03 kB / 0.5493 GB, free: 8.832 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.002582/0.4918, allocations: 1.305 MB / 0.5505 GB, free: 7.516 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001853/0.4937, allocations: 0.5752 MB / 0.5511 GB, free: 6.93 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006571/0.4944, allocations: 175.7 kB / 0.5513 GB, free: 6.758 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01206/0.5065, allocations: 10.37 MB / 0.5614 GB, free: 11.81 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009581/0.5075, allocations: 43.92 kB / 0.5614 GB, free: 11.77 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.684e-05/0.5075, allocations: 40 kB / 0.5615 GB, free: 11.73 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.0007139/0.5083, allocations: 389.4 kB / 0.5619 GB, free: 11.34 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000187/0.5085, allocations: 99.38 kB / 0.5619 GB, free: 11.24 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002266/0.5107, allocations: 1.244 MB / 0.5632 GB, free: 9.969 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.157e-06/0.5108, allocations: 8.062 kB / 0.5632 GB, free: 9.961 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.572e-05/0.5108, allocations: 8 kB / 0.5632 GB, free: 9.953 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.007e-06/0.5108, allocations: 3.984 kB / 0.5632 GB, free: 9.949 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004376/0.5152, allocations: 2.405 MB / 0.5655 GB, free: 7.441 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.113e-06/0.5152, allocations: 4 kB / 0.5655 GB, free: 7.438 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004784/0.5157, allocations: 108.1 kB / 0.5656 GB, free: 7.332 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001088/0.5168, allocations: 371.8 kB / 0.566 GB, free: 6.953 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.78e-05/0.5169, allocations: 31.97 kB / 0.566 GB, free: 6.922 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008025/0.5249, allocations: 9.291 MB / 0.5751 GB, free: 12.93 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.004e-05/0.5249, allocations: 0 / 0.5751 GB, free: 12.93 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00283/0.5278, allocations: 1.683 MB / 0.5767 GB, free: 11.2 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005418/0.5283, allocations: 236.3 kB / 0.577 GB, free: 10.95 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001473/0.5285, allocations: 31.94 kB / 0.577 GB, free: 10.92 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000495/0.529, allocations: 23.98 kB / 0.577 GB, free: 10.89 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001459/0.5291, allocations: 64.41 kB / 0.5771 GB, free: 10.83 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.656e-05/0.5292, allocations: 20 kB / 0.5771 GB, free: 10.81 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.000703/0.5299, allocations: 0.5107 MB / 0.5776 GB, free: 10.3 MB / 446.1 MB Notification: Performance of sort global known variables: time 3.71e-07/0.5299, allocations: 0 / 0.5776 GB, free: 10.3 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001791/0.5317, allocations: 363.9 kB / 0.5779 GB, free: 9.945 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.003451/0.5352, allocations: 2.284 MB / 0.5802 GB, free: 7.59 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.002773/0.538, allocations: 1.594 MB / 0.5817 GB, free: 5.945 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 5.771e-06/0.538, allocations: 0 / 0.5817 GB, free: 5.945 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001769/0.5398, allocations: 1.091 MB / 0.5828 GB, free: 4.789 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001518/0.5413, allocations: 213.2 kB / 0.583 GB, free: 4.594 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01716/0.5585, allocations: 9.948 MB / 0.5927 GB, free: 10.21 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009665/0.5595, allocations: 1.255 MB / 0.5939 GB, free: 8.93 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.0006035/0.5601, allocations: 211.6 kB / 0.5941 GB, free: 8.719 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005203/0.5606, allocations: 451.3 kB / 0.5946 GB, free: 8.277 MB / 462.1 MB Notification: Performance of SimCode: time 9.02e-07/0.5607, allocations: 0 / 0.5946 GB, free: 8.277 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06242/0.6231, allocations: 25 MB / 0.619 GB, free: 15.48 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.26/13.88, allocations: 0 / 0.619 GB, free: 15.48 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)