Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC3ph.Generation.WindGeneratorLine.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.AC3ph.Generation.WindGeneratorLine,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC3ph.Generation.WindGeneratorLine") translateModel(PowerSystems.Examples.AC3ph.Generation.WindGeneratorLine,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC3ph.Generation.WindGeneratorLine") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001503/0.001503, allocations: 111.8 kB / 17.06 MB, free: 6.09 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.001647/0.001647, allocations: 199 kB / 18 MB, free: 5.168 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.464/1.464, allocations: 205.1 MB / 223.9 MB, free: 12.21 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1732/0.1732, allocations: 37.98 MB / 309.2 MB, free: 5.941 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.001386/0.001386, allocations: 67.91 kB / 431.9 MB, free: 15.63 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1236/0.125, allocations: 55.25 MB / 487.1 MB, free: 8.324 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Generation.WindGeneratorLine): time 0.00948/0.1345, allocations: 7.61 MB / 494.7 MB, free: 0.6719 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.0105/0.1451, allocations: 5.343 MB / 0.4884 GB, free: 11.31 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009257/0.1461, allocations: 23.88 kB / 0.4884 GB, free: 11.29 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'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Math/package.mo:1125:3-1182:12:writable] Warning: Pure function 'Modelica.Math.Matrices.solve' contains a call to impure function 'Modelica.Math.Matrices.LAPACK.dgesv_vec'. Notification: Performance of NFTyping.typeComponents: time 0.01132/0.1574, allocations: 5.173 MB / 0.4934 GB, free: 6.102 MB / 382.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Utilities/Strings.mo:139:3-175:14:writable] Warning: Pure function 'Modelica.Utilities.Strings.isEmpty' contains a call to impure function 'Modelica.Utilities.Strings.Advanced.skipWhiteSpace'. Notification: Performance of NFTyping.typeBindings: time 0.002705/0.1601, allocations: 0.6338 MB / 0.494 GB, free: 5.465 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001355/0.1615, allocations: 427.2 kB / 0.4945 GB, free: 5.047 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.003887/0.1654, allocations: 2.21 MB / 0.4966 GB, free: 2.832 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001874/0.1673, allocations: 1.116 MB / 0.4977 GB, free: 1.695 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001425/0.1687, allocations: 0.6501 MB / 0.4983 GB, free: 1.043 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001724/0.1705, allocations: 0.7396 MB / 0.4991 GB, free: 308 kB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001762/0.1707, allocations: 116 kB / 0.4992 GB, free: 192 kB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000961/0.1716, allocations: 387.5 kB / 0.4995 GB, free: 15.81 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004861/0.1721, allocations: 0.491 MB / 0.5 GB, free: 15.32 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006894/0.1728, allocations: 0.6027 MB / 0.5006 GB, free: 14.71 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001954/0.1748, allocations: 1.714 MB / 0.5023 GB, free: 12.99 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.861e-06/0.1748, allocations: 0 / 0.5023 GB, free: 12.99 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.104e-06/0.1748, allocations: 4 kB / 0.5023 GB, free: 12.99 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.403e-05/0.1749, allocations: 0 / 0.5023 GB, free: 12.99 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 208 * Number of variables: 208 Notification: Performance of Generate backend data structure: time 0.003148/0.178, allocations: 1.421 MB / 0.5037 GB, free: 11.52 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.97e-05/0.1781, allocations: 15.89 kB / 0.5037 GB, free: 11.5 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008122/0.1789, allocations: 151.5 kB / 0.5038 GB, free: 11.35 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002126/0.181, allocations: 0.9679 MB / 0.5048 GB, free: 10.34 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.813e-05/0.1811, allocations: 65.98 kB / 0.5048 GB, free: 10.27 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002274/0.1813, allocations: 91.89 kB / 0.5049 GB, free: 10.18 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001761/0.1831, allocations: 1.067 MB / 0.506 GB, free: 9.074 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.316e-05/0.1832, allocations: 7.844 kB / 0.506 GB, free: 9.066 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.184e-05/0.1833, allocations: 35.98 kB / 0.506 GB, free: 9.031 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002142/0.1835, allocations: 73.95 kB / 0.5061 GB, free: 8.961 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001356/0.1848, allocations: 0.8314 MB / 0.5069 GB, free: 8.129 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005607/0.1905, allocations: 3.973 MB / 0.5108 GB, free: 3.973 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001016/0.1915, allocations: 0.6288 MB / 0.5114 GB, free: 3.305 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004198/0.1919, allocations: 315.3 kB / 0.5117 GB, free: 2.992 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.64e-05/0.192, allocations: 8.562 kB / 0.5117 GB, free: 2.984 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.617e-05/0.192, allocations: 43.11 kB / 0.5117 GB, free: 2.934 MB / 398.1 MB Notification: Performance of pre-optimization done (n=57): time 3.236e-06/0.192, allocations: 0 / 0.5117 GB, free: 2.934 MB / 398.1 MB Notification: Performance of matching and sorting (n=65): time 0.004733/0.1968, allocations: 2.579 MB / 0.5143 GB, free: 260 kB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001326/0.1969, allocations: 111.5 kB / 0.5144 GB, free: 124 kB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009107/0.1979, allocations: 0.6996 MB / 0.515 GB, free: 15.41 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 4.608e-05/0.1979, allocations: 37.7 kB / 0.5151 GB, free: 15.37 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003202/0.1982, allocations: 483.2 kB / 0.5155 GB, free: 14.89 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001933/0.1984, allocations: 236.5 kB / 0.5158 GB, free: 14.65 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002263/0.1987, allocations: 154.6 kB / 0.5159 GB, free: 14.5 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001837/0.1989, allocations: 390.8 kB / 0.5163 GB, free: 14.11 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004449/0.1993, allocations: 309.8 kB / 0.5166 GB, free: 13.8 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005828/0.1999, allocations: 0.5188 MB / 0.5171 GB, free: 13.2 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003788/0.2037, allocations: 1.672 MB / 0.5187 GB, free: 11.42 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.753e-06/0.2037, allocations: 0 / 0.5187 GB, free: 11.42 MB / 414.1 MB Notification: Performance of matching and sorting (n=103) (initialization): time 0.002396/0.2061, allocations: 1.274 MB / 0.52 GB, free: 10.13 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.908e-05/0.2062, allocations: 11.94 kB / 0.52 GB, free: 10.12 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.257e-05/0.2062, allocations: 4 kB / 0.52 GB, free: 10.11 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001096/0.2073, allocations: 401.6 kB / 0.5204 GB, free: 9.715 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005101/0.2078, allocations: 147.8 kB / 0.5205 GB, free: 9.57 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008387/0.2162, allocations: 6.246 MB / 0.5266 GB, free: 3.023 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007717/0.217, allocations: 35.98 kB / 0.5266 GB, free: 2.988 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.377e-05/0.2171, allocations: 32 kB / 0.5267 GB, free: 2.957 MB / 414.1 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization system: $DER.windGen.WT.turbine.w = 0.0. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 28 * Number of states: 0 () * 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 initialization (75): * Single equations (assignments): 73 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(4,21)} Notification: Performance of prepare postOptimizeDAE: time 0.0007399/0.2179, allocations: 349.5 kB / 0.527 GB, free: 2.605 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001838/0.218, allocations: 86.95 kB / 0.5271 GB, free: 2.52 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001713/0.2198, allocations: 0.8956 MB / 0.528 GB, free: 1.598 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.746e-06/0.2198, allocations: 8 kB / 0.528 GB, free: 1.59 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.201e-06/0.2198, allocations: 4 kB / 0.528 GB, free: 1.586 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.746e-06/0.2198, allocations: 3.984 kB / 0.528 GB, free: 1.582 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3174/0.5372, allocations: 2.005 MB / 0.5299 GB, free: 51.02 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.122e-05/0.5372, allocations: 1.703 kB / 0.5299 GB, free: 51.02 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000665/0.5379, allocations: 119.5 kB / 0.5301 GB, free: 51.02 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006032/0.5385, allocations: 188.8 kB / 0.5302 GB, free: 51 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.711e-05/0.5386, allocations: 24.86 kB / 0.5303 GB, free: 51 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00405/0.5427, allocations: 5.479 MB / 0.5356 GB, free: 46.72 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.688e-06/0.5427, allocations: 2.219 kB / 0.5356 GB, free: 46.72 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00217/0.5449, allocations: 1.265 MB / 0.5368 GB, free: 46.49 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003885/0.5453, allocations: 208.9 kB / 0.537 GB, free: 46.39 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.167e-05/0.5454, allocations: 17.55 kB / 0.5371 GB, free: 46.38 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003365/0.5457, allocations: 23.33 kB / 0.5371 GB, free: 46.37 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001258/0.5459, allocations: 52.47 kB / 0.5371 GB, free: 46.36 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.972e-05/0.5459, allocations: 19.41 kB / 0.5371 GB, free: 46.36 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0009183/0.5468, allocations: 0.4936 MB / 0.5376 GB, free: 46.14 MB / 414.1 MB Notification: Performance of sort global known variables: time 6.21e-07/0.5468, allocations: 0 / 0.5376 GB, free: 46.14 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001298/0.5482, allocations: 244.5 kB / 0.5379 GB, free: 46.12 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 11 (windGen.generator.i[3],windGen.generator.psi_rd[1],windGen.generator.psi_rq[1],windGen.WT.genRotor.phi,windGen.WT.genRotor.w,windGen.WT.turbine.phi,windGen.WT.turbine.w,windGen.WT.gear.phi,windGen.WT.gear.w,line.i[1],line.i[2]) * 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 (54): * Single equations (assignments): 50 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * 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,5,100.0%), (1,5,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0009966/0.5492, allocations: 409.8 kB / 0.5383 GB, free: 45.85 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.002752/0.5519, allocations: 1.142 MB / 0.5394 GB, free: 45.3 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 8.917e-06/0.5519, allocations: 1.219 kB / 0.5394 GB, free: 45.3 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001165/0.5531, allocations: 0.7154 MB / 0.5401 GB, free: 44.82 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00106/0.5542, allocations: 201.3 kB / 0.5403 GB, free: 44.74 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00433/0.5585, allocations: 2.481 MB / 0.5427 GB, free: 43.43 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008273/0.5594, allocations: 1.15 MB / 0.5438 GB, free: 42.66 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0005432/0.5599, allocations: 164 kB / 0.544 GB, free: 42.62 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001638/0.5601, allocations: 62.33 kB / 0.544 GB, free: 42.61 MB / 414.1 MB Notification: Performance of SimCode: time 1.042e-06/0.5601, allocations: 0 / 0.544 GB, free: 42.61 MB / 414.1 MB Notification: Performance of Templates: time 0.02505/0.5852, allocations: 12.93 MB / 0.5567 GB, free: 38.46 MB / 414.1 MB make -j1 -f PowerSystems_PowerSystems.Examples.AC3ph.Generation.WindGeneratorLine.makefile (rm -f PowerSystems_PowerSystems.Examples.AC3ph.Generation.WindGeneratorLine.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC3ph.Generation.WindGeneratorLine.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC3ph.Generation.WindGeneratorLine.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC3ph.Generation.WindGeneratorLine.sim & ./PowerSystems_PowerSystems.Examples.AC3ph.Generation.WindGeneratorLine -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.AC3ph.Generation.WindGeneratorLine.pipe 2>&1)