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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.001041/0.001041, allocations: 108 kB / 16.51 MB, free: 6.707 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.0009812/0.0009812, allocations: 190.5 kB / 17.43 MB, free: 6.066 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.328/1.328, allocations: 222.9 MB / 241.1 MB, free: 15.5 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1825/0.1825, allocations: 38.03 MB / 329.3 MB, free: 9.059 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001428/0.001428, allocations: 62.5 kB / 398.1 MB, free: 34.53 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1255/0.127, allocations: 58.05 MB / 456.1 MB, free: 8.566 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Wind.WindTurbine_PSGI): time 0.01512/0.1421, allocations: 13.05 MB / 469.2 MB, free: 11.45 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01492/0.1571, allocations: 7.905 MB / 477.1 MB, free: 3.531 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002591/0.1597, allocations: 91.44 kB / 477.2 MB, free: 3.441 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02435/0.1841, allocations: 12.99 MB / 490.2 MB, free: 6.434 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004171/0.1883, allocations: 1.062 MB / 491.2 MB, free: 5.367 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002486/0.1908, allocations: 0.6201 MB / 491.9 MB, free: 4.746 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.008105/0.1989, allocations: 5.65 MB / 497.5 MB, free: 15.09 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002219/0.2012, allocations: 0.8836 MB / 498.4 MB, free: 14.17 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002566/0.2038, allocations: 0.9646 MB / 499.4 MB, free: 13.2 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002835/0.2066, allocations: 1.515 MB / 0.4891 GB, free: 11.68 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005899/0.2072, allocations: 99.94 kB / 0.4892 GB, free: 11.59 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001542/0.2088, allocations: 487.2 kB / 0.4897 GB, free: 11.11 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001177/0.21, allocations: 0.8571 MB / 0.4905 GB, free: 10.25 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001712/0.2117, allocations: 0.9171 MB / 0.4914 GB, free: 9.328 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00337/0.2151, allocations: 2.457 MB / 0.4938 GB, free: 6.863 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.811e-06/0.2151, allocations: 0 / 0.4938 GB, free: 6.863 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.2151, allocations: 4 kB / 0.4938 GB, free: 6.859 MB / 382.1 MB Notification: Performance of Transformations before backend: time 9.489e-05/0.2152, allocations: 0 / 0.4938 GB, free: 6.859 MB / 382.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.005901/0.2212, allocations: 2.232 MB / 0.496 GB, free: 4.566 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.769e-05/0.2212, allocations: 8.031 kB / 0.496 GB, free: 4.559 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002069/0.2233, allocations: 326.3 kB / 0.4963 GB, free: 4.238 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003116/0.2264, allocations: 1.287 MB / 0.4976 GB, free: 2.902 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.587e-05/0.2265, allocations: 106.7 kB / 0.4977 GB, free: 2.797 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000661/0.2272, allocations: 239.8 kB / 0.4979 GB, free: 2.562 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004918/0.2321, allocations: 2.188 MB / 0.5 GB, free: 276 kB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.573e-05/0.2322, allocations: 11.84 kB / 0.5001 GB, free: 264 kB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000229/0.2325, allocations: 63.92 kB / 0.5001 GB, free: 200 kB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006723/0.2331, allocations: 182.8 kB / 0.5003 GB, free: 16 kB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.2519/0.4851, allocations: 1.83 MB / 0.5021 GB, free: 57.89 MB / 382.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.01374/0.4989, allocations: 8.567 MB / 0.5104 GB, free: 52.64 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00271/0.5016, allocations: 1.903 MB / 0.5123 GB, free: 51.56 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001526/0.5032, allocations: 0.808 MB / 0.5131 GB, free: 51.3 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.967e-05/0.5033, allocations: 19.67 kB / 0.5131 GB, free: 51.3 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.988e-05/0.5033, allocations: 50.83 kB / 0.5132 GB, free: 51.25 MB / 382.1 MB Notification: Performance of pre-optimization done (n=130): time 3.006e-06/0.5033, allocations: 0 / 0.5132 GB, free: 51.25 MB / 382.1 MB Notification: Performance of matching and sorting (n=145): time 0.01254/0.5159, allocations: 5.944 MB / 0.519 GB, free: 48.34 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.505e-05/0.516, allocations: 104 kB / 0.5191 GB, free: 48.24 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001503/0.5175, allocations: 1.065 MB / 0.5201 GB, free: 47.83 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 9.22e-05/0.5176, allocations: 52.05 kB / 0.5202 GB, free: 47.78 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004494/0.518, allocations: 0.7811 MB / 0.5209 GB, free: 47.17 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000364/0.5184, allocations: 0.5271 MB / 0.5214 GB, free: 46.76 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004719/0.5189, allocations: 330.3 kB / 0.5217 GB, free: 46.61 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 6.052e-05/0.519, allocations: 305.1 kB / 0.522 GB, free: 46.32 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001077/0.52, allocations: 0.746 MB / 0.5228 GB, free: 46 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001222/0.5213, allocations: 1.226 MB / 0.524 GB, free: 45.04 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.00948/0.5308, allocations: 4.321 MB / 0.5282 GB, free: 42.66 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.095e-05/0.5308, allocations: 4.344 kB / 0.5282 GB, free: 42.66 MB / 382.1 MB Notification: Performance of matching and sorting (n=237) (initialization): time 0.006822/0.5376, allocations: 3.975 MB / 0.5321 GB, free: 38.76 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.026e-05/0.5377, allocations: 12.69 kB / 0.5321 GB, free: 38.75 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.205e-05/0.5378, allocations: 12 kB / 0.5321 GB, free: 38.74 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003709/0.5415, allocations: 1.451 MB / 0.5335 GB, free: 37.27 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001076/0.5426, allocations: 287.5 kB / 0.5338 GB, free: 36.99 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01959/0.5622, allocations: 19.15 MB / 0.5525 GB, free: 16.94 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00183/0.564, allocations: 84.09 kB / 0.5526 GB, free: 16.86 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004108/0.5645, allocations: 80.22 kB / 0.5526 GB, free: 16.79 MB / 382.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.001725/0.5662, allocations: 0.5207 MB / 0.5531 GB, free: 16.25 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006082/0.5669, allocations: 146.1 kB / 0.5533 GB, free: 16.11 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003564/0.5704, allocations: 2.217 MB / 0.5555 GB, free: 13.8 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.273e-05/0.5705, allocations: 26.17 kB / 0.5555 GB, free: 13.77 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.209e-05/0.5705, allocations: 0 / 0.5555 GB, free: 13.77 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.399e-05/0.5705, allocations: 11.97 kB / 0.5555 GB, free: 13.76 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00596/0.5765, allocations: 3.976 MB / 0.5594 GB, free: 9.645 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.093e-06/0.5765, allocations: 0 / 0.5594 GB, free: 9.645 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001576/0.5781, allocations: 347.5 kB / 0.5597 GB, free: 9.305 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004958/0.5786, allocations: 204.3 kB / 0.5599 GB, free: 9.09 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000116/0.5787, allocations: 55.41 kB / 0.56 GB, free: 9.039 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004215/0.583, allocations: 7.306 MB / 0.5671 GB, free: 1.074 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.374e-06/0.583, allocations: 0 / 0.5671 GB, free: 1.074 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004576/0.5876, allocations: 2.936 MB / 0.57 GB, free: 14 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001019/0.5886, allocations: 335.2 kB / 0.5703 GB, free: 13.66 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004724/0.5891, allocations: 47.97 kB / 0.5703 GB, free: 13.61 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001158/0.5903, allocations: 63.86 kB / 0.5704 GB, free: 13.55 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002952/0.5906, allocations: 105.1 kB / 0.5705 GB, free: 13.45 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000103/0.5907, allocations: 40.28 kB / 0.5705 GB, free: 13.41 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001416/0.5921, allocations: 0.7178 MB / 0.5712 GB, free: 12.68 MB / 398.1 MB Notification: Performance of sort global known variables: time 2e-07/0.5921, allocations: 0 / 0.5712 GB, free: 12.68 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.002825/0.5949, allocations: 0.548 MB / 0.5718 GB, free: 12.14 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.000562/0.5955, allocations: 181 kB / 0.5719 GB, free: 11.96 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.005821/0.6013, allocations: 3.204 MB / 0.5751 GB, free: 8.672 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 7.354e-06/0.6014, allocations: 4 kB / 0.5751 GB, free: 8.668 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002431/0.6038, allocations: 1.402 MB / 0.5764 GB, free: 7.207 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00225/0.6061, allocations: 316.4 kB / 0.5767 GB, free: 6.898 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009037/0.6151, allocations: 5.876 MB / 0.5825 GB, free: 0.9844 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001613/0.6168, allocations: 1.584 MB / 0.584 GB, free: 15.37 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.001563/0.6183, allocations: 436.7 kB / 0.5844 GB, free: 14.93 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004836/0.6188, allocations: 107.4 kB / 0.5845 GB, free: 14.83 MB / 414.1 MB Notification: Performance of SimCode: time 7.11e-07/0.6189, allocations: 4 kB / 0.5845 GB, free: 14.82 MB / 414.1 MB Notification: Performance of Templates: time 0.04692/0.6658, allocations: 27.08 MB / 0.611 GB, free: 3.941 MB / 430.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)