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") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001102/0.001102, allocations: 183.4 kB / 8.136 MB, free: 2.207 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.15/1.15, allocations: 205.2 MB / 213.7 MB, free: 13.86 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.000903/0.000903, allocations: 99.7 kB / 261.7 MB, free: 13.54 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1686/0.1686, allocations: 37.96 MB / 347.7 MB, free: 7.477 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 6.512e-06/6.532e-06, allocations: 4 kB / 410 MB, free: 46.86 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09274/0.09276, allocations: 56.31 MB / 466.3 MB, free: 6.477 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2871/0.3799, allocations: 112.5 MB / 0.5653 GB, free: 14.06 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002755/0.3802, allocations: 91.94 kB / 0.5653 GB, free: 13.97 MB / 410.7 MB Notification: Performance of FrontEnd: time 0.08567/0.4659, allocations: 29.48 MB / 0.5941 GB, free: 152 kB / 426.7 MB Notification: Performance of Transformations before backend: time 8.294e-05/0.466, allocations: 24 kB / 0.5942 GB, free: 128 kB / 426.7 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.002783/0.4688, allocations: 1.045 MB / 0.5952 GB, free: 15.03 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.089e-05/0.4689, allocations: 8.031 kB / 0.5952 GB, free: 15.02 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001426/0.4703, allocations: 202.5 kB / 0.5954 GB, free: 14.82 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003731/0.4741, allocations: 1.2 MB / 0.5965 GB, free: 13.58 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.38e-05/0.4741, allocations: 28 kB / 0.5966 GB, free: 13.55 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003021/0.4744, allocations: 55.98 kB / 0.5966 GB, free: 13.5 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001633/0.4761, allocations: 0.7379 MB / 0.5973 GB, free: 12.76 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001713/0.4778, allocations: 0.9639 MB / 0.5983 GB, free: 11.75 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.721e-05/0.4779, allocations: 7.906 kB / 0.5983 GB, free: 11.74 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.495e-05/0.478, allocations: 7.922 kB / 0.5983 GB, free: 11.73 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000111/0.4781, allocations: 65.97 kB / 0.5984 GB, free: 11.66 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005649/0.4837, allocations: 3.833 MB / 0.6021 GB, free: 7.648 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000484/0.4842, allocations: 305.6 kB / 0.6024 GB, free: 7.336 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004084/0.4847, allocations: 267 kB / 0.6027 GB, free: 7.07 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.244e-05/0.4847, allocations: 16.42 kB / 0.6027 GB, free: 7.051 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.563e-05/0.4848, allocations: 39 kB / 0.6027 GB, free: 7.004 MB / 442.7 MB Notification: Performance of pre-optimization done (n=50): time 2.715e-06/0.4848, allocations: 0 / 0.6027 GB, free: 7.004 MB / 442.7 MB Notification: Performance of matching and sorting (n=53): time 0.002612/0.4874, allocations: 1.451 MB / 0.6041 GB, free: 5.5 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.234e-05/0.4875, allocations: 89.55 kB / 0.6042 GB, free: 5.395 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005294/0.488, allocations: 422.1 kB / 0.6046 GB, free: 4.973 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 4.207e-05/0.4881, allocations: 25.7 kB / 0.6046 GB, free: 4.941 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003358/0.4884, allocations: 406.4 kB / 0.605 GB, free: 4.535 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001845/0.4886, allocations: 185.2 kB / 0.6052 GB, free: 4.352 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.123e-05/0.4886, allocations: 3.938 kB / 0.6052 GB, free: 4.348 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001809/0.4888, allocations: 374.8 kB / 0.6056 GB, free: 3.973 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003811/0.4892, allocations: 241.5 kB / 0.6058 GB, free: 3.738 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005259/0.4897, allocations: 457.4 kB / 0.6062 GB, free: 3.195 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005212/0.4903, allocations: 338.9 kB / 0.6066 GB, free: 2.863 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.298e-06/0.4903, allocations: 0 / 0.6066 GB, free: 2.863 MB / 442.7 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001965/0.4923, allocations: 1.049 MB / 0.6076 GB, free: 1.777 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.204e-05/0.4923, allocations: 8.297 kB / 0.6076 GB, free: 1.77 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.001398/0.4937, allocations: 0.7813 MB / 0.6083 GB, free: 0.9648 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008304/0.4945, allocations: 230.4 kB / 0.6086 GB, free: 0.7305 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005522/0.4951, allocations: 147.8 kB / 0.6087 GB, free: 0.5859 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005482/0.5006, allocations: 4.993 MB / 0.6136 GB, free: 11.23 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005765/0.5012, allocations: 23.89 kB / 0.6136 GB, free: 11.21 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.404e-05/0.5013, allocations: 32 kB / 0.6136 GB, free: 11.18 MB / 458.7 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.000211/0.5015, allocations: 124.7 kB / 0.6138 GB, free: 11.05 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001359/0.5016, allocations: 67.14 kB / 0.6138 GB, free: 10.98 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009532/0.5026, allocations: 0.576 MB / 0.6144 GB, free: 10.4 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.304e-06/0.5026, allocations: 7.906 kB / 0.6144 GB, free: 10.39 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.024e-06/0.5026, allocations: 0 / 0.6144 GB, free: 10.39 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.352e-06/0.5026, allocations: 4.219 kB / 0.6144 GB, free: 10.39 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002769/0.5054, allocations: 1.53 MB / 0.6159 GB, free: 8.766 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.066e-06/0.5054, allocations: 8.453 kB / 0.6159 GB, free: 8.758 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006829/0.5061, allocations: 135.7 kB / 0.616 GB, free: 8.625 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.768e-06/0.5062, allocations: 8 kB / 0.616 GB, free: 8.617 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.59e-05/0.5062, allocations: 15.98 kB / 0.616 GB, free: 8.602 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.192e-06/0.5062, allocations: 7.938 kB / 0.6161 GB, free: 8.594 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.891e-06/0.5062, allocations: 11.94 kB / 0.6161 GB, free: 8.582 MB / 458.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.00133/0.5076, allocations: 1.173 MB / 0.6172 GB, free: 7.246 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002966/0.5079, allocations: 188.2 kB / 0.6174 GB, free: 7.043 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001214/0.508, allocations: 8 kB / 0.6174 GB, free: 7.035 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003871/0.5084, allocations: 11.98 kB / 0.6174 GB, free: 7.023 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.049e-05/0.5085, allocations: 39.8 kB / 0.6174 GB, free: 6.984 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.885e-05/0.5085, allocations: 20 kB / 0.6175 GB, free: 6.965 MB / 458.7 MB Notification: Performance of sort global known variables: time 0.0003943/0.5089, allocations: 330.9 kB / 0.6178 GB, free: 6.645 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.000838/0.5098, allocations: 188 kB / 0.618 GB, free: 6.461 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 17 * 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.0002419/0.51, allocations: 143.1 kB / 0.6181 GB, free: 6.312 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.001486/0.5115, allocations: 0.9479 MB / 0.619 GB, free: 5.332 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 4.639e-06/0.5115, allocations: 4 kB / 0.619 GB, free: 5.328 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003457/0.5119, allocations: 261.3 kB / 0.6193 GB, free: 5.074 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006735/0.5126, allocations: 116.1 kB / 0.6194 GB, free: 4.961 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00345/0.516, allocations: 1.738 MB / 0.6211 GB, free: 3.141 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0011/0.5172, allocations: 1.15 MB / 0.6222 GB, free: 1.961 MB / 458.7 MB Notification: Performance of SimCode: time 6.51e-07/0.5172, allocations: 0 / 0.6222 GB, free: 1.961 MB / 458.7 MB Notification: Performance of Templates: time 0.01677/0.534, allocations: 8.227 MB / 0.6302 GB, free: 9.73 MB / 474.7 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