Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.Wind.WindTurbine_PSGI.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_PSGI,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_PSGI") translateModel(PowerSystems.Examples.Wind.WindTurbine_PSGI,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_PSGI") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0012/0.0012, allocations: 97.03 kB / 17.06 MB, free: 6.121 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.001362/0.001362, allocations: 194.9 kB / 17.99 MB, free: 5.199 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.444/1.444, allocations: 222.9 MB / 241.7 MB, free: 15.2 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1807/0.1807, allocations: 38.04 MB / 329.9 MB, free: 8.773 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001378/0.001378, allocations: 63.84 kB / 458.1 MB, free: 6.871 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4694/0.4708, allocations: 58.06 MB / 0.5041 GB, free: 8.012 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Wind.WindTurbine_PSGI): time 0.0174/0.4883, allocations: 11.02 MB / 0.5149 GB, free: 284 kB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01698/0.5053, allocations: 7.076 MB / 0.5218 GB, free: 11.3 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002259/0.5076, allocations: 57.03 kB / 0.5218 GB, free: 11.27 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.03175/0.5394, allocations: 12.87 MB / 0.5344 GB, free: 6.617 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004579/0.544, allocations: 1.135 MB / 0.5355 GB, free: 5.711 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002933/0.547, allocations: 0.6935 MB / 0.5362 GB, free: 5.18 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.00864/0.5556, allocations: 4.022 MB / 0.5401 GB, free: 3.078 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003293/0.5589, allocations: 0.9868 MB / 0.5411 GB, free: 2.508 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004054/0.563, allocations: 1.131 MB / 0.5422 GB, free: 1.785 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0042/0.5673, allocations: 1.441 MB / 0.5436 GB, free: 348 kB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001245/0.5685, allocations: 152 kB / 0.5437 GB, free: 196 kB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002357/0.5709, allocations: 0.5149 MB / 0.5442 GB, free: 15.68 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001379/0.5723, allocations: 0.904 MB / 0.5451 GB, free: 14.77 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001612/0.5739, allocations: 0.9834 MB / 0.5461 GB, free: 13.78 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004144/0.5781, allocations: 2.558 MB / 0.5486 GB, free: 11.21 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.003e-05/0.5781, allocations: 0 / 0.5486 GB, free: 11.21 MB / 414.1 MB Notification: Performance of FrontEnd: time 5.17e-06/0.5781, allocations: 4 kB / 0.5486 GB, free: 11.21 MB / 414.1 MB Notification: Performance of Transformations before backend: time 3.587e-05/0.5782, allocations: 0 / 0.5486 GB, free: 11.21 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: 409 * Number of variables: 409 Notification: Performance of Generate backend data structure: time 0.004971/0.5832, allocations: 2.221 MB / 0.5507 GB, free: 8.93 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.23e-05/0.5832, allocations: 11.89 kB / 0.5508 GB, free: 8.918 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001732/0.585, allocations: 338.2 kB / 0.5511 GB, free: 8.586 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002795/0.5878, allocations: 1.326 MB / 0.5524 GB, free: 7.215 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.56e-05/0.5879, allocations: 110.7 kB / 0.5525 GB, free: 7.105 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005898/0.5885, allocations: 239.7 kB / 0.5527 GB, free: 6.871 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003547/0.592, allocations: 2.192 MB / 0.5549 GB, free: 4.574 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.067e-05/0.5921, allocations: 7.938 kB / 0.5549 GB, free: 4.566 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001581/0.5923, allocations: 59.98 kB / 0.5549 GB, free: 4.508 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005859/0.5928, allocations: 186.8 kB / 0.5551 GB, free: 4.324 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002993/0.5959, allocations: 1.834 MB / 0.5569 GB, free: 2.484 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.0124/0.6083, allocations: 8.52 MB / 0.5652 GB, free: 9.543 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002742/0.611, allocations: 1.909 MB / 0.5671 GB, free: 7.504 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001401/0.6125, allocations: 0.7939 MB / 0.5678 GB, free: 6.711 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001083/0.6126, allocations: 25.3 kB / 0.5679 GB, free: 6.688 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.964e-05/0.6126, allocations: 43.88 kB / 0.5679 GB, free: 6.637 MB / 430.1 MB Notification: Performance of pre-optimization done (n=130): time 4.649e-06/0.6126, allocations: 0 / 0.5679 GB, free: 6.637 MB / 430.1 MB Notification: Performance of matching and sorting (n=165): time 0.0232/0.6358, allocations: 9.212 MB / 0.5769 GB, free: 13.18 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.371e-05/0.636, allocations: 98.41 kB / 0.577 GB, free: 13.07 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001555/0.6376, allocations: 1.063 MB / 0.578 GB, free: 11.99 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001383/0.6377, allocations: 53.7 kB / 0.5781 GB, free: 11.93 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005924/0.6383, allocations: 0.7875 MB / 0.5789 GB, free: 11.14 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005339/0.6389, allocations: 0.5815 MB / 0.5794 GB, free: 10.55 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005478/0.6394, allocations: 359.2 kB / 0.5798 GB, free: 10.19 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001435/0.6396, allocations: 309.1 kB / 0.5801 GB, free: 9.887 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001441/0.641, allocations: 0.8511 MB / 0.5809 GB, free: 9.031 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001902/0.6429, allocations: 1.34 MB / 0.5822 GB, free: 7.484 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.01404/0.657, allocations: 5.191 MB / 0.5873 GB, free: 2.121 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.806e-05/0.657, allocations: 4 kB / 0.5873 GB, free: 2.117 MB / 446.1 MB Notification: Performance of matching and sorting (n=255) (initialization): time 0.009984/0.667, allocations: 4.189 MB / 0.5914 GB, free: 13.86 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.329e-05/0.6671, allocations: 12.09 kB / 0.5914 GB, free: 13.85 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.886e-05/0.6672, allocations: 16 kB / 0.5914 GB, free: 13.83 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00513/0.6723, allocations: 1.606 MB / 0.593 GB, free: 12.21 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001377/0.6737, allocations: 311.5 kB / 0.5933 GB, free: 11.9 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03186/0.7056, allocations: 20.88 MB / 0.6136 GB, free: 6.156 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002031/0.7077, allocations: 95.92 kB / 0.6137 GB, free: 6.062 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004901/0.7082, allocations: 83.98 kB / 0.6138 GB, free: 5.98 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.PI.x = 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: 66 * 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 (152): * Single equations (assignments): 146 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(1,3,100.0%), (1,8,100.0%), (1,1,100.0%), (3,24,77.8%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(4,22), (21,20)} Notification: Performance of prepare postOptimizeDAE: time 0.00176/0.71, allocations: 0.5498 MB / 0.6144 GB, free: 5.422 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005617/0.7105, allocations: 150.1 kB / 0.6145 GB, free: 5.273 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006016/0.7166, allocations: 2.812 MB / 0.6172 GB, free: 2.359 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.153e-05/0.7166, allocations: 20 kB / 0.6173 GB, free: 2.34 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.546e-05/0.7166, allocations: 4 kB / 0.6173 GB, free: 2.336 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.806e-05/0.7167, allocations: 7.969 kB / 0.6173 GB, free: 2.328 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01073/0.7274, allocations: 4.817 MB / 0.622 GB, free: 13.32 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.335e-05/0.7274, allocations: 4.031 kB / 0.622 GB, free: 13.32 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001837/0.7293, allocations: 351.5 kB / 0.6223 GB, free: 12.97 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001685/0.731, allocations: 497.5 kB / 0.6228 GB, free: 12.46 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002277/0.7312, allocations: 55.97 kB / 0.6228 GB, free: 12.41 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01609/0.7473, allocations: 12.74 MB / 0.6353 GB, free: 14.68 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.346e-06/0.7474, allocations: 7.922 kB / 0.6353 GB, free: 14.67 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008361/0.7558, allocations: 3.716 MB / 0.6389 GB, free: 10.81 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001187/0.757, allocations: 367.1 kB / 0.6393 GB, free: 10.43 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005346/0.7576, allocations: 51.92 kB / 0.6393 GB, free: 10.38 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001332/0.7589, allocations: 75.92 kB / 0.6394 GB, free: 10.31 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003756/0.7593, allocations: 125.1 kB / 0.6395 GB, free: 10.19 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001211/0.7594, allocations: 47.98 kB / 0.6396 GB, free: 10.14 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.001396/0.7609, allocations: 0.7061 MB / 0.6403 GB, free: 9.43 MB / 0.4981 GB Notification: Performance of sort global known variables: time 2.9e-07/0.7609, allocations: 4 kB / 0.6403 GB, free: 9.426 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.003164/0.764, allocations: 0.5937 MB / 0.6408 GB, free: 8.832 MB / 0.4981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 24 (inertia.w,meterDC.pav,generator.phi_el,generator.i_s[3],generator.psi_s[1],generator.psi_s[2],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],PI.x) * 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 (138): * Single equations (assignments): 130 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 6 systems {(1,2,100.0%), (2,6,100.0%), (1,1,100.0%), (1,8,100.0%), (1,1,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,8)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0005791/0.7646, allocations: 196.6 kB / 0.641 GB, free: 8.633 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.007214/0.7719, allocations: 3.492 MB / 0.6444 GB, free: 5.059 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 8.857e-06/0.7719, allocations: 4.625 kB / 0.6444 GB, free: 5.055 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.003308/0.7752, allocations: 1.881 MB / 0.6463 GB, free: 3.082 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002418/0.7776, allocations: 350.5 kB / 0.6466 GB, free: 2.738 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01119/0.7888, allocations: 5.276 MB / 0.6518 GB, free: 13.41 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00259/0.7915, allocations: 1.637 MB / 0.6534 GB, free: 11.74 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.001541/0.793, allocations: 445.3 kB / 0.6538 GB, free: 11.3 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005152/0.7936, allocations: 111.4 kB / 0.6539 GB, free: 11.19 MB / 0.5137 GB Notification: Performance of SimCode: time 6.51e-07/0.7936, allocations: 3.938 kB / 0.6539 GB, free: 11.19 MB / 0.5137 GB Notification: Performance of Templates: time 0.06794/0.8615, allocations: 32.46 MB / 0.6856 GB, free: 10.91 MB / 0.545 GB make -j1 -f PowerSystems_latest_PowerSystems.Examples.Wind.WindTurbine_PSGI.makefile (rm -f PowerSystems_latest_PowerSystems.Examples.Wind.WindTurbine_PSGI.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.Wind.WindTurbine_PSGI.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.Wind.WindTurbine_PSGI.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.Wind.WindTurbine_PSGI.sim & ./PowerSystems_latest_PowerSystems.Examples.Wind.WindTurbine_PSGI -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.Wind.WindTurbine_PSGI.pipe 2>&1)