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.001147/0.001147, allocations: 109.9 kB / 17.06 MB, free: 6.137 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.001268/0.001268, allocations: 191 kB / 18 MB, free: 5.219 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.473/1.473, 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.1772/0.1772, 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.002019/0.00202, allocations: 67.91 kB / 431.9 MB, free: 15.63 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1358/0.1378, allocations: 55.25 MB / 487.1 MB, free: 8.332 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Generation.WindGeneratorLine): time 0.0108/0.1487, allocations: 7.607 MB / 494.7 MB, free: 0.6836 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.009756/0.1585, allocations: 5.34 MB / 0.4883 GB, free: 11.32 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001091/0.1596, allocations: 27.81 kB / 0.4884 GB, free: 11.3 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.0123/0.172, allocations: 5.177 MB / 0.4934 GB, free: 6.109 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.002282/0.1743, allocations: 0.6455 MB / 0.4941 GB, free: 5.461 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001454/0.1757, allocations: 427.2 kB / 0.4945 GB, free: 5.043 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.003611/0.1794, allocations: 2.206 MB / 0.4966 GB, free: 2.832 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001845/0.1812, allocations: 1.12 MB / 0.4977 GB, free: 1.691 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001447/0.1827, allocations: 0.6539 MB / 0.4984 GB, free: 1.035 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001475/0.1842, allocations: 0.7318 MB / 0.4991 GB, free: 308 kB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003415/0.1845, allocations: 120 kB / 0.4992 GB, free: 188 kB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001096/0.1857, allocations: 391.5 kB / 0.4996 GB, free: 15.8 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007086/0.1864, allocations: 0.4949 MB / 0.5 GB, free: 15.3 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001215/0.1876, allocations: 0.5988 MB / 0.5006 GB, free: 14.7 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002629/0.1902, allocations: 1.71 MB / 0.5023 GB, free: 12.99 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.623e-06/0.1903, allocations: 0 / 0.5023 GB, free: 12.99 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.873e-06/0.1903, allocations: 0 / 0.5023 GB, free: 12.99 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.618e-05/0.1903, 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.003887/0.1942, allocations: 1.421 MB / 0.5037 GB, free: 11.52 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.597e-05/0.1943, allocations: 11.89 kB / 0.5037 GB, free: 11.5 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008985/0.1952, allocations: 163.4 kB / 0.5038 GB, free: 11.34 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002096/0.1973, allocations: 0.9641 MB / 0.5048 GB, free: 10.33 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.073e-05/0.1974, allocations: 61.94 kB / 0.5049 GB, free: 10.27 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002302/0.1976, allocations: 91.88 kB / 0.5049 GB, free: 10.18 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00186/0.1995, allocations: 1.071 MB / 0.506 GB, free: 9.07 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.5e-05/0.1995, allocations: 7.906 kB / 0.506 GB, free: 9.062 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.054e-05/0.1996, allocations: 32 kB / 0.506 GB, free: 9.031 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002146/0.1999, allocations: 69.95 kB / 0.5061 GB, free: 8.965 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001489/0.2014, allocations: 0.8392 MB / 0.5069 GB, free: 8.125 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005388/0.2068, allocations: 3.981 MB / 0.5108 GB, free: 3.961 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009939/0.2078, allocations: 0.621 MB / 0.5114 GB, free: 3.301 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004255/0.2082, allocations: 319.3 kB / 0.5117 GB, free: 2.984 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.492e-05/0.2083, allocations: 12.56 kB / 0.5117 GB, free: 2.973 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.2e-05/0.2083, allocations: 39.06 kB / 0.5118 GB, free: 2.926 MB / 398.1 MB Notification: Performance of pre-optimization done (n=57): time 2.816e-06/0.2083, allocations: 0 / 0.5118 GB, free: 2.926 MB / 398.1 MB Notification: Performance of matching and sorting (n=65): time 0.004562/0.2129, allocations: 2.579 MB / 0.5143 GB, free: 252 kB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.163e-05/0.213, allocations: 115.4 kB / 0.5144 GB, free: 112 kB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001068/0.2141, allocations: 0.6958 MB / 0.5151 GB, free: 15.4 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 4.744e-05/0.2141, allocations: 41.64 kB / 0.5151 GB, free: 15.35 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004824/0.2146, allocations: 479.2 kB / 0.5156 GB, free: 14.88 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002039/0.2148, allocations: 244.4 kB / 0.5158 GB, free: 14.64 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002347/0.2151, allocations: 146.6 kB / 0.5159 GB, free: 14.49 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0002019/0.2153, allocations: 398.7 kB / 0.5163 GB, free: 14.09 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004545/0.2157, allocations: 305.8 kB / 0.5166 GB, free: 13.79 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000673/0.2164, allocations: 0.515 MB / 0.5171 GB, free: 13.19 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003648/0.2201, allocations: 1.676 MB / 0.5187 GB, free: 11.41 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.432e-06/0.2201, allocations: 4 kB / 0.5187 GB, free: 11.4 MB / 414.1 MB Notification: Performance of matching and sorting (n=103) (initialization): time 0.002256/0.2224, allocations: 1.263 MB / 0.52 GB, free: 10.12 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.648e-05/0.2224, allocations: 11.94 kB / 0.52 GB, free: 10.11 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.463e-05/0.2224, allocations: 8 kB / 0.52 GB, free: 10.11 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001111/0.2235, allocations: 405.5 kB / 0.5204 GB, free: 9.703 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005067/0.2241, allocations: 147.8 kB / 0.5205 GB, free: 9.559 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007866/0.2319, allocations: 6.242 MB / 0.5266 GB, free: 3.016 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006732/0.2326, allocations: 31.98 kB / 0.5267 GB, free: 2.984 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.584e-05/0.2327, allocations: 28 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.0007265/0.2335, allocations: 361.5 kB / 0.527 GB, free: 2.594 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000158/0.2336, allocations: 78.97 kB / 0.5271 GB, free: 2.516 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001661/0.2353, allocations: 0.8955 MB / 0.528 GB, free: 1.594 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.724e-06/0.2353, allocations: 4 kB / 0.528 GB, free: 1.59 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.703e-06/0.2353, allocations: 12 kB / 0.528 GB, free: 1.578 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.628e-06/0.2353, allocations: 3.984 kB / 0.528 GB, free: 1.574 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3104/0.5457, allocations: 2.002 MB / 0.5299 GB, free: 51.12 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.496e-06/0.5458, allocations: 1.094 kB / 0.53 GB, free: 51.12 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006169/0.5464, allocations: 119 kB / 0.5301 GB, free: 51.12 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005903/0.547, allocations: 191.7 kB / 0.5302 GB, free: 51.1 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.924e-05/0.5471, allocations: 24.36 kB / 0.5303 GB, free: 51.1 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003724/0.5508, allocations: 5.477 MB / 0.5356 GB, free: 46.82 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.275e-06/0.5508, allocations: 1.375 kB / 0.5356 GB, free: 46.82 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001929/0.5528, allocations: 1.274 MB / 0.5369 GB, free: 46.59 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003014/0.5531, allocations: 204 kB / 0.5371 GB, free: 46.48 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.58e-05/0.5532, allocations: 22.92 kB / 0.5371 GB, free: 46.47 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003271/0.5535, allocations: 21.3 kB / 0.5371 GB, free: 46.46 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001094/0.5536, allocations: 51.77 kB / 0.5371 GB, free: 46.45 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.794e-05/0.5537, allocations: 21.31 kB / 0.5372 GB, free: 46.45 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0006723/0.5544, allocations: 0.4904 MB / 0.5376 GB, free: 46.23 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.5544, allocations: 0 / 0.5376 GB, free: 46.23 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001016/0.5554, allocations: 247.8 kB / 0.5379 GB, free: 46.21 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.0008814/0.5563, allocations: 405.1 kB / 0.5383 GB, free: 45.94 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001907/0.5582, allocations: 1.144 MB / 0.5394 GB, free: 45.39 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.557e-06/0.5582, allocations: 1.375 kB / 0.5394 GB, free: 45.39 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009896/0.5592, allocations: 0.7223 MB / 0.5401 GB, free: 44.91 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008493/0.5601, allocations: 192.9 kB / 0.5403 GB, free: 44.83 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003659/0.5637, allocations: 2.489 MB / 0.5427 GB, free: 43.49 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007476/0.5645, allocations: 1.143 MB / 0.5438 GB, free: 42.73 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0004579/0.565, allocations: 162.5 kB / 0.544 GB, free: 42.69 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001564/0.5651, allocations: 63.98 kB / 0.544 GB, free: 42.68 MB / 414.1 MB Notification: Performance of SimCode: time 4.9e-07/0.5652, allocations: 0 / 0.544 GB, free: 42.68 MB / 414.1 MB Notification: Performance of Templates: time 0.02358/0.5887, allocations: 12.7 MB / 0.5564 GB, free: 38.71 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)