Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_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/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_PSGR,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.Wind.WindTurbine_PSGR") translateModel(PowerSystems.Examples.Wind.WindTurbine_PSGR,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_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.001983/0.001983, allocations: 112.3 kB / 17.29 MB, free: 6.059 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.003188/0.003188, allocations: 197.3 kB / 18.21 MB, free: 5.145 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.848/2.848, allocations: 222.9 MB / 241.9 MB, free: 13.66 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.3461/0.3461, allocations: 38.02 MB / 330 MB, free: 8.723 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002776/0.002776, allocations: 63.02 kB / 398.9 MB, free: 34.36 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2139/0.2167, allocations: 58.06 MB / 457 MB, free: 8.375 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Wind.WindTurbine_PSGR): time 0.02833/0.2451, allocations: 12.99 MB / 470 MB, free: 11.33 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02569/0.2709, allocations: 7.683 MB / 477.7 MB, free: 3.625 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004223/0.2752, allocations: 87.44 kB / 477.7 MB, free: 3.539 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.04879/0.324, allocations: 13.38 MB / 491.1 MB, free: 6.145 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007182/0.3313, allocations: 1.031 MB / 492.1 MB, free: 5.109 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004037/0.3354, allocations: 0.5928 MB / 492.7 MB, free: 4.516 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0133/0.3487, allocations: 4 MB / 496.7 MB, free: 0.5 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00504/0.3539, allocations: 1.039 MB / 497.8 MB, free: 15.44 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005258/0.3592, allocations: 1.101 MB / 498.9 MB, free: 14.34 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00501/0.3643, allocations: 1.499 MB / 0.4887 GB, free: 12.83 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001086/0.3654, allocations: 144 kB / 0.4888 GB, free: 12.69 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003062/0.3686, allocations: 0.511 MB / 0.4893 GB, free: 12.18 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0027/0.3713, allocations: 0.8923 MB / 0.4902 GB, free: 11.29 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004202/0.3756, allocations: 0.9563 MB / 0.4911 GB, free: 10.32 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005372/0.381, allocations: 1.918 MB / 0.493 GB, free: 8.402 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.102e-05/0.381, allocations: 0 / 0.493 GB, free: 8.402 MB / 382.1 MB Notification: Performance of FrontEnd: time 3.296e-06/0.3811, allocations: 0 / 0.493 GB, free: 8.402 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001605/0.3812, allocations: 0 / 0.493 GB, free: 8.402 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.01062/0.3919, allocations: 2.162 MB / 0.4951 GB, free: 6.18 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 8.999e-05/0.392, allocations: 15.89 kB / 0.4951 GB, free: 6.164 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003307/0.3953, allocations: 318.4 kB / 0.4954 GB, free: 5.852 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005234/0.4006, allocations: 1.229 MB / 0.4966 GB, free: 4.574 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001968/0.4008, allocations: 110.6 kB / 0.4967 GB, free: 4.465 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001341/0.4022, allocations: 227.8 kB / 0.4969 GB, free: 4.242 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007485/0.4097, allocations: 2.151 MB / 0.499 GB, free: 1.984 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001528/0.4099, allocations: 11.84 kB / 0.499 GB, free: 1.973 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004576/0.4104, allocations: 59.98 kB / 0.4991 GB, free: 1.914 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0009925/0.4114, allocations: 178.6 kB / 0.4993 GB, free: 1.738 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.5688/0.9803, allocations: 1.756 MB / 0.501 GB, free: 56.94 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.02876/1.009, allocations: 8.616 MB / 0.5094 GB, free: 52.08 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005266/1.014, allocations: 1.814 MB / 0.5112 GB, free: 51 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002998/1.017, allocations: 0.7752 MB / 0.5119 GB, free: 50.75 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001613/1.018, allocations: 18.7 kB / 0.5119 GB, free: 50.75 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001193/1.018, allocations: 56.41 kB / 0.512 GB, free: 50.7 MB / 382.1 MB Notification: Performance of pre-optimization done (n=122): time 7.554e-06/1.018, allocations: 0 / 0.512 GB, free: 50.7 MB / 382.1 MB Notification: Performance of matching and sorting (n=137): time 0.02561/1.043, allocations: 5.445 MB / 0.5173 GB, free: 48.06 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001079/1.044, allocations: 92.59 kB / 0.5174 GB, free: 47.96 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003457/1.047, allocations: 1.033 MB / 0.5184 GB, free: 47.56 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002815/1.047, allocations: 54.89 kB / 0.5185 GB, free: 47.51 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001188/1.049, allocations: 0.7641 MB / 0.5192 GB, free: 46.91 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009429/1.05, allocations: 0.4977 MB / 0.5197 GB, free: 46.53 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001061/1.051, allocations: 313.1 kB / 0.52 GB, free: 46.38 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001522/1.051, allocations: 305.1 kB / 0.5203 GB, free: 46.08 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002579/1.053, allocations: 0.7236 MB / 0.521 GB, free: 45.86 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003097/1.057, allocations: 1.18 MB / 0.5221 GB, free: 45.07 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.02287/1.079, allocations: 5.011 MB / 0.527 GB, free: 42.6 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.339e-05/1.08, allocations: 3.938 kB / 0.527 GB, free: 42.6 MB / 382.1 MB Notification: Performance of matching and sorting (n=225) (initialization): time 0.01272/1.092, allocations: 3.598 MB / 0.5305 GB, free: 40.55 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.661e-05/1.092, allocations: 13.88 kB / 0.5306 GB, free: 40.55 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.503e-05/1.092, allocations: 15.09 kB / 0.5306 GB, free: 40.55 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006502/1.099, allocations: 1.267 MB / 0.5318 GB, free: 39.7 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002331/1.101, allocations: 315.5 kB / 0.5321 GB, free: 39.39 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03336/1.135, allocations: 16.02 MB / 0.5478 GB, free: 22.71 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002946/1.138, allocations: 83.91 kB / 0.5478 GB, free: 22.63 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003499/1.138, allocations: 68 kB / 0.5479 GB, free: 22.56 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.001882/1.14, allocations: 0.5138 MB / 0.5484 GB, free: 22.04 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005678/1.141, allocations: 147.2 kB / 0.5485 GB, free: 21.89 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006196/1.147, allocations: 2.138 MB / 0.5506 GB, free: 19.65 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.602e-05/1.147, allocations: 23.92 kB / 0.5507 GB, free: 19.63 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.184e-05/1.147, allocations: 0 / 0.5507 GB, free: 19.63 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.457e-05/1.147, allocations: 10.45 kB / 0.5507 GB, free: 19.62 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01052/1.157, allocations: 3.848 MB / 0.5544 GB, free: 15.64 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.403e-05/1.158, allocations: 0 / 0.5544 GB, free: 15.64 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002755/1.16, allocations: 315.6 kB / 0.5547 GB, free: 15.33 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008997/1.161, allocations: 212.2 kB / 0.5549 GB, free: 15.11 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002098/1.162, allocations: 47.97 kB / 0.555 GB, free: 15.06 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008401/1.17, allocations: 7.933 MB / 0.5627 GB, free: 6.441 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.616e-06/1.17, allocations: 7.625 kB / 0.5627 GB, free: 6.438 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007771/1.178, allocations: 2.825 MB / 0.5655 GB, free: 3.484 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001566/1.18, allocations: 335.2 kB / 0.5658 GB, free: 3.137 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006758/1.18, allocations: 43.98 kB / 0.5658 GB, free: 3.094 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00278/1.183, allocations: 63.81 kB / 0.5659 GB, free: 3.031 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005015/1.184, allocations: 101.1 kB / 0.566 GB, free: 2.934 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001827/1.184, allocations: 39.98 kB / 0.566 GB, free: 2.895 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002269/1.186, allocations: 0.6931 MB / 0.5667 GB, free: 2.195 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.6e-07/1.186, allocations: 0 / 0.5667 GB, free: 2.195 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.004841/1.191, allocations: 0.5076 MB / 0.5672 GB, free: 1.691 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.0009819/1.192, allocations: 177.3 kB / 0.5674 GB, free: 1.52 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0136/1.206, allocations: 3.691 MB / 0.571 GB, free: 13.79 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.192e-05/1.206, allocations: 0 / 0.571 GB, free: 13.79 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005103/1.211, allocations: 1.374 MB / 0.5723 GB, free: 12.35 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00542/1.216, allocations: 317.4 kB / 0.5726 GB, free: 12.04 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02282/1.239, allocations: 5.84 MB / 0.5783 GB, free: 6.168 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003806/1.243, allocations: 1.551 MB / 0.5799 GB, free: 4.586 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001291/1.245, allocations: 111.4 kB / 0.58 GB, free: 4.477 MB / 398.1 MB Notification: Performance of SimCode: time 1.783e-06/1.245, allocations: 0 / 0.58 GB, free: 4.477 MB / 398.1 MB Notification: Performance of Templates: time 0.1361/1.381, allocations: 51.61 MB / 0.6304 GB, free: 0.8594 MB / 446.1 MB make -j1 -f PowerSystems_PowerSystems.Examples.Wind.WindTurbine_PSGR.makefile (rm -f PowerSystems_PowerSystems.Examples.Wind.WindTurbine_PSGR.pipe ; mkfifo PowerSystems_PowerSystems.Examples.Wind.WindTurbine_PSGR.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.Wind.WindTurbine_PSGR.pipe >> ../files/PowerSystems_PowerSystems.Examples.Wind.WindTurbine_PSGR.sim & ./PowerSystems_PowerSystems.Examples.Wind.WindTurbine_PSGR -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.Wind.WindTurbine_PSGR.pipe 2>&1)