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.001424/0.001424, allocations: 111 kB / 17.74 MB, free: 5.34 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.001215/0.001215, allocations: 188.4 kB / 18.67 MB, free: 4.418 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.37/1.37, allocations: 205.1 MB / 224.5 MB, free: 12.24 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1786/0.1786, allocations: 37.98 MB / 309.9 MB, free: 5.957 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.001594/0.001594, allocations: 67.03 kB / 432.5 MB, free: 15.65 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1046/0.1062, allocations: 55.24 MB / 487.8 MB, free: 8.352 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Wind.WindTurbine_PSGR): time 0.01284/0.1191, allocations: 10.94 MB / 498.7 MB, free: 13.36 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01073/0.1299, allocations: 7.135 MB / 0.494 GB, free: 6.203 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001235/0.1312, allocations: 47.75 kB / 0.494 GB, free: 6.156 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'. Notification: Performance of NFTyping.typeComponents: time 0.02054/0.1517, allocations: 12.91 MB / 0.5066 GB, free: 9.227 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002969/0.1547, allocations: 1.105 MB / 0.5077 GB, free: 8.117 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001777/0.1565, allocations: 0.6511 MB / 0.5084 GB, free: 7.465 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.005604/0.1621, allocations: 3.899 MB / 0.5122 GB, free: 3.559 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001493/0.1636, allocations: 0.9885 MB / 0.5131 GB, free: 2.543 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001845/0.1655, allocations: 1.097 MB / 0.5142 GB, free: 1.441 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002371/0.1679, allocations: 1.402 MB / 0.5156 GB, free: 36 kB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005744/0.1685, allocations: 144 kB / 0.5157 GB, free: 15.89 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00153/0.17, allocations: 0.5149 MB / 0.5162 GB, free: 15.38 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009349/0.1709, allocations: 0.8846 MB / 0.5171 GB, free: 14.49 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001101/0.1721, allocations: 0.9485 MB / 0.518 GB, free: 13.54 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002775/0.1748, allocations: 2.5 MB / 0.5204 GB, free: 11.03 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.043e-06/0.1749, allocations: 4 kB / 0.5204 GB, free: 11.03 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.794e-06/0.1749, allocations: 0 / 0.5204 GB, free: 11.03 MB / 414.1 MB Notification: Performance of Transformations before backend: time 2.863e-05/0.1749, allocations: 0 / 0.5204 GB, free: 11.03 MB / 414.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.004163/0.1791, allocations: 2.154 MB / 0.5226 GB, free: 8.812 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.426e-05/0.1791, allocations: 15.89 kB / 0.5226 GB, free: 8.797 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001722/0.1809, allocations: 322.3 kB / 0.5229 GB, free: 8.48 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002661/0.1835, allocations: 1.28 MB / 0.5241 GB, free: 7.156 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.84e-05/0.1836, allocations: 106.6 kB / 0.5242 GB, free: 7.051 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005538/0.1842, allocations: 227.8 kB / 0.5244 GB, free: 6.828 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003096/0.1873, allocations: 2.149 MB / 0.5265 GB, free: 4.57 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.038e-05/0.1874, allocations: 11.91 kB / 0.5266 GB, free: 4.559 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001499/0.1875, allocations: 55.98 kB / 0.5266 GB, free: 4.504 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006269/0.1882, allocations: 178.7 kB / 0.5268 GB, free: 4.328 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002749/0.1909, allocations: 1.76 MB / 0.5285 GB, free: 2.562 MB / 414.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.2703/0.4613, allocations: 8.558 MB / 0.5369 GB, free: 47.85 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002473/0.4637, allocations: 1.815 MB / 0.5386 GB, free: 46.91 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001319/0.4651, allocations: 0.7585 MB / 0.5394 GB, free: 46.66 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.814e-05/0.4652, allocations: 20.2 kB / 0.5394 GB, free: 46.65 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.805e-05/0.4652, allocations: 48.45 kB / 0.5394 GB, free: 46.61 MB / 414.1 MB Notification: Performance of pre-optimization done (n=122): time 3.537e-06/0.4652, allocations: 0 / 0.5394 GB, free: 46.61 MB / 414.1 MB Notification: Performance of matching and sorting (n=150): time 0.01902/0.4843, allocations: 7.57 MB / 0.5468 GB, free: 43.47 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.664e-05/0.4843, allocations: 96.77 kB / 0.5469 GB, free: 43.37 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001453/0.4858, allocations: 1.037 MB / 0.5479 GB, free: 42.97 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001008/0.4859, allocations: 51.11 kB / 0.548 GB, free: 42.92 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000519/0.4864, allocations: 0.7659 MB / 0.5487 GB, free: 42.32 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003847/0.4868, allocations: 0.5325 MB / 0.5492 GB, free: 41.91 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004603/0.4873, allocations: 330 kB / 0.5496 GB, free: 41.76 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 5.055e-05/0.4874, allocations: 307.7 kB / 0.5499 GB, free: 41.46 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001288/0.4887, allocations: 0.7712 MB / 0.5506 GB, free: 41.22 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001524/0.4902, allocations: 1.251 MB / 0.5518 GB, free: 40.4 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.01465/0.5048, allocations: 5.695 MB / 0.5574 GB, free: 38.11 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.865e-05/0.5049, allocations: 3.938 kB / 0.5574 GB, free: 38.11 MB / 414.1 MB Notification: Performance of matching and sorting (n=236) (initialization): time 0.008002/0.5129, allocations: 3.918 MB / 0.5612 GB, free: 35.99 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.838e-05/0.5129, allocations: 11.34 kB / 0.5612 GB, free: 35.99 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.304e-05/0.513, allocations: 15.09 kB / 0.5612 GB, free: 35.99 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005123/0.5181, allocations: 1.735 MB / 0.5629 GB, free: 34.45 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009376/0.5191, allocations: 271.5 kB / 0.5632 GB, free: 34.18 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0217/0.5408, allocations: 18.48 MB / 0.5812 GB, free: 15.17 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00144/0.5422, allocations: 81.8 kB / 0.5813 GB, free: 15.09 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002593/0.5425, allocations: 72 kB / 0.5814 GB, free: 15.02 MB / 414.1 MB Warning: The initial conditions are over specified. The following 6 initial equations are redundant, so they are removed from the initialization system: inverter2.switch_dq0[1] = 1.224744871391589 * cos(select2.alpha0) * select2.v0 $DER.generator.psi_rq[1] = 0.0 $DER.generator.psi_s[2] = 0.0 $DER.generator.psi_s[1] = 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 (130): * Single equations (assignments): 126 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(2,11,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(5,49), (21,20)} Notification: Performance of prepare postOptimizeDAE: time 0.001035/0.5436, allocations: 0.5298 MB / 0.5819 GB, free: 14.48 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003731/0.5439, allocations: 142.2 kB / 0.582 GB, free: 14.34 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004697/0.5486, allocations: 2.412 MB / 0.5844 GB, free: 11.86 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.359e-05/0.5487, allocations: 16 kB / 0.5844 GB, free: 11.85 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.369e-05/0.5487, allocations: 4 kB / 0.5844 GB, free: 11.84 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.598e-05/0.5487, allocations: 7.969 kB / 0.5844 GB, free: 11.84 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008052/0.5568, allocations: 4.328 MB / 0.5887 GB, free: 7.414 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.958e-06/0.5568, allocations: 8.062 kB / 0.5887 GB, free: 7.406 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001396/0.5582, allocations: 307.5 kB / 0.589 GB, free: 7.105 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002289/0.5605, allocations: 0.5429 MB / 0.5895 GB, free: 6.547 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001424/0.5607, allocations: 47.97 kB / 0.5895 GB, free: 6.5 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009095/0.5698, allocations: 10.15 MB / 0.5994 GB, free: 11.68 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.577e-06/0.5698, allocations: 0 / 0.5994 GB, free: 11.68 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006688/0.5765, allocations: 3.226 MB / 0.6026 GB, free: 8.348 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001094/0.5776, allocations: 347.2 kB / 0.6029 GB, free: 7.988 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004101/0.5781, allocations: 43.98 kB / 0.603 GB, free: 7.945 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001071/0.5791, allocations: 67.94 kB / 0.603 GB, free: 7.879 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003124/0.5795, allocations: 121 kB / 0.6031 GB, free: 7.762 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000106/0.5796, allocations: 43.98 kB / 0.6032 GB, free: 7.719 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.001143/0.5807, allocations: 0.6892 MB / 0.6039 GB, free: 7.023 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.5807, allocations: 0 / 0.6039 GB, free: 7.023 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.002422/0.5832, allocations: 0.5755 MB / 0.6044 GB, free: 6.453 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 23 (inertia.w,generator.phi_el,generator.i_s[3],generator.psi_s[1],generator.psi_s[2],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 (119): * Single equations (assignments): 113 * 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): 4 systems {(2,9,100.0%), (1,1,100.0%), (1,8,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,11)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0004298/0.5836, allocations: 173.4 kB / 0.6046 GB, free: 6.277 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.005803/0.5894, allocations: 3.113 MB / 0.6076 GB, free: 3.121 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 6.572e-06/0.5895, allocations: 0 / 0.6076 GB, free: 3.121 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002588/0.5921, allocations: 1.573 MB / 0.6092 GB, free: 1.488 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001977/0.5941, allocations: 326.2 kB / 0.6095 GB, free: 1.172 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009721/0.6038, allocations: 5.177 MB / 0.6145 GB, free: 11.95 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00184/0.6057, allocations: 1.587 MB / 0.6161 GB, free: 10.33 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005092/0.6062, allocations: 107.4 kB / 0.6162 GB, free: 10.22 MB / 446.1 MB Notification: Performance of SimCode: time 8.92e-07/0.6062, allocations: 0 / 0.6162 GB, free: 10.22 MB / 446.1 MB Notification: Performance of Templates: time 0.06243/0.6686, allocations: 50.45 MB / 0.6654 GB, free: 7.668 MB / 494.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 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.Wind.WindTurbine_PSGR.pipe 2>&1)