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.001754/0.001754, allocations: 105.9 kB / 17.06 MB, free: 6.113 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.001934/0.001934, allocations: 196.1 kB / 18 MB, free: 5.191 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.396/1.396, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.2033/0.2033, allocations: 38.04 MB / 329.9 MB, free: 8.758 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002655/0.002655, allocations: 67.89 kB / 457.7 MB, free: 7.332 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3431/0.3458, allocations: 58.06 MB / 0.5036 GB, free: 7.492 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Generation.TurbineGeneratorLine): time 0.009362/0.3552, allocations: 9.552 MB / 0.513 GB, free: 0.8281 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.00776/0.363, allocations: 3.546 MB / 0.5164 GB, free: 14.33 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001317/0.3644, allocations: 37.94 kB / 0.5165 GB, free: 14.31 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003802/0.3683, allocations: 1.109 MB / 0.5175 GB, free: 13.65 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003579/0.3718, allocations: 0.8884 MB / 0.5184 GB, free: 13.16 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00166/0.3735, allocations: 480.6 kB / 0.5189 GB, free: 12.93 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.003664/0.3772, allocations: 1.806 MB / 0.5206 GB, free: 12.16 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001521/0.3788, allocations: 0.9761 MB / 0.5216 GB, free: 11.73 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001614/0.3804, allocations: 0.7635 MB / 0.5223 GB, free: 11.38 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001842/0.3822, allocations: 0.8946 MB / 0.5232 GB, free: 11.04 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002855/0.3825, allocations: 105.8 kB / 0.5233 GB, free: 11.04 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001666/0.3842, allocations: 0.5379 MB / 0.5238 GB, free: 10.89 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009521/0.3852, allocations: 0.6405 MB / 0.5245 GB, free: 10.67 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001121/0.3863, allocations: 0.7011 MB / 0.5251 GB, free: 10.25 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003174/0.3895, allocations: 1.912 MB / 0.527 GB, free: 9.582 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.298e-06/0.3895, allocations: 0 / 0.527 GB, free: 9.582 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.754e-06/0.3895, allocations: 0 / 0.527 GB, free: 9.582 MB / 398.1 MB Notification: Performance of Transformations before backend: time 2.765e-05/0.3896, allocations: 4 kB / 0.527 GB, free: 9.578 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.003803/0.3934, allocations: 1.66 MB / 0.5286 GB, free: 8.516 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.371e-05/0.3934, allocations: 15.12 kB / 0.5287 GB, free: 8.512 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002674/0.3937, allocations: 177.6 kB / 0.5288 GB, free: 8.398 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001735/0.3954, allocations: 279.3 kB / 0.5291 GB, free: 8.312 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002759/0.3982, allocations: 0.9636 MB / 0.53 GB, free: 7.668 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.985e-05/0.3983, allocations: 79.78 kB / 0.5301 GB, free: 7.629 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003974/0.3987, allocations: 139.4 kB / 0.5302 GB, free: 7.574 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002591/0.4013, allocations: 1.489 MB / 0.5317 GB, free: 6.66 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.814e-05/0.4014, allocations: 2.719 kB / 0.5317 GB, free: 6.66 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001242/0.4015, allocations: 49.2 kB / 0.5317 GB, free: 6.621 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003257/0.4018, allocations: 100.6 kB / 0.5318 GB, free: 6.594 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002196/0.404, allocations: 1.261 MB / 0.5331 GB, free: 5.98 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009194/0.4133, allocations: 5.631 MB / 0.5386 GB, free: 1.438 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001006/0.4143, allocations: 0.6018 MB / 0.5392 GB, free: 1.105 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005892/0.4149, allocations: 401.5 kB / 0.5395 GB, free: 0.9062 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.326e-05/0.415, allocations: 7.125 kB / 0.5395 GB, free: 0.9062 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.438e-05/0.415, allocations: 42.44 kB / 0.5396 GB, free: 0.8594 MB / 398.1 MB Notification: Performance of pre-optimization done (n=67): time 2.645e-06/0.415, allocations: 0 / 0.5396 GB, free: 0.8594 MB / 398.1 MB Notification: Performance of matching and sorting (n=74): time 0.007968/0.423, allocations: 3.675 MB / 0.5432 GB, free: 14.48 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.749e-05/0.4231, allocations: 85.98 kB / 0.5433 GB, free: 14.39 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001048/0.4241, allocations: 0.7319 MB / 0.544 GB, free: 13.97 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 7.3e-05/0.4242, allocations: 36.7 kB / 0.544 GB, free: 13.93 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005118/0.4248, allocations: 0.6064 MB / 0.5446 GB, free: 13.39 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003033/0.4251, allocations: 292.4 kB / 0.5449 GB, free: 13.13 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000296/0.4254, allocations: 182.4 kB / 0.5451 GB, free: 13.03 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0002361/0.4256, allocations: 399 kB / 0.5454 GB, free: 12.65 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006478/0.4263, allocations: 391.6 kB / 0.5458 GB, free: 12.46 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009255/0.4272, allocations: 0.6589 MB / 0.5465 GB, free: 11.89 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001703/0.4289, allocations: 1.14 MB / 0.5476 GB, free: 10.63 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.451e-06/0.4289, allocations: 7.938 kB / 0.5476 GB, free: 10.62 MB / 414.1 MB Notification: Performance of matching and sorting (n=125) (initialization): time 0.003811/0.4327, allocations: 1.71 MB / 0.5492 GB, free: 8.891 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.495e-05/0.4328, allocations: 11.94 kB / 0.5493 GB, free: 8.879 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.002861/0.4357, allocations: 1.306 MB / 0.5505 GB, free: 7.562 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00207/0.4378, allocations: 0.5832 MB / 0.5511 GB, free: 6.969 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006946/0.4385, allocations: 179.7 kB / 0.5513 GB, free: 6.793 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01399/0.4525, allocations: 10.36 MB / 0.5614 GB, free: 11.86 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000984/0.4535, allocations: 51.92 kB / 0.5614 GB, free: 11.81 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.675e-05/0.4536, allocations: 36 kB / 0.5615 GB, free: 11.77 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.0008336/0.4544, allocations: 389.4 kB / 0.5618 GB, free: 11.38 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002159/0.4546, allocations: 95.39 kB / 0.5619 GB, free: 11.29 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002564/0.4572, allocations: 1.24 MB / 0.5631 GB, free: 10.02 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.175e-05/0.4572, allocations: 8 kB / 0.5631 GB, free: 10.01 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.016e-05/0.4573, allocations: 4 kB / 0.5632 GB, free: 10.01 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.236e-05/0.4573, allocations: 3.984 kB / 0.5632 GB, free: 10 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004853/0.4621, allocations: 2.412 MB / 0.5655 GB, free: 7.488 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.548e-06/0.4622, allocations: 4.188 kB / 0.5655 GB, free: 7.484 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005135/0.4627, allocations: 107.8 kB / 0.5656 GB, free: 7.379 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00122/0.4639, allocations: 376 kB / 0.566 GB, free: 6.996 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001028/0.4641, allocations: 31.97 kB / 0.566 GB, free: 6.965 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009817/0.4739, allocations: 9.291 MB / 0.5751 GB, free: 12.98 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.216e-06/0.4739, allocations: 4.031 kB / 0.5751 GB, free: 12.97 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003204/0.4771, allocations: 1.682 MB / 0.5767 GB, free: 11.24 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006072/0.4778, allocations: 232.4 kB / 0.577 GB, free: 10.99 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001871/0.478, allocations: 31.94 kB / 0.577 GB, free: 10.96 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005006/0.4785, allocations: 23.98 kB / 0.577 GB, free: 10.94 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001856/0.4787, allocations: 68.41 kB / 0.5771 GB, free: 10.87 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.321e-05/0.4787, allocations: 20 kB / 0.5771 GB, free: 10.85 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.000818/0.4796, allocations: 0.5029 MB / 0.5776 GB, free: 10.35 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.91e-07/0.4796, allocations: 0 / 0.5776 GB, free: 10.35 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001723/0.4813, allocations: 367.9 kB / 0.5779 GB, free: 9.988 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.003667/0.485, allocations: 2.288 MB / 0.5802 GB, free: 7.633 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.002936/0.4879, allocations: 1.598 MB / 0.5817 GB, free: 5.984 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 5.28e-06/0.488, allocations: 0 / 0.5817 GB, free: 5.984 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001785/0.4898, allocations: 1.087 MB / 0.5828 GB, free: 4.832 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00126/0.491, allocations: 209.5 kB / 0.583 GB, free: 4.637 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01735/0.5084, allocations: 9.955 MB / 0.5927 GB, free: 10.25 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001096/0.5095, allocations: 1.251 MB / 0.5939 GB, free: 8.973 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.0006509/0.5102, allocations: 215.6 kB / 0.5941 GB, free: 8.758 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006032/0.5108, allocations: 447.3 kB / 0.5946 GB, free: 8.32 MB / 462.1 MB Notification: Performance of SimCode: time 6.81e-07/0.5108, allocations: 0 / 0.5946 GB, free: 8.32 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07945/0.5903, allocations: 25.02 MB / 0.619 GB, free: 15.56 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.58/14.17, allocations: 0 / 0.619 GB, free: 15.56 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)