Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_master_PowerSystems.Examples.AC3ph.Generation.TurboGroupGenerator.conf.json Using package PowerSystems with version 1.0.0 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0-master/package.mo) Using package ModelicaServices with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo) Running command: translateModel(PowerSystems.Examples.AC3ph.Generation.TurboGroupGenerator,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="PowerSystems_master_PowerSystems.Examples.AC3ph.Generation.TurboGroupGenerator") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.001421/0.001424, allocations: 184 kB / 16.38 MB, free: 5.598 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.725/1.725, allocations: 194.5 MB / 211.6 MB, free: 7.512 MB / 170.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001886/0.001886, allocations: 128.5 kB / 256.9 MB, free: 10.13 MB / 218.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0-master/package.mo): time 0.2299/0.2299, allocations: 38.01 MB / 340.1 MB, free: 13.38 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004427/0.0004429, allocations: 16.69 kB / 403.8 MB, free: 55.16 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06725/0.06772, allocations: 53.23 MB / 457 MB, free: 10.33 MB / 298.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Generation.TurboGroupGenerator): time 0.01078/0.07854, allocations: 11.15 MB / 468.2 MB, free: 15.13 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.01247/0.09104, allocations: 7.09 MB / 475.3 MB, free: 8.031 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0011/0.09218, allocations: 95.38 kB / 475.4 MB, free: 7.938 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.02884/0.121, allocations: 14.93 MB / 490.3 MB, free: 8.98 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002733/0.1238, allocations: 0.8022 MB / 491.1 MB, free: 8.176 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002151/0.126, allocations: 0.6502 MB / 491.7 MB, free: 7.527 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.001809/0.1278, allocations: 1.347 MB / 493.1 MB, free: 6.18 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002811/0.1306, allocations: 1.744 MB / 494.8 MB, free: 4.391 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001076/0.1317, allocations: 0.7279 MB / 495.6 MB, free: 3.66 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00116/0.1329, allocations: 0.7941 MB / 496.4 MB, free: 2.863 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000227/0.1332, allocations: 92 kB / 496.5 MB, free: 2.773 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007566/0.1339, allocations: 347.5 kB / 496.8 MB, free: 2.434 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0007539/0.1347, allocations: 0.6429 MB / 497.4 MB, free: 1.789 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000468/0.1352, allocations: 400.7 kB / 497.8 MB, free: 1.391 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002935/0.1381, allocations: 2.447 MB / 0.4885 GB, free: 14.94 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.581e-06/0.1381, allocations: 0 / 0.4885 GB, free: 14.94 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.937e-06/0.1382, allocations: 0 / 0.4885 GB, free: 14.94 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.07e-05/0.1382, allocations: 0 / 0.4885 GB, free: 14.94 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 376 * Number of variables: 376 Notification: Performance of Generate backend data structure: time 0.004612/0.1428, allocations: 1.992 MB / 0.4905 GB, free: 12.88 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.418e-05/0.1429, allocations: 8.031 kB / 0.4905 GB, free: 12.87 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001194/0.1441, allocations: 261.5 kB / 0.4907 GB, free: 12.61 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003594/0.1477, allocations: 1.566 MB / 0.4923 GB, free: 10.99 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001517/0.1478, allocations: 114.8 kB / 0.4924 GB, free: 10.88 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004739/0.1483, allocations: 187.8 kB / 0.4926 GB, free: 10.69 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003957/0.1523, allocations: 1.858 MB / 0.4944 GB, free: 8.762 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.948e-05/0.1524, allocations: 11.84 kB / 0.4944 GB, free: 8.75 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001865/0.1526, allocations: 67.97 kB / 0.4945 GB, free: 8.684 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003128/0.1529, allocations: 102.7 kB / 0.4946 GB, free: 8.582 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003825/0.1568, allocations: 1.6 MB / 0.4961 GB, free: 6.977 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01226/0.169, allocations: 6.557 MB / 0.5025 GB, free: 220 kB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002721/0.1718, allocations: 1.468 MB / 0.504 GB, free: 14.63 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000101/0.1719, allocations: 13.06 kB / 0.504 GB, free: 14.62 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00164/0.1736, allocations: 0.8133 MB / 0.5048 GB, free: 13.78 MB / 362.7 MB Notification: Performance of pre-optimization done (n=122): time 4.596e-06/0.1736, allocations: 0 / 0.5048 GB, free: 13.78 MB / 362.7 MB Notification: Performance of matching and sorting (n=130): time 0.01433/0.1879, allocations: 5.691 MB / 0.5103 GB, free: 7.941 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001663/0.1881, allocations: 252.3 kB / 0.5106 GB, free: 7.637 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00203/0.1901, allocations: 1.117 MB / 0.5116 GB, free: 6.508 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001223/0.1903, allocations: 61.67 kB / 0.5117 GB, free: 6.441 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007795/0.1911, allocations: 0.7493 MB / 0.5124 GB, free: 5.68 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005345/0.1916, allocations: 469.4 kB / 0.5129 GB, free: 5.215 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001151/0.1918, allocations: 32 kB / 0.5129 GB, free: 5.184 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0002478/0.192, allocations: 369.9 kB / 0.5133 GB, free: 4.816 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001587/0.1936, allocations: 0.6715 MB / 0.5139 GB, free: 4.145 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001898/0.1955, allocations: 1.026 MB / 0.5149 GB, free: 2.98 MB / 362.7 MB 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.01531/0.2108, allocations: 5.798 MB / 0.5206 GB, free: 13.11 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.983e-06/0.2109, allocations: 8 kB / 0.5206 GB, free: 13.11 MB / 378.7 MB Notification: Performance of matching and sorting (n=216) (initialization): time 0.006537/0.2174, allocations: 2.744 MB / 0.5233 GB, free: 10.27 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.002081/0.2195, allocations: 3.876 MB / 0.5271 GB, free: 6.102 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0053/0.2248, allocations: 2.241 MB / 0.5293 GB, free: 3.777 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002676/0.2275, allocations: 0.6427 MB / 0.5299 GB, free: 3.109 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002935/0.2305, allocations: 0.671 MB / 0.5305 GB, free: 2.438 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2563/0.4868, allocations: 17.07 MB / 0.5472 GB, free: 67.41 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001427/0.4882, allocations: 99.55 kB / 0.5473 GB, free: 67.41 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001649/0.4884, allocations: 68.3 kB / 0.5474 GB, free: 67.41 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.079e-05/0.4884, allocations: 3.875 kB / 0.5474 GB, free: 67.41 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005643/0.4941, allocations: 2.551 MB / 0.5499 GB, free: 66.28 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.004861/0.499, allocations: 2.17 MB / 0.552 GB, free: 65.24 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002867/0.5019, allocations: 0.647 MB / 0.5526 GB, free: 65.05 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002164/0.504, allocations: 423.8 kB / 0.553 GB, free: 65.01 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01477/0.5188, allocations: 13.95 MB / 0.5666 GB, free: 53.06 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001331/0.5202, allocations: 91.89 kB / 0.5667 GB, free: 53.02 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001435/0.5204, allocations: 61.47 kB / 0.5668 GB, free: 53 MB / 378.7 MB Warning: The initial conditions are over specified. The following 6 initial equations are redundant, so they are removed from the initialization sytem: $DER.turboGrpGen.turboGroup.genRotor.w = 0.0 $DER.turboGrpGen.turboGroup.aux1.w = 0.0 turboGrpGen.turboGroup.turbine1.a = turboGrpGen.turboGroup.turbine2.a $DER.turboGrpGen.turboGroup.aux2.w = 0.0 $DER.turboGrpGen.turboGroup.turbine3.w = 0.0 $DER.turboGrpGen.turboGroup.turbine2.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,$whenCondition1,$PRE.relayGrd.cnt,relayGrd.cnt,$whenCondition2,switchGrd.control[1],$PRE.switchGrd.t0,switchGrd.t0,$PRE.switchGrd.open,switchGrd.open,$PRE.switchGrd.closed,switchGrd.closed,$PRE.relayGrd.y[1],relayGrd.y[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (187): * Single equations (assignments): 175 * Array equations: 1 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 3 * Torn equation systems: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 3 {1,1,2} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 6 {(1,100.0%) 5,(1,100.0%) 2,(2,100.0%) 1,(2,100.0%) 1,(1,100.0%) 7,(1,100.0%) 3} * Non-linear torn systems: 1 {2 5} Notification: Performance of prepare postOptimizeDAE: time 0.001138/0.5215, allocations: 0.666 MB / 0.5674 GB, free: 52.51 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002238/0.5218, allocations: 138.7 kB / 0.5676 GB, free: 52.51 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00364/0.5254, allocations: 1.837 MB / 0.5694 GB, free: 51.37 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.04e-05/0.5255, allocations: 17.75 kB / 0.5694 GB, free: 51.36 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.205e-06/0.5255, allocations: 0 / 0.5694 GB, free: 51.36 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.707e-05/0.5255, allocations: 10.22 kB / 0.5694 GB, free: 51.36 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006679/0.5322, allocations: 3.802 MB / 0.5731 GB, free: 48.23 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.813e-06/0.5322, allocations: 7.516 kB / 0.5731 GB, free: 48.22 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002636/0.5349, allocations: 392.6 kB / 0.5735 GB, free: 47.84 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005086/0.5354, allocations: 135.5 kB / 0.5736 GB, free: 47.71 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00015/0.5356, allocations: 47.97 kB / 0.5737 GB, free: 47.66 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002591/0.5382, allocations: 3.155 MB / 0.5767 GB, free: 44.27 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.672e-06/0.5382, allocations: 8 kB / 0.5767 GB, free: 44.26 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004386/0.5426, allocations: 2.737 MB / 0.5794 GB, free: 41.48 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005621/0.5432, allocations: 331.3 kB / 0.5797 GB, free: 41.13 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002533/0.5434, allocations: 47.98 kB / 0.5798 GB, free: 41.09 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009424/0.5444, allocations: 68.7 kB / 0.5798 GB, free: 41.02 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001897/0.5446, allocations: 92.81 kB / 0.5799 GB, free: 40.93 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001108/0.5447, allocations: 39.98 kB / 0.58 GB, free: 40.89 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001192/0.5459, allocations: 0.7641 MB / 0.5807 GB, free: 40.12 MB / 378.7 MB Notification: Performance of sort global known variables: time 7.06e-07/0.546, allocations: 0 / 0.5807 GB, free: 40.12 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.002559/0.5485, allocations: 0.756 MB / 0.5815 GB, free: 39.38 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 25 (turboGrpGen.generator.phi_el,turboGrpGen.generator.w_el,turboGrpGen.generator.i_s[1],turboGrpGen.generator.i_s[2],turboGrpGen.generator.i_s[3],turboGrpGen.generator.i_rd[1],turboGrpGen.generator.i_rd[2],turboGrpGen.generator.i_rq[1],turboGrpGen.generator.i_rq[2],turboGrpGen.exciter.voltageReg.x_scaled[1],turboGrpGen.turboGroup.aux1.phi,turboGrpGen.turboGroup.aux1.w,turboGrpGen.turboGroup.turbine1.phi,turboGrpGen.turboGroup.turbine1.w,turboGrpGen.turboGroup.turbine2.phi,turboGrpGen.turboGroup.turbine2.w,turboGrpGen.turboGroup.turbine3.phi,turboGrpGen.turboGroup.turbine3.w,turboGrpGen.turboGroup.turbine4.phi,turboGrpGen.turboGroup.turbine4.w,turboGrpGen.turboGroup.aux2.phi,turboGrpGen.turboGroup.aux2.w,line.i[1],line.i[2],line.i[3]) * Number of discrete variables: 9 (switchGrd.control[1],$whenCondition2,$whenCondition1,switchGrd.t0,switchGrd.open,switchGrd.closed,relayGrd.y[1],relayGrd.cnt,system.initime) * Number of discrete states: 5 (relayGrd.y[1],relayGrd.cnt,$whenCondition1,switchGrd.open,switchGrd.closed) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (126): * Single equations (assignments): 120 * Array equations: 1 * Algorithm blocks: 1 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 1,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003842/0.5489, allocations: 194 kB / 0.5816 GB, free: 39.18 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.008886/0.5578, allocations: 5.217 MB / 0.5867 GB, free: 33.75 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 5.485e-06/0.5579, allocations: 4 kB / 0.5867 GB, free: 33.75 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001908/0.5598, allocations: 1.077 MB / 0.5878 GB, free: 32.63 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001218/0.561, allocations: 278.2 kB / 0.5881 GB, free: 32.36 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007795/0.5688, allocations: 5.692 MB / 0.5936 GB, free: 26.64 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001212/0.5701, allocations: 1.539 MB / 0.5951 GB, free: 25.07 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.00194/0.572, allocations: 467.8 kB / 0.5956 GB, free: 24.61 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004691/0.5725, allocations: 115.4 kB / 0.5957 GB, free: 24.5 MB / 378.7 MB Notification: Performance of SimCode: time 1.431e-06/0.5725, allocations: 0 / 0.5957 GB, free: 24.5 MB / 378.7 MB Notification: Performance of Templates: time 0.0462/0.6187, allocations: 24.78 MB / 0.6199 GB, free: 15.72 MB / 394.7 MB