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.002521/0.002521, allocations: 356.2 kB / 16.57 MB, free: 5.59 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 3.39/3.39, allocations: 388.9 MB / 406.2 MB, free: 12 MB / 330.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.00317/0.00317, allocations: 249.2 kB / 451.6 MB, free: 14.6 MB / 378.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0-master/package.mo): time 0.6169/0.6169, allocations: 76.01 MB / 0.5594 GB, free: 177.5 MB / 442.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004534/0.0004537, allocations: 12 kB / 0.6216 GB, free: 114.1 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06551/0.06599, allocations: 53.24 MB / 0.6736 GB, free: 60.83 MB / 442.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Generation.TurboGroupGenerator): time 0.01026/0.07629, allocations: 11.83 MB / 0.6852 GB, free: 48.95 MB / 442.7 MB Notification: Performance of NFInst.instExpressions: time 0.009338/0.08567, allocations: 7.112 MB / 0.6921 GB, free: 41.83 MB / 442.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009666/0.08667, allocations: 95.38 kB / 0.6922 GB, free: 41.73 MB / 442.7 MB Notification: Performance of NFTyping.typeComponents: time 0.3776/0.4643, allocations: 111.3 MB / 0.8009 GB, free: 82.95 MB / 442.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00265/0.467, allocations: 0.9469 MB / 0.8018 GB, free: 82.39 MB / 442.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001812/0.4688, allocations: 0.65 MB / 0.8025 GB, free: 81.8 MB / 442.7 MB Notification: Performance of NFFlatten.flatten: time 0.02051/0.4894, allocations: 16.64 MB / 0.8187 GB, free: 65.94 MB / 442.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00219/0.4916, allocations: 1.738 MB / 0.8204 GB, free: 64.28 MB / 442.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.03691/0.5285, allocations: 28.27 MB / 0.848 GB, free: 36.75 MB / 442.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001359/0.5299, allocations: 1.104 MB / 0.8491 GB, free: 35.72 MB / 442.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001953/0.5301, allocations: 92 kB / 0.8492 GB, free: 35.63 MB / 442.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007918/0.5309, allocations: 360.9 kB / 0.8495 GB, free: 35.29 MB / 442.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0005518/0.5315, allocations: 0.702 MB / 0.8502 GB, free: 34.59 MB / 442.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003522/0.5319, allocations: 403.3 kB / 0.8506 GB, free: 34.2 MB / 442.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001932/0.5338, allocations: 2.449 MB / 0.853 GB, free: 31.82 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.792e-06/0.5338, allocations: 0 / 0.853 GB, free: 31.82 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.885e-06/0.5338, allocations: 0 / 0.853 GB, free: 31.82 MB / 442.7 MB Notification: Performance of Transformations before backend: time 2.034e-05/0.5339, allocations: 0 / 0.853 GB, free: 31.82 MB / 442.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.003703/0.5376, allocations: 1.983 MB / 0.8549 GB, free: 29.8 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.096e-05/0.5376, allocations: 8.031 kB / 0.855 GB, free: 29.79 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009952/0.5386, allocations: 264.6 kB / 0.8552 GB, free: 29.53 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002807/0.5415, allocations: 1.572 MB / 0.8567 GB, free: 27.93 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.093e-05/0.5416, allocations: 113.9 kB / 0.8568 GB, free: 27.82 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004243/0.542, allocations: 183.8 kB / 0.857 GB, free: 27.64 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003136/0.5452, allocations: 1.87 MB / 0.8588 GB, free: 25.71 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.537e-05/0.5452, allocations: 11.89 kB / 0.8589 GB, free: 25.7 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001559/0.5454, allocations: 61.95 kB / 0.8589 GB, free: 25.64 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002327/0.5456, allocations: 100.1 kB / 0.859 GB, free: 25.54 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002944/0.5486, allocations: 1.592 MB / 0.8606 GB, free: 23.94 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009191/0.5578, allocations: 6.582 MB / 0.867 GB, free: 17.26 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002047/0.5599, allocations: 1.467 MB / 0.8684 GB, free: 15.68 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001338/0.5612, allocations: 0.7819 MB / 0.8692 GB, free: 14.89 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.284e-05/0.5613, allocations: 17.55 kB / 0.8692 GB, free: 14.88 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001254/0.5626, allocations: 0.8062 MB / 0.87 GB, free: 14.05 MB / 442.7 MB Notification: Performance of pre-optimization done (n=122): time 5.1e-06/0.5626, allocations: 0 / 0.87 GB, free: 14.05 MB / 442.7 MB Notification: Performance of matching and sorting (n=130): time 0.01078/0.5734, allocations: 5.444 MB / 0.8753 GB, free: 8.496 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.852e-05/0.5735, allocations: 256.3 kB / 0.8756 GB, free: 8.191 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001508/0.575, allocations: 1.119 MB / 0.8767 GB, free: 7.062 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 9.735e-05/0.5751, allocations: 57.06 kB / 0.8767 GB, free: 7.004 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004827/0.5756, allocations: 0.748 MB / 0.8774 GB, free: 6.246 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003224/0.5759, allocations: 467.4 kB / 0.8779 GB, free: 5.793 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.692e-05/0.5761, allocations: 37.33 kB / 0.8779 GB, free: 5.758 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001/0.5762, allocations: 365.9 kB / 0.8783 GB, free: 5.395 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001189/0.5774, allocations: 0.6715 MB / 0.8789 GB, free: 4.723 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001422/0.5788, allocations: 1.037 MB / 0.8799 GB, free: 3.547 MB / 442.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.01308/0.5919, allocations: 5.787 MB / 0.8856 GB, free: 13.7 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.378e-06/0.5919, allocations: 4 kB / 0.8856 GB, free: 13.7 MB / 458.7 MB Notification: Performance of matching and sorting (n=216) (initialization): time 0.005944/0.5979, allocations: 2.743 MB / 0.8883 GB, free: 10.86 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003113/0.5982, allocations: 416.8 kB / 0.8887 GB, free: 10.32 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.005022/0.6032, allocations: 2.226 MB / 0.8908 GB, free: 8.008 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002486/0.6058, allocations: 0.6421 MB / 0.8915 GB, free: 7.344 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002813/0.6086, allocations: 0.6633 MB / 0.8921 GB, free: 6.68 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0204/0.629, allocations: 16.76 MB / 0.9085 GB, free: 4.66 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001337/0.6304, allocations: 107.1 kB / 0.9086 GB, free: 4.559 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001772/0.6306, allocations: 66.72 kB / 0.9086 GB, free: 4.496 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.52e-06/0.6306, allocations: 4 kB / 0.9086 GB, free: 4.492 MB / 474.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005547/0.6361, allocations: 2.538 MB / 0.9111 GB, free: 1.867 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.2294/0.8655, allocations: 2.165 MB / 0.9132 GB, free: 151.6 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002537/0.8681, allocations: 0.6405 MB / 0.9139 GB, free: 151.5 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001971/0.8701, allocations: 414.5 kB / 0.9143 GB, free: 151.5 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0132/0.8833, allocations: 13.68 MB / 0.9276 GB, free: 141.4 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001187/0.8845, allocations: 87.69 kB / 0.9277 GB, free: 141.4 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001492/0.8847, allocations: 66.25 kB / 0.9278 GB, free: 141.4 MB / 474.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,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 7,(1,100.0%) 3} * Non-linear torn systems: 1 {2 5} Notification: Performance of prepare postOptimizeDAE: time 0.001105/0.8858, allocations: 0.6677 MB / 0.9284 GB, free: 141.2 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002093/0.886, allocations: 140.4 kB / 0.9286 GB, free: 141.2 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003421/0.8895, allocations: 1.834 MB / 0.9303 GB, free: 140.7 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.098e-05/0.8895, allocations: 14.66 kB / 0.9304 GB, free: 140.7 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.077e-05/0.8895, allocations: 3.094 kB / 0.9304 GB, free: 140.7 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.906e-05/0.8896, allocations: 8.656 kB / 0.9304 GB, free: 140.7 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006947/0.8965, allocations: 3.82 MB / 0.9341 GB, free: 138.9 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.735e-06/0.8965, allocations: 3.5 kB / 0.9341 GB, free: 138.9 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002374/0.8989, allocations: 389.3 kB / 0.9345 GB, free: 138.8 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004071/0.8993, allocations: 130.7 kB / 0.9346 GB, free: 138.8 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001372/0.8995, allocations: 49.55 kB / 0.9346 GB, free: 138.8 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002339/0.9019, allocations: 3.061 MB / 0.9376 GB, free: 136 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.51e-06/0.9019, allocations: 7.5 kB / 0.9376 GB, free: 136 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004595/0.9065, allocations: 2.64 MB / 0.9402 GB, free: 134.8 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006308/0.9071, allocations: 335.2 kB / 0.9405 GB, free: 134.6 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002336/0.9074, allocations: 47.78 kB / 0.9406 GB, free: 134.6 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009074/0.9083, allocations: 70.69 kB / 0.9407 GB, free: 134.6 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002003/0.9085, allocations: 94.44 kB / 0.9407 GB, free: 134.5 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001127/0.9086, allocations: 39.64 kB / 0.9408 GB, free: 134.5 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.001212/0.9099, allocations: 0.7623 MB / 0.9415 GB, free: 134.2 MB / 474.7 MB Notification: Performance of sort global known variables: time 7.6e-07/0.9099, allocations: 0 / 0.9415 GB, free: 134.2 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.002691/0.9126, allocations: 0.7572 MB / 0.9423 GB, free: 134.1 MB / 474.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 {(1,100.0%) 2,(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003869/0.913, allocations: 191.8 kB / 0.9424 GB, free: 134 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.009576/0.9226, allocations: 5.186 MB / 0.9475 GB, free: 131.1 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 5.123e-06/0.9226, allocations: 1.25 kB / 0.9475 GB, free: 131.1 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001975/0.9246, allocations: 1.065 MB / 0.9486 GB, free: 130.6 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001484/0.9261, allocations: 306.6 kB / 0.9488 GB, free: 130.5 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008237/0.9343, allocations: 5.677 MB / 0.9544 GB, free: 127.4 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00136/0.9357, allocations: 1.542 MB / 0.9559 GB, free: 126.6 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.00199/0.9377, allocations: 468 kB / 0.9563 GB, free: 126.6 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000468/0.9382, allocations: 118.5 kB / 0.9565 GB, free: 126.5 MB / 474.7 MB Notification: Performance of SimCode: time 1.381e-06/0.9382, allocations: 0 / 0.9565 GB, free: 126.5 MB / 474.7 MB Notification: Performance of Templates: time 0.04619/0.9844, allocations: 24.61 MB / 0.9805 GB, free: 116.1 MB / 474.7 MB