Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.Wind.WindTurbine_PSGI") translateModel(PowerSystems.Examples.Wind.WindTurbine_PSGI,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_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.001288/0.001288, allocations: 109.9 kB / 17.74 MB, free: 5.359 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.001374/0.001374, allocations: 193.5 kB / 18.67 MB, free: 4.434 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.358/1.358, allocations: 205.1 MB / 224.5 MB, free: 12.25 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1756/0.1756, allocations: 37.98 MB / 309.9 MB, free: 5.961 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001603/0.001603, allocations: 67.89 kB / 432.5 MB, free: 15.66 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1041/0.1058, allocations: 55.24 MB / 487.8 MB, free: 8.355 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Wind.WindTurbine_PSGI): time 0.01158/0.1174, allocations: 11.02 MB / 498.8 MB, free: 13.29 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01059/0.128, allocations: 7.109 MB / 0.494 GB, free: 6.156 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001037/0.1291, allocations: 55.69 kB / 0.4941 GB, free: 6.102 MB / 382.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Math/package.mo:1895:3-1973:18:writable] Warning: Pure function 'Modelica.Math.Matrices.eigenValues' contains a call to impure function 'Modelica.Math.Matrices.LAPACK.dgeev_eigenValues'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Math/package.mo:2829:3-2870:10:writable] Warning: Pure function 'Modelica.Math.Matrices.inv' contains a call to impure function 'Modelica.Math.Matrices.LAPACK.dgetrf'. Notification: Performance of NFTyping.typeComponents: time 0.02021/0.1493, allocations: 12.88 MB / 0.5067 GB, free: 9.203 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00306/0.1524, allocations: 1.116 MB / 0.5078 GB, free: 8.082 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002032/0.1545, allocations: 0.694 MB / 0.5084 GB, free: 7.387 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.005204/0.1597, allocations: 4.001 MB / 0.5123 GB, free: 3.379 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001743/0.1615, allocations: 0.9924 MB / 0.5133 GB, free: 2.359 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002144/0.1636, allocations: 1.129 MB / 0.5144 GB, free: 1.227 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002568/0.1662, allocations: 1.441 MB / 0.5158 GB, free: 15.78 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006041/0.1668, allocations: 148 kB / 0.516 GB, free: 15.64 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001612/0.1684, allocations: 0.5188 MB / 0.5165 GB, free: 15.12 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001279/0.1697, allocations: 0.9002 MB / 0.5174 GB, free: 14.21 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002106/0.1719, allocations: 0.9873 MB / 0.5183 GB, free: 13.22 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004301/0.1762, allocations: 2.562 MB / 0.5208 GB, free: 10.65 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.849e-06/0.1762, allocations: 0 / 0.5208 GB, free: 10.65 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.064e-06/0.1762, allocations: 4 kB / 0.5208 GB, free: 10.65 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0001409/0.1764, allocations: 0 / 0.5208 GB, free: 10.65 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.005626/0.182, allocations: 2.221 MB / 0.523 GB, free: 8.367 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.377e-05/0.182, allocations: 15.88 kB / 0.523 GB, free: 8.352 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001888/0.1839, allocations: 334.3 kB / 0.5233 GB, free: 8.023 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00283/0.1868, allocations: 1.33 MB / 0.5246 GB, free: 6.648 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.752e-05/0.1869, allocations: 110.7 kB / 0.5247 GB, free: 6.539 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005527/0.1874, allocations: 243.8 kB / 0.525 GB, free: 6.301 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003506/0.1909, allocations: 2.196 MB / 0.5271 GB, free: 4 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.648e-05/0.191, allocations: 11.84 kB / 0.5271 GB, free: 3.988 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001573/0.1912, allocations: 59.98 kB / 0.5272 GB, free: 3.93 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006583/0.1918, allocations: 190.8 kB / 0.5274 GB, free: 3.742 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002868/0.1947, allocations: 1.827 MB / 0.5291 GB, free: 1.91 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.2726/0.4673, allocations: 8.507 MB / 0.5374 GB, free: 47.74 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002503/0.4698, allocations: 1.905 MB / 0.5393 GB, free: 46.69 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001384/0.4712, allocations: 0.7931 MB / 0.5401 GB, free: 46.42 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.6e-05/0.4714, allocations: 18.64 kB / 0.5401 GB, free: 46.42 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.991e-05/0.4714, allocations: 53.02 kB / 0.5401 GB, free: 46.37 MB / 414.1 MB Notification: Performance of pre-optimization done (n=130): time 3.907e-06/0.4714, allocations: 2.516 kB / 0.5402 GB, free: 46.37 MB / 414.1 MB Notification: Performance of matching and sorting (n=165): time 0.02318/0.4946, allocations: 9.208 MB / 0.5491 GB, free: 42.52 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.052e-05/0.4947, allocations: 99.56 kB / 0.5492 GB, free: 42.42 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001479/0.4962, allocations: 1.07 MB / 0.5503 GB, free: 42 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001132/0.4963, allocations: 52.61 kB / 0.5503 GB, free: 41.95 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004578/0.4968, allocations: 0.7837 MB / 0.5511 GB, free: 41.34 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004292/0.4972, allocations: 0.5974 MB / 0.5517 GB, free: 40.88 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005041/0.4977, allocations: 352 kB / 0.552 GB, free: 40.72 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 5.35e-05/0.4978, allocations: 302.7 kB / 0.5523 GB, free: 40.43 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001305/0.4991, allocations: 0.8485 MB / 0.5531 GB, free: 40.16 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001434/0.5005, allocations: 1.353 MB / 0.5545 GB, free: 39.29 MB / 414.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.01155/0.5121, allocations: 5.185 MB / 0.5595 GB, free: 36.72 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.147e-05/0.5121, allocations: 3.5 kB / 0.5595 GB, free: 36.72 MB / 414.1 MB Notification: Performance of matching and sorting (n=255) (initialization): time 0.007583/0.5197, allocations: 4.191 MB / 0.5636 GB, free: 33.68 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.531e-05/0.5197, allocations: 15.91 kB / 0.5636 GB, free: 33.66 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.939e-05/0.5198, allocations: 16 kB / 0.5636 GB, free: 33.64 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003895/0.5237, allocations: 1.608 MB / 0.5652 GB, free: 32.02 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001085/0.5248, allocations: 315.5 kB / 0.5655 GB, free: 31.71 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02031/0.5451, allocations: 20.87 MB / 0.5859 GB, free: 9.996 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001478/0.5466, allocations: 95.52 kB / 0.586 GB, free: 9.906 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001324/0.5467, allocations: 91.48 kB / 0.5861 GB, free: 9.82 MB / 414.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.0008337/0.5476, allocations: 0.5522 MB / 0.5866 GB, free: 9.258 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002127/0.5478, allocations: 154.1 kB / 0.5868 GB, free: 9.105 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004088/0.5519, allocations: 2.797 MB / 0.5895 GB, free: 6.203 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.736e-06/0.5519, allocations: 16 kB / 0.5895 GB, free: 6.188 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.993e-06/0.5519, allocations: 4 kB / 0.5895 GB, free: 6.184 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.295e-05/0.5519, allocations: 11.97 kB / 0.5895 GB, free: 6.172 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007058/0.559, allocations: 4.823 MB / 0.5942 GB, free: 1.203 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.223e-06/0.559, allocations: 7.984 kB / 0.5942 GB, free: 1.195 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001541/0.5606, allocations: 343.9 kB / 0.5946 GB, free: 0.8594 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001294/0.5619, allocations: 493.5 kB / 0.595 GB, free: 364 kB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000107/0.562, allocations: 55.97 kB / 0.5951 GB, free: 308 kB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01134/0.5733, allocations: 12.75 MB / 0.6075 GB, free: 2.578 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.429e-06/0.5734, allocations: 4 kB / 0.6075 GB, free: 2.574 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006372/0.5797, allocations: 3.712 MB / 0.6112 GB, free: 14.72 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001058/0.5808, allocations: 367.1 kB / 0.6115 GB, free: 14.34 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003556/0.5812, allocations: 47.98 kB / 0.6116 GB, free: 14.29 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001001/0.5822, allocations: 71.92 kB / 0.6116 GB, free: 14.22 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003321/0.5825, allocations: 133 kB / 0.6118 GB, free: 14.09 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001082/0.5827, allocations: 43.98 kB / 0.6118 GB, free: 14.05 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0009777/0.5836, allocations: 0.7143 MB / 0.6125 GB, free: 13.33 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.846e-06/0.5837, allocations: 0 / 0.6125 GB, free: 13.33 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002063/0.5857, allocations: 0.5944 MB / 0.6131 GB, free: 12.74 MB / 446.1 MB 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.0003828/0.5861, allocations: 192 kB / 0.6133 GB, free: 12.55 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.005559/0.5917, allocations: 3.51 MB / 0.6167 GB, free: 8.973 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.797e-06/0.5917, allocations: 0.875 kB / 0.6167 GB, free: 8.973 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002719/0.5944, allocations: 1.885 MB / 0.6185 GB, free: 6.996 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00146/0.5959, allocations: 357.8 kB / 0.6189 GB, free: 6.645 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008277/0.6042, allocations: 5.407 MB / 0.6242 GB, free: 1.195 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001533/0.6057, allocations: 1.62 MB / 0.6257 GB, free: 15.55 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004532/0.6062, allocations: 123.4 kB / 0.6259 GB, free: 15.43 MB / 462.1 MB Notification: Performance of SimCode: time 8.72e-07/0.6062, allocations: 4 kB / 0.6259 GB, free: 15.42 MB / 462.1 MB Notification: Performance of Templates: time 0.07249/0.6787, allocations: 65.27 MB / 0.6896 GB, free: 14.02 MB / 0.5137 GB make -j1 -f PowerSystems_PowerSystems.Examples.Wind.WindTurbine_PSGI.makefile (rm -f PowerSystems_PowerSystems.Examples.Wind.WindTurbine_PSGI.pipe ; mkfifo PowerSystems_PowerSystems.Examples.Wind.WindTurbine_PSGI.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.Wind.WindTurbine_PSGI.pipe >> ../files/PowerSystems_PowerSystems.Examples.Wind.WindTurbine_PSGI.sim & ./PowerSystems_PowerSystems.Examples.Wind.WindTurbine_PSGI -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.Wind.WindTurbine_PSGI.pipe 2>&1)