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.001649/0.00165, allocations: 111.7 kB / 17.06 MB, free: 5.988 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.002205/0.002205, allocations: 195.9 kB / 18 MB, free: 5.074 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.52/1.52, allocations: 205.1 MB / 223.9 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.1831/0.1831, allocations: 37.99 MB / 309.2 MB, free: 5.953 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.001619/0.00162, allocations: 72.42 kB / 431.9 MB, free: 15.66 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1137/0.1154, allocations: 55.24 MB / 487.1 MB, free: 8.355 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Wind.WindTurbine_PSGI): time 0.01194/0.1273, allocations: 11.01 MB / 498.1 MB, free: 13.29 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01269/0.1401, allocations: 7.113 MB / 0.4934 GB, free: 6.156 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001728/0.1419, allocations: 55.69 kB / 0.4934 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.02218/0.1641, allocations: 12.87 MB / 0.506 GB, free: 9.211 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00329/0.1674, allocations: 1.12 MB / 0.5071 GB, free: 8.086 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002023/0.1694, allocations: 0.6979 MB / 0.5078 GB, free: 7.387 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.005941/0.1754, allocations: 4.001 MB / 0.5117 GB, free: 3.379 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001423/0.1768, allocations: 0.9925 MB / 0.5127 GB, free: 2.359 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001792/0.1786, allocations: 1.132 MB / 0.5138 GB, free: 1.223 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00211/0.1808, allocations: 1.433 MB / 0.5152 GB, free: 15.79 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002588/0.181, allocations: 155.9 kB / 0.5153 GB, free: 15.63 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001196/0.1822, allocations: 0.5188 MB / 0.5158 GB, free: 15.11 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008373/0.1831, allocations: 0.904 MB / 0.5167 GB, free: 14.21 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001065/0.1842, allocations: 0.9795 MB / 0.5177 GB, free: 13.22 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003071/0.1872, allocations: 2.558 MB / 0.5202 GB, free: 10.66 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.801e-06/0.1873, allocations: 0 / 0.5202 GB, free: 10.66 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.874e-06/0.1873, allocations: 8 kB / 0.5202 GB, free: 10.65 MB / 414.1 MB Notification: Performance of Transformations before backend: time 2.902e-05/0.1873, allocations: 0 / 0.5202 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.003931/0.1913, allocations: 2.224 MB / 0.5223 GB, free: 8.363 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.05e-05/0.1913, allocations: 15.89 kB / 0.5224 GB, free: 8.348 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001632/0.1929, allocations: 326.3 kB / 0.5227 GB, free: 8.027 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0026/0.1956, allocations: 1.338 MB / 0.524 GB, free: 6.645 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.635e-05/0.1956, allocations: 106.7 kB / 0.5241 GB, free: 6.539 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005173/0.1962, allocations: 239.8 kB / 0.5243 GB, free: 6.305 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003156/0.1993, allocations: 2.188 MB / 0.5264 GB, free: 4.012 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.038e-05/0.1994, allocations: 15.78 kB / 0.5265 GB, free: 3.996 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001434/0.1995, allocations: 67.97 kB / 0.5265 GB, free: 3.93 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005675/0.2001, allocations: 182.8 kB / 0.5267 GB, free: 3.75 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002886/0.203, allocations: 1.834 MB / 0.5285 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.3181/0.5211, allocations: 8.499 MB / 0.5368 GB, free: 48.2 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002796/0.5239, allocations: 1.907 MB / 0.5386 GB, free: 47.14 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001403/0.5254, allocations: 0.793 MB / 0.5394 GB, free: 46.88 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.356e-05/0.5255, allocations: 21.48 kB / 0.5394 GB, free: 46.87 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.982e-05/0.5255, allocations: 55.86 kB / 0.5395 GB, free: 46.82 MB / 414.1 MB Notification: Performance of pre-optimization done (n=130): time 4.328e-06/0.5255, allocations: 0 / 0.5395 GB, free: 46.82 MB / 414.1 MB Notification: Performance of matching and sorting (n=165): time 0.02601/0.5515, allocations: 9.203 MB / 0.5485 GB, free: 42.97 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.934e-05/0.5516, allocations: 102.8 kB / 0.5486 GB, free: 42.87 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001765/0.5534, allocations: 1.067 MB / 0.5496 GB, free: 42.46 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001171/0.5535, allocations: 57.02 kB / 0.5497 GB, free: 42.41 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005562/0.5541, allocations: 0.7813 MB / 0.5504 GB, free: 41.8 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005202/0.5546, allocations: 0.5969 MB / 0.551 GB, free: 41.34 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004995/0.5551, allocations: 352.5 kB / 0.5514 GB, free: 41.18 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 5.792e-05/0.5552, allocations: 301.1 kB / 0.5516 GB, free: 40.88 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001426/0.5566, allocations: 0.8477 MB / 0.5525 GB, free: 40.61 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001403/0.558, allocations: 1.352 MB / 0.5538 GB, free: 39.75 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.01201/0.5701, allocations: 5.19 MB / 0.5589 GB, free: 37.18 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.348e-05/0.5701, allocations: 7.422 kB / 0.5589 GB, free: 37.18 MB / 414.1 MB Notification: Performance of matching and sorting (n=255) (initialization): time 0.008284/0.5784, allocations: 4.185 MB / 0.563 GB, free: 34.14 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.164e-05/0.5785, allocations: 15.91 kB / 0.563 GB, free: 34.12 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.721e-05/0.5785, allocations: 20.62 kB / 0.563 GB, free: 34.11 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004331/0.5829, allocations: 1.605 MB / 0.5646 GB, free: 32.48 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001338/0.5842, allocations: 311.5 kB / 0.5649 GB, free: 32.18 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02222/0.6064, allocations: 20.87 MB / 0.5852 GB, free: 10.46 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001934/0.6084, allocations: 107.8 kB / 0.5853 GB, free: 10.36 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002571/0.6087, allocations: 87.38 kB / 0.5854 GB, free: 10.28 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.001174/0.6099, allocations: 0.5472 MB / 0.586 GB, free: 9.723 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004116/0.6103, allocations: 158.1 kB / 0.5861 GB, free: 9.566 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004654/0.615, allocations: 2.801 MB / 0.5888 GB, free: 6.66 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.843e-05/0.615, allocations: 19.94 kB / 0.5889 GB, free: 6.641 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.63e-05/0.615, allocations: 4 kB / 0.5889 GB, free: 6.637 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.429e-05/0.6151, allocations: 7.969 kB / 0.5889 GB, free: 6.629 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008831/0.6239, allocations: 4.82 MB / 0.5936 GB, free: 1.664 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.041e-05/0.624, allocations: 4 kB / 0.5936 GB, free: 1.66 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001708/0.6257, allocations: 343.6 kB / 0.5939 GB, free: 1.324 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00143/0.6271, allocations: 493.8 kB / 0.5944 GB, free: 0.8203 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002352/0.6274, allocations: 59.97 kB / 0.5944 GB, free: 0.7617 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01295/0.6404, allocations: 12.74 MB / 0.6069 GB, free: 3.047 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.268e-06/0.6405, allocations: 7.938 kB / 0.6069 GB, free: 3.039 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007187/0.6477, allocations: 3.707 MB / 0.6105 GB, free: 15.2 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001244/0.6489, allocations: 371 kB / 0.6109 GB, free: 14.81 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002609/0.6492, allocations: 51.92 kB / 0.6109 GB, free: 14.76 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009654/0.6502, allocations: 79.86 kB / 0.611 GB, free: 14.68 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003813/0.6506, allocations: 125.5 kB / 0.6111 GB, free: 14.56 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001101/0.6507, allocations: 51.98 kB / 0.6112 GB, free: 14.51 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.001115/0.6518, allocations: 0.7159 MB / 0.6119 GB, free: 13.79 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.6518, allocations: 0 / 0.6119 GB, free: 13.79 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002618/0.6545, allocations: 0.597 MB / 0.6124 GB, free: 13.2 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.0004446/0.6549, allocations: 180.7 kB / 0.6126 GB, free: 13.02 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.006393/0.6613, allocations: 3.518 MB / 0.616 GB, free: 9.434 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 5.711e-06/0.6614, allocations: 0 / 0.616 GB, free: 9.434 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003067/0.6644, allocations: 1.883 MB / 0.6179 GB, free: 7.461 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002042/0.6665, allocations: 353.6 kB / 0.6182 GB, free: 7.113 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01011/0.6766, allocations: 5.27 MB / 0.6234 GB, free: 1.805 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001636/0.6783, allocations: 1.641 MB / 0.625 GB, free: 136 kB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001329/0.6796, allocations: 441.3 kB / 0.6254 GB, free: 15.7 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003548/0.68, allocations: 111.4 kB / 0.6255 GB, free: 15.59 MB / 462.1 MB Notification: Performance of SimCode: time 1.132e-06/0.68, allocations: 0 / 0.6255 GB, free: 15.59 MB / 462.1 MB Notification: Performance of Templates: time 0.0625/0.7425, allocations: 32.45 MB / 0.6572 GB, free: 15.11 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)