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.001419/0.001419, allocations: 110.3 kB / 17.75 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.001685/0.001685, allocations: 185.4 kB / 18.68 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.448/1.448, 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.2917/0.2917, 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.001564/0.001564, allocations: 75.89 kB / 432.5 MB, free: 15.66 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1041/0.1057, allocations: 55.24 MB / 487.8 MB, free: 8.352 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Wind.WindTurbine_PSGI): time 0.01266/0.1184, allocations: 11.02 MB / 498.8 MB, free: 13.27 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01102/0.1294, allocations: 7.117 MB / 0.4941 GB, free: 6.137 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001118/0.1306, allocations: 51.69 kB / 0.4941 GB, free: 6.086 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.02218/0.1528, allocations: 12.87 MB / 0.5067 GB, free: 9.195 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003237/0.1561, allocations: 1.116 MB / 0.5078 GB, free: 8.074 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001964/0.158, allocations: 0.694 MB / 0.5084 GB, free: 7.379 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.005179/0.1632, allocations: 4.005 MB / 0.5124 GB, free: 3.367 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001532/0.1648, allocations: 0.9925 MB / 0.5133 GB, free: 2.348 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00195/0.1668, allocations: 1.129 MB / 0.5144 GB, free: 1.215 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00232/0.1691, allocations: 1.437 MB / 0.5158 GB, free: 15.77 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005378/0.1696, allocations: 152 kB / 0.516 GB, free: 15.62 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001319/0.171, allocations: 0.5188 MB / 0.5165 GB, free: 15.11 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001194/0.1722, allocations: 0.904 MB / 0.5174 GB, free: 14.2 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001602/0.1738, allocations: 0.9873 MB / 0.5183 GB, free: 13.21 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002698/0.1765, allocations: 2.554 MB / 0.5208 GB, free: 10.64 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.098e-06/0.1765, allocations: 4 kB / 0.5208 GB, free: 10.64 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.443e-06/0.1765, allocations: 0 / 0.5208 GB, free: 10.64 MB / 414.1 MB Notification: Performance of Transformations before backend: time 2.545e-05/0.1766, allocations: 0 / 0.5208 GB, free: 10.64 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: 409 * Number of variables: 409 Notification: Performance of Generate backend data structure: time 0.004279/0.1808, allocations: 2.225 MB / 0.523 GB, free: 8.355 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.08e-05/0.1809, allocations: 15.88 kB / 0.523 GB, free: 8.34 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001761/0.1827, allocations: 330.3 kB / 0.5233 GB, free: 8.016 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002624/0.1853, allocations: 1.334 MB / 0.5246 GB, free: 6.637 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.742e-05/0.1854, allocations: 106.7 kB / 0.5247 GB, free: 6.531 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005199/0.1859, allocations: 239.7 kB / 0.525 GB, free: 6.297 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003086/0.189, allocations: 2.2 MB / 0.5271 GB, free: 3.992 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.286e-05/0.1891, allocations: 11.84 kB / 0.5271 GB, free: 3.98 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001466/0.1892, allocations: 59.98 kB / 0.5272 GB, free: 3.922 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005964/0.1898, allocations: 186.8 kB / 0.5274 GB, free: 3.738 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002855/0.1927, allocations: 1.826 MB / 0.5291 GB, free: 1.906 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.2343/0.427, allocations: 8.503 MB / 0.5374 GB, free: 47.8 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002713/0.4298, allocations: 1.914 MB / 0.5393 GB, free: 46.73 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001436/0.4312, allocations: 0.7835 MB / 0.5401 GB, free: 46.47 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.99e-05/0.4313, allocations: 26.2 kB / 0.5401 GB, free: 46.47 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.438e-05/0.4314, allocations: 52 kB / 0.5402 GB, free: 46.42 MB / 414.1 MB Notification: Performance of pre-optimization done (n=130): time 5.37e-06/0.4314, allocations: 2.516 kB / 0.5402 GB, free: 46.42 MB / 414.1 MB Notification: Performance of matching and sorting (n=165): time 0.02496/0.4564, allocations: 9.208 MB / 0.5491 GB, free: 42.57 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.907e-05/0.4564, allocations: 95.84 kB / 0.5492 GB, free: 42.48 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00169/0.4581, allocations: 1.077 MB / 0.5503 GB, free: 42.06 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001357/0.4583, allocations: 54.86 kB / 0.5503 GB, free: 42 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004808/0.4588, allocations: 0.7726 MB / 0.5511 GB, free: 41.4 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004643/0.4593, allocations: 0.5957 MB / 0.5517 GB, free: 40.94 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005998/0.4599, allocations: 356.5 kB / 0.552 GB, free: 40.78 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 3.765e-05/0.4599, allocations: 302.6 kB / 0.5523 GB, free: 40.48 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001435/0.4614, allocations: 0.851 MB / 0.5531 GB, free: 40.21 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001524/0.4629, allocations: 1.349 MB / 0.5545 GB, free: 39.34 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.01262/0.4755, allocations: 5.192 MB / 0.5595 GB, free: 36.77 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.888e-05/0.4756, allocations: 7.781 kB / 0.5595 GB, free: 36.77 MB / 414.1 MB Notification: Performance of matching and sorting (n=255) (initialization): time 0.00846/0.484, allocations: 4.182 MB / 0.5636 GB, free: 33.67 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.49e-05/0.4841, allocations: 12 kB / 0.5636 GB, free: 33.66 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.371e-05/0.4841, allocations: 16 kB / 0.5636 GB, free: 33.64 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004538/0.4887, allocations: 1.609 MB / 0.5652 GB, free: 32.02 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001235/0.4899, allocations: 315.5 kB / 0.5655 GB, free: 31.71 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02205/0.512, allocations: 20.88 MB / 0.5859 GB, free: 10 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001713/0.5137, allocations: 87.94 kB / 0.586 GB, free: 9.914 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003482/0.5141, allocations: 87.98 kB / 0.5861 GB, free: 9.828 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.PI.x = 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: 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 (152): * Single equations (assignments): 146 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(1,3,100.0%), (1,8,100.0%), (1,1,100.0%), (3,24,77.8%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(4,22), (21,20)} Notification: Performance of prepare postOptimizeDAE: time 0.001116/0.5152, allocations: 0.5521 MB / 0.5866 GB, free: 9.266 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004439/0.5157, allocations: 154.1 kB / 0.5868 GB, free: 9.113 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004662/0.5204, allocations: 2.802 MB / 0.5895 GB, free: 6.207 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.8e-05/0.5204, allocations: 7.969 kB / 0.5895 GB, free: 6.199 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.238e-06/0.5204, allocations: 0 / 0.5895 GB, free: 6.199 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007509/0.5212, allocations: 371.1 kB / 0.5899 GB, free: 5.816 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003101/0.5215, allocations: 51.89 kB / 0.5899 GB, free: 5.766 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009993/0.5225, allocations: 75.42 kB / 0.59 GB, free: 5.695 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002501/0.5228, allocations: 125.8 kB / 0.5901 GB, free: 5.57 MB / 414.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.006542/0.5293, allocations: 3.013 MB / 0.593 GB, free: 2.566 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.004326/0.5336, allocations: 3.22 MB / 0.5962 GB, free: 15.33 MB / 430.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.001387/0.5351, allocations: 0.9173 MB / 0.5971 GB, free: 14.41 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.001516/0.5366, allocations: 0.7139 MB / 0.5978 GB, free: 13.7 MB / 430.1 MB Notification: Performance of Backend: time 3.91e-07/0.5366, allocations: 0 / 0.5978 GB, free: 13.7 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.006693/0.5433, allocations: 3.041 MB / 0.6008 GB, free: 10.59 MB / 430.1 MB Notification: Performance of SimCode: time 0.008431/0.5518, allocations: 5.453 MB / 0.6061 GB, free: 5.105 MB / 430.1 MB Notification: Performance of Templates: time 0.05888/0.6107, allocations: 34.49 MB / 0.6398 GB, free: 2.586 MB / 462.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 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.Wind.WindTurbine_PSGI.pipe 2>&1)