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.001559/0.001559, allocations: 114.2 kB / 17.07 MB, free: 5.973 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.001189/0.001189, allocations: 194.8 kB / 18 MB, free: 5.059 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.392/1.392, allocations: 205.1 MB / 223.9 MB, free: 12.21 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.2006/0.2006, allocations: 37.99 MB / 309.2 MB, free: 5.949 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.001667/0.001667, allocations: 67.89 kB / 431.9 MB, free: 15.64 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1235/0.1252, allocations: 55.24 MB / 487.1 MB, free: 8.336 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Generation.TurbineGenerator): time 0.009653/0.1348, allocations: 7.517 MB / 494.6 MB, free: 0.7773 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.004855/0.1397, allocations: 3.026 MB / 497.7 MB, free: 13.74 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006394/0.1404, allocations: 23.88 kB / 497.7 MB, free: 13.71 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00214/0.1426, allocations: 0.7428 MB / 498.4 MB, free: 12.97 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.00182/0.1444, allocations: 0.6959 MB / 499.1 MB, free: 12.27 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00107/0.1455, allocations: 375.2 kB / 499.5 MB, free: 11.9 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.002045/0.1475, allocations: 1.356 MB / 0.4891 GB, free: 10.54 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001243/0.1488, allocations: 0.7091 MB / 0.4898 GB, free: 9.824 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001228/0.15, allocations: 0.5604 MB / 0.4903 GB, free: 9.262 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001314/0.1514, allocations: 0.6346 MB / 0.491 GB, free: 8.625 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002293/0.1516, allocations: 72 kB / 0.491 GB, free: 8.555 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001161/0.1528, allocations: 475.2 kB / 0.4915 GB, free: 8.09 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005957/0.1534, allocations: 458.8 kB / 0.4919 GB, free: 7.641 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009242/0.1543, allocations: 0.5015 MB / 0.4924 GB, free: 7.137 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002232/0.1566, allocations: 1.425 MB / 0.4938 GB, free: 5.707 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.923e-06/0.1566, allocations: 4 kB / 0.4938 GB, free: 5.703 MB / 382.1 MB Notification: Performance of FrontEnd: time 3.317e-06/0.1566, allocations: 8 kB / 0.4938 GB, free: 5.695 MB / 382.1 MB Notification: Performance of Transformations before backend: time 4.946e-05/0.1567, allocations: 0 / 0.4938 GB, free: 5.695 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.003077/0.1598, allocations: 1.273 MB / 0.4951 GB, free: 4.367 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.073e-05/0.1598, allocations: 15.89 kB / 0.4951 GB, free: 4.352 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001458/0.1613, allocations: 203.5 kB / 0.4953 GB, free: 4.152 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001805/0.1631, allocations: 0.7448 MB / 0.496 GB, free: 3.371 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.386e-05/0.1632, allocations: 62.36 kB / 0.4961 GB, free: 3.309 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002648/0.1634, allocations: 99.83 kB / 0.4962 GB, free: 3.211 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001691/0.1651, allocations: 1.104 MB / 0.4972 GB, free: 2.062 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.081e-05/0.1652, allocations: 3.938 kB / 0.4972 GB, free: 2.059 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.942e-05/0.1653, allocations: 32 kB / 0.4973 GB, free: 2.027 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000178/0.1655, allocations: 69.97 kB / 0.4973 GB, free: 1.957 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001429/0.1669, allocations: 0.8704 MB / 0.4982 GB, free: 1.09 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00513/0.172, allocations: 3.973 MB / 0.5021 GB, free: 12.91 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006462/0.1727, allocations: 439.8 kB / 0.5025 GB, free: 12.45 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003718/0.1731, allocations: 282.9 kB / 0.5028 GB, free: 12.16 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.29e-05/0.1731, allocations: 8.438 kB / 0.5028 GB, free: 12.16 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.295e-05/0.1732, allocations: 35 kB / 0.5028 GB, free: 12.11 MB / 398.1 MB Notification: Performance of pre-optimization done (n=48): time 2.645e-06/0.1732, allocations: 0 / 0.5028 GB, free: 12.11 MB / 398.1 MB Notification: Performance of matching and sorting (n=51): time 0.002885/0.1761, allocations: 1.725 MB / 0.5045 GB, free: 10.34 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.422e-05/0.1762, allocations: 81.55 kB / 0.5046 GB, free: 10.23 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007716/0.1769, allocations: 0.5939 MB / 0.5051 GB, free: 9.633 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.265e-05/0.177, allocations: 37.7 kB / 0.5052 GB, free: 9.59 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003617/0.1774, allocations: 466.5 kB / 0.5056 GB, free: 9.125 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001424/0.1775, allocations: 185.4 kB / 0.5058 GB, free: 8.941 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002256/0.1777, allocations: 142.5 kB / 0.5059 GB, free: 8.793 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001727/0.1779, allocations: 378.8 kB / 0.5063 GB, free: 8.414 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003729/0.1783, allocations: 249.8 kB / 0.5065 GB, free: 8.172 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005196/0.1788, allocations: 484.9 kB / 0.507 GB, free: 7.605 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009869/0.1798, allocations: 0.7703 MB / 0.5077 GB, free: 6.742 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.146e-06/0.1798, allocations: 0 / 0.5077 GB, free: 6.742 MB / 398.1 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.001926/0.1818, allocations: 1.122 MB / 0.5088 GB, free: 5.586 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.639e-05/0.1818, allocations: 11.91 kB / 0.5089 GB, free: 5.574 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.00133/0.1831, allocations: 0.7988 MB / 0.5096 GB, free: 4.746 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007417/0.1839, allocations: 218.6 kB / 0.5098 GB, free: 4.523 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005642/0.1845, allocations: 155.7 kB / 0.51 GB, free: 4.371 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00579/0.1903, allocations: 5.666 MB / 0.5155 GB, free: 14.28 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005085/0.1908, allocations: 39.88 kB / 0.5156 GB, free: 14.24 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.047e-05/0.1909, allocations: 32 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.0004316/0.1913, allocations: 309.5 kB / 0.5159 GB, free: 13.89 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001106/0.1914, allocations: 67.16 kB / 0.516 GB, free: 13.83 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009547/0.1924, allocations: 0.6046 MB / 0.5165 GB, free: 13.21 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.576e-06/0.1924, allocations: 11.98 kB / 0.5166 GB, free: 13.2 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.913e-06/0.1924, allocations: 0 / 0.5166 GB, free: 13.2 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.109e-06/0.1924, allocations: 0 / 0.5166 GB, free: 13.2 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002279/0.1947, allocations: 1.494 MB / 0.518 GB, free: 11.63 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.667e-06/0.1947, allocations: 0 / 0.518 GB, free: 11.63 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000851/0.1956, allocations: 136 kB / 0.5181 GB, free: 11.5 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.012e-05/0.1956, allocations: 4 kB / 0.5181 GB, free: 11.49 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.366e-05/0.1957, allocations: 15.92 kB / 0.5182 GB, free: 11.48 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.284e-06/0.1957, allocations: 4 kB / 0.5182 GB, free: 11.47 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.358e-06/0.1957, allocations: 4 kB / 0.5182 GB, free: 11.47 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00119/0.1969, allocations: 0.9243 MB / 0.5191 GB, free: 10.51 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002427/0.1971, allocations: 188.1 kB / 0.5192 GB, free: 10.31 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.114e-05/0.1972, allocations: 16 kB / 0.5193 GB, free: 10.29 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003079/0.1975, allocations: 19.97 kB / 0.5193 GB, free: 10.27 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.289e-05/0.1976, allocations: 32.41 kB / 0.5193 GB, free: 10.24 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.189e-05/0.1977, allocations: 19.98 kB / 0.5193 GB, free: 10.22 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0004804/0.1981, allocations: 423 kB / 0.5197 GB, free: 9.816 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.1982, allocations: 0 / 0.5197 GB, free: 9.816 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0008079/0.199, allocations: 232 kB / 0.52 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.0003072/0.1993, allocations: 127.2 kB / 0.5201 GB, free: 9.457 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.00164/0.2009, allocations: 1.049 MB / 0.5211 GB, free: 8.367 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.617e-06/0.2009, allocations: 0 / 0.5211 GB, free: 8.367 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003525/0.2013, allocations: 262.3 kB / 0.5214 GB, free: 8.109 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007431/0.2021, allocations: 160.3 kB / 0.5215 GB, free: 7.953 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002952/0.205, allocations: 2.029 MB / 0.5235 GB, free: 5.875 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007036/0.2057, allocations: 1.086 MB / 0.5245 GB, free: 4.758 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0004914/0.2062, 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.0001632/0.2064, allocations: 59.42 kB / 0.5248 GB, free: 4.512 MB / 414.1 MB Notification: Performance of SimCode: time 6.61e-07/0.2064, allocations: 0 / 0.5248 GB, free: 4.512 MB / 414.1 MB Notification: Performance of Templates: time 0.2523/0.4587, allocations: 9.409 MB / 0.534 GB, free: 49.85 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)