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.001089/0.001089, allocations: 110.6 kB / 17.7 MB, free: 5.359 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.00117/0.00117, allocations: 188.8 kB / 18.64 MB, free: 4.434 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.268/1.268, allocations: 205.1 MB / 224.5 MB, free: 12.22 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.168/0.168, allocations: 37.97 MB / 309.8 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.001342/0.001342, allocations: 71.89 kB / 432.5 MB, free: 15.65 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09102/0.09237, allocations: 55.23 MB / 487.7 MB, free: 8.355 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Generation.WindGeneratorLine): time 0.008244/0.1007, allocations: 7.618 MB / 495.3 MB, free: 0.6953 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.007218/0.1079, allocations: 5.332 MB / 0.4889 GB, free: 11.34 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005183/0.1085, allocations: 27.88 kB / 0.489 GB, free: 11.32 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.00918/0.1177, allocations: 5.177 MB / 0.494 GB, free: 6.129 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.001512/0.1192, allocations: 0.6377 MB / 0.4947 GB, free: 5.488 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009725/0.1202, allocations: 431.2 kB / 0.4951 GB, free: 5.066 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.002639/0.1229, allocations: 2.21 MB / 0.4972 GB, free: 2.852 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001237/0.1241, allocations: 1.116 MB / 0.4983 GB, free: 1.715 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008995/0.125, allocations: 0.6383 MB / 0.4989 GB, free: 1.074 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000874/0.1259, allocations: 0.7396 MB / 0.4997 GB, free: 340 kB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001403/0.1261, allocations: 120 kB / 0.4998 GB, free: 220 kB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006487/0.1267, allocations: 383.6 kB / 0.5001 GB, free: 15.84 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004056/0.1272, allocations: 0.491 MB / 0.5006 GB, free: 15.35 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005348/0.1277, allocations: 0.5988 MB / 0.5012 GB, free: 14.75 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001488/0.1292, allocations: 1.71 MB / 0.5029 GB, free: 13.03 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.332e-06/0.1292, allocations: 4 kB / 0.5029 GB, free: 13.03 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.1292, allocations: 4 kB / 0.5029 GB, free: 13.02 MB / 398.1 MB Notification: Performance of Transformations before backend: time 2.144e-05/0.1292, allocations: 0 / 0.5029 GB, free: 13.02 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.002441/0.1317, allocations: 1.424 MB / 0.5043 GB, free: 11.55 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.838e-05/0.1317, allocations: 11.89 kB / 0.5043 GB, free: 11.54 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006961/0.1324, allocations: 151.5 kB / 0.5044 GB, free: 11.39 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001545/0.134, allocations: 0.964 MB / 0.5054 GB, free: 10.38 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.698e-05/0.1341, allocations: 61.98 kB / 0.5054 GB, free: 10.32 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002005/0.1343, allocations: 95.89 kB / 0.5055 GB, free: 10.22 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001424/0.1357, allocations: 1.067 MB / 0.5066 GB, free: 9.113 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.194e-05/0.1357, allocations: 11.91 kB / 0.5066 GB, free: 9.102 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.613e-05/0.1358, allocations: 35.92 kB / 0.5066 GB, free: 9.066 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002154/0.136, allocations: 73.95 kB / 0.5067 GB, free: 8.996 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001232/0.1373, allocations: 0.8353 MB / 0.5075 GB, free: 8.16 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004841/0.1421, allocations: 3.981 MB / 0.5114 GB, free: 3.996 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009572/0.1431, allocations: 0.6214 MB / 0.512 GB, free: 3.336 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004008/0.1435, allocations: 315.3 kB / 0.5123 GB, free: 3.023 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.19e-05/0.1436, allocations: 8.547 kB / 0.5123 GB, free: 3.016 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.508e-05/0.1436, allocations: 47.06 kB / 0.5123 GB, free: 2.961 MB / 398.1 MB Notification: Performance of pre-optimization done (n=57): time 2.645e-06/0.1436, allocations: 0 / 0.5123 GB, free: 2.961 MB / 398.1 MB Notification: Performance of matching and sorting (n=65): time 0.004398/0.148, allocations: 2.579 MB / 0.5149 GB, free: 288 kB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.451e-05/0.1481, allocations: 111.4 kB / 0.515 GB, free: 152 kB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007919/0.1489, allocations: 0.6998 MB / 0.5156 GB, free: 15.44 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 4.909e-05/0.149, allocations: 41.7 kB / 0.5157 GB, free: 15.39 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003024/0.1493, allocations: 475.2 kB / 0.5161 GB, free: 14.92 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001724/0.1495, allocations: 236.5 kB / 0.5164 GB, free: 14.68 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002023/0.1497, allocations: 154.6 kB / 0.5165 GB, free: 14.53 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001557/0.1498, allocations: 390.8 kB / 0.5169 GB, free: 14.14 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004382/0.1503, allocations: 309.8 kB / 0.5172 GB, free: 13.83 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005628/0.1509, allocations: 0.5149 MB / 0.5177 GB, free: 13.23 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003488/0.1543, allocations: 1.668 MB / 0.5193 GB, free: 11.46 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.711e-06/0.1544, allocations: 4 kB / 0.5193 GB, free: 11.45 MB / 414.1 MB Notification: Performance of matching and sorting (n=103) (initialization): time 0.002159/0.1565, allocations: 1.271 MB / 0.5206 GB, free: 10.17 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.278e-05/0.1566, allocations: 11.94 kB / 0.5206 GB, free: 10.16 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.539e-05/0.1566, allocations: 11.98 kB / 0.5206 GB, free: 10.14 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00104/0.1576, allocations: 401.6 kB / 0.521 GB, free: 9.746 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005025/0.1581, allocations: 147.8 kB / 0.5211 GB, free: 9.602 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007351/0.1655, allocations: 6.238 MB / 0.5272 GB, free: 3.062 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005579/0.1661, allocations: 31.98 kB / 0.5272 GB, free: 3.031 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.853e-05/0.1662, allocations: 32 kB / 0.5273 GB, free: 3 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.0005773/0.1668, allocations: 365.5 kB / 0.5276 GB, free: 2.633 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001786/0.167, allocations: 78.97 kB / 0.5277 GB, free: 2.555 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001608/0.1686, allocations: 0.8955 MB / 0.5286 GB, free: 1.633 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.263e-06/0.1686, allocations: 7.938 kB / 0.5286 GB, free: 1.625 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.336e-06/0.1686, allocations: 4 kB / 0.5286 GB, free: 1.621 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.183e-06/0.1686, allocations: 0 / 0.5286 GB, free: 1.621 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2324/0.4011, allocations: 2.012 MB / 0.5305 GB, free: 51.07 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.724e-06/0.4011, allocations: 1.156 kB / 0.5305 GB, free: 51.07 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005985/0.4017, allocations: 119.4 kB / 0.5306 GB, free: 51.07 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005379/0.4022, allocations: 187.3 kB / 0.5308 GB, free: 51.05 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.763e-05/0.4023, allocations: 24.12 kB / 0.5308 GB, free: 51.05 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003383/0.4057, allocations: 5.483 MB / 0.5362 GB, free: 46.76 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.535e-06/0.4057, allocations: 1.281 kB / 0.5362 GB, free: 46.76 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001735/0.4075, allocations: 1.262 MB / 0.5374 GB, free: 46.54 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002665/0.4077, allocations: 207.7 kB / 0.5376 GB, free: 46.43 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.344e-05/0.4078, allocations: 19.23 kB / 0.5377 GB, free: 46.43 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003273/0.4082, allocations: 27.45 kB / 0.5377 GB, free: 46.41 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001361/0.4083, allocations: 48.95 kB / 0.5377 GB, free: 46.4 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.944e-05/0.4084, allocations: 19.47 kB / 0.5377 GB, free: 46.4 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0006285/0.409, allocations: 0.4906 MB / 0.5382 GB, free: 46.18 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.409, allocations: 0 / 0.5382 GB, free: 46.18 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0009238/0.41, allocations: 249.4 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.0008614/0.4108, allocations: 413 kB / 0.5389 GB, free: 45.89 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001807/0.4126, allocations: 1.142 MB / 0.54 GB, free: 45.35 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.186e-06/0.4127, allocations: 0 / 0.54 GB, free: 45.35 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00081/0.4135, allocations: 0.7184 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.0008844/0.4144, allocations: 188.3 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.003585/0.418, allocations: 2.572 MB / 0.5434 GB, free: 43.4 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006383/0.4186, allocations: 1.145 MB / 0.5445 GB, free: 42.63 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001853/0.4188, allocations: 59.34 kB / 0.5445 GB, free: 42.62 MB / 414.1 MB Notification: Performance of SimCode: time 1.002e-06/0.4188, allocations: 0 / 0.5445 GB, free: 42.62 MB / 414.1 MB Notification: Performance of Templates: time 0.02432/0.4432, allocations: 22.6 MB / 0.5666 GB, free: 30.18 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)