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.001301/0.001301, allocations: 100.5 kB / 17.73 MB, free: 5.324 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.001451/0.001451, allocations: 190.9 kB / 18.67 MB, free: 4.395 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.341/1.341, allocations: 205.1 MB / 224.5 MB, free: 12.25 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1829/0.1829, allocations: 37.98 MB / 309.9 MB, free: 5.961 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.001568/0.001568, allocations: 67.91 kB / 432.5 MB, free: 15.65 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09915/0.1007, allocations: 55.24 MB / 487.8 MB, free: 8.34 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Generation.TurbineGenerator): time 0.00992/0.1107, allocations: 7.521 MB / 495.3 MB, free: 0.7773 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.007069/0.1178, allocations: 3.022 MB / 498.3 MB, free: 13.74 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006962/0.1186, allocations: 27.88 kB / 498.4 MB, free: 13.71 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002252/0.1208, allocations: 0.7467 MB / 499.1 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.00205/0.1229, allocations: 0.6725 MB / 499.8 MB, free: 12.29 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0011/0.124, allocations: 383.2 kB / 0.4884 GB, free: 11.91 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001934/0.126, allocations: 1.344 MB / 0.4897 GB, free: 10.57 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001109/0.1271, allocations: 0.7168 MB / 0.4904 GB, free: 9.84 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009751/0.1281, allocations: 0.5643 MB / 0.491 GB, free: 9.273 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001158/0.1293, allocations: 0.6268 MB / 0.4916 GB, free: 8.645 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002077/0.1295, allocations: 76 kB / 0.4917 GB, free: 8.57 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00105/0.1305, allocations: 479.2 kB / 0.4921 GB, free: 8.102 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005341/0.1311, allocations: 450.9 kB / 0.4926 GB, free: 7.66 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008324/0.1319, allocations: 0.5092 MB / 0.4931 GB, free: 7.148 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001963/0.1339, allocations: 1.421 MB / 0.4945 GB, free: 5.723 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.2e-06/0.1339, allocations: 0 / 0.4945 GB, free: 5.723 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.395e-06/0.1339, allocations: 0 / 0.4945 GB, free: 5.723 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.568e-05/0.134, allocations: 0 / 0.4945 GB, free: 5.723 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.002889/0.1369, allocations: 1.281 MB / 0.4957 GB, free: 4.387 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.324e-05/0.1369, allocations: 15.89 kB / 0.4957 GB, free: 4.371 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00139/0.1383, allocations: 203.6 kB / 0.4959 GB, free: 4.172 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001687/0.14, allocations: 0.7448 MB / 0.4966 GB, free: 3.391 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.459e-05/0.1401, allocations: 62.36 kB / 0.4967 GB, free: 3.328 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00028/0.1404, allocations: 99.84 kB / 0.4968 GB, free: 3.23 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001931/0.1424, allocations: 1.1 MB / 0.4979 GB, free: 2.086 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.712e-05/0.1424, allocations: 11.88 kB / 0.4979 GB, free: 2.074 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.174e-05/0.1425, allocations: 32 kB / 0.4979 GB, free: 2.043 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001818/0.1427, allocations: 77.95 kB / 0.498 GB, free: 1.965 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001487/0.1442, allocations: 0.8665 MB / 0.4988 GB, free: 1.102 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00547/0.1497, allocations: 3.969 MB / 0.5027 GB, free: 12.93 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006375/0.1503, allocations: 435.8 kB / 0.5031 GB, free: 12.46 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003732/0.1507, allocations: 282.9 kB / 0.5034 GB, free: 12.18 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.577e-05/0.1508, allocations: 4.438 kB / 0.5034 GB, free: 12.18 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.781e-05/0.1508, allocations: 39 kB / 0.5034 GB, free: 12.13 MB / 398.1 MB Notification: Performance of pre-optimization done (n=48): time 2.515e-06/0.1508, allocations: 0 / 0.5034 GB, free: 12.13 MB / 398.1 MB Notification: Performance of matching and sorting (n=51): time 0.003013/0.1538, allocations: 1.721 MB / 0.5051 GB, free: 10.36 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.142e-05/0.1539, allocations: 85.55 kB / 0.5052 GB, free: 10.25 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007679/0.1547, allocations: 0.586 MB / 0.5058 GB, free: 9.66 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.128e-05/0.1547, allocations: 29.7 kB / 0.5058 GB, free: 9.625 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003244/0.1551, allocations: 478.5 kB / 0.5063 GB, free: 9.148 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001531/0.1552, allocations: 189.5 kB / 0.5064 GB, free: 8.961 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001997/0.1554, allocations: 142.5 kB / 0.5066 GB, free: 8.812 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001544/0.1556, allocations: 382.8 kB / 0.5069 GB, free: 8.43 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003837/0.156, allocations: 249.8 kB / 0.5072 GB, free: 8.188 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005146/0.1565, allocations: 477 kB / 0.5076 GB, free: 7.629 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009828/0.1575, allocations: 0.7702 MB / 0.5084 GB, free: 6.766 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.474e-06/0.1575, allocations: 4 kB / 0.5084 GB, free: 6.762 MB / 398.1 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.002046/0.1596, allocations: 1.114 MB / 0.5095 GB, free: 5.613 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.478e-05/0.1596, allocations: 8.375 kB / 0.5095 GB, free: 5.605 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.00136/0.161, allocations: 0.8066 MB / 0.5103 GB, free: 4.77 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007297/0.1617, allocations: 222.4 kB / 0.5105 GB, free: 4.543 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005491/0.1623, allocations: 155.7 kB / 0.5106 GB, free: 4.391 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005785/0.1681, allocations: 5.669 MB / 0.5162 GB, free: 14.29 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006065/0.1687, allocations: 39.89 kB / 0.5162 GB, free: 14.25 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.318e-05/0.1688, allocations: 35.92 kB / 0.5162 GB, free: 14.22 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.0004906/0.1693, allocations: 301.5 kB / 0.5165 GB, free: 13.91 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001662/0.1695, allocations: 71.22 kB / 0.5166 GB, free: 13.84 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001036/0.1705, allocations: 0.6085 MB / 0.5172 GB, free: 13.22 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.095e-06/0.1706, allocations: 4 kB / 0.5172 GB, free: 13.21 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.124e-06/0.1706, allocations: 0 / 0.5172 GB, free: 13.21 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.416e-06/0.1706, allocations: 3.984 kB / 0.5172 GB, free: 13.21 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00254/0.1731, allocations: 1.494 MB / 0.5187 GB, free: 11.64 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.032e-06/0.1732, allocations: 4 kB / 0.5187 GB, free: 11.64 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006234/0.1738, allocations: 123.8 kB / 0.5188 GB, free: 11.52 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.417e-05/0.1738, allocations: 8.141 kB / 0.5188 GB, free: 11.51 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.179e-05/0.1739, allocations: 23.94 kB / 0.5188 GB, free: 11.49 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.771e-06/0.1739, allocations: 4 kB / 0.5188 GB, free: 11.48 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.215e-06/0.1739, allocations: 0 / 0.5188 GB, free: 11.48 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001268/0.1752, allocations: 0.9321 MB / 0.5197 GB, free: 10.52 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003024/0.1755, allocations: 180.2 kB / 0.5199 GB, free: 10.32 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001229/0.1756, allocations: 16.27 kB / 0.5199 GB, free: 10.31 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003648/0.176, allocations: 19.98 kB / 0.5199 GB, free: 10.29 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.042e-05/0.1761, allocations: 32.39 kB / 0.52 GB, free: 10.26 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.999e-05/0.1761, allocations: 19.94 kB / 0.52 GB, free: 10.24 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0005055/0.1766, allocations: 423 kB / 0.5204 GB, free: 9.832 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.1766, allocations: 0 / 0.5204 GB, free: 9.832 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0008492/0.1775, allocations: 236 kB / 0.5206 GB, free: 9.602 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.0003296/0.1778, allocations: 135.2 kB / 0.5207 GB, free: 9.461 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001755/0.1796, allocations: 1.038 MB / 0.5217 GB, free: 8.383 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 5.621e-06/0.1796, allocations: 4.062 kB / 0.5217 GB, free: 8.379 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000356/0.18, allocations: 262.2 kB / 0.522 GB, free: 8.121 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008829/0.1809, allocations: 163.4 kB / 0.5222 GB, free: 7.961 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003349/0.1842, allocations: 2.105 MB / 0.5242 GB, free: 5.801 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006899/0.1849, allocations: 1.079 MB / 0.5253 GB, free: 4.691 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002317/0.1852, allocations: 59.42 kB / 0.5253 GB, free: 4.633 MB / 414.1 MB Notification: Performance of SimCode: time 7.82e-07/0.1852, allocations: 4 kB / 0.5253 GB, free: 4.629 MB / 414.1 MB Notification: Performance of Templates: time 0.2263/0.4115, allocations: 15.31 MB / 0.5403 GB, free: 47.87 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)