Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_master_PowerSystems.Examples.AC3ph.Generation.TieLine.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.TieLine,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_master_PowerSystems.Examples.AC3ph.Generation.TieLine") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.002329/0.002333, allocations: 354.1 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.167/3.167, allocations: 388.9 MB / 406.2 MB, free: 6.844 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.003084/0.003083, allocations: 225.5 kB / 451.6 MB, free: 0.582 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0-master/package.mo): time 0.597/0.597, allocations: 76.02 MB / 0.5594 GB, free: 14.45 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004973/0.0004975, allocations: 12 kB / 0.6216 GB, free: 14.88 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.25/0.2506, allocations: 53.22 MB / 0.6736 GB, free: 62.63 MB / 346.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Generation.TieLine): time 0.01601/0.2666, allocations: 19.32 MB / 0.6925 GB, free: 43.25 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.01639/0.2831, allocations: 10.63 MB / 0.7029 GB, free: 32.6 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002647/0.2857, allocations: 147 kB / 0.703 GB, free: 32.46 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.5551/0.8409, allocations: 217.1 MB / 0.915 GB, free: 11.91 MB / 442.7 MB Notification: Performance of NFTyping.typeBindings: time 0.005947/0.8469, allocations: 1.875 MB / 0.9168 GB, free: 10.72 MB / 442.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004284/0.8512, allocations: 1.312 MB / 0.9181 GB, free: 9.559 MB / 442.7 MB Notification: Performance of NFFlatten.flatten: time 0.05532/0.9065, allocations: 33.35 MB / 0.9506 GB, free: 9.371 MB / 474.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005642/0.9122, allocations: 2.767 MB / 0.9533 GB, free: 6.578 MB / 474.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.3213/1.234, allocations: 55.52 MB / 1.008 GB, free: 121.9 MB / 474.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003574/1.237, allocations: 2.546 MB / 1.01 GB, free: 120.2 MB / 474.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000416/1.238, allocations: 140 kB / 1.01 GB, free: 120 MB / 474.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001357/1.239, allocations: 0.5762 MB / 1.011 GB, free: 119.6 MB / 474.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001382/1.24, allocations: 1.661 MB / 1.012 GB, free: 118.3 MB / 474.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0007322/1.241, allocations: 0.7388 MB / 1.013 GB, free: 118 MB / 474.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003964/1.245, allocations: 4.768 MB / 1.018 GB, free: 113.9 MB / 474.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.762e-06/1.245, allocations: 0 / 1.018 GB, free: 113.9 MB / 474.7 MB Notification: Performance of FrontEnd: time 1.701e-06/1.245, allocations: 0 / 1.018 GB, free: 113.9 MB / 474.7 MB Notification: Performance of Transformations before backend: time 3.922e-05/1.245, allocations: 0 / 1.018 GB, free: 113.9 MB / 474.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 697 * Number of variables: 697 Notification: Performance of Generate backend data structure: time 0.00843/1.254, allocations: 4.057 MB / 1.022 GB, free: 110.1 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.375e-05/1.254, allocations: 8.031 kB / 1.022 GB, free: 110.1 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003169/1.257, allocations: 0.6799 MB / 1.022 GB, free: 109.4 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007264/1.264, allocations: 3.358 MB / 1.026 GB, free: 106.8 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000141/1.264, allocations: 194.5 kB / 1.026 GB, free: 106.7 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000769/1.265, allocations: 344.8 kB / 1.026 GB, free: 106.5 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006258/1.271, allocations: 3.846 MB / 1.03 GB, free: 103.7 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.18e-05/1.271, allocations: 11.89 kB / 1.03 GB, free: 103.7 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003392/1.272, allocations: 112.3 kB / 1.03 GB, free: 103.7 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0007379/1.273, allocations: 252.8 kB / 1.03 GB, free: 103.5 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006582/1.279, allocations: 3.623 MB / 1.034 GB, free: 100.5 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0203/1.299, allocations: 12.89 MB / 1.046 GB, free: 87.3 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003851/1.303, allocations: 2.307 MB / 1.049 GB, free: 84.98 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003005/1.306, allocations: 1.735 MB / 1.05 GB, free: 83.25 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001341/1.307, allocations: 33.36 kB / 1.05 GB, free: 83.22 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002558/1.309, allocations: 1.587 MB / 1.052 GB, free: 81.62 MB / 474.7 MB Notification: Performance of pre-optimization done (n=223): time 5.557e-06/1.309, allocations: 2.078 kB / 1.052 GB, free: 81.62 MB / 474.7 MB Notification: Performance of matching and sorting (n=267): time 0.06784/1.377, allocations: 20.94 MB / 1.072 GB, free: 60.61 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.896e-05/1.377, allocations: 261.4 kB / 1.073 GB, free: 60.3 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00477/1.382, allocations: 2.753 MB / 1.075 GB, free: 57.53 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000385/1.382, allocations: 73.7 kB / 1.075 GB, free: 57.45 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00107/1.383, allocations: 1.508 MB / 1.077 GB, free: 55.94 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008192/1.384, allocations: 0.9452 MB / 1.078 GB, free: 55 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002389/1.384, allocations: 64 kB / 1.078 GB, free: 54.94 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.000175/1.385, allocations: 443 kB / 1.078 GB, free: 54.5 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003197/1.388, allocations: 1.677 MB / 1.08 GB, free: 52.82 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003529/1.391, allocations: 2.28 MB / 1.082 GB, free: 50.33 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003634/1.395, allocations: 2.025 MB / 1.084 GB, free: 48.29 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.205e-05/1.395, allocations: 4 kB / 1.084 GB, free: 48.29 MB / 474.7 MB Notification: Performance of matching and sorting (n=409) (initialization): time 0.01438/1.409, allocations: 6.764 MB / 1.091 GB, free: 41.35 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002178/1.41, allocations: 0.4936 MB / 1.091 GB, free: 40.66 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.484e-05/1.41, allocations: 12 kB / 1.091 GB, free: 40.65 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008606/1.418, allocations: 2.32 MB / 1.093 GB, free: 38.29 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005742/1.424, allocations: 1.362 MB / 1.095 GB, free: 36.92 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05735/1.481, allocations: 44.96 MB / 1.139 GB, free: 5.199 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003632/1.485, allocations: 287.7 kB / 1.139 GB, free: 4.918 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003562/1.486, allocations: 124 kB / 1.139 GB, free: 4.797 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.243e-05/1.486, allocations: 4 kB / 1.139 GB, free: 4.793 MB / 490.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.2682/1.754, allocations: 6.267 MB / 1.145 GB, free: 174.2 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.405e-05/1.754, allocations: 14.38 kB / 1.145 GB, free: 174.2 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009756/1.764, allocations: 2.32 MB / 1.148 GB, free: 174.1 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003262/1.767, allocations: 0.5814 MB / 1.148 GB, free: 174.1 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04749/1.814, allocations: 35.64 MB / 1.183 GB, free: 149.6 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003583/1.818, allocations: 245.6 kB / 1.183 GB, free: 149.6 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003103/1.818, allocations: 127.3 kB / 1.183 GB, free: 149.6 MB / 490.7 MB Warning: Assuming fixed start value for the following 3 variables: setpts3.p_set:VARIABLE(start = 1.0 unit = "1" fixed = true protected = true ) "setpt turbine power pu" type: Real setpts2.p_set:VARIABLE(start = 1.0 unit = "1" fixed = true protected = true ) "setpt turbine power pu" type: Real setpts1.p_set:VARIABLE(start = 1.0 unit = "1" fixed = true protected = true ) "setpt turbine power pu" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 61 * Number of states: 0 () * Number of discrete variables: 2 (system.initime,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (297): * Single equations (assignments): 276 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 7 * Torn equation systems: 14 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 7 {1,1,1,1,1,1,2} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 12 {(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 1,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2,(4,62.5%) 21,(1,100.0%) 2,(1,100.0%) 2} * Non-linear torn systems: 2 {5 9,8 46} Notification: Performance of prepare postOptimizeDAE: time 0.00233/1.821, allocations: 1.147 MB / 1.184 GB, free: 148.9 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005512/1.821, allocations: 318.3 kB / 1.185 GB, free: 148.9 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01188/1.833, allocations: 5.247 MB / 1.19 GB, free: 145.3 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.201e-05/1.833, allocations: 27.91 kB / 1.19 GB, free: 145.2 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.04e-05/1.833, allocations: 4 kB / 1.19 GB, free: 145.2 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.978e-05/1.833, allocations: 15.94 kB / 1.19 GB, free: 145.2 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01939/1.853, allocations: 9.159 MB / 1.199 GB, free: 136.1 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.367e-05/1.853, allocations: 4 kB / 1.199 GB, free: 136.1 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00253/1.855, allocations: 379.5 kB / 1.199 GB, free: 135.7 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006235/1.862, allocations: 1.706 MB / 1.201 GB, free: 134 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000335/1.862, allocations: 119.9 kB / 1.201 GB, free: 133.9 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02515/1.887, allocations: 14.16 MB / 1.215 GB, free: 119.7 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.663e-06/1.887, allocations: 0 / 1.215 GB, free: 119.7 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01417/1.901, allocations: 7.054 MB / 1.222 GB, free: 112.6 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001618/1.903, allocations: 0.6993 MB / 1.222 GB, free: 111.9 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005786/1.904, allocations: 99.97 kB / 1.222 GB, free: 111.8 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002424/1.906, allocations: 226 kB / 1.223 GB, free: 111.6 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005487/1.907, allocations: 205.9 kB / 1.223 GB, free: 111.4 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002574/1.907, allocations: 95.94 kB / 1.223 GB, free: 111.3 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.003572/1.91, allocations: 1.895 MB / 1.225 GB, free: 109.4 MB / 490.7 MB Notification: Performance of sort global known variables: time 9.11e-07/1.91, allocations: 3.938 kB / 1.225 GB, free: 109.4 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.005477/1.916, allocations: 1.725 MB / 1.226 GB, free: 107.6 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 34 (system.theta,turboGen1.generator.i_s[1],turboGen1.generator.i_s[2],turboGen1.generator.i_s[3],turboGen1.generator.i_rd[1],turboGen1.generator.i_rd[2],turboGen1.generator.i_rq[1],turboGen1.generator.i_rq[2],turboGen1.exciter.voltageReg.x_scaled[1],turboGen1.governor.speedReg.x_scaled[1],turboGen1.rotor.phi,turboGen1.rotor.w,turboGen2.generator.i_s[1],turboGen2.generator.i_s[2],turboGen2.generator.i_s[3],turboGen2.generator.i_rd[1],turboGen2.generator.i_rd[2],turboGen2.generator.i_rq[1],turboGen2.generator.i_rq[2],turboGen2.exciter.voltageReg.x_scaled[1],turboGen2.governor.speedReg.x_scaled[1],turboGen2.rotor.phi,turboGen2.rotor.w,turboGen3.generator.i_s[1],turboGen3.generator.i_s[2],turboGen3.generator.i_s[3],turboGen3.generator.i_rd[1],turboGen3.generator.i_rd[2],turboGen3.generator.i_rq[1],turboGen3.generator.i_rq[2],turboGen3.exciter.voltageReg.x_scaled[1],turboGen3.governor.speedReg.x_scaled[1],turboGen3.rotor.phi,turboGen3.rotor.w) * Number of discrete variables: 2 ($whenCondition1,system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (185): * Single equations (assignments): 182 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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: 1 {(3,77.8%) 13} * Non-linear torn systems: 1 {14 67} Notification: Performance of Backend phase and start with SimCode phase: time 0.0005052/1.916, allocations: 215.9 kB / 1.227 GB, free: 107.4 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.02448/1.941, allocations: 12.27 MB / 1.239 GB, free: 94.88 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 5.767e-06/1.941, allocations: 0 / 1.239 GB, free: 94.88 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006603/1.948, allocations: 2.905 MB / 1.242 GB, free: 91.95 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003342/1.951, allocations: 0.621 MB / 1.242 GB, free: 91.34 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01846/1.969, allocations: 11.42 MB / 1.253 GB, free: 79.9 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002962/1.972, allocations: 2.75 MB / 1.256 GB, free: 77.12 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.004226/1.977, allocations: 1.044 MB / 1.257 GB, free: 76.07 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007891/1.977, allocations: 211.4 kB / 1.257 GB, free: 75.86 MB / 490.7 MB Notification: Performance of SimCode: time 2.346e-06/1.977, allocations: 0 / 1.257 GB, free: 75.86 MB / 490.7 MB Notification: Performance of Templates: time 0.1218/2.099, allocations: 71.81 MB / 1.327 GB, free: 4.164 MB / 490.7 MB