Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_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-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_PSGI,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_PSGI") translateModel(PowerSystems.Examples.Wind.WindTurbine_PSGI,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_PSGI") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001523/0.001523, allocations: 101 kB / 17.59 MB, free: 5.422 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.001571/0.001571, allocations: 191.3 kB / 18.51 MB, free: 4.5 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.339/1.339, allocations: 222.9 MB / 242.2 MB, free: 15.21 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1894/0.1894, allocations: 38.05 MB / 330.4 MB, free: 8.836 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001459/0.001459, allocations: 71.02 kB / 399.5 MB, free: 34.07 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0981/0.09958, allocations: 58.06 MB / 457.5 MB, free: 8.074 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Wind.WindTurbine_PSGI): time 0.01233/0.1119, allocations: 11.02 MB / 468.6 MB, free: 13 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01018/0.1221, allocations: 7.082 MB / 475.6 MB, free: 5.898 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001265/0.1235, allocations: 51.69 kB / 475.7 MB, free: 5.848 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0197/0.1432, allocations: 12.86 MB / 488.5 MB, free: 8.973 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003219/0.1464, allocations: 1.128 MB / 489.7 MB, free: 7.84 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002192/0.1486, allocations: 0.6901 MB / 490.4 MB, free: 7.148 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.005657/0.1543, allocations: 4.005 MB / 494.4 MB, free: 3.137 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001739/0.1561, allocations: 1 MB / 495.4 MB, free: 2.113 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002015/0.1581, allocations: 1.109 MB / 496.5 MB, free: 1 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002307/0.1604, allocations: 1.444 MB / 497.9 MB, free: 15.55 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005899/0.161, allocations: 152 kB / 498.1 MB, free: 15.4 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001494/0.1625, allocations: 0.5227 MB / 498.6 MB, free: 14.88 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001231/0.1638, allocations: 0.9001 MB / 499.5 MB, free: 13.98 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001505/0.1653, allocations: 0.9834 MB / 0.4887 GB, free: 12.99 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002607/0.1679, allocations: 2.519 MB / 0.4912 GB, free: 10.46 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.232e-06/0.1679, allocations: 8 kB / 0.4912 GB, free: 10.45 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.362e-06/0.1679, allocations: 0 / 0.4912 GB, free: 10.45 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.877e-05/0.1679, allocations: 0 / 0.4912 GB, free: 10.45 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.004007/0.172, allocations: 2.221 MB / 0.4934 GB, free: 8.172 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.897e-05/0.172, allocations: 16.03 kB / 0.4934 GB, free: 8.156 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001769/0.1738, allocations: 322.3 kB / 0.4937 GB, free: 7.84 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002326/0.1761, allocations: 1.287 MB / 0.495 GB, free: 6.504 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.589e-05/0.1762, allocations: 102.7 kB / 0.4951 GB, free: 6.402 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005236/0.1767, allocations: 235.8 kB / 0.4953 GB, free: 6.172 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002994/0.1797, allocations: 2.192 MB / 0.4974 GB, free: 3.875 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.084e-05/0.1798, allocations: 11.84 kB / 0.4974 GB, free: 3.863 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000147/0.1799, allocations: 59.98 kB / 0.4975 GB, free: 3.805 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006423/0.1806, allocations: 182.8 kB / 0.4977 GB, free: 3.625 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00277/0.1834, allocations: 1.834 MB / 0.4995 GB, free: 1.785 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.2205/0.4039, allocations: 8.557 MB / 0.5078 GB, free: 52.35 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002484/0.4064, allocations: 1.902 MB / 0.5097 GB, free: 51.27 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001406/0.4078, allocations: 0.8059 MB / 0.5105 GB, free: 51 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.953e-05/0.4079, allocations: 19.59 kB / 0.5105 GB, free: 51 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.775e-05/0.4079, allocations: 54.22 kB / 0.5105 GB, free: 50.95 MB / 382.1 MB Notification: Performance of pre-optimization done (n=130): time 2.705e-06/0.4079, allocations: 0 / 0.5105 GB, free: 50.95 MB / 382.1 MB Notification: Performance of matching and sorting (n=145): time 0.01284/0.4208, allocations: 5.951 MB / 0.5163 GB, free: 48.07 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.543e-05/0.4208, allocations: 96.39 kB / 0.5164 GB, free: 47.97 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00157/0.4224, allocations: 1.067 MB / 0.5175 GB, free: 47.56 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 9.764e-05/0.4225, allocations: 55.17 kB / 0.5175 GB, free: 47.5 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000497/0.423, allocations: 0.7811 MB / 0.5183 GB, free: 46.89 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003906/0.4234, allocations: 0.5243 MB / 0.5188 GB, free: 46.49 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004667/0.4239, allocations: 332.9 kB / 0.5191 GB, free: 46.34 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.105e-05/0.424, allocations: 306.4 kB / 0.5194 GB, free: 46.04 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0012/0.4252, allocations: 0.7419 MB / 0.5201 GB, free: 45.8 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001437/0.4266, allocations: 1.226 MB / 0.5213 GB, free: 44.98 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.009933/0.4366, allocations: 4.345 MB / 0.5256 GB, free: 43.12 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.074e-05/0.4366, allocations: 5.5 kB / 0.5256 GB, free: 43.12 MB / 382.1 MB Notification: Performance of matching and sorting (n=237) (initialization): time 0.007155/0.4438, allocations: 3.966 MB / 0.5295 GB, free: 40.81 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.747e-05/0.4438, allocations: 11.25 kB / 0.5295 GB, free: 40.81 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.452e-05/0.4438, allocations: 14.56 kB / 0.5295 GB, free: 40.81 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003779/0.4476, allocations: 1.468 MB / 0.5309 GB, free: 40.18 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001004/0.4486, allocations: 294.9 kB / 0.5312 GB, free: 39.94 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.019/0.4677, allocations: 20.98 MB / 0.5517 GB, free: 18.02 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001441/0.4691, allocations: 79.94 kB / 0.5518 GB, free: 17.94 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001183/0.4693, allocations: 85.86 kB / 0.5518 GB, free: 17.86 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.0008213/0.4701, allocations: 0.5171 MB / 0.5523 GB, free: 17.34 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001929/0.4703, allocations: 146.2 kB / 0.5525 GB, free: 17.19 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002712/0.473, allocations: 2.217 MB / 0.5547 GB, free: 14.88 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.606e-06/0.473, allocations: 15.98 kB / 0.5547 GB, free: 14.86 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.212e-06/0.473, allocations: 4 kB / 0.5547 GB, free: 14.86 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.095e-05/0.4731, allocations: 3.984 kB / 0.5547 GB, free: 14.85 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004906/0.478, allocations: 3.987 MB / 0.5586 GB, free: 10.73 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.801e-06/0.478, allocations: 4 kB / 0.5586 GB, free: 10.72 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001504/0.4795, allocations: 339.8 kB / 0.5589 GB, free: 10.39 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004417/0.4799, allocations: 212.1 kB / 0.5591 GB, free: 10.17 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.116e-05/0.48, allocations: 47.97 kB / 0.5591 GB, free: 10.12 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003664/0.4837, allocations: 7.943 MB / 0.5669 GB, free: 1.492 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.056e-06/0.4837, allocations: 4 kB / 0.5669 GB, free: 1.488 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003571/0.4873, allocations: 2.916 MB / 0.5698 GB, free: 14.44 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005375/0.4879, allocations: 347.1 kB / 0.5701 GB, free: 14.08 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002029/0.4881, allocations: 51.89 kB / 0.5701 GB, free: 14.03 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007451/0.4888, allocations: 63.88 kB / 0.5702 GB, free: 13.97 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002072/0.489, allocations: 101.1 kB / 0.5703 GB, free: 13.87 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.771e-05/0.4891, allocations: 39.98 kB / 0.5703 GB, free: 13.83 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0008307/0.49, allocations: 0.7139 MB / 0.571 GB, free: 13.11 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.49, allocations: 0 / 0.571 GB, free: 13.11 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001862/0.4918, allocations: 0.5405 MB / 0.5716 GB, free: 12.57 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.0003391/0.4922, allocations: 189.7 kB / 0.5717 GB, free: 12.38 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.006662/0.4989, allocations: 4.208 MB / 0.5758 GB, free: 8.113 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.966e-06/0.4989, allocations: 4.125 kB / 0.5758 GB, free: 8.109 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001965/0.5009, allocations: 1.407 MB / 0.5772 GB, free: 6.641 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001316/0.5022, allocations: 331 kB / 0.5775 GB, free: 6.32 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007339/0.5095, allocations: 5.318 MB / 0.5827 GB, free: 0.9648 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001205/0.5108, allocations: 1.583 MB / 0.5843 GB, free: 15.35 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003853/0.5112, allocations: 123.4 kB / 0.5844 GB, free: 15.23 MB / 414.1 MB Notification: Performance of SimCode: time 4.21e-07/0.5112, allocations: 0 / 0.5844 GB, free: 15.23 MB / 414.1 MB Notification: Performance of Templates: time 0.05815/0.5693, allocations: 58.99 MB / 0.642 GB, free: 4.223 MB / 462.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.Wind.WindTurbine_PSGI.makefile (rm -f PowerSystems_latest_PowerSystems.Examples.Wind.WindTurbine_PSGI.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.Wind.WindTurbine_PSGI.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.Wind.WindTurbine_PSGI.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.Wind.WindTurbine_PSGI.sim & ./PowerSystems_latest_PowerSystems.Examples.Wind.WindTurbine_PSGI -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.Wind.WindTurbine_PSGI.pipe 2>&1)