Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC3ph.Generation.TurboGroupGenerator.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.TurboGroupGenerator,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC3ph.Generation.TurboGroupGenerator") translateModel(PowerSystems.Examples.AC3ph.Generation.TurboGroupGenerator,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC3ph.Generation.TurboGroupGenerator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001119/0.001119, allocations: 110.5 kB / 17.75 MB, free: 5.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.001128/0.001128, allocations: 187 kB / 18.68 MB, free: 4.406 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.382/1.382, allocations: 205.1 MB / 224.6 MB, free: 12.27 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1853/0.1853, allocations: 37.99 MB / 309.9 MB, free: 5.941 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.001559/0.001559, allocations: 72.47 kB / 432.6 MB, free: 15.76 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1004/0.102, allocations: 55.24 MB / 487.8 MB, free: 8.453 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Generation.TurboGroupGenerator): time 0.01294/0.1149, allocations: 10.4 MB / 498.2 MB, free: 14 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01186/0.1269, allocations: 6.673 MB / 0.493 GB, free: 7.309 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001618/0.1285, allocations: 39.81 kB / 0.4931 GB, free: 7.27 MB / 382.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Math/package.mo:1895:3-1973:18:writable] Warning: Pure function 'Modelica.Math.Matrices.eigenValues' contains a call to impure function 'Modelica.Math.Matrices.LAPACK.dgeev_eigenValues'. [/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.typeComponents: time 0.3885/0.5171, allocations: 109.1 MB / 0.5996 GB, free: 8.199 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003308/0.5204, allocations: 0.8363 MB / 0.6005 GB, free: 7.695 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002015/0.5225, allocations: 0.7623 MB / 0.6012 GB, free: 6.992 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.02217/0.5447, allocations: 15.99 MB / 0.6168 GB, free: 7.844 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00345/0.5481, allocations: 2.141 MB / 0.6189 GB, free: 5.754 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.04195/0.5901, allocations: 27.75 MB / 0.646 GB, free: 10.86 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002069/0.5922, allocations: 1.194 MB / 0.6472 GB, free: 9.766 MB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007463/0.593, allocations: 228.7 kB / 0.6474 GB, free: 9.543 MB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001337/0.5943, allocations: 0.5051 MB / 0.6479 GB, free: 9.062 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001132/0.5955, allocations: 0.8282 MB / 0.6487 GB, free: 8.242 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002062/0.5976, allocations: 1.087 MB / 0.6498 GB, free: 7.16 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003821/0.6014, allocations: 3.149 MB / 0.6528 GB, free: 4.086 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.039e-06/0.6014, allocations: 0 / 0.6528 GB, free: 4.086 MB / 478.1 MB Notification: Performance of FrontEnd: time 1.643e-06/0.6014, allocations: 0 / 0.6528 GB, free: 4.086 MB / 478.1 MB Notification: Performance of Transformations before backend: time 9.619e-05/0.6015, allocations: 1.031 kB / 0.6528 GB, free: 4.086 MB / 478.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 378 * Number of variables: 378 Notification: Performance of Generate backend data structure: time 0.006102/0.6077, allocations: 2.34 MB / 0.6551 GB, free: 1.695 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.44e-05/0.6077, allocations: 11.89 kB / 0.6551 GB, free: 1.684 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001224/0.6089, allocations: 262.4 kB / 0.6554 GB, free: 1.426 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003708/0.6127, allocations: 1.677 MB / 0.657 GB, free: 15.75 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001135/0.6128, allocations: 114.7 kB / 0.6571 GB, free: 15.64 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005028/0.6133, allocations: 179.9 kB / 0.6573 GB, free: 15.46 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003513/0.6168, allocations: 1.882 MB / 0.6591 GB, free: 13.52 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.605e-05/0.6169, allocations: 15.84 kB / 0.6591 GB, free: 13.5 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001642/0.6171, allocations: 63.89 kB / 0.6592 GB, free: 13.45 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002614/0.6173, allocations: 94.73 kB / 0.6593 GB, free: 13.35 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003122/0.6205, allocations: 1.59 MB / 0.6609 GB, free: 11.76 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01099/0.6315, allocations: 6.496 MB / 0.6672 GB, free: 5.125 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002056/0.6336, allocations: 1.467 MB / 0.6686 GB, free: 3.543 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001236/0.6348, allocations: 0.7662 MB / 0.6694 GB, free: 2.77 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.339e-05/0.6349, allocations: 22.95 kB / 0.6694 GB, free: 2.75 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00129/0.6362, allocations: 0.7861 MB / 0.6702 GB, free: 1.926 MB / 494.1 MB Notification: Performance of pre-optimization done (n=122): time 5.01e-06/0.6362, allocations: 4 kB / 0.6702 GB, free: 1.922 MB / 494.1 MB Notification: Performance of matching and sorting (n=160): time 0.03211/0.6683, allocations: 11.58 MB / 0.6815 GB, free: 6.168 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001341/0.6685, allocations: 252.6 kB / 0.6817 GB, free: 5.867 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001731/0.6702, allocations: 1.133 MB / 0.6828 GB, free: 4.723 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 0.0001551/0.6704, allocations: 57.7 kB / 0.6829 GB, free: 4.66 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006636/0.6711, allocations: 0.7615 MB / 0.6836 GB, free: 3.891 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005511/0.6716, allocations: 0.5598 MB / 0.6842 GB, free: 3.336 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005917/0.6722, allocations: 351.2 kB / 0.6845 GB, free: 2.988 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 9.724e-05/0.6724, allocations: 301.1 kB / 0.6848 GB, free: 2.691 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001557/0.6739, allocations: 0.9105 MB / 0.6857 GB, free: 1.777 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001815/0.6757, allocations: 1.291 MB / 0.6869 GB, free: 356 kB / 0.4981 GB Notification: It was not possible to check the given initialization system for consistency symbolically, because the relevant equations are part of an algebraic loop. This is not supported yet. Notification: Performance of analyzeInitialSystem (initialization): time 0.02245/0.6982, allocations: 10.7 MB / 0.6974 GB, free: 5.422 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.926e-05/0.6983, allocations: 4 kB / 0.6974 GB, free: 5.418 MB / 0.5137 GB Notification: Performance of matching and sorting (n=245) (initialization): time 0.007426/0.7057, allocations: 3.569 MB / 0.7009 GB, free: 1.773 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 5.026e-05/0.7058, allocations: 33.7 kB / 0.7009 GB, free: 1.734 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.005901/0.7117, allocations: 3.048 MB / 0.7039 GB, free: 14.62 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003552/0.7152, allocations: 1.205 MB / 0.7051 GB, free: 13.39 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002783/0.7181, allocations: 0.6553 MB / 0.7057 GB, free: 12.74 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0229/0.741, allocations: 21.61 MB / 0.7268 GB, free: 5.75 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001483/0.7425, allocations: 107.9 kB / 0.7269 GB, free: 5.645 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002663/0.7428, allocations: 75.98 kB / 0.727 GB, free: 5.57 MB / 0.545 GB Warning: The initial conditions are over specified. The following 8 initial equations are redundant, so they are removed from the initialization system: $DER.turboGrpGen.generator.psi_rd[2] = 0.0 $DER.turboGrpGen.generator.psi_rq[1] = 0.0 $DER.turboGrpGen.turboGroup.genRotor.w = 0.0 $DER.turboGrpGen.turboGroup.turbine1.w = 0.0 $DER.turboGrpGen.turboGroup.turbine2.w = 0.0 $DER.turboGrpGen.turboGroup.turbine3.w = 0.0 $DER.turboGrpGen.turboGroup.turbine4.w = 0.0 $DER.turboGrpGen.turboGroup.aux2.w = 0.0. Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.002438/0.7452, allocations: 1.373 MB / 0.7283 GB, free: 4.195 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001769/0.747, allocations: 1.26 MB / 0.7296 GB, free: 2.797 MB / 0.545 GB Notification: It was not possible to check the given initialization system for consistency symbolically, because the relevant equations are part of an algebraic loop. This is not supported yet. Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.02096/0.768, allocations: 10.5 MB / 0.7398 GB, free: 8.062 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.475e-05/0.768, allocations: 4 kB / 0.7398 GB, free: 8.059 MB / 0.5606 GB Notification: Performance of matching and sorting (n=245) (initialization_lambda0): time 0.006981/0.775, allocations: 3.522 MB / 0.7432 GB, free: 4.461 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 4.362e-05/0.7751, allocations: 37.7 kB / 0.7433 GB, free: 4.418 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.005412/0.7805, allocations: 2.997 MB / 0.7462 GB, free: 1.363 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003344/0.7838, allocations: 1.207 MB / 0.7474 GB, free: 136 kB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.2171/1.001, allocations: 483.2 kB / 0.7479 GB, free: 202.4 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01869/1.02, allocations: 18.44 MB / 0.7659 GB, free: 189.9 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001498/1.021, allocations: 105.3 kB / 0.766 GB, free: 189.9 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001451/1.021, allocations: 78.34 kB / 0.766 GB, free: 189.9 MB / 0.5606 GB Warning: The initial conditions are over specified. The following 8 initial equations are redundant, so they are removed from the initialization_lambda0 system: $DER.turboGrpGen.generator.psi_rd[2] = 0.0 $DER.turboGrpGen.generator.psi_rq[1] = 0.0 $DER.turboGrpGen.turboGroup.genRotor.w = 0.0 $DER.turboGrpGen.turboGroup.turbine1.w = 0.0 $DER.turboGrpGen.turboGroup.turbine2.w = 0.0 $DER.turboGrpGen.turboGroup.turbine3.w = 0.0 $DER.turboGrpGen.turboGroup.turbine4.w = 0.0 $DER.turboGrpGen.turboGroup.aux2.w = 0.0. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 44 * Number of states: 0 () * Number of discrete variables: 14 (system.initime,relayGrd.cnt,$PRE.relayGrd.cnt,$whenCondition1,$PRE.switchGrd.t0,$PRE.switchGrd.closed,$PRE.switchGrd.open,relayGrd.y[1],$PRE.relayGrd.y[1],switchGrd.closed,switchGrd.open,switchGrd.t0,switchGrd.control[1],$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (195): * Single equations (assignments): 182 * Array equations: 2 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 3 * Torn equation systems: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 3 systems {1, 1, 2} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 6 systems {(1,5,100.0%), (3,18,100.0%), (1,2,100.0%), (1,4,100.0%), (1,7,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,5)} Notification: Performance of prepare postOptimizeDAE: time 0.0005386/1.022, allocations: 349.5 kB / 0.7664 GB, free: 189.6 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002715/1.022, allocations: 153.4 kB / 0.7665 GB, free: 189.6 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005604/1.028, allocations: 2.91 MB / 0.7694 GB, free: 188.3 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.562e-05/1.028, allocations: 14.27 kB / 0.7694 GB, free: 188.3 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.199e-06/1.028, allocations: 0 / 0.7694 GB, free: 188.3 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008807/1.029, allocations: 397.4 kB / 0.7697 GB, free: 188.1 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002335/1.029, allocations: 52.48 kB / 0.7698 GB, free: 188.1 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008405/1.03, allocations: 86.94 kB / 0.7699 GB, free: 188.1 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000302/1.03, allocations: 123.1 kB / 0.77 GB, free: 188 MB / 0.5606 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.006795/1.037, allocations: 3.287 MB / 0.7732 GB, free: 186.7 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.004937/1.042, allocations: 3.732 MB / 0.7769 GB, free: 185.1 MB / 0.5606 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.001276/1.043, allocations: 1.043 MB / 0.7779 GB, free: 184.7 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.001042/1.044, allocations: 0.7787 MB / 0.7786 GB, free: 184.4 MB / 0.5606 GB Notification: Performance of Backend: time 7.01e-07/1.044, allocations: 0 / 0.7786 GB, free: 184.4 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.009763/1.054, allocations: 5.674 MB / 0.7842 GB, free: 181.2 MB / 0.5606 GB Notification: Performance of SimCode: time 0.005871/1.06, allocations: 5.088 MB / 0.7891 GB, free: 178.3 MB / 0.5606 GB Notification: Performance of Templates: time 0.05035/1.11, allocations: 42 MB / 0.8302 GB, free: 138 MB / 0.5606 GB make -j1 -f PowerSystems_PowerSystems.Examples.AC3ph.Generation.TurboGroupGenerator.makefile (rm -f PowerSystems_PowerSystems.Examples.AC3ph.Generation.TurboGroupGenerator.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC3ph.Generation.TurboGroupGenerator.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC3ph.Generation.TurboGroupGenerator.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC3ph.Generation.TurboGroupGenerator.sim & ./PowerSystems_PowerSystems.Examples.AC3ph.Generation.TurboGroupGenerator -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.AC3ph.Generation.TurboGroupGenerator.pipe 2>&1)