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.001334/0.001334, 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.605 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.001807/0.001807, allocations: 132.5 kB / 256.9 MB, free: 10.22 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.218/0.218, allocations: 38.01 MB / 340.1 MB, free: 13.39 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000412/0.0004122, allocations: 11.91 kB / 403.8 MB, free: 55.25 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06684/0.06727, allocations: 53.24 MB / 457 MB, free: 10.35 MB / 298.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Generation.TieLine): time 0.01922/0.08654, allocations: 18.26 MB / 475.3 MB, free: 8.035 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.01962/0.1062, allocations: 10.61 MB / 485.9 MB, free: 13.41 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002354/0.1086, allocations: 143 kB / 486 MB, free: 13.27 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.05283/0.1614, allocations: 28.54 MB / 0.5025 GB, free: 0.6797 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.005707/0.1672, allocations: 1.402 MB / 0.5039 GB, free: 15.27 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004624/0.1718, allocations: 1.322 MB / 0.5052 GB, free: 13.96 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.004807/0.1767, allocations: 2.646 MB / 0.5078 GB, free: 11.31 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005402/0.1821, allocations: 2.772 MB / 0.5105 GB, free: 8.469 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00277/0.1849, allocations: 1.561 MB / 0.512 GB, free: 6.902 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002406/0.1873, allocations: 1.689 MB / 0.5136 GB, free: 5.207 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003995/0.1877, allocations: 144 kB / 0.5138 GB, free: 5.066 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001509/0.1892, allocations: 0.5578 MB / 0.5143 GB, free: 4.508 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001808/0.1911, allocations: 1.5 MB / 0.5158 GB, free: 3.004 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0009088/0.192, allocations: 0.734 MB / 0.5165 GB, free: 2.262 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005816/0.1978, allocations: 4.754 MB / 0.5211 GB, free: 13.5 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.508e-06/0.1979, allocations: 0 / 0.5211 GB, free: 13.5 MB / 378.7 MB Notification: Performance of FrontEnd: time 3.4e-06/0.1979, allocations: 0 / 0.5211 GB, free: 13.5 MB / 378.7 MB Notification: Performance of Transformations before backend: time 8.581e-05/0.198, allocations: 0 / 0.5211 GB, free: 13.5 MB / 378.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.01044/0.2084, allocations: 4.061 MB / 0.5251 GB, free: 9.363 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.59e-05/0.2085, allocations: 16.02 kB / 0.5251 GB, free: 9.348 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003607/0.2121, allocations: 0.6703 MB / 0.5258 GB, free: 8.672 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009287/0.2214, allocations: 3.366 MB / 0.5291 GB, free: 5.23 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002079/0.2217, allocations: 196.9 kB / 0.5293 GB, free: 5.035 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009028/0.2226, allocations: 327.6 kB / 0.5296 GB, free: 4.715 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008052/0.2306, allocations: 3.849 MB / 0.5333 GB, free: 0.75 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001087/0.2308, allocations: 7.906 kB / 0.5333 GB, free: 0.7422 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003747/0.2312, allocations: 104 kB / 0.5334 GB, free: 0.6406 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0007412/0.2319, allocations: 249 kB / 0.5337 GB, free: 404 kB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.2308/0.4627, allocations: 3.627 MB / 0.5372 GB, free: 77.77 MB / 378.7 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02276/0.4855, allocations: 13.19 MB / 0.5501 GB, free: 70.48 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004521/0.4901, allocations: 2.307 MB / 0.5524 GB, free: 69.32 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002092/0.4903, allocations: 38 kB / 0.5524 GB, free: 69.31 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002931/0.4933, allocations: 1.571 MB / 0.5539 GB, free: 68.41 MB / 378.7 MB Notification: Performance of pre-optimization done (n=223): time 5.878e-06/0.4933, allocations: 3.375 kB / 0.5539 GB, free: 68.41 MB / 378.7 MB Notification: Performance of matching and sorting (n=267): time 0.0676/0.5609, allocations: 21.24 MB / 0.5747 GB, free: 49.33 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.072e-05/0.561, allocations: 261.4 kB / 0.5749 GB, free: 49.02 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004422/0.5654, allocations: 2.745 MB / 0.5776 GB, free: 46.26 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003466/0.5658, allocations: 73.7 kB / 0.5777 GB, free: 46.18 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001002/0.5668, allocations: 1.511 MB / 0.5791 GB, free: 44.66 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007859/0.5676, allocations: 0.952 MB / 0.5801 GB, free: 43.72 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002469/0.5679, allocations: 64 kB / 0.5801 GB, free: 43.66 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001574/0.568, allocations: 436.6 kB / 0.5805 GB, free: 43.22 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00305/0.5711, allocations: 1.677 MB / 0.5822 GB, free: 41.54 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003324/0.5744, allocations: 2.269 MB / 0.5844 GB, free: 39.07 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003382/0.5778, allocations: 2.021 MB / 0.5864 GB, free: 37.03 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.783e-06/0.5779, allocations: 4 kB / 0.5864 GB, free: 37.02 MB / 378.7 MB Notification: Performance of matching and sorting (n=409) (initialization): time 0.01331/0.5912, allocations: 6.781 MB / 0.593 GB, free: 30.06 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0009996/0.5922, allocations: 5.804 MB / 0.5987 GB, free: 23.85 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.398e-05/0.5923, allocations: 12 kB / 0.5987 GB, free: 23.84 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007986/0.6003, allocations: 2.343 MB / 0.601 GB, free: 21.45 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005048/0.6053, allocations: 1.35 MB / 0.6023 GB, free: 20.1 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.06156/0.6669, allocations: 46.14 MB / 0.6474 GB, free: 3.191 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003577/0.6705, allocations: 279.8 kB / 0.6476 GB, free: 2.918 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003885/0.6709, allocations: 128 kB / 0.6477 GB, free: 2.793 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.214e-05/0.6709, allocations: 4 kB / 0.6477 GB, free: 2.789 MB / 410.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01508/0.686, allocations: 6.284 MB / 0.6539 GB, free: 12.34 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.616e-05/0.6861, allocations: 16.16 kB / 0.6539 GB, free: 12.32 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009191/0.6953, allocations: 2.34 MB / 0.6562 GB, free: 9.938 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002878/0.6982, allocations: 0.5695 MB / 0.6567 GB, free: 9.367 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05617/0.7544, allocations: 36.73 MB / 0.6926 GB, free: 2.641 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00317/0.7576, allocations: 247.7 kB / 0.6928 GB, free: 2.398 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003401/0.758, allocations: 120 kB / 0.693 GB, free: 2.281 MB / 458.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%) 2,(1,100.0%) 2,(1,100.0%) 1,(2,100.0%) 1,(2,100.0%) 1,(4,62.5%) 21,(2,100.0%) 1,(2,100.0%) 1} * Non-linear torn systems: 2 {6 8,8 46} Notification: Performance of prepare postOptimizeDAE: time 0.002503/0.7605, allocations: 1.16 MB / 0.6941 GB, free: 1.109 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000614/0.7611, allocations: 316.1 kB / 0.6944 GB, free: 0.7969 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01326/0.7744, allocations: 5.241 MB / 0.6995 GB, free: 11.49 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.083e-05/0.7745, allocations: 28 kB / 0.6995 GB, free: 11.46 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.458e-05/0.7745, allocations: 4 kB / 0.6995 GB, free: 11.46 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.73e-05/0.7745, allocations: 19.88 kB / 0.6996 GB, free: 11.44 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02137/0.7959, allocations: 9.109 MB / 0.7085 GB, free: 2.234 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.221e-05/0.796, allocations: 0 / 0.7085 GB, free: 2.234 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002193/0.7982, allocations: 375.5 kB / 0.7088 GB, free: 1.867 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006174/0.8044, allocations: 1.729 MB / 0.7105 GB, free: 132 kB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004003/0.8048, allocations: 119.9 kB / 0.7106 GB, free: 12 kB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2644/1.069, allocations: 14.69 MB / 0.725 GB, free: 148.5 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4e-06/1.069, allocations: 1.375 kB / 0.725 GB, free: 148.5 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01476/1.084, allocations: 7.16 MB / 0.7319 GB, free: 146 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001807/1.086, allocations: 0.6979 MB / 0.7326 GB, free: 145.7 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005655/1.086, allocations: 106.5 kB / 0.7327 GB, free: 145.6 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002247/1.089, allocations: 225.4 kB / 0.7329 GB, free: 145.6 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005644/1.089, allocations: 211.4 kB / 0.7331 GB, free: 145.6 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002744/1.09, allocations: 92.11 kB / 0.7332 GB, free: 145.6 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.003644/1.093, allocations: 1.897 MB / 0.7351 GB, free: 144.9 MB / 474.7 MB Notification: Performance of sort global known variables: time 7.88e-07/1.093, allocations: 5 kB / 0.7351 GB, free: 144.9 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.005678/1.099, allocations: 1.711 MB / 0.7368 GB, free: 144.7 MB / 474.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 {20 61} Notification: Performance of Backend phase and start with SimCode phase: time 0.0005582/1.1, allocations: 222.4 kB / 0.737 GB, free: 144.6 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.0234/1.123, allocations: 12.38 MB / 0.7491 GB, free: 135.8 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 6.635e-06/1.123, allocations: 2.844 kB / 0.7491 GB, free: 135.8 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006059/1.129, allocations: 2.952 MB / 0.7519 GB, free: 133.2 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002703/1.132, allocations: 0.5753 MB / 0.7525 GB, free: 132.8 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01621/1.148, allocations: 11.3 MB / 0.7635 GB, free: 122 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002677/1.151, allocations: 2.75 MB / 0.7662 GB, free: 119.2 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.003848/1.155, allocations: 1.048 MB / 0.7673 GB, free: 118.1 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007868/1.155, allocations: 216.7 kB / 0.7675 GB, free: 117.9 MB / 474.7 MB Notification: Performance of SimCode: time 1.556e-06/1.155, allocations: 0 / 0.7675 GB, free: 117.9 MB / 474.7 MB Notification: Performance of Templates: time 0.1187/1.274, allocations: 71.99 MB / 0.8378 GB, free: 45.93 MB / 474.7 MB