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.001475/0.001475, allocations: 103 kB / 17.74 MB, free: 5.324 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.001655/0.001655, allocations: 192.3 kB / 18.67 MB, free: 4.395 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.379/1.379, allocations: 205.1 MB / 224.5 MB, free: 12.24 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1807/0.1807, allocations: 37.98 MB / 309.9 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.001425/0.001425, allocations: 67.91 kB / 432.5 MB, free: 15.76 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1211/0.1225, allocations: 55.24 MB / 487.8 MB, free: 8.449 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Generation.WindGeneratorLine): time 0.01023/0.1328, allocations: 7.61 MB / 495.4 MB, free: 0.7969 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.00905/0.1419, allocations: 5.34 MB / 0.489 GB, free: 11.44 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008495/0.1428, allocations: 27.88 kB / 0.489 GB, free: 11.41 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.01093/0.1537, allocations: 5.169 MB / 0.4941 GB, free: 6.23 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.002245/0.156, allocations: 0.6338 MB / 0.4947 GB, free: 5.594 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001256/0.1573, allocations: 427.2 kB / 0.4951 GB, free: 5.176 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.003618/0.1609, allocations: 2.21 MB / 0.4973 GB, free: 2.961 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001494/0.1624, allocations: 1.116 MB / 0.4984 GB, free: 1.824 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001044/0.1635, allocations: 0.65 MB / 0.499 GB, free: 1.172 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001008/0.1645, allocations: 0.7435 MB / 0.4997 GB, free: 436 kB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001656/0.1647, allocations: 116 kB / 0.4998 GB, free: 320 kB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007037/0.1654, allocations: 387.5 kB / 0.5002 GB, free: 15.93 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003961/0.1658, allocations: 0.4949 MB / 0.5007 GB, free: 15.44 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005257/0.1663, allocations: 0.6066 MB / 0.5013 GB, free: 14.83 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0018/0.1681, allocations: 1.706 MB / 0.5029 GB, free: 13.12 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.934e-06/0.1682, allocations: 7.922 kB / 0.5029 GB, free: 13.11 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.733e-06/0.1682, allocations: 0 / 0.5029 GB, free: 13.11 MB / 398.1 MB Notification: Performance of Transformations before backend: time 2.5e-05/0.1682, allocations: 0 / 0.5029 GB, free: 13.11 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.00292/0.1711, allocations: 1.421 MB / 0.5043 GB, free: 11.64 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.611e-05/0.1712, allocations: 15.89 kB / 0.5043 GB, free: 11.62 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000759/0.172, allocations: 155.5 kB / 0.5045 GB, free: 11.47 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001751/0.1737, allocations: 0.9641 MB / 0.5054 GB, free: 10.46 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.452e-05/0.1738, allocations: 54 kB / 0.5055 GB, free: 10.41 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001896/0.174, allocations: 99.83 kB / 0.5056 GB, free: 10.31 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001658/0.1757, allocations: 1.071 MB / 0.5066 GB, free: 9.195 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.227e-05/0.1757, allocations: 3.906 kB / 0.5066 GB, free: 9.191 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.223e-05/0.1758, allocations: 32 kB / 0.5067 GB, free: 9.16 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002234/0.176, allocations: 73.95 kB / 0.5067 GB, free: 9.09 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001323/0.1774, allocations: 0.8314 MB / 0.5075 GB, free: 8.258 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005532/0.1829, allocations: 3.985 MB / 0.5114 GB, free: 4.09 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009863/0.1839, allocations: 0.625 MB / 0.512 GB, free: 3.426 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004291/0.1844, allocations: 315.3 kB / 0.5123 GB, free: 3.113 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.577e-05/0.1844, allocations: 8.562 kB / 0.5124 GB, free: 3.105 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.26e-05/0.1845, allocations: 47.06 kB / 0.5124 GB, free: 3.051 MB / 398.1 MB Notification: Performance of pre-optimization done (n=57): time 2.524e-06/0.1845, allocations: 0 / 0.5124 GB, free: 3.051 MB / 398.1 MB Notification: Performance of matching and sorting (n=65): time 0.004636/0.1891, allocations: 2.579 MB / 0.5149 GB, free: 380 kB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.474e-05/0.1892, allocations: 107.7 kB / 0.515 GB, free: 248 kB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008637/0.1901, allocations: 0.6957 MB / 0.5157 GB, free: 15.54 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 5.446e-05/0.1901, allocations: 41.7 kB / 0.5157 GB, free: 15.49 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003372/0.1905, allocations: 479.1 kB / 0.5162 GB, free: 15.01 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001853/0.1907, allocations: 244.5 kB / 0.5164 GB, free: 14.77 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002199/0.1909, allocations: 154.6 kB / 0.5166 GB, free: 14.61 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001645/0.1911, allocations: 394.7 kB / 0.517 GB, free: 14.22 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004492/0.1915, allocations: 301.8 kB / 0.5172 GB, free: 13.92 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005874/0.1921, allocations: 0.5149 MB / 0.5177 GB, free: 13.32 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003713/0.1958, allocations: 1.672 MB / 0.5194 GB, free: 11.54 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.242e-06/0.1959, allocations: 4 kB / 0.5194 GB, free: 11.54 MB / 414.1 MB Notification: Performance of matching and sorting (n=103) (initialization): time 0.002363/0.1982, allocations: 1.267 MB / 0.5206 GB, free: 10.26 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.082e-05/0.1983, allocations: 12.25 kB / 0.5206 GB, free: 10.25 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.693e-05/0.1983, allocations: 8 kB / 0.5206 GB, free: 10.24 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00112/0.1994, allocations: 401.3 kB / 0.521 GB, free: 9.84 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005346/0.2, allocations: 151.8 kB / 0.5212 GB, free: 9.691 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007974/0.208, allocations: 6.238 MB / 0.5273 GB, free: 3.152 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000704/0.2087, allocations: 32 kB / 0.5273 GB, free: 3.121 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001247/0.2089, allocations: 31.98 kB / 0.5273 GB, free: 3.09 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.000733/0.2096, allocations: 361.5 kB / 0.5277 GB, free: 2.727 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002302/0.2098, allocations: 82.97 kB / 0.5277 GB, free: 2.645 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00176/0.2116, allocations: 0.8916 MB / 0.5286 GB, free: 1.727 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.127e-06/0.2116, allocations: 8 kB / 0.5286 GB, free: 1.719 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.969e-06/0.2117, allocations: 4 kB / 0.5286 GB, free: 1.715 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.007e-06/0.2117, allocations: 3.984 kB / 0.5286 GB, free: 1.711 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2592/0.4708, allocations: 2.005 MB / 0.5306 GB, free: 51.11 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.192e-05/0.4709, allocations: 2.438 kB / 0.5306 GB, free: 51.11 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000685/0.4716, allocations: 122 kB / 0.5307 GB, free: 51.11 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005946/0.4722, allocations: 186.4 kB / 0.5309 GB, free: 51.08 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.62e-05/0.4723, allocations: 24.2 kB / 0.5309 GB, free: 51.08 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003752/0.4761, allocations: 5.477 MB / 0.5363 GB, free: 46.8 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.367e-06/0.4761, allocations: 6.562 kB / 0.5363 GB, free: 46.8 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002013/0.4781, allocations: 1.265 MB / 0.5375 GB, free: 46.57 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003246/0.4784, allocations: 207.2 kB / 0.5377 GB, free: 46.45 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001162/0.4786, allocations: 23.86 kB / 0.5377 GB, free: 46.43 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003621/0.4789, allocations: 21.17 kB / 0.5377 GB, free: 46.42 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001271/0.4791, allocations: 47.05 kB / 0.5378 GB, free: 46.41 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.938e-05/0.4791, allocations: 19.52 kB / 0.5378 GB, free: 46.41 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0007055/0.4798, allocations: 0.4944 MB / 0.5383 GB, free: 46.19 MB / 414.1 MB Notification: Performance of sort global known variables: time 2.3e-07/0.4799, allocations: 0 / 0.5383 GB, free: 46.19 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001121/0.481, allocations: 248.2 kB / 0.5385 GB, free: 46.16 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.001004/0.482, allocations: 417.2 kB / 0.5389 GB, free: 45.89 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.002071/0.4841, allocations: 1.146 MB / 0.54 GB, free: 45.34 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.449e-06/0.4841, allocations: 0.8438 kB / 0.54 GB, free: 45.34 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009084/0.485, allocations: 0.7117 MB / 0.5407 GB, free: 44.87 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009999/0.486, allocations: 186.7 kB / 0.5409 GB, free: 44.79 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004029/0.4901, allocations: 2.567 MB / 0.5434 GB, free: 43.41 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008412/0.4909, allocations: 1.14 MB / 0.5445 GB, free: 42.65 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002334/0.4912, allocations: 65.67 kB / 0.5446 GB, free: 42.64 MB / 414.1 MB Notification: Performance of SimCode: time 2.294e-06/0.4912, allocations: 0 / 0.5446 GB, free: 42.64 MB / 414.1 MB Notification: Performance of Templates: time 0.03038/0.5216, allocations: 22.7 MB / 0.5668 GB, free: 30.1 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)