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.001629/0.001629, allocations: 109.5 kB / 16.92 MB, free: 5.777 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.001768/0.001768, allocations: 191.3 kB / 17.85 MB, free: 5.168 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.529/1.529, allocations: 222.9 MB / 241.6 MB, free: 15.21 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1797/0.1797, allocations: 38.03 MB / 329.7 MB, free: 8.863 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001459/0.001459, allocations: 65.27 kB / 398.9 MB, free: 33.99 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09194/0.09342, allocations: 58.06 MB / 457 MB, free: 7.992 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Generation.TurbineGeneratorLine): time 0.01129/0.1047, allocations: 9.544 MB / 466.5 MB, free: 14.41 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005912/0.1107, allocations: 3.568 MB / 470.1 MB, free: 10.83 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006834/0.1114, allocations: 35.81 kB / 470.1 MB, free: 10.79 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002784/0.1142, allocations: 1.096 MB / 471.2 MB, free: 9.695 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002227/0.1165, allocations: 0.8942 MB / 472.1 MB, free: 8.797 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001225/0.1177, allocations: 483 kB / 472.6 MB, free: 8.324 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002128/0.1199, allocations: 1.8 MB / 474.4 MB, free: 6.52 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001329/0.1212, allocations: 0.97 MB / 475.3 MB, free: 5.527 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001173/0.1224, allocations: 0.7666 MB / 476.1 MB, free: 4.758 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001329/0.1237, allocations: 0.8954 MB / 477 MB, free: 3.859 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002531/0.124, allocations: 104 kB / 477.1 MB, free: 3.758 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001074/0.1251, allocations: 0.546 MB / 477.7 MB, free: 3.211 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006582/0.1257, allocations: 0.6351 MB / 478.3 MB, free: 2.574 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008898/0.1266, allocations: 0.6998 MB / 479 MB, free: 1.871 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001947/0.1286, allocations: 1.881 MB / 480.9 MB, free: 15.98 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.158e-06/0.1286, allocations: 0 / 480.9 MB, free: 15.98 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.1286, allocations: 0 / 480.9 MB, free: 15.98 MB / 366.1 MB Notification: Performance of Transformations before backend: time 4.564e-05/0.1287, allocations: 0 / 480.9 MB, free: 15.98 MB / 366.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.003147/0.1318, allocations: 1.629 MB / 482.5 MB, free: 14.3 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.799e-05/0.1319, allocations: 11.89 kB / 482.5 MB, free: 14.29 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002157/0.1321, allocations: 181.6 kB / 482.7 MB, free: 14.1 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001693/0.1338, allocations: 271 kB / 483 MB, free: 13.84 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001716/0.1355, allocations: 0.906 MB / 483.9 MB, free: 12.89 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.346e-05/0.1356, allocations: 82.09 kB / 483.9 MB, free: 12.8 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002977/0.1359, allocations: 135.9 kB / 484.1 MB, free: 12.67 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002143/0.1381, allocations: 1.482 MB / 485.6 MB, free: 11.12 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.054e-05/0.1381, allocations: 11.92 kB / 485.6 MB, free: 11.11 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001053/0.1382, allocations: 43.98 kB / 485.6 MB, free: 11.07 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003217/0.1386, allocations: 106.2 kB / 485.7 MB, free: 10.96 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001976/0.1405, allocations: 1.25 MB / 487 MB, free: 9.703 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007259/0.1478, allocations: 5.672 MB / 492.6 MB, free: 3.684 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008618/0.1487, allocations: 0.5943 MB / 493.2 MB, free: 3.07 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005304/0.1492, allocations: 399.3 kB / 493.6 MB, free: 2.676 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.651e-05/0.1493, allocations: 12.55 kB / 493.6 MB, free: 2.664 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.18e-05/0.1493, allocations: 39.12 kB / 493.7 MB, free: 2.613 MB / 366.1 MB Notification: Performance of pre-optimization done (n=67): time 2.094e-06/0.1493, allocations: 0 / 493.7 MB, free: 2.613 MB / 366.1 MB Notification: Performance of matching and sorting (n=74): time 0.007231/0.1566, allocations: 3.642 MB / 497.3 MB, free: 14.81 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.769e-05/0.1566, allocations: 93.64 kB / 497.4 MB, free: 14.7 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008369/0.1575, allocations: 0.7352 MB / 498.1 MB, free: 13.95 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 5.371e-05/0.1575, allocations: 33.7 kB / 498.2 MB, free: 13.91 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003799/0.1579, allocations: 0.5995 MB / 498.8 MB, free: 13.31 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002109/0.1582, allocations: 272.1 kB / 499 MB, free: 13.04 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002595/0.1584, allocations: 182.5 kB / 499.2 MB, free: 12.86 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001671/0.1586, allocations: 398.7 kB / 499.6 MB, free: 12.46 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005938/0.1592, allocations: 393.8 kB / 500 MB, free: 12.07 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007564/0.16, allocations: 0.6613 MB / 0.4889 GB, free: 11.29 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001459/0.1614, allocations: 1.14 MB / 0.49 GB, free: 10.04 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.058e-06/0.1614, allocations: 4 kB / 0.49 GB, free: 10.04 MB / 382.1 MB Notification: Performance of matching and sorting (n=125) (initialization): time 0.003287/0.1647, allocations: 1.709 MB / 0.4917 GB, free: 8.301 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.049e-05/0.1648, allocations: 10.19 kB / 0.4917 GB, free: 8.293 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.002636/0.1674, allocations: 1.315 MB / 0.493 GB, free: 6.969 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001841/0.1693, allocations: 0.5799 MB / 0.4936 GB, free: 6.379 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000614/0.1699, allocations: 167.7 kB / 0.4937 GB, free: 6.215 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01143/0.1813, allocations: 10.37 MB / 0.5038 GB, free: 11.26 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007031/0.1821, allocations: 47.88 kB / 0.5039 GB, free: 11.21 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.909e-05/0.1821, allocations: 43.98 kB / 0.5039 GB, free: 11.17 MB / 398.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.0005459/0.1827, allocations: 381.4 kB / 0.5043 GB, free: 10.79 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001682/0.1829, allocations: 90.88 kB / 0.5044 GB, free: 10.7 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002263/0.1851, allocations: 1.244 MB / 0.5056 GB, free: 9.422 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.446e-06/0.1852, allocations: 12 kB / 0.5056 GB, free: 9.41 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.907e-06/0.1852, allocations: 4 kB / 0.5056 GB, free: 9.406 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.927e-06/0.1852, allocations: 3.984 kB / 0.5056 GB, free: 9.402 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004072/0.1893, allocations: 2.396 MB / 0.508 GB, free: 6.91 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.398e-06/0.1893, allocations: 4 kB / 0.508 GB, free: 6.906 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004959/0.1898, allocations: 116 kB / 0.5081 GB, free: 6.793 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001074/0.1909, allocations: 371.8 kB / 0.5084 GB, free: 6.414 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.537e-05/0.191, allocations: 27.98 kB / 0.5085 GB, free: 6.387 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2031/0.394, allocations: 9.295 MB / 0.5175 GB, free: 66.13 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.366e-06/0.3941, allocations: 3 kB / 0.5175 GB, free: 66.13 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002793/0.3969, allocations: 1.673 MB / 0.5192 GB, free: 65.89 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004039/0.3973, allocations: 234.6 kB / 0.5194 GB, free: 65.79 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000207/0.3975, allocations: 25.97 kB / 0.5194 GB, free: 65.79 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005398/0.3981, allocations: 28.06 kB / 0.5194 GB, free: 65.79 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001492/0.3982, allocations: 64.53 kB / 0.5195 GB, free: 65.79 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.168e-05/0.3983, allocations: 25.86 kB / 0.5195 GB, free: 65.79 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0007699/0.399, allocations: 0.5072 MB / 0.52 GB, free: 65.7 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.3991, allocations: 0 / 0.52 GB, free: 65.7 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001412/0.4005, allocations: 362.9 kB / 0.5204 GB, free: 65.66 MB / 398.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.00294/0.4034, allocations: 2.269 MB / 0.5226 GB, free: 64.43 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.002667/0.4061, allocations: 1.765 MB / 0.5243 GB, free: 63.61 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.087e-06/0.4061, allocations: 0 / 0.5243 GB, free: 63.61 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001396/0.4075, allocations: 1.096 MB / 0.5254 GB, free: 62.87 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001031/0.4086, allocations: 203 kB / 0.5256 GB, free: 62.8 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01532/0.4239, allocations: 10.23 MB / 0.5356 GB, free: 57.42 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009184/0.4248, allocations: 1.256 MB / 0.5368 GB, free: 56.64 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0006722/0.4255, allocations: 217.8 kB / 0.537 GB, free: 56.61 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004361/0.426, allocations: 436.1 kB / 0.5374 GB, free: 56.27 MB / 398.1 MB Notification: Performance of SimCode: time 7.12e-07/0.426, allocations: 0 / 0.5374 GB, free: 56.27 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05232/0.4783, allocations: 24.66 MB / 0.5615 GB, free: 36.62 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.56/12.04, allocations: 11.19 kB / 0.5615 GB, free: 36.61 MB / 398.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)