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.001438/0.001438, allocations: 99.03 kB / 17.74 MB, free: 5.309 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.001476/0.001476, allocations: 198.5 kB / 18.67 MB, free: 4.383 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.459/1.459, allocations: 205.1 MB / 224.5 MB, free: 12.21 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1701/0.1701, allocations: 37.99 MB / 309.9 MB, free: 5.945 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.001467/0.001467, allocations: 64.47 kB / 432.5 MB, free: 15.64 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1035/0.105, allocations: 55.24 MB / 487.8 MB, free: 8.344 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Wind.WindTurbine_PSGR): time 0.01277/0.1178, allocations: 10.95 MB / 498.7 MB, free: 13.35 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0117/0.1295, allocations: 7.131 MB / 0.494 GB, free: 6.195 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001167/0.1307, allocations: 51.69 kB / 0.494 GB, free: 6.145 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.02165/0.1524, allocations: 12.91 MB / 0.5066 GB, free: 9.219 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003231/0.1557, allocations: 1.101 MB / 0.5077 GB, free: 8.113 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00241/0.1581, allocations: 0.655 MB / 0.5084 GB, free: 7.457 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.005811/0.1639, allocations: 3.895 MB / 0.5122 GB, free: 3.555 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001643/0.1656, allocations: 0.9885 MB / 0.5131 GB, free: 2.539 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001836/0.1674, allocations: 1.09 MB / 0.5142 GB, free: 1.445 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002293/0.1697, allocations: 1.41 MB / 0.5156 GB, free: 32 kB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005411/0.1703, allocations: 144 kB / 0.5157 GB, free: 15.89 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001496/0.1718, allocations: 0.5149 MB / 0.5162 GB, free: 15.38 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00123/0.173, allocations: 0.8846 MB / 0.5171 GB, free: 14.49 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001894/0.1749, allocations: 0.9523 MB / 0.518 GB, free: 13.53 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003583/0.1785, allocations: 2.5 MB / 0.5204 GB, free: 11.02 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.809e-06/0.1786, allocations: 0 / 0.5204 GB, free: 11.02 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.532e-06/0.1786, allocations: 4 kB / 0.5205 GB, free: 11.02 MB / 414.1 MB Notification: Performance of Transformations before backend: time 7.063e-05/0.1786, allocations: 0 / 0.5205 GB, free: 11.02 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.004818/0.1835, allocations: 2.154 MB / 0.5226 GB, free: 8.805 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.547e-05/0.1835, allocations: 15.83 kB / 0.5226 GB, free: 8.789 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001705/0.1852, allocations: 318.4 kB / 0.5229 GB, free: 8.477 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002868/0.1881, allocations: 1.284 MB / 0.5241 GB, free: 7.148 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001085/0.1882, allocations: 110.6 kB / 0.5242 GB, free: 7.039 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005466/0.1888, allocations: 223.8 kB / 0.5244 GB, free: 6.82 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003262/0.1921, allocations: 2.153 MB / 0.5266 GB, free: 4.559 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.399e-05/0.1921, allocations: 11.84 kB / 0.5266 GB, free: 4.547 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001418/0.1923, allocations: 55.98 kB / 0.5266 GB, free: 4.492 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006029/0.1929, allocations: 182.7 kB / 0.5268 GB, free: 4.312 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002831/0.1957, allocations: 1.76 MB / 0.5285 GB, free: 2.547 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.2423/0.438, allocations: 8.552 MB / 0.5369 GB, free: 48.18 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002312/0.4404, allocations: 1.811 MB / 0.5386 GB, free: 47.25 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00123/0.4416, allocations: 0.7666 MB / 0.5394 GB, free: 47 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.773e-05/0.4417, allocations: 20.22 kB / 0.5394 GB, free: 46.99 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.536e-05/0.4417, allocations: 46.11 kB / 0.5394 GB, free: 46.95 MB / 414.1 MB Notification: Performance of pre-optimization done (n=122): time 3.286e-06/0.4418, allocations: 0 / 0.5394 GB, free: 46.95 MB / 414.1 MB Notification: Performance of matching and sorting (n=150): time 0.01867/0.4604, allocations: 7.568 MB / 0.5468 GB, free: 43.8 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.04e-05/0.4605, allocations: 97.02 kB / 0.5469 GB, free: 43.7 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001294/0.4618, allocations: 1.04 MB / 0.5479 GB, free: 43.29 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 8.951e-05/0.4619, allocations: 50.73 kB / 0.548 GB, free: 43.24 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004236/0.4623, allocations: 0.7626 MB / 0.5487 GB, free: 42.64 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003542/0.4627, allocations: 0.5359 MB / 0.5493 GB, free: 42.23 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004642/0.4632, allocations: 329.9 kB / 0.5496 GB, free: 42.09 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 3.776e-05/0.4632, allocations: 309.7 kB / 0.5499 GB, free: 41.78 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001175/0.4644, allocations: 0.7761 MB / 0.5506 GB, free: 41.54 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001392/0.4658, allocations: 1.243 MB / 0.5518 GB, free: 40.72 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.015/0.4808, allocations: 5.697 MB / 0.5574 GB, free: 38.44 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.395e-05/0.4808, allocations: 3.906 kB / 0.5574 GB, free: 38.44 MB / 414.1 MB Notification: Performance of matching and sorting (n=236) (initialization): time 0.008217/0.4891, allocations: 3.912 MB / 0.5612 GB, free: 36.32 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.643e-05/0.4891, allocations: 16.69 kB / 0.5612 GB, free: 36.32 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.63e-05/0.4892, allocations: 12.66 kB / 0.5613 GB, free: 36.32 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005313/0.4945, allocations: 1.741 MB / 0.563 GB, free: 34.86 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009477/0.4954, allocations: 263.5 kB / 0.5632 GB, free: 34.6 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02043/0.5159, allocations: 18.47 MB / 0.5812 GB, free: 15.61 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001371/0.5173, allocations: 75.94 kB / 0.5813 GB, free: 15.53 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001444/0.5174, allocations: 79.98 kB / 0.5814 GB, free: 15.45 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.0008461/0.5183, allocations: 0.5303 MB / 0.5819 GB, free: 14.91 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002223/0.5185, allocations: 150.2 kB / 0.5821 GB, free: 14.77 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00453/0.5231, allocations: 2.408 MB / 0.5844 GB, free: 12.29 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.529e-05/0.5231, allocations: 7.969 kB / 0.5844 GB, free: 12.29 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.687e-06/0.5231, allocations: 3.938 kB / 0.5844 GB, free: 12.28 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006408/0.5237, allocations: 351.2 kB / 0.5848 GB, free: 11.92 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001925/0.5239, allocations: 51.89 kB / 0.5848 GB, free: 11.87 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000774/0.5247, allocations: 55.94 kB / 0.5849 GB, free: 11.81 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002121/0.5249, allocations: 121 kB / 0.585 GB, free: 11.7 MB / 414.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.005747/0.5307, allocations: 2.765 MB / 0.5877 GB, free: 8.941 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.003169/0.5339, allocations: 2.894 MB / 0.5905 GB, free: 6.031 MB / 414.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0009318/0.5348, allocations: 0.8308 MB / 0.5913 GB, free: 5.207 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0008537/0.5357, allocations: 0.6932 MB / 0.592 GB, free: 4.508 MB / 414.1 MB Notification: Performance of Backend: time 3.5e-07/0.5357, allocations: 0 / 0.592 GB, free: 4.508 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.004781/0.5405, allocations: 2.716 MB / 0.5946 GB, free: 1.754 MB / 414.1 MB Notification: Performance of SimCode: time 0.0066/0.5471, allocations: 5.289 MB / 0.5998 GB, free: 12.43 MB / 430.1 MB Notification: Performance of Templates: time 0.05215/0.5993, allocations: 33.65 MB / 0.6327 GB, free: 10.76 MB / 462.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)