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.001194/0.001194, allocations: 117 kB / 17.7 MB, free: 5.285 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.001333/0.001333, allocations: 191 kB / 18.63 MB, free: 4.355 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.539/1.539, 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.173/0.173, allocations: 37.98 MB / 309.8 MB, free: 5.984 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.002375/0.002375, allocations: 67.91 kB / 376.8 MB, free: 2.93 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2862/0.2886, allocations: 55.24 MB / 432 MB, free: 19.66 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Wind.WindTurbine_PSGI): time 0.009393/0.298, allocations: 11.02 MB / 443 MB, free: 8.594 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.008918/0.307, allocations: 7.117 MB / 450.2 MB, free: 1.457 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001381/0.3084, allocations: 47.75 kB / 450.2 MB, free: 1.41 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.3288, allocations: 12.87 MB / 463.1 MB, free: 4.527 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003156/0.332, allocations: 1.124 MB / 464.2 MB, free: 3.398 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001786/0.3338, allocations: 0.6862 MB / 464.9 MB, free: 2.711 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.005452/0.3393, allocations: 4.001 MB / 468.9 MB, free: 14.7 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001342/0.3406, allocations: 0.9964 MB / 469.9 MB, free: 13.68 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001672/0.3423, allocations: 1.125 MB / 471 MB, free: 12.55 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001693/0.344, allocations: 1.437 MB / 472.4 MB, free: 11.11 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002176/0.3443, allocations: 152 kB / 472.6 MB, free: 10.96 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009957/0.3453, allocations: 0.5149 MB / 473.1 MB, free: 10.45 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007961/0.3461, allocations: 0.9079 MB / 474 MB, free: 9.535 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009283/0.347, allocations: 0.9873 MB / 475 MB, free: 8.543 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002382/0.3494, allocations: 2.551 MB / 477.5 MB, free: 5.984 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.859e-06/0.3494, allocations: 0 / 477.5 MB, free: 5.984 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.095e-06/0.3494, allocations: 4 kB / 477.5 MB, free: 5.98 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.96e-05/0.3495, allocations: 7.938 kB / 477.6 MB, free: 5.973 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.004172/0.3536, allocations: 2.218 MB / 479.8 MB, free: 3.695 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.913e-05/0.3537, allocations: 11.89 kB / 479.8 MB, free: 3.684 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001659/0.3554, allocations: 338.3 kB / 480.1 MB, free: 3.352 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002672/0.358, allocations: 1.338 MB / 481.5 MB, free: 1.965 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.526e-05/0.3581, allocations: 102.7 kB / 481.6 MB, free: 1.863 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005369/0.3587, allocations: 235.7 kB / 481.8 MB, free: 1.633 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003045/0.3617, allocations: 2.2 MB / 484 MB, free: 15.33 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.995e-05/0.3618, allocations: 4 kB / 484 MB, free: 15.32 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000141/0.3619, allocations: 63.98 kB / 484 MB, free: 15.26 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005617/0.3625, allocations: 182.8 kB / 484.2 MB, free: 15.08 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002733/0.3652, allocations: 1.83 MB / 486.1 MB, free: 13.25 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.01095/0.3762, allocations: 8.528 MB / 494.6 MB, free: 4.309 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002494/0.3787, allocations: 1.906 MB / 496.5 MB, free: 2.273 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001329/0.3801, allocations: 0.8099 MB / 497.3 MB, free: 1.461 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.333e-05/0.3802, allocations: 17.31 kB / 497.3 MB, free: 1.445 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.497e-05/0.3802, allocations: 51.88 kB / 497.4 MB, free: 1.383 MB / 366.1 MB Notification: Performance of pre-optimization done (n=130): time 3.687e-06/0.3802, allocations: 0 / 497.4 MB, free: 1.383 MB / 366.1 MB Notification: Performance of matching and sorting (n=145): time 0.01185/0.3921, allocations: 5.951 MB / 0.4915 GB, free: 11.25 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.435e-05/0.3922, allocations: 98.41 kB / 0.4916 GB, free: 11.14 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001503/0.3937, allocations: 1.071 MB / 0.4927 GB, free: 10.05 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001301/0.3939, allocations: 49.7 kB / 0.4927 GB, free: 10 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006786/0.3946, allocations: 0.7834 MB / 0.4935 GB, free: 9.203 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004843/0.395, allocations: 0.5199 MB / 0.494 GB, free: 8.676 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004823/0.3955, allocations: 331.3 kB / 0.4943 GB, free: 8.344 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001158/0.3957, allocations: 301.1 kB / 0.4946 GB, free: 8.047 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001186/0.3969, allocations: 0.7418 MB / 0.4953 GB, free: 7.305 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001455/0.3983, allocations: 1.238 MB / 0.4965 GB, free: 5.859 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.01014/0.4085, allocations: 4.319 MB / 0.5007 GB, free: 1.359 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.942e-05/0.4085, allocations: 4 kB / 0.5007 GB, free: 1.355 MB / 382.1 MB Notification: Performance of matching and sorting (n=237) (initialization): time 0.007837/0.4163, allocations: 3.961 MB / 0.5046 GB, free: 13.29 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.809e-05/0.4164, allocations: 15.98 kB / 0.5046 GB, free: 13.28 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.351e-05/0.4165, allocations: 16 kB / 0.5046 GB, free: 13.26 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004065/0.4205, allocations: 1.446 MB / 0.5061 GB, free: 11.79 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001299/0.4219, allocations: 295.5 kB / 0.5063 GB, free: 11.5 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2373/0.6591, allocations: 20.94 MB / 0.5268 GB, free: 78.96 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001513/0.6607, allocations: 80.75 kB / 0.5269 GB, free: 78.93 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001767/0.6609, allocations: 77.91 kB / 0.5269 GB, free: 78.92 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.0009729/0.6619, allocations: 0.5231 MB / 0.5275 GB, free: 78.65 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002895/0.6622, allocations: 151.3 kB / 0.5276 GB, free: 78.65 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003948/0.6661, allocations: 2.214 MB / 0.5298 GB, free: 77.53 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.343e-05/0.6661, allocations: 15.81 kB / 0.5298 GB, free: 77.53 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.684e-06/0.6662, allocations: 3.781 kB / 0.5298 GB, free: 77.53 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.124e-05/0.6662, allocations: 7.547 kB / 0.5298 GB, free: 77.53 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007461/0.6737, allocations: 3.98 MB / 0.5337 GB, free: 75.71 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.588e-06/0.6737, allocations: 3.531 kB / 0.5337 GB, free: 75.71 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001632/0.6753, allocations: 338.3 kB / 0.534 GB, free: 75.7 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004831/0.6758, allocations: 214.1 kB / 0.5342 GB, free: 75.62 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001161/0.676, allocations: 48.86 kB / 0.5342 GB, free: 75.6 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004346/0.6803, allocations: 7.934 MB / 0.542 GB, free: 68.13 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.767e-06/0.6803, allocations: 4.031 kB / 0.542 GB, free: 68.13 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003665/0.684, allocations: 2.926 MB / 0.5449 GB, free: 66.73 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007452/0.6848, allocations: 343.7 kB / 0.5452 GB, free: 66.59 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001958/0.685, allocations: 51.56 kB / 0.5452 GB, free: 66.57 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007209/0.6857, allocations: 55.69 kB / 0.5453 GB, free: 66.55 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002335/0.686, allocations: 104.8 kB / 0.5454 GB, free: 66.53 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.318e-05/0.686, allocations: 42.69 kB / 0.5454 GB, free: 66.52 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0008302/0.6869, allocations: 0.7148 MB / 0.5461 GB, free: 66.24 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.6869, allocations: 0 / 0.5461 GB, free: 66.24 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001886/0.6888, allocations: 0.547 MB / 0.5467 GB, free: 66.18 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.0003426/0.6891, allocations: 179 kB / 0.5468 GB, free: 66.07 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.004134/0.6933, allocations: 3.278 MB / 0.55 GB, free: 63.19 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.519e-06/0.6933, allocations: 0 / 0.55 GB, free: 63.19 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001656/0.695, allocations: 1.398 MB / 0.5514 GB, free: 61.73 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001433/0.6964, allocations: 334.5 kB / 0.5517 GB, free: 61.42 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006084/0.7025, allocations: 5.134 MB / 0.5567 GB, free: 56.34 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008599/0.7034, allocations: 1.583 MB / 0.5583 GB, free: 54.72 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.001027/0.7044, allocations: 448.7 kB / 0.5587 GB, free: 54.28 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003202/0.7047, allocations: 111.4 kB / 0.5588 GB, free: 54.17 MB / 398.1 MB Notification: Performance of SimCode: time 1.002e-06/0.7048, allocations: 0 / 0.5588 GB, free: 54.17 MB / 398.1 MB Notification: Performance of Templates: time 0.03644/0.7412, allocations: 28.37 MB / 0.5865 GB, free: 25.86 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 cvode -lv LOG_STATS > PowerSystems_PowerSystems.Examples.Wind.WindTurbine_PSGI.pipe 2>&1)