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.001314/0.001314, allocations: 114.9 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.001428/0.001429, allocations: 184.5 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.297/1.297, allocations: 205.1 MB / 224.5 MB, free: 12.23 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1722/0.1722, allocations: 37.98 MB / 309.9 MB, free: 5.949 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.001378/0.001378, allocations: 63.89 kB / 432.5 MB, free: 15.65 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09226/0.09364, allocations: 55.25 MB / 487.8 MB, free: 8.344 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Wind.WindTurbine_PSGR): time 0.01155/0.1052, allocations: 10.94 MB / 498.7 MB, free: 13.36 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01046/0.1158, allocations: 7.139 MB / 0.494 GB, free: 6.195 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001045/0.1168, allocations: 47.75 kB / 0.494 GB, free: 6.148 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.01957/0.1365, allocations: 12.89 MB / 0.5066 GB, free: 9.234 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003175/0.1397, allocations: 1.108 MB / 0.5077 GB, free: 8.121 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001982/0.1417, allocations: 0.655 MB / 0.5084 GB, free: 7.465 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.006063/0.1477, allocations: 3.895 MB / 0.5122 GB, free: 3.562 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001827/0.1496, allocations: 0.9963 MB / 0.5131 GB, free: 2.539 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002125/0.1517, allocations: 1.094 MB / 0.5142 GB, free: 1.441 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002426/0.1542, allocations: 1.406 MB / 0.5156 GB, free: 32 kB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005147/0.1547, allocations: 144 kB / 0.5157 GB, free: 15.89 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001477/0.1562, allocations: 0.5149 MB / 0.5162 GB, free: 15.38 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001512/0.1577, allocations: 0.8729 MB / 0.5171 GB, free: 14.5 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002017/0.1598, allocations: 0.9562 MB / 0.518 GB, free: 13.54 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003467/0.1632, allocations: 2.496 MB / 0.5204 GB, free: 11.04 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.109e-06/0.1633, allocations: 0 / 0.5204 GB, free: 11.04 MB / 414.1 MB Notification: Performance of FrontEnd: time 3.166e-06/0.1633, allocations: 0 / 0.5204 GB, free: 11.04 MB / 414.1 MB Notification: Performance of Transformations before backend: time 9.108e-05/0.1634, allocations: 3.938 kB / 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.00574/0.1691, allocations: 2.162 MB / 0.5226 GB, free: 8.809 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.684e-05/0.1692, allocations: 11.89 kB / 0.5226 GB, free: 8.797 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001808/0.171, allocations: 318.4 kB / 0.5229 GB, free: 8.484 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002838/0.1738, allocations: 1.287 MB / 0.5241 GB, free: 7.152 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.069e-05/0.1739, allocations: 102.7 kB / 0.5242 GB, free: 7.051 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005437/0.1745, allocations: 231.8 kB / 0.5244 GB, free: 6.824 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003195/0.1777, allocations: 2.145 MB / 0.5265 GB, free: 4.57 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.666e-05/0.1777, allocations: 15.84 kB / 0.5266 GB, free: 4.555 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001409/0.1779, allocations: 59.98 kB / 0.5266 GB, free: 4.496 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006381/0.1785, allocations: 178.7 kB / 0.5268 GB, free: 4.32 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002779/0.1813, allocations: 1.756 MB / 0.5285 GB, free: 2.559 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.3187/0.5, allocations: 8.555 MB / 0.5368 GB, free: 47.85 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004519/0.5046, allocations: 1.819 MB / 0.5386 GB, free: 46.93 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002378/0.507, allocations: 0.763 MB / 0.5394 GB, free: 46.67 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001386/0.5072, allocations: 19.2 kB / 0.5394 GB, free: 46.66 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.2e-05/0.5072, allocations: 44.67 kB / 0.5394 GB, free: 46.62 MB / 414.1 MB Notification: Performance of pre-optimization done (n=122): time 6.653e-06/0.5072, allocations: 0 / 0.5394 GB, free: 46.62 MB / 414.1 MB Notification: Performance of matching and sorting (n=150): time 0.03101/0.5383, allocations: 7.568 MB / 0.5468 GB, free: 43.48 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.191e-05/0.5384, allocations: 97.77 kB / 0.5469 GB, free: 43.38 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002089/0.5405, allocations: 1.033 MB / 0.5479 GB, free: 42.98 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001181/0.5406, allocations: 50.92 kB / 0.548 GB, free: 42.93 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005977/0.5412, allocations: 0.7726 MB / 0.5487 GB, free: 42.33 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004999/0.5417, allocations: 0.5316 MB / 0.5492 GB, free: 41.92 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006618/0.5424, allocations: 329.7 kB / 0.5496 GB, free: 41.77 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 6.474e-05/0.5425, allocations: 301.9 kB / 0.5498 GB, free: 41.48 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001597/0.5441, allocations: 0.7762 MB / 0.5506 GB, free: 41.23 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001881/0.546, allocations: 1.252 MB / 0.5518 GB, free: 40.41 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.01561/0.5616, allocations: 5.691 MB / 0.5574 GB, free: 38.11 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.688e-05/0.5616, allocations: 3.906 kB / 0.5574 GB, free: 38.11 MB / 414.1 MB Notification: Performance of matching and sorting (n=236) (initialization): time 0.008479/0.5701, allocations: 3.919 MB / 0.5612 GB, free: 35.99 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.848e-05/0.5702, allocations: 11.06 kB / 0.5612 GB, free: 35.99 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.627e-05/0.5702, allocations: 10.94 kB / 0.5612 GB, free: 35.99 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005397/0.5756, allocations: 1.738 MB / 0.5629 GB, free: 34.46 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009413/0.5765, allocations: 271.5 kB / 0.5632 GB, free: 34.2 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02193/0.5985, allocations: 18.48 MB / 0.5812 GB, free: 15.19 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001444/0.6, allocations: 79.94 kB / 0.5813 GB, free: 15.11 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002217/0.6002, allocations: 79.98 kB / 0.5814 GB, free: 15.04 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.001071/0.6013, allocations: 0.5301 MB / 0.5819 GB, free: 14.5 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004053/0.6017, allocations: 142.2 kB / 0.582 GB, free: 14.36 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004703/0.6064, allocations: 2.409 MB / 0.5844 GB, free: 11.88 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.138e-05/0.6064, allocations: 16 kB / 0.5844 GB, free: 11.86 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.231e-05/0.6064, allocations: 4 kB / 0.5844 GB, free: 11.86 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.363e-05/0.6065, allocations: 7.969 kB / 0.5844 GB, free: 11.85 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008333/0.6148, allocations: 4.329 MB / 0.5887 GB, free: 7.426 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.756e-06/0.6148, allocations: 4.109 kB / 0.5887 GB, free: 7.422 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001424/0.6163, allocations: 311.5 kB / 0.589 GB, free: 7.117 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002348/0.6186, allocations: 0.5535 MB / 0.5895 GB, free: 6.555 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000135/0.6188, allocations: 47.97 kB / 0.5895 GB, free: 6.508 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009218/0.628, allocations: 10.13 MB / 0.5994 GB, free: 11.7 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.47e-06/0.628, allocations: 4.031 kB / 0.5994 GB, free: 11.7 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006425/0.6345, allocations: 3.224 MB / 0.6026 GB, free: 8.371 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001151/0.6356, allocations: 347.2 kB / 0.6029 GB, free: 8.012 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003502/0.636, allocations: 47.98 kB / 0.603 GB, free: 7.965 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001063/0.6371, allocations: 59.94 kB / 0.603 GB, free: 7.906 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000304/0.6374, allocations: 121 kB / 0.6031 GB, free: 7.789 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00011/0.6375, allocations: 51.97 kB / 0.6032 GB, free: 7.738 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.00122/0.6387, allocations: 0.6892 MB / 0.6039 GB, free: 7.043 MB / 430.1 MB Notification: Performance of sort global known variables: time 2.4e-07/0.6387, allocations: 0 / 0.6039 GB, free: 7.043 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.002609/0.6413, allocations: 0.5651 MB / 0.6044 GB, free: 6.48 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.0005297/0.6419, allocations: 185.5 kB / 0.6046 GB, free: 6.297 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.005975/0.6479, allocations: 3.113 MB / 0.6076 GB, free: 3.141 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 8.215e-06/0.6479, allocations: 4 kB / 0.6076 GB, free: 3.137 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002606/0.6505, allocations: 1.576 MB / 0.6092 GB, free: 1.504 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001815/0.6523, allocations: 325.5 kB / 0.6095 GB, free: 1.188 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009655/0.662, allocations: 5.177 MB / 0.6145 GB, free: 11.96 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001951/0.664, allocations: 1.585 MB / 0.6161 GB, free: 10.34 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005397/0.6645, allocations: 111.4 kB / 0.6162 GB, free: 10.23 MB / 446.1 MB Notification: Performance of SimCode: time 1.082e-06/0.6645, allocations: 0 / 0.6162 GB, free: 10.23 MB / 446.1 MB Notification: Performance of Templates: time 0.06596/0.7305, allocations: 50.44 MB / 0.6654 GB, free: 7.688 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)