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.001254/0.001254, allocations: 114.8 kB / 17.06 MB, free: 5.812 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.001092/0.001092, allocations: 200 kB / 18 MB, free: 4.949 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.387/1.387, 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.1827/0.1827, allocations: 38.05 MB / 329.9 MB, free: 8.727 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001148/0.001148, allocations: 59.84 kB / 458.1 MB, free: 6.836 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5306/0.5318, allocations: 58.05 MB / 0.5041 GB, free: 7.762 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Wind.WindTurbine_PSGR): time 0.01731/0.5492, allocations: 10.96 MB / 0.5148 GB, free: 80 kB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0196/0.5688, allocations: 7.079 MB / 0.5217 GB, free: 11.1 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002643/0.5715, allocations: 45.44 kB / 0.5218 GB, free: 11.09 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.03766/0.6092, allocations: 12.92 MB / 0.5344 GB, free: 6.418 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005989/0.6152, allocations: 1.094 MB / 0.5354 GB, free: 5.547 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003078/0.6183, allocations: 0.6554 MB / 0.5361 GB, free: 5.047 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.009032/0.6274, allocations: 3.913 MB / 0.5399 GB, free: 3.016 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00259/0.63, allocations: 0.9871 MB / 0.5409 GB, free: 2.453 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003524/0.6335, allocations: 1.095 MB / 0.5419 GB, free: 1.82 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003568/0.6371, allocations: 1.394 MB / 0.5433 GB, free: 432 kB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008627/0.638, allocations: 148 kB / 0.5434 GB, free: 284 kB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002442/0.6405, allocations: 0.5071 MB / 0.5439 GB, free: 15.77 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001784/0.6423, allocations: 0.8923 MB / 0.5448 GB, free: 14.88 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002913/0.6452, allocations: 0.9562 MB / 0.5457 GB, free: 13.91 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005683/0.6509, allocations: 2.5 MB / 0.5482 GB, free: 11.41 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.562e-06/0.6509, allocations: 0 / 0.5482 GB, free: 11.41 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.014e-06/0.6509, allocations: 0 / 0.5482 GB, free: 11.41 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.000127/0.6511, allocations: 0 / 0.5482 GB, free: 11.41 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.005728/0.6568, allocations: 2.154 MB / 0.5503 GB, free: 9.191 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.274e-05/0.6569, allocations: 11.89 kB / 0.5503 GB, free: 9.18 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001764/0.6586, allocations: 322.3 kB / 0.5506 GB, free: 8.863 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002695/0.6614, allocations: 1.287 MB / 0.5519 GB, free: 7.531 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.318e-05/0.6614, allocations: 102.6 kB / 0.552 GB, free: 7.43 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005211/0.662, allocations: 235.7 kB / 0.5522 GB, free: 7.199 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003428/0.6654, allocations: 2.149 MB / 0.5543 GB, free: 4.941 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.914e-05/0.6655, allocations: 8 kB / 0.5543 GB, free: 4.934 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001461/0.6656, allocations: 51.98 kB / 0.5543 GB, free: 4.883 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000668/0.6663, allocations: 186.6 kB / 0.5545 GB, free: 4.699 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003056/0.6694, allocations: 1.756 MB / 0.5562 GB, free: 2.938 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.01209/0.6815, allocations: 8.581 MB / 0.5646 GB, free: 9.934 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002584/0.6841, allocations: 1.817 MB / 0.5664 GB, free: 7.996 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001268/0.6854, allocations: 0.7621 MB / 0.5671 GB, free: 7.23 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.499e-05/0.6855, allocations: 21.06 kB / 0.5671 GB, free: 7.211 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.063e-05/0.6855, allocations: 47.56 kB / 0.5672 GB, free: 7.152 MB / 430.1 MB Notification: Performance of pre-optimization done (n=122): time 3.586e-06/0.6855, allocations: 0 / 0.5672 GB, free: 7.152 MB / 430.1 MB Notification: Performance of matching and sorting (n=150): time 0.01842/0.704, allocations: 7.552 MB / 0.5746 GB, free: 15.43 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001244/0.7041, allocations: 94.42 kB / 0.5747 GB, free: 15.32 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001412/0.7055, allocations: 1.037 MB / 0.5757 GB, free: 14.27 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 9.099e-05/0.7056, allocations: 49.7 kB / 0.5757 GB, free: 14.21 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005527/0.7062, allocations: 0.7679 MB / 0.5765 GB, free: 13.43 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004184/0.7066, allocations: 0.5353 MB / 0.577 GB, free: 12.89 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004728/0.7071, allocations: 327.3 kB / 0.5773 GB, free: 12.57 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001067/0.7072, allocations: 305.1 kB / 0.5776 GB, free: 12.27 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001163/0.7084, allocations: 0.773 MB / 0.5783 GB, free: 11.49 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001476/0.7099, allocations: 1.263 MB / 0.5796 GB, free: 10.04 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.01574/0.7256, allocations: 5.677 MB / 0.5851 GB, free: 4.18 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.421e-05/0.7257, allocations: 4 kB / 0.5851 GB, free: 4.176 MB / 446.1 MB Notification: Performance of matching and sorting (n=236) (initialization): time 0.009119/0.7348, allocations: 3.917 MB / 0.589 GB, free: 220 kB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.733e-05/0.7348, allocations: 12 kB / 0.589 GB, free: 208 kB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.795e-05/0.7349, allocations: 12 kB / 0.589 GB, free: 196 kB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006794/0.7417, allocations: 1.748 MB / 0.5907 GB, free: 14.43 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00146/0.7432, allocations: 267.6 kB / 0.5909 GB, free: 14.17 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03563/0.7788, allocations: 18.48 MB / 0.609 GB, free: 11.11 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001648/0.7805, allocations: 75.94 kB / 0.6091 GB, free: 11.04 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001585/0.7807, allocations: 79.98 kB / 0.6091 GB, free: 10.96 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.001031/0.7817, allocations: 0.5317 MB / 0.6096 GB, free: 10.42 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000263/0.782, allocations: 146.2 kB / 0.6098 GB, free: 10.27 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00491/0.7869, allocations: 2.409 MB / 0.6121 GB, free: 7.793 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.578e-05/0.7869, allocations: 16 kB / 0.6122 GB, free: 7.777 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.086e-05/0.7869, allocations: 7.938 kB / 0.6122 GB, free: 7.77 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.53e-05/0.787, allocations: 7.969 kB / 0.6122 GB, free: 7.762 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008951/0.7959, allocations: 4.32 MB / 0.6164 GB, free: 3.305 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.748e-06/0.796, allocations: 4.312 kB / 0.6164 GB, free: 3.301 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001524/0.7975, allocations: 303.6 kB / 0.6167 GB, free: 3.004 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002513/0.8, allocations: 0.558 MB / 0.6172 GB, free: 2.43 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001725/0.8002, allocations: 47.97 kB / 0.6173 GB, free: 2.383 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01061/0.8108, allocations: 10.14 MB / 0.6272 GB, free: 7.547 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.202e-06/0.8109, allocations: 112 / 0.6272 GB, free: 7.547 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006651/0.8175, allocations: 3.216 MB / 0.6303 GB, free: 4.219 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001064/0.8186, allocations: 347.2 kB / 0.6307 GB, free: 3.859 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002032/0.8188, allocations: 51.92 kB / 0.6307 GB, free: 3.809 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008156/0.8197, allocations: 63.94 kB / 0.6308 GB, free: 3.746 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004063/0.8201, allocations: 109.1 kB / 0.6309 GB, free: 3.641 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001013/0.8202, allocations: 55.91 kB / 0.6309 GB, free: 3.586 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.001135/0.8213, allocations: 0.6892 MB / 0.6316 GB, free: 2.891 MB / 494.1 MB Notification: Performance of sort global known variables: time 5.41e-07/0.8213, allocations: 288 / 0.6316 GB, free: 2.891 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.002337/0.8237, allocations: 0.5625 MB / 0.6321 GB, free: 2.328 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.0004376/0.8241, allocations: 190.7 kB / 0.6323 GB, free: 2.129 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.005628/0.8298, allocations: 3.105 MB / 0.6354 GB, free: 14.98 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 4.699e-06/0.8298, allocations: 0 / 0.6354 GB, free: 14.98 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.002396/0.8322, allocations: 1.576 MB / 0.6369 GB, free: 13.34 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001546/0.8338, allocations: 334 kB / 0.6372 GB, free: 13.02 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008129/0.8419, allocations: 5.028 MB / 0.6421 GB, free: 7.922 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001584/0.8435, allocations: 1.585 MB / 0.6437 GB, free: 6.305 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.00119/0.8447, allocations: 404.5 kB / 0.6441 GB, free: 5.902 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003186/0.845, allocations: 107.4 kB / 0.6442 GB, free: 5.797 MB / 0.4981 GB Notification: Performance of SimCode: time 7.81e-07/0.845, allocations: 0 / 0.6442 GB, free: 5.797 MB / 0.4981 GB Notification: Performance of Templates: time 0.05464/0.8997, allocations: 32.65 MB / 0.676 GB, free: 5.324 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)