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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.0008627/0.0008628, allocations: 92.75 kB / 16.65 MB, free: 6.59 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.001501/0.001501, allocations: 184.2 kB / 17.57 MB, free: 6.199 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.465/1.465, allocations: 205.4 MB / 223.7 MB, free: 13.07 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1726/0.1726, allocations: 38.05 MB / 310.1 MB, free: 5.914 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0005805/0.0005806, allocations: 12 kB / 377.2 MB, free: 2.727 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2996/0.3002, allocations: 56.34 MB / 433.5 MB, free: 18.68 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Wind.WindTurbine_PSGR): time 0.01178/0.312, allocations: 12.42 MB / 445.9 MB, free: 6.199 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01331/0.3254, allocations: 7.827 MB / 453.7 MB, free: 14.35 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002543/0.3279, allocations: 83.44 kB / 453.8 MB, free: 14.27 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02114/0.3491, allocations: 12.5 MB / 466.3 MB, free: 1.75 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004026/0.3532, allocations: 1.047 MB / 467.4 MB, free: 0.6992 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00223/0.3554, allocations: 0.585 MB / 468 MB, free: 116 kB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.008067/0.3635, allocations: 5.553 MB / 473.5 MB, free: 10.55 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002603/0.3662, allocations: 1.313 MB / 474.8 MB, free: 9.184 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002025/0.3682, allocations: 0.8828 MB / 475.7 MB, free: 8.297 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001938/0.3702, allocations: 1.421 MB / 477.1 MB, free: 6.871 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001652/0.3703, allocations: 76 kB / 477.2 MB, free: 6.797 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001047/0.3714, allocations: 463.2 kB / 477.6 MB, free: 6.344 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008863/0.3723, allocations: 0.8181 MB / 478.5 MB, free: 5.523 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001087/0.3734, allocations: 0.8876 MB / 479.4 MB, free: 4.625 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002512/0.3759, allocations: 2.355 MB / 481.7 MB, free: 2.262 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.989e-06/0.3759, allocations: 0 / 481.7 MB, free: 2.262 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.3759, allocations: 0 / 481.7 MB, free: 2.262 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.544e-05/0.376, allocations: 0 / 481.7 MB, free: 2.262 MB / 350.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.003938/0.3799, allocations: 1.835 MB / 483.5 MB, free: 376 kB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.38e-05/0.38, allocations: 8.031 kB / 483.6 MB, free: 368 kB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001745/0.3817, allocations: 314.4 kB / 483.9 MB, free: 52 kB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002397/0.3841, allocations: 1.245 MB / 485.1 MB, free: 14.76 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.716e-05/0.3842, allocations: 102.7 kB / 485.2 MB, free: 14.66 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005735/0.3848, allocations: 227.8 kB / 485.4 MB, free: 14.43 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003318/0.3881, allocations: 2.153 MB / 487.6 MB, free: 12.17 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.238e-05/0.3882, allocations: 15.78 kB / 487.6 MB, free: 12.16 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001557/0.3884, allocations: 59.97 kB / 487.7 MB, free: 12.1 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006356/0.389, allocations: 186.7 kB / 487.8 MB, free: 11.91 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002795/0.3918, allocations: 1.767 MB / 489.6 MB, free: 10.14 MB / 366.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.0113/0.4031, allocations: 8.624 MB / 498.2 MB, free: 1.098 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002572/0.4057, allocations: 1.825 MB / 0.4883 GB, free: 15.15 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001345/0.4071, allocations: 0.7737 MB / 0.4891 GB, free: 14.37 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.084e-05/0.4072, allocations: 20.91 kB / 0.4891 GB, free: 14.35 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.681e-05/0.4072, allocations: 47.5 kB / 0.4892 GB, free: 14.3 MB / 382.1 MB Notification: Performance of pre-optimization done (n=122): time 3.256e-06/0.4072, allocations: 0 / 0.4892 GB, free: 14.3 MB / 382.1 MB Notification: Performance of matching and sorting (n=137): time 0.01096/0.4182, allocations: 5.491 MB / 0.4945 GB, free: 8.648 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.485e-05/0.4183, allocations: 90.42 kB / 0.4946 GB, free: 8.543 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001249/0.4195, allocations: 1.041 MB / 0.4956 GB, free: 7.488 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 9.659e-05/0.4196, allocations: 53.7 kB / 0.4957 GB, free: 7.43 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005206/0.4202, allocations: 0.7716 MB / 0.4964 GB, free: 6.645 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004078/0.4206, allocations: 0.489 MB / 0.4969 GB, free: 6.148 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001846/0.4208, allocations: 157.6 kB / 0.4971 GB, free: 5.988 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001118/0.4209, allocations: 301.1 kB / 0.4973 GB, free: 5.691 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001127/0.422, allocations: 0.7261 MB / 0.498 GB, free: 4.965 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001408/0.4235, allocations: 1.196 MB / 0.4992 GB, free: 3.57 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.01171/0.4352, allocations: 5.014 MB / 0.5041 GB, free: 14.36 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.777e-05/0.4352, allocations: 4 kB / 0.5041 GB, free: 14.35 MB / 398.1 MB Notification: Performance of matching and sorting (n=225) (initialization): time 0.007579/0.4428, allocations: 3.607 MB / 0.5076 GB, free: 10.66 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.753e-05/0.4429, allocations: 12 kB / 0.5076 GB, free: 10.65 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.68e-05/0.4429, allocations: 12 kB / 0.5077 GB, free: 10.64 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003818/0.4467, allocations: 1.264 MB / 0.5089 GB, free: 9.355 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001323/0.4481, allocations: 323.5 kB / 0.5092 GB, free: 9.039 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.282/0.7301, allocations: 14.67 MB / 0.5235 GB, free: 82.41 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001575/0.7317, allocations: 77.09 kB / 0.5236 GB, free: 82.38 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001566/0.7319, allocations: 73.97 kB / 0.5237 GB, free: 82.37 MB / 398.1 MB Warning: The initial conditions are over specified. The following 4 initial equations are redundant, so they are removed from the initialization sytem: 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.001125/0.733, allocations: 0.515 MB / 0.5242 GB, free: 82.11 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002313/0.7332, allocations: 140.9 kB / 0.5243 GB, free: 82.11 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00345/0.7367, allocations: 2.152 MB / 0.5264 GB, free: 81.03 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.113e-05/0.7367, allocations: 15.78 kB / 0.5264 GB, free: 81.03 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.261e-06/0.7367, allocations: 0.7969 kB / 0.5264 GB, free: 81.03 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.09e-05/0.7368, allocations: 14.16 kB / 0.5264 GB, free: 81.02 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005758/0.7425, allocations: 3.855 MB / 0.5302 GB, free: 79.28 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.036e-05/0.7426, allocations: 10.23 kB / 0.5302 GB, free: 79.27 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001657/0.7442, allocations: 329.7 kB / 0.5305 GB, free: 79.25 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006273/0.7449, allocations: 204.5 kB / 0.5307 GB, free: 79.18 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001395/0.745, allocations: 47.56 kB / 0.5308 GB, free: 79.16 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004324/0.7493, allocations: 7.324 MB / 0.5379 GB, free: 72.28 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.28e-06/0.7494, allocations: 11.33 kB / 0.5379 GB, free: 72.28 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003468/0.7528, allocations: 2.838 MB / 0.5407 GB, free: 70.91 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004663/0.7533, allocations: 337.7 kB / 0.541 GB, free: 70.77 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001644/0.7535, allocations: 43.44 kB / 0.5411 GB, free: 70.75 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000681/0.7542, allocations: 60.48 kB / 0.5411 GB, free: 70.74 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000222/0.7544, allocations: 96.52 kB / 0.5412 GB, free: 70.72 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.668e-05/0.7545, allocations: 43.88 kB / 0.5413 GB, free: 70.71 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0007859/0.7553, allocations: 0.6926 MB / 0.5419 GB, free: 70.44 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.5e-07/0.7553, allocations: 0 / 0.5419 GB, free: 70.44 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001687/0.757, allocations: 0.5086 MB / 0.5424 GB, free: 70.38 MB / 398.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.0003716/0.7574, allocations: 176 kB / 0.5426 GB, free: 70.26 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.003606/0.761, allocations: 2.818 MB / 0.5454 GB, free: 68.5 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.677e-06/0.761, allocations: 0 / 0.5454 GB, free: 68.5 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001555/0.7626, allocations: 1.381 MB / 0.5467 GB, free: 67.05 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001534/0.7641, allocations: 304.5 kB / 0.547 GB, free: 66.77 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006094/0.7702, allocations: 6.095 MB / 0.5529 GB, free: 60.67 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008795/0.7711, allocations: 1.549 MB / 0.5545 GB, free: 59.09 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.00109/0.7722, allocations: 440.1 kB / 0.5549 GB, free: 58.65 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003117/0.7725, allocations: 99.42 kB / 0.555 GB, free: 58.55 MB / 398.1 MB Notification: Performance of SimCode: time 6.52e-07/0.7725, allocations: 0 / 0.555 GB, free: 58.55 MB / 398.1 MB Notification: Performance of Templates: time 0.03234/0.8049, allocations: 25.27 MB / 0.5797 GB, free: 33.34 MB / 398.1 MB make -j1 -f PowerSystems_PowerSystems.Examples.Wind.WindTurbine_PSGR.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: