Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.Wind.WindTurbine_PSGR.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_PSGR,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.Wind.WindTurbine_PSGR") translateModel(PowerSystems.Examples.Wind.WindTurbine_PSGR,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.Wind.WindTurbine_PSGR") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001278/0.001278, allocations: 111.8 kB / 17.68 MB, free: 5.355 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.001191/0.001192, allocations: 190.9 kB / 18.62 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.56/1.56, allocations: 205.1 MB / 224.5 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.1743/0.1743, allocations: 37.98 MB / 309.8 MB, free: 5.973 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.001423/0.001424, allocations: 67.91 kB / 376.8 MB, free: 2.922 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2756/0.277, allocations: 55.24 MB / 432 MB, free: 19.49 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Wind.WindTurbine_PSGR): time 0.01065/0.2877, allocations: 10.95 MB / 443 MB, free: 8.496 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01027/0.2981, allocations: 7.12 MB / 450.1 MB, free: 1.355 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001149/0.2993, allocations: 47.75 kB / 450.1 MB, free: 1.309 MB / 318.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'. Notification: Performance of NFTyping.typeComponents: time 0.02044/0.3197, allocations: 12.9 MB / 463 MB, free: 4.387 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003373/0.3231, allocations: 1.101 MB / 464.1 MB, free: 3.281 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001919/0.325, allocations: 0.655 MB / 464.8 MB, free: 2.625 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.00635/0.3314, allocations: 3.899 MB / 468.7 MB, free: 14.71 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00154/0.333, allocations: 0.9924 MB / 469.7 MB, free: 13.7 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001815/0.3348, allocations: 1.082 MB / 470.8 MB, free: 12.62 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001994/0.3368, allocations: 1.394 MB / 472.2 MB, free: 11.22 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000269/0.3371, allocations: 148 kB / 472.3 MB, free: 11.07 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001056/0.3381, allocations: 0.511 MB / 472.8 MB, free: 10.56 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007908/0.3389, allocations: 0.8884 MB / 473.7 MB, free: 9.672 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001015/0.34, allocations: 0.9562 MB / 474.7 MB, free: 8.711 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00282/0.3428, allocations: 2.492 MB / 477.1 MB, free: 6.211 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.793e-06/0.3428, allocations: 0 / 477.1 MB, free: 6.211 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.675e-06/0.3428, allocations: 0 / 477.1 MB, free: 6.211 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.879e-05/0.3429, allocations: 0 / 477.1 MB, free: 6.211 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 397 * Number of variables: 397 Notification: Performance of Generate backend data structure: time 0.004439/0.3473, allocations: 2.163 MB / 479.3 MB, free: 3.988 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.357e-05/0.3474, allocations: 19.83 kB / 479.3 MB, free: 3.969 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00162/0.349, allocations: 322.4 kB / 479.6 MB, free: 3.652 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002758/0.3518, allocations: 1.28 MB / 480.9 MB, free: 2.324 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.139e-05/0.3519, allocations: 106.6 kB / 481 MB, free: 2.219 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005269/0.3524, allocations: 231.7 kB / 481.3 MB, free: 1.992 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003096/0.3555, allocations: 2.149 MB / 483.4 MB, free: 15.73 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.598e-05/0.3556, allocations: 7.938 kB / 483.4 MB, free: 15.73 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001325/0.3557, allocations: 55.98 kB / 483.5 MB, free: 15.67 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006193/0.3563, allocations: 182.7 kB / 483.6 MB, free: 15.49 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002681/0.359, allocations: 1.756 MB / 485.4 MB, free: 13.73 MB / 366.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.01123/0.3703, allocations: 8.573 MB / 494 MB, free: 4.738 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002352/0.3726, allocations: 1.82 MB / 495.8 MB, free: 2.797 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001294/0.3739, allocations: 0.7786 MB / 496.6 MB, free: 2.016 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.404e-05/0.3741, allocations: 25.05 kB / 496.6 MB, free: 1.992 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.7e-05/0.3741, allocations: 47.56 kB / 496.6 MB, free: 1.938 MB / 366.1 MB Notification: Performance of pre-optimization done (n=122): time 4.538e-06/0.3741, allocations: 4 kB / 496.6 MB, free: 1.934 MB / 366.1 MB Notification: Performance of matching and sorting (n=137): time 0.01071/0.3848, allocations: 5.436 MB / 0.4903 GB, free: 12.33 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.202e-05/0.3849, allocations: 98.42 kB / 0.4904 GB, free: 12.22 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001414/0.3864, allocations: 1.045 MB / 0.4914 GB, free: 11.16 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001016/0.3865, allocations: 45.7 kB / 0.4915 GB, free: 11.11 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006192/0.3871, allocations: 0.7717 MB / 0.4922 GB, free: 10.32 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005495/0.3877, allocations: 0.489 MB / 0.4927 GB, free: 9.828 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004837/0.3882, allocations: 323.2 kB / 0.493 GB, free: 9.504 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001074/0.3883, allocations: 301.1 kB / 0.4933 GB, free: 9.207 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00123/0.3895, allocations: 0.7222 MB / 0.494 GB, free: 8.484 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00158/0.3911, allocations: 1.189 MB / 0.4952 GB, free: 7.102 MB / 382.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.01198/0.4031, allocations: 4.975 MB / 0.5 GB, free: 1.93 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.499e-05/0.4032, allocations: 4 kB / 0.5 GB, free: 1.926 MB / 382.1 MB Notification: Performance of matching and sorting (n=225) (initialization): time 0.007938/0.4111, allocations: 3.604 MB / 0.5035 GB, free: 14.24 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.995e-05/0.4112, allocations: 12 kB / 0.5036 GB, free: 14.23 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.475e-05/0.4112, allocations: 12 kB / 0.5036 GB, free: 14.21 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003809/0.415, allocations: 1.261 MB / 0.5048 GB, free: 12.94 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001308/0.4163, allocations: 319.5 kB / 0.5051 GB, free: 12.62 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2024/0.6188, allocations: 15.98 MB / 0.5207 GB, free: 82.09 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001464/0.6203, allocations: 72.61 kB / 0.5208 GB, free: 82.09 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001653/0.6204, allocations: 73.73 kB / 0.5209 GB, free: 82.09 MB / 398.1 MB Warning: The initial conditions are over specified. The following 4 initial equations are redundant, so they are removed from the initialization system: inverter2.switch_dq0[1] = 1.224744871391589 * cos(select2.alpha0) * select2.v0 5.051577893736758e-5 * $DER.generator.i_s[3] = 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: 63 * 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 (155): * Single equations (assignments): 150 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 5 * 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,1,100.0%), (1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(5,23), (21,20)} Notification: Performance of prepare postOptimizeDAE: time 0.001154/0.6216, allocations: 0.52 MB / 0.5214 GB, free: 81.98 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002942/0.6219, allocations: 143.4 kB / 0.5215 GB, free: 81.98 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003578/0.6255, allocations: 2.139 MB / 0.5236 GB, free: 81.31 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.471e-05/0.6255, allocations: 13.81 kB / 0.5236 GB, free: 81.31 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.995e-06/0.6255, allocations: 6.688 kB / 0.5236 GB, free: 81.31 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.813e-05/0.6256, allocations: 6.656 kB / 0.5236 GB, free: 81.31 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006586/0.6322, allocations: 3.836 MB / 0.5274 GB, free: 79.57 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.989e-06/0.6322, allocations: 2.312 kB / 0.5274 GB, free: 79.57 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001775/0.634, allocations: 324.4 kB / 0.5277 GB, free: 79.55 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005756/0.6346, allocations: 206.7 kB / 0.5279 GB, free: 79.48 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001386/0.6347, allocations: 48.11 kB / 0.5279 GB, free: 79.46 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005878/0.6406, allocations: 7.936 MB / 0.5357 GB, free: 72.01 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.819e-06/0.6406, allocations: 6.906 kB / 0.5357 GB, free: 72 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004564/0.6452, allocations: 2.826 MB / 0.5384 GB, free: 70.63 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007528/0.646, allocations: 327.8 kB / 0.5387 GB, free: 70.5 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001932/0.6462, allocations: 51.53 kB / 0.5388 GB, free: 70.48 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000733/0.6469, allocations: 62.22 kB / 0.5389 GB, free: 70.46 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002984/0.6472, allocations: 93.86 kB / 0.5389 GB, free: 70.44 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001058/0.6473, allocations: 43.41 kB / 0.539 GB, free: 70.43 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.00103/0.6484, allocations: 0.6943 MB / 0.5397 GB, free: 70.16 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.6484, allocations: 0 / 0.5397 GB, free: 70.16 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.002159/0.6506, allocations: 0.5032 MB / 0.5402 GB, free: 70.11 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 25 (inertia.phi,inertia.w,generator.i_s[1],generator.i_s[2],generator.i_s[3],generator.i_rd[1],generator.i_rq[1],meterDC.pav,inverter2.vDC1,line.v[1,2],line.v[1,3],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]) * 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 (126): * Single equations (assignments): 120 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 5 systems {(1,1,100.0%), (1,1,100.0%), (1,8,100.0%), (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.0004438/0.651, allocations: 181.6 kB / 0.5403 GB, free: 69.98 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.00445/0.6555, allocations: 2.866 MB / 0.5431 GB, free: 68.68 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 5.741e-06/0.6555, allocations: 3.906 kB / 0.5431 GB, free: 68.68 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001773/0.6573, allocations: 1.368 MB / 0.5445 GB, free: 67.86 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001518/0.6588, allocations: 329.2 kB / 0.5448 GB, free: 67.73 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006214/0.665, allocations: 4.986 MB / 0.5496 GB, free: 63.34 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009324/0.666, allocations: 1.553 MB / 0.5512 GB, free: 61.75 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0009664/0.667, allocations: 444.1 kB / 0.5516 GB, free: 61.31 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003123/0.6673, allocations: 103.4 kB / 0.5517 GB, free: 61.21 MB / 398.1 MB Notification: Performance of SimCode: time 7.31e-07/0.6673, allocations: 0 / 0.5517 GB, free: 61.21 MB / 398.1 MB Notification: Performance of Templates: time 0.03473/0.702, allocations: 26.96 MB / 0.578 GB, free: 34.32 MB / 398.1 MB make -j1 -f PowerSystems_PowerSystems.Examples.Wind.WindTurbine_PSGR.makefile (rm -f PowerSystems_PowerSystems.Examples.Wind.WindTurbine_PSGR.pipe ; mkfifo PowerSystems_PowerSystems.Examples.Wind.WindTurbine_PSGR.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.Wind.WindTurbine_PSGR.pipe >> ../files/PowerSystems_PowerSystems.Examples.Wind.WindTurbine_PSGR.sim & ./PowerSystems_PowerSystems.Examples.Wind.WindTurbine_PSGR -abortSlowSimulation -alarm=480 -s cvode -lv LOG_STATS > PowerSystems_PowerSystems.Examples.Wind.WindTurbine_PSGR.pipe 2>&1)