Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC3ph.Generation.TurbineGenerator.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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: translateModel(PowerSystems.Examples.AC3ph.Generation.TurbineGenerator,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC3ph.Generation.TurbineGenerator") translateModel(PowerSystems.Examples.AC3ph.Generation.TurbineGenerator,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC3ph.Generation.TurbineGenerator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001242/0.001242, allocations: 113.2 kB / 17.06 MB, free: 6 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.001303/0.001303, allocations: 200 kB / 18 MB, free: 5.078 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.544/1.544, allocations: 205.1 MB / 223.9 MB, free: 12.24 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.18/0.18, allocations: 37.98 MB / 309.2 MB, free: 5.945 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001453/0.001453, allocations: 63.91 kB / 431.9 MB, free: 15.64 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1286/0.1301, allocations: 55.24 MB / 487.1 MB, free: 8.328 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Generation.TurbineGenerator): time 0.009788/0.1399, allocations: 7.513 MB / 494.6 MB, free: 0.7734 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.006117/0.1461, allocations: 3.022 MB / 497.7 MB, free: 13.74 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009225/0.147, allocations: 23.88 kB / 497.7 MB, free: 13.71 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002562/0.1497, allocations: 0.7506 MB / 498.4 MB, free: 12.96 MB / 382.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Math/package.mo:2829:3-2870:10:writable] Warning: Pure function 'Modelica.Math.Matrices.inv' contains a call to impure function 'Modelica.Math.Matrices.LAPACK.dgetrf'. Notification: Performance of NFTyping.typeBindings: time 0.002463/0.1522, allocations: 0.6881 MB / 499.1 MB, free: 12.27 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001211/0.1534, allocations: 371.2 kB / 499.5 MB, free: 11.91 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001977/0.1554, allocations: 1.356 MB / 0.4891 GB, free: 10.55 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000928/0.1563, allocations: 0.7091 MB / 0.4898 GB, free: 9.828 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008378/0.1572, allocations: 0.5604 MB / 0.4903 GB, free: 9.266 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001142/0.1583, allocations: 0.6346 MB / 0.491 GB, free: 8.629 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001524/0.1585, allocations: 72 kB / 0.491 GB, free: 8.559 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001262/0.1598, allocations: 475.2 kB / 0.4915 GB, free: 8.094 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006448/0.1604, allocations: 458.8 kB / 0.4919 GB, free: 7.645 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000733/0.1612, allocations: 0.5015 MB / 0.4924 GB, free: 7.141 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001785/0.163, allocations: 1.421 MB / 0.4938 GB, free: 5.715 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.774e-06/0.163, allocations: 0 / 0.4938 GB, free: 5.715 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.184e-06/0.163, allocations: 0 / 0.4938 GB, free: 5.715 MB / 382.1 MB Notification: Performance of Transformations before backend: time 3.586e-05/0.1631, allocations: 4 kB / 0.4938 GB, free: 5.711 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 222 * Number of variables: 222 Notification: Performance of Generate backend data structure: time 0.00291/0.166, allocations: 1.281 MB / 0.495 GB, free: 4.375 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.741e-05/0.166, allocations: 11.89 kB / 0.4951 GB, free: 4.363 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001321/0.1674, allocations: 207.6 kB / 0.4953 GB, free: 4.16 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001656/0.169, allocations: 0.7409 MB / 0.496 GB, free: 3.383 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.847e-05/0.1691, allocations: 62.36 kB / 0.496 GB, free: 3.32 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002411/0.1694, allocations: 103.8 kB / 0.4961 GB, free: 3.219 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00164/0.171, allocations: 1.103 MB / 0.4972 GB, free: 2.07 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.013e-05/0.1711, allocations: 4 kB / 0.4972 GB, free: 2.066 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.986e-05/0.1712, allocations: 32 kB / 0.4973 GB, free: 2.035 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001601/0.1713, allocations: 69.95 kB / 0.4973 GB, free: 1.965 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001401/0.1727, allocations: 0.8704 MB / 0.4982 GB, free: 1.098 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00574/0.1785, allocations: 3.969 MB / 0.502 GB, free: 12.93 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007896/0.1793, allocations: 439.8 kB / 0.5025 GB, free: 12.46 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003778/0.1797, allocations: 282.9 kB / 0.5027 GB, free: 12.18 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.814e-05/0.1797, allocations: 8.438 kB / 0.5027 GB, free: 12.17 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.881e-05/0.1798, allocations: 35 kB / 0.5028 GB, free: 12.12 MB / 398.1 MB Notification: Performance of pre-optimization done (n=48): time 2.324e-06/0.1798, allocations: 3.938 kB / 0.5028 GB, free: 12.12 MB / 398.1 MB Notification: Performance of matching and sorting (n=51): time 0.003042/0.1828, allocations: 1.725 MB / 0.5045 GB, free: 10.34 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.721e-05/0.1829, allocations: 85.48 kB / 0.5045 GB, free: 10.24 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006415/0.1835, allocations: 0.5821 MB / 0.5051 GB, free: 9.648 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.946e-05/0.1836, allocations: 41.83 kB / 0.5052 GB, free: 9.602 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003951/0.184, allocations: 466.5 kB / 0.5056 GB, free: 9.137 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001837/0.1842, allocations: 189.4 kB / 0.5058 GB, free: 8.949 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002066/0.1844, allocations: 138.5 kB / 0.5059 GB, free: 8.805 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001753/0.1846, allocations: 382.8 kB / 0.5063 GB, free: 8.422 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003919/0.185, allocations: 253.8 kB / 0.5065 GB, free: 8.176 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005333/0.1855, allocations: 477 kB / 0.507 GB, free: 7.617 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009923/0.1865, allocations: 0.7742 MB / 0.5077 GB, free: 6.75 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.026e-06/0.1865, allocations: 0 / 0.5077 GB, free: 6.75 MB / 398.1 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.001938/0.1885, allocations: 1.122 MB / 0.5088 GB, free: 5.594 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.388e-05/0.1885, allocations: 11.91 kB / 0.5088 GB, free: 5.582 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.001361/0.1899, allocations: 0.7949 MB / 0.5096 GB, free: 4.758 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007313/0.1906, allocations: 226.5 kB / 0.5098 GB, free: 4.527 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005217/0.1912, allocations: 151.7 kB / 0.51 GB, free: 4.379 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005991/0.1972, allocations: 5.665 MB / 0.5155 GB, free: 14.29 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006159/0.1978, allocations: 39.88 kB / 0.5155 GB, free: 14.25 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.237e-05/0.1979, allocations: 35.98 kB / 0.5156 GB, free: 14.21 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 31 * 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 (80): * Single equations (assignments): 77 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,3,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,7)} Notification: Performance of prepare postOptimizeDAE: time 0.0005088/0.1984, allocations: 309.5 kB / 0.5159 GB, free: 13.9 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001244/0.1985, allocations: 67.16 kB / 0.5159 GB, free: 13.83 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009756/0.1995, allocations: 0.6046 MB / 0.5165 GB, free: 13.21 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.981e-06/0.1995, allocations: 4 kB / 0.5165 GB, free: 13.21 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.747e-06/0.1995, allocations: 4 kB / 0.5165 GB, free: 13.2 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.007e-05/0.1995, allocations: 7.969 kB / 0.5165 GB, free: 13.2 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002456/0.202, allocations: 1.49 MB / 0.518 GB, free: 11.63 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.659e-06/0.202, allocations: 0 / 0.518 GB, free: 11.63 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006171/0.2026, allocations: 132 kB / 0.5181 GB, free: 11.5 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.083e-06/0.2027, allocations: 4 kB / 0.5181 GB, free: 11.5 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.569e-05/0.2027, allocations: 19.92 kB / 0.5181 GB, free: 11.48 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.5e-06/0.2027, allocations: 4 kB / 0.5182 GB, free: 11.48 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.617e-06/0.2027, allocations: 4 kB / 0.5182 GB, free: 11.47 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001292/0.204, allocations: 0.9243 MB / 0.5191 GB, free: 10.52 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003287/0.2044, allocations: 184.2 kB / 0.5192 GB, free: 10.32 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.447e-05/0.2045, allocations: 19.98 kB / 0.5193 GB, free: 10.3 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003211/0.2048, allocations: 19.98 kB / 0.5193 GB, free: 10.28 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.906e-05/0.2049, allocations: 40.33 kB / 0.5193 GB, free: 10.24 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.25e-05/0.2049, allocations: 16 kB / 0.5193 GB, free: 10.22 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0005045/0.2054, allocations: 415 kB / 0.5197 GB, free: 9.824 MB / 414.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.2054, allocations: 0 / 0.5197 GB, free: 9.824 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0008608/0.2063, allocations: 240 kB / 0.5199 GB, free: 9.59 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * 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 (54): * Single equations (assignments): 53 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003235/0.2066, allocations: 127.2 kB / 0.5201 GB, free: 9.457 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001714/0.2083, allocations: 1.041 MB / 0.5211 GB, free: 8.375 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 7.074e-06/0.2084, allocations: 4 kB / 0.5211 GB, free: 8.371 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003627/0.2087, allocations: 262.2 kB / 0.5213 GB, free: 8.113 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008035/0.2096, allocations: 156.2 kB / 0.5215 GB, free: 7.961 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003043/0.2126, allocations: 2.044 MB / 0.5235 GB, free: 5.867 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007437/0.2134, allocations: 1.079 MB / 0.5245 GB, free: 4.758 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0004747/0.2139, allocations: 189.9 kB / 0.5247 GB, free: 4.57 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001666/0.214, allocations: 63.42 kB / 0.5248 GB, free: 4.508 MB / 414.1 MB Notification: Performance of SimCode: time 8.72e-07/0.214, allocations: 0 / 0.5248 GB, free: 4.508 MB / 414.1 MB Notification: Performance of Templates: time 0.2777/0.4918, allocations: 9.393 MB / 0.534 GB, free: 49.93 MB / 414.1 MB make -j1 -f PowerSystems_PowerSystems.Examples.AC3ph.Generation.TurbineGenerator.makefile (rm -f PowerSystems_PowerSystems.Examples.AC3ph.Generation.TurbineGenerator.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC3ph.Generation.TurbineGenerator.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC3ph.Generation.TurbineGenerator.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC3ph.Generation.TurbineGenerator.sim & ./PowerSystems_PowerSystems.Examples.AC3ph.Generation.TurbineGenerator -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.AC3ph.Generation.TurbineGenerator.pipe 2>&1)