Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.Wind.WindTurbine_IG.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_IG,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.Wind.WindTurbine_IG") translateModel(PowerSystems.Examples.Wind.WindTurbine_IG,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.Wind.WindTurbine_IG") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001519/0.001519, allocations: 105.6 kB / 17.06 MB, free: 6.023 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.001818/0.001818, allocations: 195 kB / 18 MB, free: 5.105 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.517/1.517, allocations: 205.1 MB / 223.9 MB, free: 12.29 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1703/0.1703, allocations: 37.99 MB / 309.2 MB, free: 5.969 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.001341/0.001341, allocations: 63.91 kB / 431.9 MB, free: 15.65 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1092/0.1105, allocations: 55.24 MB / 487.1 MB, free: 8.352 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Wind.WindTurbine_IG): time 0.009067/0.1196, allocations: 8.086 MB / 495.2 MB, free: 228 kB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.008688/0.1284, allocations: 5.534 MB / 0.489 GB, free: 10.67 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007234/0.1291, allocations: 27.81 kB / 0.489 GB, free: 10.64 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.009687/0.1388, allocations: 5.209 MB / 0.4941 GB, free: 5.422 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002/0.1408, allocations: 0.8441 MB / 0.4949 GB, free: 4.574 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001221/0.1421, allocations: 499 kB / 0.4954 GB, free: 4.086 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0031/0.1452, allocations: 2.526 MB / 0.4979 GB, free: 1.555 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009398/0.1461, allocations: 0.6299 MB / 0.4985 GB, free: 0.9141 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001152/0.1473, allocations: 0.7784 MB / 0.4992 GB, free: 136 kB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001542/0.1488, allocations: 1.024 MB / 0.5002 GB, free: 15.11 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003118/0.1492, allocations: 108 kB / 0.5003 GB, free: 15 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008351/0.15, allocations: 367.5 kB / 0.5007 GB, free: 14.64 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007077/0.1507, allocations: 0.6586 MB / 0.5013 GB, free: 13.98 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001107/0.1519, allocations: 0.6958 MB / 0.502 GB, free: 13.28 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002087/0.1539, allocations: 1.713 MB / 0.5037 GB, free: 11.56 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.312e-06/0.154, allocations: 4 kB / 0.5037 GB, free: 11.56 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.312e-06/0.154, allocations: 4 kB / 0.5037 GB, free: 11.55 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.44e-05/0.154, allocations: 0 / 0.5037 GB, free: 11.55 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: 281 * Number of variables: 281 Notification: Performance of Generate backend data structure: time 0.003427/0.1575, allocations: 1.6 MB / 0.5053 GB, free: 9.902 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.655e-05/0.1575, allocations: 11.89 kB / 0.5053 GB, free: 9.891 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001258/0.1588, allocations: 215.1 kB / 0.5055 GB, free: 9.68 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002197/0.161, allocations: 0.9529 MB / 0.5064 GB, free: 8.684 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.508e-05/0.1611, allocations: 69.98 kB / 0.5065 GB, free: 8.613 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004606/0.1615, allocations: 183.8 kB / 0.5066 GB, free: 8.434 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00235/0.1639, allocations: 1.564 MB / 0.5082 GB, free: 6.789 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.736e-05/0.164, allocations: 15.84 kB / 0.5082 GB, free: 6.773 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001031/0.1641, allocations: 43.97 kB / 0.5082 GB, free: 6.73 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000594/0.1647, allocations: 149.9 kB / 0.5084 GB, free: 6.582 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002242/0.1669, allocations: 1.249 MB / 0.5096 GB, free: 5.324 MB / 398.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.008651/0.1756, allocations: 6.458 MB / 0.5159 GB, free: 14.49 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001521/0.1771, allocations: 0.905 MB / 0.5168 GB, free: 13.56 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007682/0.1779, allocations: 0.5083 MB / 0.5173 GB, free: 13.05 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.709e-05/0.178, allocations: 16.94 kB / 0.5173 GB, free: 13.04 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.547e-05/0.178, allocations: 43.56 kB / 0.5173 GB, free: 12.98 MB / 414.1 MB Notification: Performance of pre-optimization done (n=91): time 2.605e-06/0.178, allocations: 0 / 0.5173 GB, free: 12.98 MB / 414.1 MB Notification: Performance of matching and sorting (n=96): time 0.006726/0.1848, allocations: 3.671 MB / 0.5209 GB, free: 9.172 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.005e-05/0.1849, allocations: 93.98 kB / 0.521 GB, free: 9.062 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008173/0.1857, allocations: 0.7235 MB / 0.5217 GB, free: 8.332 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 7.465e-05/0.1858, allocations: 41.7 kB / 0.5218 GB, free: 8.285 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003778/0.1861, allocations: 0.5612 MB / 0.5223 GB, free: 7.715 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003098/0.1865, allocations: 362.8 kB / 0.5226 GB, free: 7.355 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000352/0.1868, allocations: 238.8 kB / 0.5229 GB, free: 7.117 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001921/0.187, allocations: 410.7 kB / 0.5233 GB, free: 6.707 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009502/0.188, allocations: 0.5609 MB / 0.5238 GB, free: 6.145 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001165/0.1892, allocations: 0.8931 MB / 0.5247 GB, free: 5.121 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.008505/0.1977, allocations: 3.224 MB / 0.5278 GB, free: 1.77 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.109e-05/0.1977, allocations: 4 kB / 0.5278 GB, free: 1.766 MB / 414.1 MB Notification: Performance of matching and sorting (n=164) (initialization): time 0.2171/0.4148, allocations: 2.735 MB / 0.5305 GB, free: 50.99 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.835e-05/0.4149, allocations: 9.312 kB / 0.5305 GB, free: 50.99 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.306e-05/0.4149, allocations: 10.97 kB / 0.5305 GB, free: 50.99 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002915/0.4179, allocations: 1.161 MB / 0.5317 GB, free: 50.96 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008704/0.4187, allocations: 197.5 kB / 0.5319 GB, free: 50.95 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01753/0.4363, allocations: 12.28 MB / 0.5438 GB, free: 45.66 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009946/0.4373, allocations: 59.77 kB / 0.5439 GB, free: 45.65 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001098/0.4374, allocations: 55.44 kB / 0.544 GB, free: 45.64 MB / 414.1 MB Warning: The initial conditions are over specified. The following 3 initial equations are redundant, so they are removed from the initialization system: $DER.inertia.w = 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: 43 * 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 (96): * Single equations (assignments): 94 * 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,17,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(24,28)} Notification: Performance of prepare postOptimizeDAE: time 0.0007266/0.4382, allocations: 399.3 kB / 0.5443 GB, free: 45.41 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001819/0.4384, allocations: 97.34 kB / 0.5444 GB, free: 45.41 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002552/0.4409, allocations: 1.406 MB / 0.5458 GB, free: 44.73 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.471e-05/0.4409, allocations: 10.19 kB / 0.5458 GB, free: 44.73 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.642e-06/0.441, allocations: 1.828 kB / 0.5458 GB, free: 44.73 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.747e-05/0.441, allocations: 13.41 kB / 0.5458 GB, free: 44.72 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004813/0.4458, allocations: 2.665 MB / 0.5484 GB, free: 43.52 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.573e-06/0.4458, allocations: 2.625 kB / 0.5484 GB, free: 43.52 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001513/0.4473, allocations: 274.1 kB / 0.5487 GB, free: 43.5 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001743/0.4475, allocations: 54.44 kB / 0.5487 GB, free: 43.48 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.059e-05/0.4476, allocations: 45.33 kB / 0.5488 GB, free: 43.46 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001496/0.4491, allocations: 2.835 MB / 0.5516 GB, free: 40.66 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.047e-06/0.4492, allocations: 7.469 kB / 0.5516 GB, free: 40.66 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002453/0.4516, allocations: 1.888 MB / 0.5534 GB, free: 39.74 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006328/0.4523, allocations: 254.1 kB / 0.5536 GB, free: 39.57 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001361/0.4524, allocations: 40.67 kB / 0.5537 GB, free: 39.55 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005554/0.453, allocations: 43.59 kB / 0.5537 GB, free: 39.54 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001971/0.4532, allocations: 67.16 kB / 0.5538 GB, free: 39.53 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.26e-05/0.4533, allocations: 24.69 kB / 0.5538 GB, free: 39.52 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0008059/0.4541, allocations: 498.9 kB / 0.5543 GB, free: 39.32 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.4541, allocations: 0 / 0.5543 GB, free: 39.32 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001966/0.4561, allocations: 381.1 kB / 0.5547 GB, free: 39.29 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 25 (generator.i[3],generator.psi_s[1],generator.psi_s[2],generator.psi_rd[1],generator.psi_rq[1],line.v[1,1],line.v[1,2],line.v[1,3],line.v[2,1],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],inertia.phi,inertia.w) * 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 (95): * Single equations (assignments): 92 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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): 2 systems {(1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0002132/0.4563, allocations: 155.9 kB / 0.5548 GB, free: 39.16 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.003488/0.4598, allocations: 2.123 MB / 0.5569 GB, free: 38.23 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.919e-06/0.4598, allocations: 1.312 kB / 0.5569 GB, free: 38.23 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009732/0.4608, allocations: 0.7547 MB / 0.5576 GB, free: 37.77 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009234/0.4617, allocations: 219.7 kB / 0.5578 GB, free: 37.64 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005056/0.4668, allocations: 4.038 MB / 0.5618 GB, free: 34.88 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006914/0.4675, allocations: 1.302 MB / 0.563 GB, free: 33.54 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0007052/0.4682, allocations: 316 kB / 0.5633 GB, free: 33.23 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002423/0.4685, allocations: 75.42 kB / 0.5634 GB, free: 33.16 MB / 414.1 MB Notification: Performance of SimCode: time 1.312e-06/0.4685, allocations: 4 kB / 0.5634 GB, free: 33.15 MB / 414.1 MB Notification: Performance of Templates: time 0.02443/0.4929, allocations: 19.91 MB / 0.5829 GB, free: 13.25 MB / 414.1 MB make -j1 -f PowerSystems_PowerSystems.Examples.Wind.WindTurbine_IG.makefile (rm -f PowerSystems_PowerSystems.Examples.Wind.WindTurbine_IG.pipe ; mkfifo PowerSystems_PowerSystems.Examples.Wind.WindTurbine_IG.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.Wind.WindTurbine_IG.pipe >> ../files/PowerSystems_PowerSystems.Examples.Wind.WindTurbine_IG.sim & ./PowerSystems_PowerSystems.Examples.Wind.WindTurbine_IG -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.Wind.WindTurbine_IG.pipe 2>&1)