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.001498/0.001498, allocations: 110.2 kB / 16.92 MB, free: 6.332 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.001742/0.001742, allocations: 191.4 kB / 17.85 MB, free: 5.414 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.443/1.443, allocations: 222.9 MB / 241.6 MB, free: 15.3 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1753/0.1753, allocations: 38.04 MB / 329.7 MB, free: 8.809 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002276/0.002276, allocations: 61 kB / 398.9 MB, free: 33.94 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1207/0.123, allocations: 58.05 MB / 457 MB, free: 7.969 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Generation.TurbineGeneratorLine): time 0.01087/0.1339, allocations: 9.548 MB / 466.5 MB, free: 14.38 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005594/0.1396, allocations: 3.571 MB / 470.1 MB, free: 10.8 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006657/0.1402, allocations: 35.81 kB / 470.1 MB, free: 10.76 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00285/0.1431, allocations: 1.097 MB / 471.2 MB, free: 9.66 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002096/0.1452, allocations: 0.8903 MB / 472.1 MB, free: 8.766 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001112/0.1464, allocations: 486.9 kB / 472.6 MB, free: 8.289 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002212/0.1486, allocations: 1.796 MB / 474.4 MB, free: 6.488 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001365/0.15, allocations: 0.9778 MB / 475.3 MB, free: 5.488 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001164/0.1512, allocations: 0.7549 MB / 476.1 MB, free: 4.73 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001309/0.1525, allocations: 0.911 MB / 477 MB, free: 3.816 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003117/0.1528, allocations: 104 kB / 477.1 MB, free: 3.715 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001127/0.1539, allocations: 0.5303 MB / 477.6 MB, free: 3.184 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006806/0.1546, allocations: 0.643 MB / 478.3 MB, free: 2.539 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009838/0.1556, allocations: 0.6998 MB / 479 MB, free: 1.836 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002064/0.1577, allocations: 1.881 MB / 480.9 MB, free: 15.95 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.987e-06/0.1577, allocations: 0 / 480.9 MB, free: 15.95 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.253e-06/0.1577, allocations: 4 kB / 480.9 MB, free: 15.95 MB / 366.1 MB Notification: Performance of Transformations before backend: time 4.97e-05/0.1578, allocations: 0 / 480.9 MB, free: 15.95 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.003273/0.1611, allocations: 1.632 MB / 482.5 MB, free: 14.26 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.593e-05/0.1611, allocations: 11.89 kB / 482.5 MB, free: 14.25 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002283/0.1613, allocations: 173.6 kB / 482.7 MB, free: 14.07 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001634/0.163, allocations: 274.9 kB / 483 MB, free: 13.8 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001969/0.165, allocations: 0.906 MB / 483.9 MB, free: 12.85 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001021/0.1651, allocations: 78.09 kB / 483.9 MB, free: 12.77 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004945/0.1656, allocations: 139.8 kB / 484.1 MB, free: 12.64 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002269/0.1679, allocations: 1.489 MB / 485.6 MB, free: 11.08 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.02e-05/0.1679, allocations: 4 kB / 485.6 MB, free: 11.07 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001056/0.168, allocations: 40 kB / 485.6 MB, free: 11.04 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003292/0.1684, allocations: 102.2 kB / 485.7 MB, free: 10.93 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002045/0.1704, allocations: 1.258 MB / 487 MB, free: 9.668 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007422/0.1779, allocations: 5.664 MB / 492.6 MB, free: 3.656 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000872/0.1788, allocations: 0.5981 MB / 493.2 MB, free: 3.039 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005256/0.1793, allocations: 403.3 kB / 493.6 MB, free: 2.641 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.653e-05/0.1794, allocations: 8.562 kB / 493.6 MB, free: 2.633 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.322e-05/0.1794, allocations: 43.12 kB / 493.7 MB, free: 2.578 MB / 366.1 MB Notification: Performance of pre-optimization done (n=67): time 2.485e-06/0.1794, allocations: 0 / 493.7 MB, free: 2.578 MB / 366.1 MB Notification: Performance of matching and sorting (n=74): time 0.007409/0.1868, allocations: 3.641 MB / 497.3 MB, free: 14.78 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.603e-05/0.1869, allocations: 85.7 kB / 497.4 MB, free: 14.68 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008425/0.1877, allocations: 0.7391 MB / 498.1 MB, free: 13.93 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 5.76e-05/0.1878, allocations: 37.69 kB / 498.2 MB, free: 13.89 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000398/0.1882, allocations: 0.588 MB / 498.8 MB, free: 13.29 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002239/0.1884, allocations: 276.1 kB / 499 MB, free: 13.02 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002759/0.1887, allocations: 186.4 kB / 499.2 MB, free: 12.83 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.000186/0.1889, allocations: 398.7 kB / 499.6 MB, free: 12.43 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006114/0.1895, allocations: 393.8 kB / 500 MB, free: 12.05 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007658/0.1903, allocations: 0.6574 MB / 0.4889 GB, free: 11.27 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001479/0.1918, allocations: 1.152 MB / 0.49 GB, free: 10 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.003e-06/0.1918, allocations: 4 kB / 0.49 GB, free: 10 MB / 382.1 MB Notification: Performance of matching and sorting (n=125) (initialization): time 0.003582/0.1954, allocations: 1.709 MB / 0.4917 GB, free: 8.266 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.017e-05/0.1954, allocations: 8 kB / 0.4917 GB, free: 8.258 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.002818/0.1983, allocations: 1.311 MB / 0.493 GB, free: 6.938 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001877/0.2002, allocations: 0.577 MB / 0.4936 GB, free: 6.348 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006029/0.2008, allocations: 175.7 kB / 0.4937 GB, free: 6.176 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01152/0.2123, allocations: 10.36 MB / 0.5038 GB, free: 11.23 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007097/0.213, allocations: 51.88 kB / 0.5039 GB, free: 11.18 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.349e-05/0.2131, allocations: 47.98 kB / 0.5039 GB, free: 11.14 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.0005399/0.2137, allocations: 381.4 kB / 0.5043 GB, free: 10.75 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001829/0.2139, allocations: 94.86 kB / 0.5044 GB, free: 10.66 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002249/0.2161, allocations: 1.24 MB / 0.5056 GB, free: 9.391 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.546e-06/0.2161, allocations: 8 kB / 0.5056 GB, free: 9.383 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.967e-06/0.2162, allocations: 8 kB / 0.5056 GB, free: 9.375 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.037e-06/0.2162, allocations: 3.984 kB / 0.5056 GB, free: 9.371 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004119/0.2203, allocations: 2.404 MB / 0.508 GB, free: 6.871 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.172e-06/0.2203, allocations: 4 kB / 0.508 GB, free: 6.867 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004693/0.2208, allocations: 103.9 kB / 0.5081 GB, free: 6.766 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001084/0.2219, allocations: 380 kB / 0.5084 GB, free: 6.379 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.941e-05/0.222, allocations: 31.97 kB / 0.5085 GB, free: 6.348 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1718/0.3937, allocations: 9.278 MB / 0.5175 GB, free: 66.23 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.318e-06/0.3938, allocations: 4.922 kB / 0.5175 GB, free: 66.23 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00258/0.3964, allocations: 1.678 MB / 0.5192 GB, free: 65.98 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003395/0.3967, allocations: 238.3 kB / 0.5194 GB, free: 65.89 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001374/0.3969, allocations: 24.95 kB / 0.5194 GB, free: 65.89 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000464/0.3973, allocations: 27.66 kB / 0.5194 GB, free: 65.89 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001339/0.3975, allocations: 60.48 kB / 0.5195 GB, free: 65.89 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.63e-05/0.3975, allocations: 24.09 kB / 0.5195 GB, free: 65.89 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0006326/0.3982, allocations: 0.5075 MB / 0.52 GB, free: 65.79 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.3982, allocations: 0 / 0.52 GB, free: 65.79 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001295/0.3995, allocations: 362.5 kB / 0.5204 GB, free: 65.76 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.002839/0.4023, allocations: 2.268 MB / 0.5226 GB, free: 64.53 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.002553/0.4049, allocations: 1.767 MB / 0.5243 GB, free: 63.7 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.328e-06/0.4049, allocations: 0 / 0.5243 GB, free: 63.7 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001417/0.4063, allocations: 1.089 MB / 0.5254 GB, free: 62.97 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001037/0.4074, allocations: 209.1 kB / 0.5256 GB, free: 62.91 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01508/0.4225, allocations: 10.24 MB / 0.5356 GB, free: 57.52 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006689/0.4232, allocations: 1.249 MB / 0.5368 GB, free: 56.74 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0006981/0.4239, allocations: 220.3 kB / 0.537 GB, free: 56.71 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004349/0.4243, allocations: 441.6 kB / 0.5374 GB, free: 56.37 MB / 398.1 MB Notification: Performance of SimCode: time 9.52e-07/0.4243, allocations: 1.25 kB / 0.5374 GB, free: 56.37 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04793/0.4723, allocations: 24.64 MB / 0.5615 GB, free: 36.54 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.61/12.08, allocations: 4 kB / 0.5615 GB, free: 36.54 MB / 398.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)