Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.Wind.WindTurbine_PSGI.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_PSGI,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.Wind.WindTurbine_PSGI") translateModel(PowerSystems.Examples.Wind.WindTurbine_PSGI,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.Wind.WindTurbine_PSGI") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00113/0.00113, allocations: 111.2 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.001214/0.001214, allocations: 192 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.371/1.371, 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.1785/0.1785, allocations: 37.98 MB / 309.8 MB, free: 5.977 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.001416/0.001416, allocations: 68.33 kB / 376.8 MB, free: 2.926 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2459/0.2473, allocations: 55.24 MB / 432 MB, free: 19.5 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Wind.WindTurbine_PSGI): time 0.01061/0.258, allocations: 11.03 MB / 443 MB, free: 8.434 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.009783/0.2678, allocations: 7.105 MB / 450.1 MB, free: 1.309 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001398/0.2692, allocations: 51.69 kB / 450.2 MB, free: 1.258 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.02063/0.2899, allocations: 12.86 MB / 463.1 MB, free: 4.379 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002801/0.2927, allocations: 1.124 MB / 464.2 MB, free: 3.25 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001739/0.2944, allocations: 0.6901 MB / 464.9 MB, free: 2.559 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.005048/0.2995, allocations: 4.008 MB / 468.9 MB, free: 14.54 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001445/0.301, allocations: 0.9925 MB / 469.9 MB, free: 13.52 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001801/0.3028, allocations: 1.121 MB / 471 MB, free: 12.4 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002242/0.305, allocations: 1.437 MB / 472.4 MB, free: 10.96 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004949/0.3055, allocations: 152 kB / 472.6 MB, free: 10.81 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001349/0.3069, allocations: 0.5188 MB / 473.1 MB, free: 10.29 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008651/0.3078, allocations: 0.904 MB / 474 MB, free: 9.383 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000984/0.3088, allocations: 0.9795 MB / 475 MB, free: 8.398 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002442/0.3112, allocations: 2.558 MB / 477.5 MB, free: 5.832 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.222e-06/0.3112, allocations: 7.984 kB / 477.5 MB, free: 5.824 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.435e-06/0.3112, allocations: 4 kB / 477.5 MB, free: 5.82 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.527e-05/0.3113, allocations: 3.938 kB / 477.5 MB, free: 5.816 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: 409 * Number of variables: 409 Notification: Performance of Generate backend data structure: time 0.004045/0.3153, allocations: 2.226 MB / 479.8 MB, free: 3.531 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.149e-05/0.3154, allocations: 15.89 kB / 479.8 MB, free: 3.516 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00169/0.3171, allocations: 322.3 kB / 480.1 MB, free: 3.199 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002672/0.3198, allocations: 1.334 MB / 481.4 MB, free: 1.816 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.595e-05/0.3199, allocations: 106.7 kB / 481.5 MB, free: 1.711 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005154/0.3204, allocations: 239.7 kB / 481.8 MB, free: 1.477 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003197/0.3236, allocations: 2.188 MB / 484 MB, free: 15.18 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.365e-05/0.3237, allocations: 11.92 kB / 484 MB, free: 15.17 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001373/0.3238, allocations: 63.97 kB / 484 MB, free: 15.11 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005929/0.3244, allocations: 186.8 kB / 484.2 MB, free: 14.93 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002837/0.3272, allocations: 1.83 MB / 486.1 MB, free: 13.09 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.01625/0.3435, allocations: 8.524 MB / 494.6 MB, free: 4.156 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003357/0.3469, allocations: 1.91 MB / 496.5 MB, free: 2.117 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001846/0.3488, allocations: 0.802 MB / 497.3 MB, free: 1.312 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001145/0.3489, allocations: 25.38 kB / 497.3 MB, free: 1.289 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.345e-05/0.3489, allocations: 43.88 kB / 497.4 MB, free: 1.234 MB / 366.1 MB Notification: Performance of pre-optimization done (n=130): time 5.119e-06/0.349, allocations: 0 / 497.4 MB, free: 1.234 MB / 366.1 MB Notification: Performance of matching and sorting (n=145): time 0.01589/0.3649, allocations: 5.948 MB / 0.4915 GB, free: 11.11 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.046e-05/0.365, allocations: 94.42 kB / 0.4916 GB, free: 11 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002048/0.367, allocations: 1.071 MB / 0.4926 GB, free: 9.914 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001172/0.3672, allocations: 49.7 kB / 0.4927 GB, free: 9.859 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008478/0.368, allocations: 0.7873 MB / 0.4935 GB, free: 9.059 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005761/0.3686, allocations: 0.5238 MB / 0.494 GB, free: 8.527 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006404/0.3693, allocations: 323.3 kB / 0.4943 GB, free: 8.203 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001266/0.3694, allocations: 305.1 kB / 0.4946 GB, free: 7.902 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001648/0.3711, allocations: 0.7418 MB / 0.4953 GB, free: 7.16 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002323/0.3734, allocations: 1.234 MB / 0.4965 GB, free: 5.719 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.01469/0.3881, allocations: 4.323 MB / 0.5007 GB, free: 1.215 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.007e-05/0.3882, allocations: 4 kB / 0.5007 GB, free: 1.211 MB / 382.1 MB Notification: Performance of matching and sorting (n=237) (initialization): time 0.01117/0.3993, allocations: 3.977 MB / 0.5046 GB, free: 13.13 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.44e-05/0.3994, allocations: 12 kB / 0.5046 GB, free: 13.12 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.733e-05/0.3995, allocations: 16 kB / 0.5046 GB, free: 13.11 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005726/0.4052, allocations: 1.438 MB / 0.506 GB, free: 11.64 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001608/0.4068, allocations: 291.5 kB / 0.5063 GB, free: 11.36 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2428/0.6496, allocations: 20.95 MB / 0.5268 GB, free: 79.07 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00137/0.6511, allocations: 75.69 kB / 0.5269 GB, free: 79.05 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001517/0.6512, allocations: 80.42 kB / 0.5269 GB, free: 79.03 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 $DER.PI.x = 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: 66 * 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 (144): * Single equations (assignments): 137 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 7 * 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,2,100.0%), (1,1,100.0%), (1,23,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(4,22), (21,20)} Notification: Performance of prepare postOptimizeDAE: time 0.0008774/0.6521, allocations: 0.5261 MB / 0.5274 GB, free: 78.76 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002065/0.6523, allocations: 145.4 kB / 0.5276 GB, free: 78.76 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002994/0.6553, allocations: 2.219 MB / 0.5297 GB, free: 77.64 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.067e-06/0.6553, allocations: 15.81 kB / 0.5298 GB, free: 77.64 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.074e-06/0.6553, allocations: 0.7031 kB / 0.5298 GB, free: 77.64 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.944e-05/0.6554, allocations: 14.36 kB / 0.5298 GB, free: 77.64 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006892/0.6623, allocations: 3.98 MB / 0.5337 GB, free: 75.83 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.013e-06/0.6623, allocations: 3.938 kB / 0.5337 GB, free: 75.83 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001675/0.664, allocations: 337 kB / 0.534 GB, free: 75.8 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005411/0.6645, allocations: 221.2 kB / 0.5342 GB, free: 75.73 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001164/0.6647, allocations: 47.33 kB / 0.5342 GB, free: 75.71 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004252/0.6689, allocations: 7.92 MB / 0.542 GB, free: 68.25 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.336e-06/0.6689, allocations: 3.844 kB / 0.542 GB, free: 68.25 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003268/0.6722, allocations: 2.928 MB / 0.5448 GB, free: 66.85 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005868/0.6728, allocations: 341.1 kB / 0.5452 GB, free: 66.71 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000184/0.673, allocations: 54.14 kB / 0.5452 GB, free: 66.69 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007267/0.6737, allocations: 54.19 kB / 0.5453 GB, free: 66.67 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002024/0.6739, allocations: 107.7 kB / 0.5454 GB, free: 66.65 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.787e-05/0.674, allocations: 42.3 kB / 0.5454 GB, free: 66.64 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0007495/0.6748, allocations: 0.7123 MB / 0.5461 GB, free: 66.36 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.6748, allocations: 0 / 0.5461 GB, free: 66.36 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001646/0.6764, allocations: 0.5446 MB / 0.5466 GB, free: 66.3 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 26 (inertia.phi,inertia.w,meterDC.pav,generator.i_s[1],generator.i_s[2],generator.i_s[3],generator.i_rd[1],generator.i_rq[1],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],PI.x) * 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 (137): * Single equations (assignments): 131 * 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.0003062/0.6768, allocations: 177.4 kB / 0.5468 GB, free: 66.19 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.004048/0.6808, allocations: 3.283 MB / 0.55 GB, free: 63.41 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.546e-06/0.6808, allocations: 3 kB / 0.55 GB, free: 63.41 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001581/0.6824, allocations: 1.408 MB / 0.5514 GB, free: 61.94 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001277/0.6837, allocations: 333.1 kB / 0.5517 GB, free: 61.63 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005984/0.6897, allocations: 5.143 MB / 0.5567 GB, free: 56.55 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009371/0.6907, allocations: 1.576 MB / 0.5583 GB, free: 54.94 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0009295/0.6916, allocations: 436.7 kB / 0.5587 GB, free: 54.51 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003245/0.6919, allocations: 115.4 kB / 0.5588 GB, free: 54.39 MB / 398.1 MB Notification: Performance of SimCode: time 5.62e-07/0.6919, allocations: 4 kB / 0.5588 GB, free: 54.39 MB / 398.1 MB Notification: Performance of Templates: time 0.03492/0.7269, allocations: 28.36 MB / 0.5865 GB, free: 26.08 MB / 398.1 MB make -j1 -f PowerSystems_PowerSystems.Examples.Wind.WindTurbine_PSGI.makefile (rm -f PowerSystems_PowerSystems.Examples.Wind.WindTurbine_PSGI.pipe ; mkfifo PowerSystems_PowerSystems.Examples.Wind.WindTurbine_PSGI.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.Wind.WindTurbine_PSGI.pipe >> ../files/PowerSystems_PowerSystems.Examples.Wind.WindTurbine_PSGI.sim & ./PowerSystems_PowerSystems.Examples.Wind.WindTurbine_PSGI -abortSlowSimulation -alarm=480 -s gbode -lv LOG_STATS > PowerSystems_PowerSystems.Examples.Wind.WindTurbine_PSGI.pipe 2>&1)