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.001461/0.001461, allocations: 116.4 kB / 17.69 MB, free: 5.312 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.001599/0.0016, allocations: 191 kB / 18.63 MB, free: 4.379 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.401/1.401, allocations: 205.1 MB / 224.5 MB, free: 12.26 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.178/0.178, allocations: 37.98 MB / 309.8 MB, free: 5.98 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.001489/0.00149, allocations: 63.91 kB / 376.8 MB, free: 2.938 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2233/0.2248, allocations: 55.24 MB / 432 MB, free: 19.5 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Wind.WindTurbine_PSGR): time 0.009145/0.2339, allocations: 10.95 MB / 443 MB, free: 8.504 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.008742/0.2427, allocations: 7.12 MB / 450.1 MB, free: 1.363 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001083/0.2438, allocations: 47.69 kB / 450.1 MB, free: 1.316 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.02073/0.2646, allocations: 12.91 MB / 463 MB, free: 4.395 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003233/0.2678, allocations: 1.101 MB / 464.1 MB, free: 3.289 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001725/0.2696, allocations: 0.6472 MB / 464.8 MB, free: 2.641 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.005648/0.2752, allocations: 3.899 MB / 468.7 MB, free: 14.73 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001363/0.2766, allocations: 0.9924 MB / 469.7 MB, free: 13.72 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001773/0.2784, allocations: 1.086 MB / 470.8 MB, free: 12.63 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001845/0.2802, allocations: 1.398 MB / 472.2 MB, free: 11.23 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002363/0.2805, allocations: 148 kB / 472.3 MB, free: 11.08 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001007/0.2815, allocations: 0.511 MB / 472.8 MB, free: 10.57 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008111/0.2823, allocations: 0.8846 MB / 473.7 MB, free: 9.684 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009763/0.2833, allocations: 0.9562 MB / 474.7 MB, free: 8.723 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002677/0.286, allocations: 2.5 MB / 477.2 MB, free: 6.215 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.769e-06/0.286, allocations: 0 / 477.2 MB, free: 6.215 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.843e-06/0.286, allocations: 0 / 477.2 MB, free: 6.215 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.452e-05/0.2861, allocations: 0 / 477.2 MB, free: 6.215 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.004052/0.2901, allocations: 2.16 MB / 479.3 MB, free: 3.996 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.71e-05/0.2902, allocations: 11.89 kB / 479.3 MB, free: 3.984 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001617/0.2918, allocations: 322.4 kB / 479.6 MB, free: 3.668 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002623/0.2944, allocations: 1.292 MB / 480.9 MB, free: 2.328 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.349e-05/0.2945, allocations: 98.66 kB / 481 MB, free: 2.23 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005171/0.295, allocations: 231.7 kB / 481.3 MB, free: 2.004 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003004/0.2981, allocations: 2.153 MB / 483.4 MB, free: 15.74 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.113e-05/0.2981, allocations: 7.875 kB / 483.4 MB, free: 15.73 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001351/0.2983, allocations: 63.98 kB / 483.5 MB, free: 15.67 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005639/0.2988, allocations: 182.7 kB / 483.7 MB, free: 15.49 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002698/0.3015, allocations: 1.752 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.01142/0.313, allocations: 8.565 MB / 494 MB, free: 4.75 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002331/0.3153, allocations: 1.824 MB / 495.8 MB, free: 2.805 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001276/0.3166, allocations: 0.7825 MB / 496.6 MB, free: 2.02 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.386e-05/0.3167, allocations: 21.06 kB / 496.6 MB, free: 2 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.861e-05/0.3168, allocations: 43.56 kB / 496.6 MB, free: 1.949 MB / 366.1 MB Notification: Performance of pre-optimization done (n=122): time 3.156e-06/0.3168, allocations: 0 / 496.6 MB, free: 1.949 MB / 366.1 MB Notification: Performance of matching and sorting (n=137): time 0.01012/0.3269, allocations: 5.444 MB / 0.4903 GB, free: 12.34 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.65e-05/0.327, allocations: 98.42 kB / 0.4904 GB, free: 12.22 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001228/0.3282, allocations: 1.045 MB / 0.4914 GB, free: 11.16 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 8.67e-05/0.3283, allocations: 45.7 kB / 0.4915 GB, free: 11.11 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004959/0.3288, allocations: 0.7599 MB / 0.4922 GB, free: 10.34 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003533/0.3292, allocations: 0.4929 MB / 0.4927 GB, free: 9.84 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004367/0.3296, allocations: 319.4 kB / 0.493 GB, free: 9.52 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.000104/0.3298, allocations: 301.1 kB / 0.4933 GB, free: 9.223 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001077/0.3308, allocations: 0.7261 MB / 0.494 GB, free: 8.496 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001345/0.3322, allocations: 1.185 MB / 0.4952 GB, free: 7.117 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.01148/0.3437, allocations: 4.99 MB / 0.5 GB, free: 1.93 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.871e-05/0.3437, allocations: 4 kB / 0.5 GB, free: 1.926 MB / 382.1 MB Notification: Performance of matching and sorting (n=225) (initialization): time 0.007109/0.3508, allocations: 3.584 MB / 0.5035 GB, free: 14.26 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.897e-05/0.3509, allocations: 20.11 kB / 0.5036 GB, free: 14.24 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.737e-05/0.3509, allocations: 16 kB / 0.5036 GB, free: 14.22 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003769/0.3547, allocations: 1.261 MB / 0.5048 GB, free: 12.95 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001294/0.356, allocations: 319.5 kB / 0.5051 GB, free: 12.63 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1884/0.5444, allocations: 15.99 MB / 0.5207 GB, free: 82.15 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001273/0.5457, allocations: 76.98 kB / 0.5208 GB, free: 82.15 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000157/0.5459, allocations: 78.56 kB / 0.5209 GB, free: 82.15 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.0009272/0.5468, allocations: 0.5133 MB / 0.5214 GB, free: 82.04 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002131/0.547, allocations: 141.7 kB / 0.5215 GB, free: 82.04 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003312/0.5504, allocations: 2.139 MB / 0.5236 GB, free: 81.38 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.563e-05/0.5504, allocations: 16.72 kB / 0.5236 GB, free: 81.38 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.147e-06/0.5504, allocations: 2.719 kB / 0.5236 GB, free: 81.38 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.768e-05/0.5504, allocations: 11.47 kB / 0.5236 GB, free: 81.38 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006385/0.5568, allocations: 3.835 MB / 0.5274 GB, free: 79.64 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.603e-06/0.5568, allocations: 2.656 kB / 0.5274 GB, free: 79.64 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001544/0.5584, allocations: 329.3 kB / 0.5277 GB, free: 79.61 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004771/0.5589, allocations: 200.7 kB / 0.5279 GB, free: 79.54 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001028/0.559, allocations: 48.59 kB / 0.5279 GB, free: 79.52 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004415/0.5634, allocations: 7.936 MB / 0.5357 GB, free: 72.07 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.036e-06/0.5634, allocations: 2.375 kB / 0.5357 GB, free: 72.07 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003272/0.5667, allocations: 2.838 MB / 0.5385 GB, free: 70.69 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005946/0.5673, allocations: 322.5 kB / 0.5388 GB, free: 70.56 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000172/0.5675, allocations: 45.38 kB / 0.5388 GB, free: 70.54 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006894/0.5682, allocations: 58.78 kB / 0.5389 GB, free: 70.52 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001794/0.5684, allocations: 99.73 kB / 0.539 GB, free: 70.5 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.486e-05/0.5685, allocations: 41.53 kB / 0.539 GB, free: 70.49 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0007563/0.5692, allocations: 0.6942 MB / 0.5397 GB, free: 70.21 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.5692, allocations: 0 / 0.5397 GB, free: 70.21 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001428/0.5707, allocations: 0.5053 MB / 0.5402 GB, free: 70.16 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.0002896/0.571, allocations: 179.8 kB / 0.5403 GB, free: 70.05 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.003484/0.5745, allocations: 2.871 MB / 0.5431 GB, free: 68.74 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.176e-06/0.5745, allocations: 0 / 0.5431 GB, free: 68.74 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001449/0.5759, allocations: 1.374 MB / 0.5445 GB, free: 67.92 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00111/0.577, allocations: 322.5 kB / 0.5448 GB, free: 67.8 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005349/0.5824, allocations: 4.99 MB / 0.5497 GB, free: 63.32 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008039/0.5832, allocations: 1.541 MB / 0.5512 GB, free: 61.74 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.000898/0.5841, allocations: 448 kB / 0.5516 GB, free: 61.3 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000312/0.5845, allocations: 115.4 kB / 0.5517 GB, free: 61.19 MB / 398.1 MB Notification: Performance of SimCode: time 1.042e-06/0.5845, allocations: 0 / 0.5517 GB, free: 61.19 MB / 398.1 MB Notification: Performance of Templates: time 0.03296/0.6174, allocations: 26.95 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 gbode -lv LOG_STATS > PowerSystems_PowerSystems.Examples.Wind.WindTurbine_PSGR.pipe 2>&1)