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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001441/0.001441, allocations: 107.9 kB / 17.06 MB, free: 6.016 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001151/0.001151, allocations: 191 kB / 18 MB, free: 5.102 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.458/1.458, allocations: 222.9 MB / 241.7 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1759/0.1759, allocations: 38.06 MB / 329.9 MB, free: 8.742 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00123/0.00123, allocations: 63.91 kB / 458.1 MB, free: 6.855 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4001/0.4013, allocations: 58.05 MB / 0.5041 GB, free: 7.773 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Wind.WindTurbine_PSGR): time 0.01259/0.4139, allocations: 10.95 MB / 0.5148 GB, free: 92 kB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0161/0.4301, allocations: 7.083 MB / 0.5217 GB, free: 11.11 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00234/0.4324, allocations: 45.41 kB / 0.5218 GB, free: 11.09 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02458/0.457, allocations: 12.91 MB / 0.5344 GB, free: 6.445 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003995/0.461, allocations: 1.098 MB / 0.5354 GB, free: 5.57 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002319/0.4634, allocations: 0.6513 MB / 0.5361 GB, free: 5.074 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.007318/0.4707, allocations: 3.906 MB / 0.5399 GB, free: 3.047 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00187/0.4726, allocations: 0.9976 MB / 0.5409 GB, free: 2.477 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002463/0.4751, allocations: 1.079 MB / 0.5419 GB, free: 1.859 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002319/0.4774, allocations: 1.395 MB / 0.5433 GB, free: 476 kB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003134/0.4777, allocations: 144 kB / 0.5434 GB, free: 332 kB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001383/0.4791, allocations: 0.511 MB / 0.5439 GB, free: 15.81 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008655/0.48, allocations: 0.8962 MB / 0.5448 GB, free: 14.91 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001099/0.4811, allocations: 0.9485 MB / 0.5457 GB, free: 13.96 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003849/0.485, allocations: 2.514 MB / 0.5482 GB, free: 11.44 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.605e-06/0.485, allocations: 4 kB / 0.5482 GB, free: 11.43 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.003e-06/0.485, allocations: 0 / 0.5482 GB, free: 11.43 MB / 414.1 MB Notification: Performance of Transformations before backend: time 4.576e-05/0.4851, allocations: 0 / 0.5482 GB, free: 11.43 MB / 414.1 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.004509/0.4896, allocations: 2.206 MB / 0.5503 GB, free: 9.164 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.895e-05/0.4896, allocations: 11.89 kB / 0.5503 GB, free: 9.152 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001794/0.4914, allocations: 343.4 kB / 0.5507 GB, free: 8.816 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002659/0.4941, allocations: 1.289 MB / 0.5519 GB, free: 7.484 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.251e-05/0.4942, allocations: 98.64 kB / 0.552 GB, free: 7.387 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005645/0.4948, allocations: 239.8 kB / 0.5522 GB, free: 7.152 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003312/0.4981, allocations: 2.153 MB / 0.5543 GB, free: 4.891 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.318e-05/0.4982, allocations: 0 / 0.5543 GB, free: 4.891 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001576/0.4983, allocations: 59.98 kB / 0.5544 GB, free: 4.832 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006217/0.499, allocations: 182.7 kB / 0.5546 GB, free: 4.652 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003099/0.5021, allocations: 1.76 MB / 0.5563 GB, free: 2.887 MB / 414.1 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.01167/0.5138, allocations: 8.591 MB / 0.5647 GB, free: 9.875 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002431/0.5162, allocations: 1.814 MB / 0.5665 GB, free: 7.938 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001218/0.5174, allocations: 0.7608 MB / 0.5672 GB, free: 7.176 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.359e-05/0.5175, allocations: 21.05 kB / 0.5672 GB, free: 7.156 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.796e-05/0.5176, allocations: 47.56 kB / 0.5673 GB, free: 7.098 MB / 430.1 MB Notification: Performance of pre-optimization done (n=122): time 3.236e-06/0.5176, allocations: 0 / 0.5673 GB, free: 7.098 MB / 430.1 MB Notification: Performance of matching and sorting (n=150): time 0.01894/0.5365, allocations: 7.604 MB / 0.5747 GB, free: 15.33 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.932e-05/0.5366, allocations: 98.36 kB / 0.5748 GB, free: 15.21 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001599/0.5382, allocations: 1.037 MB / 0.5758 GB, free: 14.16 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000124/0.5384, allocations: 53.73 kB / 0.5759 GB, free: 14.11 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007128/0.5391, allocations: 0.7817 MB / 0.5766 GB, free: 13.31 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005175/0.5396, allocations: 0.5655 MB / 0.5772 GB, free: 12.74 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005391/0.5402, allocations: 335.4 kB / 0.5775 GB, free: 12.41 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001038/0.5403, allocations: 305.1 kB / 0.5778 GB, free: 12.11 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001261/0.5416, allocations: 0.7691 MB / 0.5785 GB, free: 11.34 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001647/0.5432, allocations: 1.255 MB / 0.5798 GB, free: 9.891 MB / 446.1 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.01607/0.5593, allocations: 5.677 MB / 0.5853 GB, free: 4.035 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.178e-05/0.5593, allocations: 4 kB / 0.5853 GB, free: 4.031 MB / 446.1 MB Notification: Performance of matching and sorting (n=236) (initialization): time 0.009672/0.569, allocations: 3.926 MB / 0.5891 GB, free: 64 kB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.552e-05/0.5691, allocations: 12 kB / 0.5891 GB, free: 52 kB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.71e-05/0.5692, allocations: 12 kB / 0.5892 GB, free: 40 kB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006109/0.5753, allocations: 1.737 MB / 0.5909 GB, free: 14.29 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001157/0.5765, allocations: 271.5 kB / 0.5911 GB, free: 14.02 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03096/0.6074, allocations: 18.5 MB / 0.6092 GB, free: 10.94 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001889/0.6094, allocations: 83.94 kB / 0.6093 GB, free: 10.86 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004129/0.6098, allocations: 75.98 kB / 0.6093 GB, free: 10.79 MB / 478.1 MB Warning: The initial conditions are over specified. The following 6 initial equations are redundant, so they are removed from the initialization system: inverter2.switch_dq0[1] = 1.224744871391589 * cos(select2.alpha0) * select2.v0 $DER.generator.psi_rq[1] = 0.0 $DER.generator.psi_s[2] = 0.0 $DER.generator.psi_s[1] = 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 (130): * Single equations (assignments): 126 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(2,11,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(5,49), (21,20)} Notification: Performance of prepare postOptimizeDAE: time 0.001493/0.6113, allocations: 0.5392 MB / 0.6099 GB, free: 10.24 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004795/0.6118, allocations: 159 kB / 0.61 GB, free: 10.08 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006938/0.6188, allocations: 2.405 MB / 0.6124 GB, free: 7.605 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.178e-05/0.6188, allocations: 16 kB / 0.6124 GB, free: 7.59 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.109e-05/0.6188, allocations: 7.938 kB / 0.6124 GB, free: 7.582 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.171e-05/0.6189, allocations: 3.984 kB / 0.6124 GB, free: 7.578 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01237/0.6312, allocations: 4.324 MB / 0.6166 GB, free: 3.117 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.287e-05/0.6313, allocations: 0 / 0.6166 GB, free: 3.117 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002181/0.6335, allocations: 311.9 kB / 0.6169 GB, free: 2.812 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003566/0.6371, allocations: 0.5576 MB / 0.6175 GB, free: 2.242 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002747/0.6374, allocations: 51.97 kB / 0.6175 GB, free: 2.191 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01672/0.6541, allocations: 10.13 MB / 0.6274 GB, free: 7.363 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.063e-06/0.6542, allocations: 4.031 kB / 0.6274 GB, free: 7.359 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009363/0.6635, allocations: 3.221 MB / 0.6305 GB, free: 4.027 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001289/0.6649, allocations: 356 kB / 0.6309 GB, free: 3.66 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005591/0.6655, allocations: 47.92 kB / 0.6309 GB, free: 3.613 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001537/0.667, allocations: 59.94 kB / 0.631 GB, free: 3.555 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000442/0.6675, allocations: 121.1 kB / 0.6311 GB, free: 3.438 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001357/0.6676, allocations: 43.98 kB / 0.6311 GB, free: 3.395 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.001371/0.669, allocations: 0.6973 MB / 0.6318 GB, free: 2.691 MB / 494.1 MB Notification: Performance of sort global known variables: time 2.31e-07/0.669, allocations: 0 / 0.6318 GB, free: 2.691 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.002642/0.6717, allocations: 0.5702 MB / 0.6324 GB, free: 2.121 MB / 494.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 23 (inertia.w,generator.phi_el,generator.i_s[3],generator.psi_s[1],generator.psi_s[2],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 (119): * Single equations (assignments): 113 * 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): 4 systems {(2,9,100.0%), (1,1,100.0%), (1,8,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,11)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0004926/0.6722, allocations: 186.2 kB / 0.6326 GB, free: 1.93 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.005717/0.6779, allocations: 3.129 MB / 0.6356 GB, free: 14.75 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 5.22e-06/0.6779, allocations: 0 / 0.6356 GB, free: 14.75 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.002442/0.6804, allocations: 1.579 MB / 0.6372 GB, free: 13.11 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001598/0.682, allocations: 321.3 kB / 0.6375 GB, free: 12.8 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007657/0.6897, allocations: 5.091 MB / 0.6424 GB, free: 7.641 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001604/0.6913, allocations: 1.585 MB / 0.644 GB, free: 6.023 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.001047/0.6923, allocations: 404.4 kB / 0.6444 GB, free: 5.621 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003231/0.6927, allocations: 99.42 kB / 0.6445 GB, free: 5.523 MB / 0.4981 GB Notification: Performance of SimCode: time 6.81e-07/0.6927, allocations: 4 kB / 0.6445 GB, free: 5.52 MB / 0.4981 GB Notification: Performance of Templates: time 0.05489/0.7476, allocations: 31.89 MB / 0.6756 GB, free: 5.812 MB / 0.5294 GB 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)