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.001625/0.001625, allocations: 109.5 kB / 17.06 MB, free: 6.125 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.001548/0.001548, allocations: 191 kB / 18 MB, free: 5.207 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.426/1.426, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1937/0.1937, allocations: 38.04 MB / 329.9 MB, free: 8.762 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001568/0.001568, allocations: 67.89 kB / 458.1 MB, free: 6.852 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4661/0.4677, allocations: 58.05 MB / 0.5041 GB, free: 7.75 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Wind.WindTurbine_PSGR): time 0.01249/0.4802, allocations: 10.95 MB / 0.5148 GB, free: 76 kB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01619/0.4965, allocations: 7.082 MB / 0.5217 GB, free: 11.09 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002239/0.4987, allocations: 44.75 kB / 0.5218 GB, free: 11.08 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02643/0.5252, allocations: 12.92 MB / 0.5344 GB, free: 6.383 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004193/0.5294, allocations: 1.106 MB / 0.5355 GB, free: 5.504 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002247/0.5317, allocations: 0.6512 MB / 0.5361 GB, free: 5.008 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.007727/0.5394, allocations: 3.911 MB / 0.5399 GB, free: 2.977 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002145/0.5416, allocations: 0.9901 MB / 0.5409 GB, free: 2.414 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002822/0.5444, allocations: 1.097 MB / 0.5419 GB, free: 1.785 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002759/0.5472, allocations: 1.397 MB / 0.5433 GB, free: 440 kB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003659/0.5476, allocations: 144 kB / 0.5434 GB, free: 296 kB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001465/0.5491, allocations: 0.5071 MB / 0.5439 GB, free: 15.78 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009955/0.5501, allocations: 0.8962 MB / 0.5448 GB, free: 14.88 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001348/0.5514, allocations: 0.9524 MB / 0.5458 GB, free: 13.93 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003366/0.5548, allocations: 2.5 MB / 0.5482 GB, free: 11.42 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.65e-06/0.5548, allocations: 0 / 0.5482 GB, free: 11.42 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.824e-06/0.5549, allocations: 0 / 0.5482 GB, free: 11.42 MB / 414.1 MB Notification: Performance of Transformations before backend: time 3.299e-05/0.5549, allocations: 0 / 0.5482 GB, free: 11.42 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.004516/0.5594, allocations: 2.15 MB / 0.5503 GB, free: 9.207 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.825e-05/0.5595, allocations: 8.031 kB / 0.5503 GB, free: 9.199 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001634/0.5611, allocations: 326.2 kB / 0.5506 GB, free: 8.879 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002604/0.5637, allocations: 1.287 MB / 0.5519 GB, free: 7.547 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.078e-05/0.5638, allocations: 102.6 kB / 0.552 GB, free: 7.445 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005446/0.5644, allocations: 239.7 kB / 0.5522 GB, free: 7.211 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003701/0.5681, allocations: 2.141 MB / 0.5543 GB, free: 4.961 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.729e-05/0.5682, allocations: 11.97 kB / 0.5543 GB, free: 4.949 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001636/0.5683, allocations: 59.98 kB / 0.5544 GB, free: 4.891 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000593/0.5689, allocations: 182.7 kB / 0.5545 GB, free: 4.711 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003091/0.572, allocations: 1.76 MB / 0.5562 GB, free: 2.945 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.01343/0.5855, allocations: 8.581 MB / 0.5646 GB, free: 9.941 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002668/0.5882, allocations: 1.817 MB / 0.5664 GB, free: 8.004 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001451/0.5896, allocations: 0.7543 MB / 0.5671 GB, free: 7.246 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.963e-05/0.5898, allocations: 29 kB / 0.5672 GB, free: 7.219 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.094e-05/0.5898, allocations: 47.55 kB / 0.5672 GB, free: 7.16 MB / 430.1 MB Notification: Performance of pre-optimization done (n=122): time 4.228e-06/0.5898, allocations: 0 / 0.5672 GB, free: 7.16 MB / 430.1 MB Notification: Performance of matching and sorting (n=150): time 0.01934/0.6092, allocations: 7.552 MB / 0.5746 GB, free: 15.44 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.022e-05/0.6093, allocations: 94.36 kB / 0.5747 GB, free: 15.33 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001368/0.6106, allocations: 1.037 MB / 0.5757 GB, free: 14.28 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001022/0.6108, allocations: 53.7 kB / 0.5757 GB, free: 14.22 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007353/0.6115, allocations: 0.7639 MB / 0.5765 GB, free: 13.44 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000561/0.6121, allocations: 0.5392 MB / 0.577 GB, free: 12.89 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005043/0.6126, allocations: 323.3 kB / 0.5773 GB, free: 12.57 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001187/0.6127, allocations: 305.1 kB / 0.5776 GB, free: 12.27 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001233/0.6139, allocations: 0.773 MB / 0.5784 GB, free: 11.5 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001725/0.6157, allocations: 1.251 MB / 0.5796 GB, free: 10.05 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.01629/0.632, allocations: 5.685 MB / 0.5851 GB, free: 4.191 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.704e-05/0.632, allocations: 4 kB / 0.5851 GB, free: 4.188 MB / 446.1 MB Notification: Performance of matching and sorting (n=236) (initialization): time 0.009272/0.6413, allocations: 3.921 MB / 0.589 GB, free: 228 kB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.414e-05/0.6414, allocations: 12 kB / 0.589 GB, free: 216 kB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.389e-05/0.6414, allocations: 12 kB / 0.589 GB, free: 204 kB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005965/0.6474, allocations: 1.747 MB / 0.5907 GB, free: 14.44 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001162/0.6486, allocations: 271.5 kB / 0.591 GB, free: 14.18 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02749/0.6761, allocations: 18.47 MB / 0.609 GB, free: 11.12 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001396/0.6775, allocations: 79.94 kB / 0.6091 GB, free: 11.05 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001605/0.6777, allocations: 76 kB / 0.6091 GB, free: 10.97 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.0009363/0.6786, allocations: 0.5366 MB / 0.6097 GB, free: 10.43 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002544/0.6789, allocations: 146.2 kB / 0.6098 GB, free: 10.28 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005168/0.6841, allocations: 2.413 MB / 0.6122 GB, free: 7.797 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.577e-05/0.6841, allocations: 16 kB / 0.6122 GB, free: 7.781 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.648e-06/0.6841, allocations: 7.938 kB / 0.6122 GB, free: 7.773 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.648e-05/0.6841, allocations: 7.969 kB / 0.6122 GB, free: 7.766 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008712/0.6929, allocations: 4.32 MB / 0.6164 GB, free: 3.309 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.725e-06/0.6929, allocations: 320 / 0.6164 GB, free: 3.309 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001596/0.6945, allocations: 311.6 kB / 0.6167 GB, free: 3.004 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002514/0.697, allocations: 0.5543 MB / 0.6173 GB, free: 2.434 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001478/0.6972, allocations: 47.97 kB / 0.6173 GB, free: 2.387 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01045/0.7077, allocations: 10.14 MB / 0.6272 GB, free: 7.555 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.823e-06/0.7077, allocations: 4.031 kB / 0.6272 GB, free: 7.551 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006367/0.7141, allocations: 3.216 MB / 0.6303 GB, free: 4.227 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008939/0.715, allocations: 347.2 kB / 0.6307 GB, free: 3.867 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002182/0.7152, allocations: 51.92 kB / 0.6307 GB, free: 3.816 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007977/0.716, allocations: 59.94 kB / 0.6308 GB, free: 3.758 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003172/0.7164, allocations: 117.1 kB / 0.6309 GB, free: 3.645 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001013/0.7165, allocations: 47.98 kB / 0.6309 GB, free: 3.598 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.001061/0.7175, allocations: 0.6892 MB / 0.6316 GB, free: 2.902 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.7175, allocations: 0 / 0.6316 GB, free: 2.902 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.002194/0.7197, allocations: 0.5664 MB / 0.6322 GB, free: 2.336 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.0004328/0.7202, allocations: 178.7 kB / 0.6323 GB, free: 2.148 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.006731/0.7269, allocations: 3.109 MB / 0.6354 GB, free: 14.99 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 8.907e-06/0.727, allocations: 3.938 kB / 0.6354 GB, free: 14.99 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.002789/0.7298, allocations: 1.576 MB / 0.6369 GB, free: 13.35 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002206/0.732, allocations: 337.5 kB / 0.6372 GB, free: 13.03 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009146/0.7412, allocations: 5.011 MB / 0.6421 GB, free: 7.945 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001511/0.7427, allocations: 1.592 MB / 0.6437 GB, free: 6.32 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.001154/0.7439, allocations: 404.4 kB / 0.6441 GB, free: 5.918 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003119/0.7442, allocations: 103.4 kB / 0.6442 GB, free: 5.816 MB / 0.4981 GB Notification: Performance of SimCode: time 1.102e-06/0.7442, allocations: 0 / 0.6442 GB, free: 5.816 MB / 0.4981 GB Notification: Performance of Templates: time 0.05625/0.8005, allocations: 31.9 MB / 0.6753 GB, free: 6.105 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)