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.001037/0.001037, allocations: 111.6 kB / 17.06 MB, free: 6.102 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.001246/0.001246, allocations: 199 kB / 18 MB, free: 5.18 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.428/1.428, allocations: 205.1 MB / 223.9 MB, free: 12.2 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1708/0.1708, allocations: 37.99 MB / 309.2 MB, free: 5.938 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.0014/0.0014, allocations: 71.89 kB / 431.9 MB, free: 15.63 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1435/0.1449, allocations: 55.24 MB / 487.1 MB, free: 8.336 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Wind.WindTurbine_PSGI): time 0.01254/0.1575, allocations: 11.02 MB / 498.1 MB, free: 13.25 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01265/0.1702, allocations: 7.113 MB / 0.4934 GB, free: 6.125 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001587/0.1718, allocations: 55.69 kB / 0.4935 GB, free: 6.07 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.02276/0.1946, allocations: 12.87 MB / 0.506 GB, free: 9.18 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00389/0.1986, allocations: 1.124 MB / 0.5071 GB, free: 8.051 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002336/0.2009, allocations: 0.6901 MB / 0.5078 GB, free: 7.359 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.008024/0.2089, allocations: 3.997 MB / 0.5117 GB, free: 3.355 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002113/0.2111, allocations: 0.9963 MB / 0.5127 GB, free: 2.332 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002786/0.2139, allocations: 1.133 MB / 0.5138 GB, free: 1.195 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003204/0.2171, allocations: 1.437 MB / 0.5152 GB, free: 15.75 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007918/0.2179, allocations: 152 kB / 0.5153 GB, free: 15.61 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001862/0.2198, allocations: 0.5188 MB / 0.5158 GB, free: 15.09 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001672/0.2215, allocations: 0.9002 MB / 0.5167 GB, free: 14.18 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001813/0.2233, allocations: 0.9873 MB / 0.5177 GB, free: 13.19 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003371/0.2267, allocations: 2.558 MB / 0.5202 GB, free: 10.62 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.915e-06/0.2267, allocations: 4 kB / 0.5202 GB, free: 10.62 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.215e-06/0.2268, allocations: 4 kB / 0.5202 GB, free: 10.62 MB / 414.1 MB Notification: Performance of Transformations before backend: time 2.841e-05/0.2268, allocations: 0 / 0.5202 GB, free: 10.62 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.00473/0.2315, allocations: 2.217 MB / 0.5223 GB, free: 8.34 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.04e-05/0.2316, allocations: 15.89 kB / 0.5224 GB, free: 8.324 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00174/0.2333, allocations: 334.3 kB / 0.5227 GB, free: 7.996 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002905/0.2363, allocations: 1.338 MB / 0.524 GB, free: 6.613 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.056e-05/0.2364, allocations: 102.7 kB / 0.5241 GB, free: 6.512 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005367/0.2369, allocations: 235.8 kB / 0.5243 GB, free: 6.281 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003622/0.2405, allocations: 2.2 MB / 0.5265 GB, free: 3.977 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.967e-05/0.2406, allocations: 11.84 kB / 0.5265 GB, free: 3.965 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001561/0.2408, allocations: 63.98 kB / 0.5265 GB, free: 3.902 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005986/0.2414, allocations: 182.8 kB / 0.5267 GB, free: 3.723 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003053/0.2444, allocations: 1.827 MB / 0.5285 GB, free: 1.891 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.3033/0.5478, allocations: 8.511 MB / 0.5368 GB, free: 48.09 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002881/0.5507, allocations: 1.909 MB / 0.5387 GB, free: 47 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001489/0.5522, allocations: 0.7868 MB / 0.5394 GB, free: 46.74 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.794e-05/0.5523, allocations: 26.03 kB / 0.5395 GB, free: 46.73 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.831e-05/0.5523, allocations: 48.31 kB / 0.5395 GB, free: 46.68 MB / 414.1 MB Notification: Performance of pre-optimization done (n=130): time 5.531e-06/0.5524, allocations: 0 / 0.5395 GB, free: 46.68 MB / 414.1 MB Notification: Performance of matching and sorting (n=165): time 0.02406/0.5764, allocations: 9.214 MB / 0.5485 GB, free: 42.82 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.503e-05/0.5765, allocations: 99.2 kB / 0.5486 GB, free: 42.73 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001516/0.578, allocations: 1.066 MB / 0.5496 GB, free: 42.32 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001024/0.5781, allocations: 55.98 kB / 0.5497 GB, free: 42.26 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004687/0.5786, allocations: 0.7849 MB / 0.5505 GB, free: 41.65 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003784/0.579, allocations: 0.5938 MB / 0.551 GB, free: 41.19 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000482/0.5795, allocations: 351.8 kB / 0.5514 GB, free: 41.04 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 4.8e-05/0.5796, allocations: 301.1 kB / 0.5517 GB, free: 40.74 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001331/0.5809, allocations: 0.8475 MB / 0.5525 GB, free: 40.47 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001391/0.5823, allocations: 1.352 MB / 0.5538 GB, free: 39.6 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.01151/0.5938, allocations: 5.188 MB / 0.5589 GB, free: 36.98 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.035e-05/0.5938, allocations: 7.156 kB / 0.5589 GB, free: 36.98 MB / 414.1 MB Notification: Performance of matching and sorting (n=255) (initialization): time 0.007396/0.6012, allocations: 4.188 MB / 0.563 GB, free: 33.8 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.487e-05/0.6013, allocations: 8 kB / 0.563 GB, free: 33.79 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.195e-05/0.6013, allocations: 16 kB / 0.563 GB, free: 33.78 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003914/0.6052, allocations: 1.612 MB / 0.5646 GB, free: 32.15 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001112/0.6064, allocations: 316 kB / 0.5649 GB, free: 31.84 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02053/0.6269, allocations: 20.87 MB / 0.5852 GB, free: 10.12 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001872/0.6288, allocations: 96.2 kB / 0.5853 GB, free: 10.03 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001621/0.629, allocations: 83.48 kB / 0.5854 GB, free: 9.953 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.0009967/0.63, allocations: 0.5547 MB / 0.586 GB, free: 9.391 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000252/0.6302, allocations: 158.1 kB / 0.5861 GB, free: 9.234 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004286/0.6345, allocations: 2.801 MB / 0.5888 GB, free: 6.328 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.011e-05/0.6346, allocations: 16 kB / 0.5889 GB, free: 6.312 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.225e-06/0.6346, allocations: 8 kB / 0.5889 GB, free: 6.305 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.372e-05/0.6346, allocations: 11.97 kB / 0.5889 GB, free: 6.293 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007101/0.6417, allocations: 4.815 MB / 0.5936 GB, free: 1.332 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.314e-06/0.6417, allocations: 4 kB / 0.5936 GB, free: 1.328 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001527/0.6433, allocations: 347.9 kB / 0.5939 GB, free: 0.9883 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001287/0.6446, allocations: 496.9 kB / 0.5944 GB, free: 496 kB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001138/0.6447, allocations: 55.91 kB / 0.5944 GB, free: 440 kB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0115/0.6562, allocations: 12.75 MB / 0.6069 GB, free: 2.703 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.498e-06/0.6562, allocations: 4.031 kB / 0.6069 GB, free: 2.699 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006379/0.6626, allocations: 3.704 MB / 0.6105 GB, free: 14.86 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000805/0.6634, allocations: 371 kB / 0.6109 GB, free: 14.47 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001991/0.6637, allocations: 47.98 kB / 0.6109 GB, free: 14.43 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008785/0.6645, allocations: 79.92 kB / 0.611 GB, free: 14.35 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003392/0.6649, allocations: 125 kB / 0.6111 GB, free: 14.23 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001011/0.665, allocations: 51.98 kB / 0.6112 GB, free: 14.18 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0009933/0.666, allocations: 0.7061 MB / 0.6118 GB, free: 13.46 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.092e-06/0.666, allocations: 384 / 0.6118 GB, free: 13.46 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002208/0.6682, allocations: 0.5937 MB / 0.6124 GB, free: 12.88 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.0004336/0.6687, allocations: 190.4 kB / 0.6126 GB, free: 12.69 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.005805/0.6745, allocations: 3.521 MB / 0.616 GB, free: 9.094 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 5.229e-06/0.6745, allocations: 0.875 kB / 0.616 GB, free: 9.094 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002926/0.6774, allocations: 1.884 MB / 0.6179 GB, free: 7.121 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001712/0.6792, allocations: 341.3 kB / 0.6182 GB, free: 6.785 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008124/0.6873, allocations: 5.282 MB / 0.6234 GB, free: 1.465 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001366/0.6887, allocations: 1.637 MB / 0.625 GB, free: 15.8 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001169/0.6899, allocations: 433.3 kB / 0.6254 GB, free: 15.37 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003557/0.6902, allocations: 115.4 kB / 0.6255 GB, free: 15.25 MB / 462.1 MB Notification: Performance of SimCode: time 1.443e-06/0.6902, allocations: 0 / 0.6255 GB, free: 15.25 MB / 462.1 MB Notification: Performance of Templates: time 0.04932/0.7396, allocations: 33.22 MB / 0.6579 GB, free: 14.02 MB / 494.1 MB 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)