Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.Wind.WindTurbine_PSGR.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(PowerSystems.Examples.Wind.WindTurbine_PSGR,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|meter.i.1.|meter.i.2.|meter.i.3.|meter.p.1.|meter.p.2.|meter.p.3.|meter.v.1.|meter.v.2.|meter.v.3.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.Wind.WindTurbine_PSGR") translateModel(PowerSystems.Examples.Wind.WindTurbine_PSGR,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|meter.i.1.|meter.i.2.|meter.i.3.|meter.p.1.|meter.p.2.|meter.p.3.|meter.v.1.|meter.v.2.|meter.v.3.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.Wind.WindTurbine_PSGR") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001723/0.001723, allocations: 186.5 kB / 17.27 MB, free: 4.504 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.377/1.377, allocations: 205.1 MB / 223.1 MB, free: 8.461 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001031/0.001031, allocations: 104.2 kB / 270.5 MB, free: 8.43 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1692/0.1692, allocations: 38 MB / 355.8 MB, free: 2.93 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0009461/0.0009462, allocations: 51.92 kB / 421.9 MB, free: 37.77 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2799/0.2808, allocations: 55.24 MB / 477.1 MB, free: 9.895 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Wind.WindTurbine_PSGR): time 0.01432/0.2952, allocations: 12.97 MB / 490.1 MB, free: 0.6484 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.01585/0.3112, allocations: 7.953 MB / 498 MB, free: 11.09 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002595/0.3138, allocations: 87.44 kB / 498.1 MB, free: 11.05 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.02381/0.3376, allocations: 13.03 MB / 0.4992 GB, free: 4.898 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003864/0.3415, allocations: 1.043 MB / 0.5002 GB, free: 3.852 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001932/0.3435, allocations: 0.5889 MB / 0.5007 GB, free: 3.262 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.007446/0.3509, allocations: 5.58 MB / 0.5062 GB, free: 13.67 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001615/0.3526, allocations: 0.895 MB / 0.5071 GB, free: 12.75 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001818/0.3544, allocations: 0.9297 MB / 0.508 GB, free: 11.82 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001875/0.3563, allocations: 1.476 MB / 0.5094 GB, free: 10.34 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002085/0.3565, allocations: 96 kB / 0.5095 GB, free: 10.24 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001186/0.3577, allocations: 491.2 kB / 0.51 GB, free: 9.762 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0007999/0.3585, allocations: 0.8376 MB / 0.5108 GB, free: 8.922 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0008956/0.3594, allocations: 0.8977 MB / 0.5117 GB, free: 8.02 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002207/0.3616, allocations: 2.399 MB / 0.514 GB, free: 5.613 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.752e-06/0.3617, allocations: 3.984 kB / 0.514 GB, free: 5.609 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.874e-06/0.3617, allocations: 0 / 0.514 GB, free: 5.609 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.353e-05/0.3617, allocations: 0 / 0.514 GB, free: 5.609 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: 397 * Number of variables: 397 Notification: Performance of Generate backend data structure: time 0.004358/0.3661, allocations: 2.166 MB / 0.5161 GB, free: 3.383 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.265e-05/0.3661, allocations: 8.031 kB / 0.5161 GB, free: 3.375 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001604/0.3677, allocations: 314.3 kB / 0.5164 GB, free: 3.066 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00249/0.3702, allocations: 1.233 MB / 0.5176 GB, free: 1.785 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.132e-05/0.3703, allocations: 106.6 kB / 0.5178 GB, free: 1.68 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005156/0.3708, allocations: 235.7 kB / 0.518 GB, free: 1.449 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003684/0.3745, allocations: 2.141 MB / 0.5201 GB, free: 15.2 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.989e-05/0.3746, allocations: 7.938 kB / 0.5201 GB, free: 15.19 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002261/0.3749, allocations: 55.98 kB / 0.5201 GB, free: 15.14 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0009296/0.3758, allocations: 186.6 kB / 0.5203 GB, free: 14.95 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004326/0.3801, allocations: 1.756 MB / 0.522 GB, free: 13.19 MB / 362.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.01722/0.3974, allocations: 8.624 MB / 0.5304 GB, free: 4.148 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003517/0.4009, allocations: 1.824 MB / 0.5322 GB, free: 2.203 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001998/0.403, allocations: 0.7738 MB / 0.533 GB, free: 1.422 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001123/0.4031, allocations: 17.06 kB / 0.533 GB, free: 1.406 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.816e-05/0.4031, allocations: 43.56 kB / 0.533 GB, free: 1.355 MB / 362.7 MB Notification: Performance of pre-optimization done (n=122): time 5.22e-06/0.4032, allocations: 4 kB / 0.533 GB, free: 1.352 MB / 362.7 MB Notification: Performance of matching and sorting (n=137): time 0.01599/0.4192, allocations: 5.456 MB / 0.5384 GB, free: 11.74 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.961e-05/0.4193, allocations: 90.42 kB / 0.5385 GB, free: 11.63 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002476/0.4218, allocations: 1.037 MB / 0.5395 GB, free: 10.58 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001422/0.422, allocations: 53.7 kB / 0.5395 GB, free: 10.52 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008342/0.4228, allocations: 0.7677 MB / 0.5403 GB, free: 9.742 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006465/0.4235, allocations: 0.4968 MB / 0.5408 GB, free: 9.238 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000762/0.4242, allocations: 315.3 kB / 0.5411 GB, free: 8.922 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001355/0.4244, allocations: 305.1 kB / 0.5413 GB, free: 8.621 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001853/0.4263, allocations: 0.7144 MB / 0.542 GB, free: 7.906 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002182/0.4285, allocations: 1.185 MB / 0.5432 GB, free: 6.523 MB / 378.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.0159/0.4444, allocations: 4.982 MB / 0.5481 GB, free: 1.34 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.325e-05/0.4444, allocations: 11.94 kB / 0.5481 GB, free: 1.328 MB / 378.7 MB Notification: Performance of matching and sorting (n=225) (initialization): time 0.01197/0.4564, allocations: 3.592 MB / 0.5516 GB, free: 13.65 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.125e-05/0.4565, allocations: 12 kB / 0.5516 GB, free: 13.64 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.554e-05/0.4565, allocations: 19.98 kB / 0.5516 GB, free: 13.62 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00542/0.462, allocations: 1.26 MB / 0.5528 GB, free: 12.34 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001931/0.4639, allocations: 315.5 kB / 0.5531 GB, free: 12.03 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02771/0.4917, allocations: 14.66 MB / 0.5675 GB, free: 12.7 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002496/0.4942, allocations: 80.11 kB / 0.5675 GB, free: 12.62 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002706/0.4945, allocations: 68 kB / 0.5676 GB, free: 12.56 MB / 410.7 MB Warning: The initial conditions are over specified. The following 4 initial equations are redundant, so they are removed from the initialization system: inverter2.switch_dq0[1] = 1.224744871391589 * cos(select2.alpha0) * select2.v0 5.051577893736758e-05 * $DER.generator.i_s[3] = 0.0 infBus.V = 15000.0 * infBus.v0 line.omega[1] = 0.0. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 63 * Number of states: 0 () * Number of discrete variables: 3 (system.initime,trafo.tap_2_internal,trafo.tap_1_internal) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (155): * Single equations (assignments): 150 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,1,100.0%), (1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(5,23), (21,20)} Notification: Performance of prepare postOptimizeDAE: time 0.001576/0.4961, allocations: 0.5205 MB / 0.5681 GB, free: 12.03 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004815/0.4966, allocations: 142.2 kB / 0.5682 GB, free: 11.89 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004917/0.5015, allocations: 2.142 MB / 0.5703 GB, free: 9.641 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.541e-05/0.5015, allocations: 12 kB / 0.5703 GB, free: 9.629 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.268e-05/0.5016, allocations: 7.984 kB / 0.5704 GB, free: 9.621 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.836e-05/0.5016, allocations: 7.922 kB / 0.5704 GB, free: 9.613 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009202/0.5108, allocations: 3.848 MB / 0.5741 GB, free: 5.598 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.314e-05/0.5109, allocations: 7.938 kB / 0.5741 GB, free: 5.59 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002197/0.5131, allocations: 315.6 kB / 0.5744 GB, free: 5.281 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007327/0.5138, allocations: 208.2 kB / 0.5746 GB, free: 5.062 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001566/0.514, allocations: 47.97 kB / 0.5747 GB, free: 5.016 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007555/0.5215, allocations: 7.306 MB / 0.5818 GB, free: 13.04 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.29e-06/0.5216, allocations: 11.95 kB / 0.5818 GB, free: 13.03 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03812/0.5597, allocations: 22.09 MB / 0.6034 GB, free: 5.711 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009289/0.5607, allocations: 323.3 kB / 0.6037 GB, free: 5.375 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003712/0.5611, allocations: 47.89 kB / 0.6038 GB, free: 5.328 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009468/0.562, allocations: 59.94 kB / 0.6038 GB, free: 5.27 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002961/0.5624, allocations: 101.1 kB / 0.6039 GB, free: 5.168 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001042/0.5625, allocations: 39.98 kB / 0.6039 GB, free: 5.129 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.001108/0.5636, allocations: 0.6931 MB / 0.6046 GB, free: 4.43 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.91e-07/0.5636, allocations: 0 / 0.6046 GB, free: 4.43 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.002635/0.5662, allocations: 0.6836 MB / 0.6053 GB, free: 3.746 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 25 (inertia.phi,inertia.w,generator.i_s[1],generator.i_s[2],generator.i_s[3],generator.i_rd[1],generator.i_rq[1],meterDC.pav,inverter2.vDC1,line.v[1,2],line.v[1,3],line.v[2,2],line.v[2,3],line.v[3,1],line.v[3,2],line.v[3,3],line.i[1,1],line.i[1,2],line.i[1,3],line.i[2,1],line.i[2,2],line.i[2,3],line.i[3,1],line.i[3,2],line.i[3,3]) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (126): * Single equations (assignments): 120 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 5 systems {(1,1,100.0%), (1,1,100.0%), (1,8,100.0%), (1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0004358/0.5667, allocations: 182.2 kB / 0.6055 GB, free: 3.562 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.004734/0.5714, allocations: 2.825 MB / 0.6082 GB, free: 0.6719 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 4.849e-06/0.5714, allocations: 0 / 0.6082 GB, free: 0.6719 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00205/0.5735, allocations: 1.364 MB / 0.6096 GB, free: 15.24 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001416/0.5749, allocations: 308.3 kB / 0.6098 GB, free: 14.94 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00986/0.5848, allocations: 7.152 MB / 0.6168 GB, free: 7.645 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001392/0.5862, allocations: 1.613 MB / 0.6184 GB, free: 5.996 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.001697/0.5879, allocations: 476 kB / 0.6189 GB, free: 5.527 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000501/0.5884, allocations: 119.4 kB / 0.619 GB, free: 5.41 MB / 458.7 MB Notification: Performance of SimCode: time 5e-07/0.5884, allocations: 4 kB / 0.619 GB, free: 5.406 MB / 458.7 MB Notification: Performance of Templates: time 0.2637/0.8521, allocations: 31.78 MB / 0.65 GB, free: 144.3 MB / 474.7 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.Wind.WindTurbine_PSGR.makefile (rm -f PowerSystems_latest_PowerSystems.Examples.Wind.WindTurbine_PSGR.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.Wind.WindTurbine_PSGR.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.Wind.WindTurbine_PSGR.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.Wind.WindTurbine_PSGR.sim & ./PowerSystems_latest_PowerSystems.Examples.Wind.WindTurbine_PSGR -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.Wind.WindTurbine_PSGR.pipe 2>&1)