Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/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_PSGR,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|meter.i.1.|meter.i.2.|meter.i.3.|meter.p.1.|meter.p.2.|meter.p.3.|meter.v.1.|meter.v.2.|meter.v.3.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.Wind.WindTurbine_PSGR") translateModel(PowerSystems.Examples.Wind.WindTurbine_PSGR,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|meter.i.1.|meter.i.2.|meter.i.3.|meter.p.1.|meter.p.2.|meter.p.3.|meter.v.1.|meter.v.2.|meter.v.3.",fileNamePrefix="PowerSystems_latest_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.001809/0.001809, allocations: 114.9 kB / 17.29 MB, free: 6.219 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.002122/0.002122, allocations: 197.3 kB / 18.21 MB, free: 5.289 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.404/2.404, allocations: 222.9 MB / 241.9 MB, free: 15.41 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.3806/0.3806, allocations: 38.03 MB / 330.1 MB, free: 9.035 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002228/0.002228, allocations: 66.12 kB / 398.9 MB, free: 34.45 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2085/0.2107, allocations: 58.07 MB / 457 MB, free: 8.434 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Wind.WindTurbine_PSGR): time 0.02316/0.2339, allocations: 12.97 MB / 470 MB, free: 11.4 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01923/0.2532, allocations: 7.687 MB / 477.7 MB, free: 3.691 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00294/0.2562, allocations: 83.44 kB / 477.8 MB, free: 3.609 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.03598/0.2922, allocations: 13.37 MB / 491.1 MB, free: 6.215 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005061/0.2973, allocations: 1.031 MB / 492.2 MB, free: 5.18 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003226/0.3006, allocations: 0.5968 MB / 492.8 MB, free: 4.582 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.009568/0.3102, allocations: 4 MB / 496.8 MB, free: 0.5703 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003783/0.314, allocations: 1.047 MB / 497.8 MB, free: 15.5 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004005/0.3181, allocations: 1.086 MB / 498.9 MB, free: 14.41 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004394/0.3225, allocations: 1.507 MB / 0.4887 GB, free: 12.9 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009419/0.3235, allocations: 148 kB / 0.4888 GB, free: 12.76 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002643/0.3262, allocations: 0.5071 MB / 0.4893 GB, free: 12.25 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001964/0.3282, allocations: 0.8962 MB / 0.4902 GB, free: 11.35 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002007/0.3302, allocations: 0.9562 MB / 0.4911 GB, free: 10.39 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003816/0.3341, allocations: 1.914 MB / 0.493 GB, free: 8.473 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.003e-06/0.3341, allocations: 0 / 0.493 GB, free: 8.473 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.585e-06/0.3341, allocations: 0 / 0.493 GB, free: 8.473 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.323e-05/0.3342, allocations: 3.938 kB / 0.493 GB, free: 8.469 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: 397 * Number of variables: 397 Notification: Performance of Generate backend data structure: time 0.007776/0.342, allocations: 2.162 MB / 0.4951 GB, free: 6.246 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.909e-05/0.3421, allocations: 15.89 kB / 0.4951 GB, free: 6.23 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003043/0.3451, allocations: 318.4 kB / 0.4954 GB, free: 5.918 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004343/0.3495, allocations: 1.233 MB / 0.4966 GB, free: 4.637 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001194/0.3496, allocations: 98.66 kB / 0.4967 GB, free: 4.539 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009811/0.3506, allocations: 231.8 kB / 0.4969 GB, free: 4.312 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006046/0.3567, allocations: 2.149 MB / 0.499 GB, free: 2.055 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.1e-05/0.3568, allocations: 15.78 kB / 0.499 GB, free: 2.039 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002444/0.3571, allocations: 55.98 kB / 0.4991 GB, free: 1.984 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00107/0.3582, allocations: 186.7 kB / 0.4993 GB, free: 1.801 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005174/0.3633, allocations: 1.756 MB / 0.501 GB, free: 40 kB / 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.338/0.7014, allocations: 8.61 MB / 0.5094 GB, free: 52.37 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003742/0.7052, allocations: 1.812 MB / 0.5112 GB, free: 51.3 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002189/0.7074, allocations: 0.7811 MB / 0.5119 GB, free: 51.04 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000138/0.7076, allocations: 19.23 kB / 0.5119 GB, free: 51.04 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.631e-05/0.7076, allocations: 49.22 kB / 0.512 GB, free: 50.99 MB / 382.1 MB Notification: Performance of pre-optimization done (n=122): time 5.079e-06/0.7076, allocations: 3.906 kB / 0.512 GB, free: 50.99 MB / 382.1 MB Notification: Performance of matching and sorting (n=137): time 0.01761/0.7252, allocations: 5.45 MB / 0.5173 GB, free: 48.35 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.731e-05/0.7254, allocations: 92.33 kB / 0.5174 GB, free: 48.25 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002276/0.7277, allocations: 1.037 MB / 0.5184 GB, free: 47.85 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002192/0.7279, allocations: 50.27 kB / 0.5185 GB, free: 47.8 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006891/0.7286, allocations: 0.761 MB / 0.5192 GB, free: 47.2 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005718/0.7292, allocations: 0.4973 MB / 0.5197 GB, free: 46.82 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006941/0.7299, allocations: 315.9 kB / 0.52 GB, free: 46.67 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.918e-05/0.73, allocations: 307.4 kB / 0.5203 GB, free: 46.37 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001963/0.7319, allocations: 0.7179 MB / 0.521 GB, free: 46.15 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00203/0.734, allocations: 1.181 MB / 0.5221 GB, free: 45.36 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.0169/0.7509, allocations: 5.006 MB / 0.527 GB, free: 42.85 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.071e-05/0.751, allocations: 3.844 kB / 0.527 GB, free: 42.85 MB / 382.1 MB Notification: Performance of matching and sorting (n=225) (initialization): time 0.01049/0.7615, allocations: 3.598 MB / 0.5306 GB, free: 40.8 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.427e-05/0.7616, allocations: 14.14 kB / 0.5306 GB, free: 40.8 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.567e-05/0.7616, allocations: 15.25 kB / 0.5306 GB, free: 40.8 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005304/0.7669, allocations: 1.275 MB / 0.5318 GB, free: 39.68 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001934/0.7689, allocations: 315.5 kB / 0.5321 GB, free: 39.38 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02561/0.7945, allocations: 16.02 MB / 0.5478 GB, free: 22.69 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002104/0.7967, allocations: 75.95 kB / 0.5478 GB, free: 22.62 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000254/0.797, allocations: 68 kB / 0.5479 GB, free: 22.55 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 5.051577893736758e-05 * $DER.generator.i_s[3] = 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 (155): * Single equations (assignments): 150 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * 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): 3 systems {(1,1,100.0%), (1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(5,23), (21,20)} Notification: Performance of prepare postOptimizeDAE: time 0.001315/0.7983, allocations: 0.5316 MB / 0.5484 GB, free: 22.02 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000503/0.7988, allocations: 143 kB / 0.5486 GB, free: 21.88 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004448/0.8033, allocations: 2.139 MB / 0.5507 GB, free: 19.63 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.513e-05/0.8033, allocations: 17.2 kB / 0.5507 GB, free: 19.62 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.178e-05/0.8033, allocations: 7.922 kB / 0.5507 GB, free: 19.61 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.076e-05/0.8034, allocations: 7.984 kB / 0.5507 GB, free: 19.6 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009303/0.8127, allocations: 3.845 MB / 0.5544 GB, free: 15.62 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.416e-05/0.8127, allocations: 0 / 0.5544 GB, free: 15.62 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002796/0.8156, allocations: 320.7 kB / 0.5548 GB, free: 15.31 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009358/0.8165, allocations: 212 kB / 0.555 GB, free: 15.09 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002436/0.8168, allocations: 47.97 kB / 0.555 GB, free: 15.04 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007087/0.8239, allocations: 7.936 MB / 0.5627 GB, free: 6.422 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.48e-06/0.8239, allocations: 0 / 0.5627 GB, free: 6.422 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006783/0.8307, allocations: 2.824 MB / 0.5655 GB, free: 3.469 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007348/0.8315, allocations: 331.2 kB / 0.5658 GB, free: 3.125 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003588/0.8318, allocations: 43.98 kB / 0.5659 GB, free: 3.082 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001045/0.8329, allocations: 63.88 kB / 0.5659 GB, free: 3.02 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002355/0.8332, allocations: 105 kB / 0.566 GB, free: 2.918 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.969e-05/0.8333, allocations: 44.11 kB / 0.5661 GB, free: 2.875 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0009037/0.8342, allocations: 0.6892 MB / 0.5667 GB, free: 2.18 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.8342, allocations: 0 / 0.5667 GB, free: 2.18 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.003059/0.8372, allocations: 0.5076 MB / 0.5672 GB, free: 1.676 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 25 (inertia.phi,inertia.w,generator.i_s[1],generator.i_s[2],generator.i_s[3],generator.i_rd[1],generator.i_rq[1],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 (126): * Single equations (assignments): 120 * 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.0005332/0.8378, allocations: 176.1 kB / 0.5674 GB, free: 1.504 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.01017/0.848, allocations: 3.688 MB / 0.571 GB, free: 13.77 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 7.093e-06/0.848, allocations: 0 / 0.571 GB, free: 13.77 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003356/0.8514, allocations: 1.383 MB / 0.5724 GB, free: 12.33 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003114/0.8545, allocations: 322.3 kB / 0.5727 GB, free: 12.02 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01696/0.8715, allocations: 5.835 MB / 0.5784 GB, free: 6.156 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002672/0.8743, allocations: 1.551 MB / 0.5799 GB, free: 4.574 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001073/0.8754, allocations: 115.4 kB / 0.58 GB, free: 4.461 MB / 398.1 MB Notification: Performance of SimCode: time 1.232e-06/0.8754, allocations: 0 / 0.58 GB, free: 4.461 MB / 398.1 MB Notification: Performance of Templates: time 0.1416/1.017, allocations: 51.6 MB / 0.6304 GB, free: 0.8477 MB / 446.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.Wind.WindTurbine_PSGR.makefile (rm -f PowerSystems_latest_PowerSystems.Examples.Wind.WindTurbine_PSGR.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.Wind.WindTurbine_PSGR.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.Wind.WindTurbine_PSGR.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.Wind.WindTurbine_PSGR.sim & ./PowerSystems_latest_PowerSystems.Examples.Wind.WindTurbine_PSGR -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.Wind.WindTurbine_PSGR.pipe 2>&1)