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.001775/0.001775, allocations: 108.3 kB / 17.73 MB, free: 5.301 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.001947/0.001947, allocations: 187 kB / 18.67 MB, free: 4.375 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.788/1.788, allocations: 222.9 MB / 242.4 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1661/0.1661, allocations: 38.04 MB / 330.6 MB, free: 8.773 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001167/0.001167, allocations: 63.91 kB / 458.8 MB, free: 6.902 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3145/0.3157, allocations: 58.05 MB / 0.5047 GB, free: 7.68 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Wind.WindTurbine_PSGR): time 0.009616/0.3253, allocations: 10.96 MB / 0.5154 GB, free: 0 / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01075/0.3361, allocations: 7.087 MB / 0.5224 GB, free: 11.02 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001016/0.3372, allocations: 45.59 kB / 0.5224 GB, free: 11 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0192/0.3564, allocations: 12.92 MB / 0.535 GB, free: 6.379 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002878/0.3593, allocations: 1.097 MB / 0.5361 GB, free: 5.504 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0018/0.3611, allocations: 0.6516 MB / 0.5367 GB, free: 5.008 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.004857/0.3659, allocations: 3.91 MB / 0.5406 GB, free: 2.977 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001392/0.3674, allocations: 0.9868 MB / 0.5415 GB, free: 2.414 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001766/0.3691, allocations: 1.094 MB / 0.5426 GB, free: 1.789 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00213/0.3713, allocations: 1.401 MB / 0.544 GB, free: 0.5 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002547/0.3715, allocations: 144 kB / 0.5441 GB, free: 368 kB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009815/0.3725, allocations: 0.5032 MB / 0.5446 GB, free: 15.86 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000703/0.3732, allocations: 0.8885 MB / 0.5454 GB, free: 14.96 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000834/0.3741, allocations: 0.9601 MB / 0.5464 GB, free: 14 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002152/0.3762, allocations: 2.5 MB / 0.5488 GB, free: 11.49 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.487e-06/0.3763, allocations: 0 / 0.5488 GB, free: 11.49 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.292e-06/0.3763, allocations: 0 / 0.5488 GB, free: 11.49 MB / 414.1 MB Notification: Performance of Transformations before backend: time 1.682e-05/0.3763, allocations: 0 / 0.5488 GB, free: 11.49 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.003673/0.38, allocations: 2.154 MB / 0.5509 GB, free: 9.277 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.16e-05/0.38, allocations: 11.89 kB / 0.5509 GB, free: 9.266 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001555/0.3816, allocations: 330.3 kB / 0.5513 GB, free: 8.941 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002421/0.384, allocations: 1.284 MB / 0.5525 GB, free: 7.613 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.542e-05/0.3841, allocations: 102.7 kB / 0.5526 GB, free: 7.512 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000483/0.3846, allocations: 231.7 kB / 0.5528 GB, free: 7.285 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002814/0.3874, allocations: 2.153 MB / 0.5549 GB, free: 5.023 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.019e-05/0.3874, allocations: 11.92 kB / 0.5549 GB, free: 5.012 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001281/0.3876, allocations: 55.98 kB / 0.555 GB, free: 4.957 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005984/0.3882, allocations: 178.7 kB / 0.5552 GB, free: 4.781 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002589/0.3908, allocations: 1.767 MB / 0.5569 GB, free: 3.008 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.01017/0.401, allocations: 8.573 MB / 0.5653 GB, free: 10.01 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002227/0.4032, allocations: 1.813 MB / 0.567 GB, free: 8.078 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001185/0.4044, allocations: 0.7659 MB / 0.5678 GB, free: 7.309 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.796e-05/0.4045, allocations: 17 kB / 0.5678 GB, free: 7.293 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.862e-05/0.4045, allocations: 47.55 kB / 0.5678 GB, free: 7.234 MB / 430.1 MB Notification: Performance of pre-optimization done (n=122): time 2.835e-06/0.4045, allocations: 0 / 0.5678 GB, free: 7.234 MB / 430.1 MB Notification: Performance of matching and sorting (n=150): time 0.01689/0.4214, allocations: 7.552 MB / 0.5752 GB, free: 15.51 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.486e-05/0.4215, allocations: 94.42 kB / 0.5753 GB, free: 15.4 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001144/0.4227, allocations: 1.037 MB / 0.5763 GB, free: 14.35 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 9.047e-05/0.4228, allocations: 49.7 kB / 0.5764 GB, free: 14.3 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004768/0.4232, allocations: 0.7639 MB / 0.5771 GB, free: 13.52 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003719/0.4236, allocations: 0.5392 MB / 0.5776 GB, free: 12.97 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004512/0.4241, allocations: 335.3 kB / 0.578 GB, free: 12.64 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 8.46e-05/0.4242, allocations: 301.1 kB / 0.5783 GB, free: 12.34 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001156/0.4253, allocations: 0.773 MB / 0.579 GB, free: 11.57 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001413/0.4267, allocations: 1.247 MB / 0.5802 GB, free: 10.13 MB / 446.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.01456/0.4413, allocations: 5.689 MB / 0.5858 GB, free: 4.262 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.706e-06/0.4413, allocations: 4 kB / 0.5858 GB, free: 4.258 MB / 446.1 MB Notification: Performance of matching and sorting (n=236) (initialization): time 0.008382/0.4497, allocations: 3.921 MB / 0.5896 GB, free: 300 kB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.154e-05/0.4498, allocations: 8 kB / 0.5896 GB, free: 292 kB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.209e-05/0.4498, allocations: 16 kB / 0.5896 GB, free: 276 kB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005356/0.4552, allocations: 1.741 MB / 0.5913 GB, free: 14.52 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000913/0.4561, allocations: 271.5 kB / 0.5916 GB, free: 14.25 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1479/0.604, allocations: 18.48 MB / 0.6096 GB, free: 11.19 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002123/0.6062, allocations: 83.95 kB / 0.6097 GB, free: 11.11 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002261/0.6064, allocations: 75.98 kB / 0.6098 GB, free: 11.04 MB / 478.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.001425/0.6078, allocations: 0.5392 MB / 0.6103 GB, free: 10.49 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000353/0.6082, allocations: 142.2 kB / 0.6105 GB, free: 10.35 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007284/0.6155, allocations: 2.409 MB / 0.6128 GB, free: 7.867 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.278e-05/0.6155, allocations: 12 kB / 0.6128 GB, free: 7.855 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.659e-05/0.6156, allocations: 11.88 kB / 0.6128 GB, free: 7.844 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.472e-05/0.6156, allocations: 11.95 kB / 0.6128 GB, free: 7.832 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01418/0.6298, allocations: 4.312 MB / 0.6171 GB, free: 3.383 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.753e-05/0.6299, allocations: 4.312 kB / 0.6171 GB, free: 3.379 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002899/0.6328, allocations: 311.6 kB / 0.6174 GB, free: 3.074 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004408/0.6372, allocations: 0.5536 MB / 0.6179 GB, free: 2.508 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002526/0.6375, allocations: 55.97 kB / 0.6179 GB, free: 2.453 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0173/0.6548, allocations: 10.13 MB / 0.6278 GB, free: 7.629 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.424e-06/0.6549, allocations: 7.984 kB / 0.6278 GB, free: 7.621 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006713/0.6616, allocations: 3.216 MB / 0.631 GB, free: 4.293 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001016/0.6626, allocations: 351.2 kB / 0.6313 GB, free: 3.93 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003335/0.663, allocations: 47.92 kB / 0.6314 GB, free: 3.883 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009412/0.6639, allocations: 59.94 kB / 0.6314 GB, free: 3.824 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003164/0.6643, allocations: 121.1 kB / 0.6315 GB, free: 3.707 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001071/0.6644, allocations: 39.98 kB / 0.6316 GB, free: 3.668 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.001175/0.6656, allocations: 0.697 MB / 0.6323 GB, free: 2.965 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.6656, allocations: 0 / 0.6323 GB, free: 2.965 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.002336/0.6679, allocations: 0.5664 MB / 0.6328 GB, free: 2.398 MB / 494.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.0004693/0.6684, allocations: 178.3 kB / 0.633 GB, free: 2.215 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.005601/0.674, allocations: 3.109 MB / 0.636 GB, free: 15.06 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 5.681e-06/0.674, allocations: 3.938 kB / 0.636 GB, free: 15.05 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.002516/0.6765, allocations: 1.576 MB / 0.6376 GB, free: 13.41 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00175/0.6783, allocations: 319.1 kB / 0.6379 GB, free: 13.11 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008465/0.6868, allocations: 5.172 MB / 0.6429 GB, free: 7.867 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001731/0.6886, allocations: 1.588 MB / 0.6445 GB, free: 6.246 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004704/0.689, allocations: 107.4 kB / 0.6446 GB, free: 6.141 MB / 0.4981 GB Notification: Performance of SimCode: time 7.32e-07/0.6891, allocations: 0 / 0.6446 GB, free: 6.141 MB / 0.4981 GB Notification: Performance of Templates: time 0.07383/0.7629, allocations: 50.45 MB / 0.6938 GB, free: 3.688 MB / 0.545 GB 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)