Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.TurbineGenerator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(PowerSystems.Examples.AC3ph.Generation.TurbineGenerator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|generator.powerAngle|sensor.p.1.|sensor.p.2.|sensor.p.3.|sensor1.p.1.|sensor1.p.2.|sensor1.p.3.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.TurbineGenerator") translateModel(PowerSystems.Examples.AC3ph.Generation.TurbineGenerator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|generator.powerAngle|sensor.p.1.|sensor.p.2.|sensor.p.3.|sensor1.p.1.|sensor1.p.2.|sensor1.p.3.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.TurbineGenerator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00102/0.00102, allocations: 176.4 kB / 8.349 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.444/1.444, allocations: 205.3 MB / 214.1 MB, free: 14.14 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008212/0.0008212, allocations: 94.08 kB / 262.1 MB, free: 13.88 MB / 219.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1666/0.1666, allocations: 37.99 MB / 348 MB, free: 7.785 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 1.911e-05/1.914e-05, allocations: 0 / 410.6 MB, free: 46.96 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1111/0.1112, allocations: 56.33 MB / 466.9 MB, free: 6.562 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3667/0.478, allocations: 112.5 MB / 0.5658 GB, free: 14.38 MB / 411.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002515/0.4783, allocations: 87.95 kB / 0.5659 GB, free: 14.3 MB / 411.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.08404/0.5623, allocations: 29.71 MB / 0.5949 GB, free: 264 kB / 427.1 MB Notification: Performance of FrontEnd: time 1.713e-06/0.5624, allocations: 0 / 0.5949 GB, free: 264 kB / 427.1 MB Notification: Performance of Transformations before backend: time 6.808e-05/0.5625, allocations: 20 kB / 0.595 GB, free: 244 kB / 427.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 222 * Number of variables: 222 Notification: Performance of Generate backend data structure: time 0.002557/0.565, allocations: 1.033 MB / 0.596 GB, free: 15.15 MB / 443.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.274e-05/0.5651, allocations: 12.03 kB / 0.596 GB, free: 15.14 MB / 443.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001271/0.5664, allocations: 198.5 kB / 0.5962 GB, free: 14.95 MB / 443.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003246/0.5696, allocations: 1.206 MB / 0.5973 GB, free: 13.7 MB / 443.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.334e-05/0.5697, allocations: 28 kB / 0.5974 GB, free: 13.67 MB / 443.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000244/0.5699, allocations: 52 kB / 0.5974 GB, free: 13.62 MB / 443.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001302/0.5713, allocations: 0.7067 MB / 0.5981 GB, free: 12.91 MB / 443.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001559/0.5728, allocations: 0.9483 MB / 0.599 GB, free: 11.92 MB / 443.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.114e-05/0.5729, allocations: 11.84 kB / 0.599 GB, free: 11.91 MB / 443.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.589e-05/0.573, allocations: 3.938 kB / 0.599 GB, free: 11.9 MB / 443.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001108/0.5731, allocations: 61.97 kB / 0.5991 GB, free: 11.84 MB / 443.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005076/0.5782, allocations: 3.822 MB / 0.6028 GB, free: 7.836 MB / 443.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006496/0.5788, allocations: 0.504 MB / 0.6033 GB, free: 7.277 MB / 443.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003571/0.5792, allocations: 263 kB / 0.6036 GB, free: 7.016 MB / 443.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.885e-05/0.5793, allocations: 8.422 kB / 0.6036 GB, free: 7.004 MB / 443.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.278e-05/0.5793, allocations: 46.98 kB / 0.6036 GB, free: 6.949 MB / 443.1 MB Notification: Performance of pre-optimization done (n=50): time 2.535e-06/0.5793, allocations: 0 / 0.6036 GB, free: 6.949 MB / 443.1 MB Notification: Performance of matching and sorting (n=53): time 0.002344/0.5817, allocations: 1.433 MB / 0.605 GB, free: 5.465 MB / 443.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.045e-05/0.5817, allocations: 81.55 kB / 0.6051 GB, free: 5.367 MB / 443.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004925/0.5822, allocations: 426.1 kB / 0.6055 GB, free: 4.945 MB / 443.1 MB Notification: Performance of collectPreVariables (initialization): time 3.555e-05/0.5823, allocations: 29.73 kB / 0.6055 GB, free: 4.91 MB / 443.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002873/0.5826, allocations: 470.4 kB / 0.606 GB, free: 4.441 MB / 443.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001516/0.5827, allocations: 185.2 kB / 0.6062 GB, free: 4.258 MB / 443.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.124e-05/0.5828, allocations: 4 kB / 0.6062 GB, free: 4.254 MB / 443.1 MB Notification: Performance of setup shared object (initialization): time 0.0001591/0.5829, allocations: 378.8 kB / 0.6065 GB, free: 3.875 MB / 443.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003403/0.5833, allocations: 229.5 kB / 0.6068 GB, free: 3.652 MB / 443.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004595/0.5837, allocations: 453.3 kB / 0.6072 GB, free: 3.113 MB / 443.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004427/0.5842, allocations: 321.9 kB / 0.6075 GB, free: 2.797 MB / 443.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.358e-06/0.5842, allocations: 4 kB / 0.6075 GB, free: 2.793 MB / 443.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001781/0.586, allocations: 1.029 MB / 0.6085 GB, free: 1.73 MB / 443.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.05e-05/0.586, allocations: 8 kB / 0.6085 GB, free: 1.723 MB / 443.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.001297/0.5873, allocations: 0.7647 MB / 0.6093 GB, free: 0.9297 MB / 443.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007156/0.5881, allocations: 226.3 kB / 0.6095 GB, free: 0.6992 MB / 443.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005201/0.5886, allocations: 151.7 kB / 0.6096 GB, free: 0.5508 MB / 443.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005081/0.5937, allocations: 5.258 MB / 0.6148 GB, free: 10.94 MB / 459.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004463/0.5941, allocations: 23.89 kB / 0.6148 GB, free: 10.91 MB / 459.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.64e-05/0.5942, allocations: 39.94 kB / 0.6148 GB, free: 10.88 MB / 459.1 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: generator.psi_s[2]:DUMMY_STATE(unit = "Wb" protected = true ) "magnetic flux stator dq" type: Real [2] Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 31 * Number of states: 0 () * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (80): * Single equations (assignments): 77 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 3,(1,100.0%) 3} * Non-linear torn systems: 1 {2 9} Notification: Performance of prepare postOptimizeDAE: time 0.0001937/0.5944, allocations: 124.7 kB / 0.6149 GB, free: 10.75 MB / 459.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.764e-05/0.5945, allocations: 59.25 kB / 0.615 GB, free: 10.69 MB / 459.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008911/0.5954, allocations: 0.573 MB / 0.6155 GB, free: 10.1 MB / 459.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.931e-06/0.5954, allocations: 8 kB / 0.6156 GB, free: 10.09 MB / 459.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.603e-06/0.5954, allocations: 0 / 0.6156 GB, free: 10.09 MB / 459.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.294e-06/0.5954, allocations: 3.984 kB / 0.6156 GB, free: 10.09 MB / 459.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002249/0.5977, allocations: 1.359 MB / 0.6169 GB, free: 8.676 MB / 459.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.001e-06/0.5977, allocations: 4 kB / 0.6169 GB, free: 8.672 MB / 459.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006341/0.5984, allocations: 124 kB / 0.617 GB, free: 8.551 MB / 459.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.335e-06/0.5984, allocations: 7.938 kB / 0.617 GB, free: 8.543 MB / 459.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.86e-05/0.5984, allocations: 8.156 kB / 0.617 GB, free: 8.535 MB / 459.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.117e-05/0.5984, allocations: 11.89 kB / 0.617 GB, free: 8.523 MB / 459.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.527e-06/0.5985, allocations: 4 kB / 0.617 GB, free: 8.52 MB / 459.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0011/0.5996, allocations: 0.965 MB / 0.618 GB, free: 7.48 MB / 459.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002196/0.5998, allocations: 180.2 kB / 0.6182 GB, free: 7.285 MB / 459.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.182e-05/0.5999, allocations: 11.88 kB / 0.6182 GB, free: 7.273 MB / 459.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003023/0.6002, allocations: 27.92 kB / 0.6182 GB, free: 7.246 MB / 459.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.521e-05/0.6003, allocations: 28.41 kB / 0.6182 GB, free: 7.219 MB / 459.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.084e-05/0.6003, allocations: 15.98 kB / 0.6182 GB, free: 7.203 MB / 459.1 MB Notification: Performance of sorting global known variables: time 0.0003398/0.6006, allocations: 322.9 kB / 0.6185 GB, free: 6.891 MB / 459.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.6006, allocations: 0 / 0.6185 GB, free: 6.891 MB / 459.1 MB Notification: Performance of remove unused functions: time 0.0007579/0.6014, allocations: 196 kB / 0.6187 GB, free: 6.699 MB / 459.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 8 (turboGrp.w,generator.phi_el,generator.i_s[1],generator.i_s[2],generator.i_s[3],RLgen1.i[1],RLgen1.i[2],RLgen1.i[3]) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (54): * Single equations (assignments): 53 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002381/0.6017, allocations: 141.7 kB / 0.6189 GB, free: 6.555 MB / 459.1 MB Notification: Performance of simCode: created initialization part: time 0.001393/0.6031, allocations: 0.9631 MB / 0.6198 GB, free: 5.559 MB / 459.1 MB Notification: Performance of simCode: created event and clocks part: time 3.317e-06/0.6031, allocations: 192 / 0.6198 GB, free: 5.559 MB / 459.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003157/0.6034, allocations: 257.5 kB / 0.62 GB, free: 5.309 MB / 459.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006184/0.604, allocations: 106 kB / 0.6202 GB, free: 5.207 MB / 459.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002662/0.6067, allocations: 1.652 MB / 0.6218 GB, free: 3.504 MB / 459.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007647/0.6075, allocations: 1.098 MB / 0.6228 GB, free: 2.375 MB / 459.1 MB Notification: Performance of simCode: alias equations: time 0.0005306/0.608, allocations: 185.4 kB / 0.623 GB, free: 2.191 MB / 459.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001458/0.6082, allocations: 59.36 kB / 0.6231 GB, free: 2.133 MB / 459.1 MB Notification: Performance of SimCode: time 2.8e-07/0.6082, allocations: 3.938 kB / 0.6231 GB, free: 2.129 MB / 459.1 MB Notification: Performance of Templates: time 0.01429/0.6225, allocations: 7.525 MB / 0.6304 GB, free: 10.61 MB / 475.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.TurbineGenerator.makefile (rm -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.TurbineGenerator.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.TurbineGenerator.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.TurbineGenerator.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.TurbineGenerator.sim & ./PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.TurbineGenerator -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.TurbineGenerator.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.TurbineGenerator_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC3ph.Generation.TurbineGenerator.mat","../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.TurbineGenerator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:Time,generator.powerAngle,sensor.p[1],sensor.p[2],sensor.p[3],sensor1.p[1],sensor1.p[2],sensor1.p[3] Variables in the result:RLgen1.L,RLgen1.L0,RLgen1.R,RLgen1.RL_base[1],RLgen1.RL_base[2],RLgen1.S_nom,RLgen1.V_nom,RLgen1.dynType,RLgen1.f_nom,RLgen1.i_start[1],RLgen1.i_start[2],RLgen1.i_start[3],RLgen1.puUnits,RLgen1.r,RLgen1.v_start[1],RLgen1.v_start[2],RLgen1.v_start[3],RLgen1.x_m,RLgen1.x_s,VBus1.S_nom,VBus1.V_base,VBus1.V_nom,VBus1.alpha0,VBus1.f,VBus1.fType,VBus1.puUnits,VBus1.use_vPhasor_in,VBus1.v0,Vgen1.S_nom,Vgen1.V_base,Vgen1.V_nom,Vgen1.alpha0,Vgen1.f,Vgen1.fType,Vgen1.puUnits,Vgen1.use_vPhasor_in,Vgen1.v0,bdCond.T_amb,bdCond.heat.m,bdCond.m,excitation.V_nom,excitation.Vf_nom,exciter.par,exciter.v_f,generator.Vf_nom,generator.c.L_s[1],generator.c.L_s[2],generator.c.L_s[3],generator.c.Psi_pm,generator.c.R_n,generator.c.R_s,generator.c.omega_nom,generator.dynType,generator.heat.m,generator.i_s_start[1],generator.i_s_start[2],generator.i_s_start[3],generator.i_start[1],generator.i_start[2],generator.i_start[3],generator.n_n,generator.par.S_nom,generator.par.V_nom,generator.par.excite,generator.par.f_nom,generator.par.neu_iso,generator.par.pp,generator.par.psi_pm,generator.par.puUnits,generator.par.r_n,generator.par.r_s,generator.par.x_0,generator.par.x_d,generator.par.x_q,generator.phi_el_start,generator.powerAngle,generator.pp,generator.top.n_n,governor.p,governor.par,infBus.S_base,infBus.S_nom,infBus.V_base,infBus.V_nom,infBus.alpha0,infBus.puUnits,infBus.use_vPhasor_in,infBus.v0,sensor.S_base,sensor.S_nom,sensor.V_nom,sensor.p[1],sensor.p[2],sensor.p[3],sensor.puUnits,sensor1.S_base,sensor1.S_nom,sensor1.V_nom,sensor1.p[1],sensor1.p[2],sensor1.p[3],sensor1.puUnits,system.alpha0,system.dynType,system.f,system.fType,system.f_lim[1],system.f_lim[2],system.f_nom,system.omega_nom,system.refType,system.synRef,system.w_nom,time,turboGrp.H,turboGrp.J,turboGrp.P_nom,turboGrp.dynType,turboGrp.speed_thr,turboGrp.tau_nom,turboGrp.w_nom,turboGrp.w_start,w_start