Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_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/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/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="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.Wind.WindTurbine_PSGR") translateModel(PowerSystems.Examples.Wind.WindTurbine_PSGR,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_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.001163/0.001163, allocations: 108.8 kB / 16.92 MB, free: 5.785 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.001273/0.001273, allocations: 191.3 kB / 17.85 MB, free: 5.16 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.381/1.381, allocations: 222.9 MB / 241.5 MB, free: 15.23 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1721/0.1721, allocations: 38.03 MB / 329.7 MB, free: 8.809 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001327/0.001328, allocations: 63.98 kB / 398.8 MB, free: 34.06 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1196/0.1209, allocations: 58.05 MB / 456.8 MB, free: 8.098 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Wind.WindTurbine_PSGR): time 0.0136/0.1345, allocations: 10.94 MB / 467.8 MB, free: 13.11 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01161/0.1462, allocations: 7.092 MB / 474.9 MB, free: 6 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001354/0.1476, allocations: 47.69 kB / 474.9 MB, free: 5.953 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02197/0.1696, allocations: 12.91 MB / 487.8 MB, free: 9.027 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003601/0.1732, allocations: 1.116 MB / 488.9 MB, free: 7.906 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002046/0.1753, allocations: 0.6472 MB / 489.6 MB, free: 7.258 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.005828/0.1811, allocations: 3.895 MB / 493.5 MB, free: 3.348 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001378/0.1825, allocations: 1.004 MB / 494.5 MB, free: 2.324 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00169/0.1842, allocations: 1.074 MB / 495.6 MB, free: 1.246 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002141/0.1864, allocations: 1.398 MB / 497 MB, free: 15.84 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004799/0.1869, allocations: 144 kB / 497.1 MB, free: 15.7 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001263/0.1881, allocations: 0.5149 MB / 497.6 MB, free: 15.19 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008617/0.189, allocations: 0.8845 MB / 498.5 MB, free: 14.3 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001039/0.19, allocations: 0.9563 MB / 499.5 MB, free: 13.34 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002581/0.1926, allocations: 2.457 MB / 0.4902 GB, free: 10.88 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.921e-06/0.1927, allocations: 4 kB / 0.4902 GB, free: 10.87 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.803e-06/0.1927, allocations: 4 kB / 0.4902 GB, free: 10.87 MB / 382.1 MB Notification: Performance of Transformations before backend: time 2.59e-05/0.1927, allocations: 0 / 0.4902 GB, free: 10.87 MB / 382.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.004256/0.197, allocations: 2.161 MB / 0.4923 GB, free: 8.648 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.687e-05/0.197, allocations: 11.89 kB / 0.4923 GB, free: 8.637 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001755/0.1988, allocations: 318.3 kB / 0.4926 GB, free: 8.324 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002654/0.2015, allocations: 1.229 MB / 0.4938 GB, free: 7.047 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001032/0.2016, allocations: 102.7 kB / 0.4939 GB, free: 6.945 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005837/0.2022, allocations: 235.7 kB / 0.4941 GB, free: 6.715 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003277/0.2055, allocations: 2.149 MB / 0.4962 GB, free: 4.457 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.204e-05/0.2055, allocations: 15.78 kB / 0.4962 GB, free: 4.441 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001525/0.2057, allocations: 55.92 kB / 0.4963 GB, free: 4.387 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006528/0.2063, allocations: 182.7 kB / 0.4964 GB, free: 4.207 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002916/0.2093, allocations: 1.752 MB / 0.4982 GB, free: 2.449 MB / 382.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.2845/0.4938, allocations: 8.618 MB / 0.5066 GB, free: 52.66 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002339/0.4962, allocations: 1.814 MB / 0.5083 GB, free: 51.61 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00141/0.4976, allocations: 0.7901 MB / 0.5091 GB, free: 51.35 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.048e-05/0.4977, allocations: 17.59 kB / 0.5091 GB, free: 51.34 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.564e-05/0.4977, allocations: 45.62 kB / 0.5092 GB, free: 51.3 MB / 382.1 MB Notification: Performance of pre-optimization done (n=122): time 4.288e-06/0.4977, allocations: 0.9375 kB / 0.5092 GB, free: 51.3 MB / 382.1 MB Notification: Performance of matching and sorting (n=137): time 0.01087/0.5086, allocations: 5.451 MB / 0.5145 GB, free: 48.74 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.333e-05/0.5087, allocations: 96 kB / 0.5146 GB, free: 48.64 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001473/0.5102, allocations: 1.033 MB / 0.5156 GB, free: 48.24 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 8.995e-05/0.5103, allocations: 46.67 kB / 0.5156 GB, free: 48.2 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004395/0.5107, allocations: 0.7689 MB / 0.5164 GB, free: 47.59 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003376/0.511, allocations: 0.4966 MB / 0.5169 GB, free: 47.21 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004263/0.5115, allocations: 317 kB / 0.5172 GB, free: 47.06 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.267e-05/0.5115, allocations: 301.8 kB / 0.5175 GB, free: 46.77 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001131/0.5127, allocations: 0.7225 MB / 0.5182 GB, free: 46.54 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001307/0.514, allocations: 1.179 MB / 0.5193 GB, free: 45.75 MB / 382.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.01124/0.5252, allocations: 5.011 MB / 0.5242 GB, free: 43.76 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.352e-05/0.5253, allocations: 4.125 kB / 0.5242 GB, free: 43.76 MB / 382.1 MB Notification: Performance of matching and sorting (n=225) (initialization): time 0.007016/0.5323, allocations: 3.6 MB / 0.5277 GB, free: 41.71 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.428e-05/0.5324, allocations: 10.81 kB / 0.5278 GB, free: 41.71 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.905e-05/0.5325, allocations: 14.34 kB / 0.5278 GB, free: 41.71 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003509/0.536, allocations: 1.262 MB / 0.529 GB, free: 41.2 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001295/0.5373, allocations: 321.7 kB / 0.5293 GB, free: 41.12 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01716/0.5545, allocations: 16.02 MB / 0.5449 GB, free: 24.59 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0017/0.5562, allocations: 71.95 kB / 0.545 GB, free: 24.52 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001595/0.5564, allocations: 75.98 kB / 0.5451 GB, free: 24.45 MB / 382.1 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.0009598/0.5573, allocations: 0.5178 MB / 0.5456 GB, free: 23.92 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002832/0.5576, allocations: 142.9 kB / 0.5457 GB, free: 23.78 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002769/0.5604, allocations: 2.142 MB / 0.5478 GB, free: 21.54 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.566e-06/0.5604, allocations: 20 kB / 0.5478 GB, free: 21.52 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.442e-06/0.5604, allocations: 4 kB / 0.5478 GB, free: 21.51 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.679e-05/0.5605, allocations: 10.25 kB / 0.5479 GB, free: 21.5 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005381/0.5659, allocations: 3.842 MB / 0.5516 GB, free: 17.53 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.344e-06/0.5659, allocations: 0 / 0.5516 GB, free: 17.53 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001543/0.5675, allocations: 323.9 kB / 0.5519 GB, free: 17.21 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004868/0.568, allocations: 212 kB / 0.5521 GB, free: 16.99 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000104/0.5681, allocations: 47.97 kB / 0.5522 GB, free: 16.95 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004102/0.5722, allocations: 7.938 MB / 0.5599 GB, free: 8.324 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.667e-06/0.5722, allocations: 4 kB / 0.5599 GB, free: 8.32 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003733/0.576, allocations: 2.822 MB / 0.5627 GB, free: 5.367 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000704/0.5767, allocations: 339.1 kB / 0.563 GB, free: 5.016 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001985/0.5769, allocations: 39.98 kB / 0.563 GB, free: 4.977 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007357/0.5776, allocations: 55.94 kB / 0.5631 GB, free: 4.922 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002111/0.5779, allocations: 97.25 kB / 0.5632 GB, free: 4.828 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.289e-05/0.5779, allocations: 43.98 kB / 0.5632 GB, free: 4.785 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.000744/0.5787, allocations: 0.697 MB / 0.5639 GB, free: 4.082 MB / 382.1 MB Notification: Performance of sort global known variables: time 6.01e-07/0.5787, allocations: 0 / 0.5639 GB, free: 4.082 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001696/0.5804, allocations: 0.5076 MB / 0.5644 GB, free: 3.578 MB / 382.1 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.0003516/0.5808, allocations: 182.9 kB / 0.5646 GB, free: 3.402 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.005848/0.5866, allocations: 3.691 MB / 0.5682 GB, free: 15.67 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 6.412e-06/0.5866, allocations: 1.625 kB / 0.5682 GB, free: 15.67 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002055/0.5887, allocations: 1.374 MB / 0.5695 GB, free: 14.23 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001613/0.5903, allocations: 322.3 kB / 0.5698 GB, free: 13.93 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008161/0.5985, allocations: 5.028 MB / 0.5747 GB, free: 8.875 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00136/0.5999, allocations: 1.549 MB / 0.5763 GB, free: 7.293 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.001445/0.6014, allocations: 440.1 kB / 0.5767 GB, free: 6.859 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003657/0.6017, allocations: 111.4 kB / 0.5768 GB, free: 6.75 MB / 398.1 MB Notification: Performance of SimCode: time 8.12e-07/0.6018, allocations: 0 / 0.5768 GB, free: 6.75 MB / 398.1 MB Notification: Performance of Templates: time 0.04506/0.6468, allocations: 26.93 MB / 0.6031 GB, free: 12.02 MB / 430.1 MB make -j1 -f PowerSystems_PowerSystems.Examples.Wind.WindTurbine_PSGR.makefile (rm -f PowerSystems_PowerSystems.Examples.Wind.WindTurbine_PSGR.pipe ; mkfifo PowerSystems_PowerSystems.Examples.Wind.WindTurbine_PSGR.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.Wind.WindTurbine_PSGR.pipe >> ../files/PowerSystems_PowerSystems.Examples.Wind.WindTurbine_PSGR.sim & ./PowerSystems_PowerSystems.Examples.Wind.WindTurbine_PSGR -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.Wind.WindTurbine_PSGR.pipe 2>&1)