Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.PowerAngle.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.PowerAngle,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.PowerAngle") translateModel(PowerSystems.Examples.AC3ph.Generation.PowerAngle,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.PowerAngle") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001251/0.001251, allocations: 180.2 kB / 16.38 MB, free: 5.766 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.289/1.289, allocations: 205.4 MB / 222.5 MB, free: 9.109 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.0009985/0.0009981, allocations: 99.27 kB / 270.9 MB, free: 8.371 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1691/0.1691, allocations: 38.06 MB / 357.2 MB, free: 1.887 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000299/0.0002992, allocations: 8 kB / 424 MB, free: 37.68 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2661/0.2664, allocations: 56.32 MB / 480.3 MB, free: 9.547 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1423/0.4088, allocations: 112.2 MB / 0.5786 GB, free: 6.184 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002767/0.4091, allocations: 99.94 kB / 0.5787 GB, free: 6.086 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.07945/0.4886, allocations: 29.71 MB / 0.6077 GB, free: 8.004 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.543e-06/0.4886, allocations: 3.938 kB / 0.6077 GB, free: 8 MB / 442.7 MB Notification: Performance of Transformations before backend: time 5.009e-05/0.4887, allocations: 31.94 kB / 0.6078 GB, free: 7.969 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 223 * Number of variables: 223 Notification: Performance of Generate backend data structure: time 0.002025/0.4907, allocations: 1.123 MB / 0.6089 GB, free: 6.793 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.709e-05/0.4908, allocations: 8.031 kB / 0.6089 GB, free: 6.785 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009973/0.4918, allocations: 186.7 kB / 0.609 GB, free: 6.602 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003136/0.4949, allocations: 1.207 MB / 0.6102 GB, free: 5.352 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.472e-05/0.495, allocations: 58 kB / 0.6103 GB, free: 5.297 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001969/0.4952, allocations: 87.89 kB / 0.6104 GB, free: 5.211 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001705/0.4969, allocations: 1.096 MB / 0.6114 GB, free: 4.062 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.752e-05/0.497, allocations: 7.984 kB / 0.6114 GB, free: 4.055 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.067e-05/0.497, allocations: 35.98 kB / 0.6115 GB, free: 4.02 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001006/0.4971, allocations: 61.97 kB / 0.6115 GB, free: 3.961 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001322/0.4985, allocations: 0.8743 MB / 0.6124 GB, free: 3.082 MB / 442.7 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.005541/0.504, allocations: 4.093 MB / 0.6164 GB, free: 14.78 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005421/0.5046, allocations: 410.2 kB / 0.6168 GB, free: 14.34 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.592e-05/0.5046, allocations: 12.06 kB / 0.6168 GB, free: 14.33 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.611e-05/0.5047, allocations: 50.42 kB / 0.6168 GB, free: 14.27 MB / 458.7 MB Notification: Performance of pre-optimization done (n=45): time 2.665e-06/0.5047, allocations: 0 / 0.6168 GB, free: 14.27 MB / 458.7 MB Notification: Performance of matching and sorting (n=52): time 0.004052/0.5087, allocations: 1.985 MB / 0.6188 GB, free: 12.23 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.864e-05/0.5088, allocations: 81.55 kB / 0.6189 GB, free: 12.13 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005617/0.5094, allocations: 0.4904 MB / 0.6193 GB, free: 11.64 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 4.45e-05/0.5094, allocations: 33.7 kB / 0.6194 GB, free: 11.6 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002762/0.5097, allocations: 478.3 kB / 0.6198 GB, free: 11.12 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001411/0.5099, allocations: 185.3 kB / 0.62 GB, free: 10.94 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.579e-05/0.5099, allocations: 20.03 kB / 0.62 GB, free: 10.92 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001535/0.5101, allocations: 378.7 kB / 0.6204 GB, free: 10.54 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003798/0.5105, allocations: 269.8 kB / 0.6206 GB, free: 10.28 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005208/0.511, allocations: 0.4964 MB / 0.6211 GB, free: 9.676 MB / 458.7 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.002067/0.5131, allocations: 0.6938 MB / 0.6218 GB, free: 8.984 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.447e-06/0.5131, allocations: 0 / 0.6218 GB, free: 8.984 MB / 458.7 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.002135/0.5152, allocations: 1.158 MB / 0.6229 GB, free: 7.789 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.921e-05/0.5153, allocations: 8 kB / 0.6229 GB, free: 7.781 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.001622/0.5169, allocations: 0.8392 MB / 0.6238 GB, free: 6.91 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006122/0.5175, allocations: 211.2 kB / 0.624 GB, free: 6.691 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005618/0.5181, allocations: 167.7 kB / 0.6241 GB, free: 6.527 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00563/0.5237, allocations: 6.358 MB / 0.6303 GB, free: 15.63 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005804/0.5243, allocations: 39.97 kB / 0.6304 GB, free: 15.59 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.77e-05/0.5244, allocations: 35.98 kB / 0.6304 GB, free: 15.56 MB / 474.7 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization sytem: infBus.V = 20000.0 * infBus.v0. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 34 * Number of states: 0 () * 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 initialization (85): * Single equations (assignments): 81 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 3,(1,100.0%) 3,(1,100.0%) 3} * Non-linear torn systems: 1 {1 2} Notification: Performance of prepare postOptimizeDAE: time 0.0005368/0.5249, allocations: 309.4 kB / 0.6307 GB, free: 15.25 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001017/0.5251, allocations: 79.17 kB / 0.6308 GB, free: 15.17 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009935/0.5261, allocations: 0.6395 MB / 0.6314 GB, free: 14.52 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.771e-06/0.5261, allocations: 4 kB / 0.6314 GB, free: 14.51 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.804e-06/0.5261, allocations: 0 / 0.6314 GB, free: 14.51 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.129e-06/0.5261, allocations: 4 kB / 0.6314 GB, free: 14.51 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002387/0.5285, allocations: 1.526 MB / 0.6329 GB, free: 12.91 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.017e-06/0.5285, allocations: 0 / 0.6329 GB, free: 12.91 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005878/0.5291, allocations: 128 kB / 0.633 GB, free: 12.79 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.223e-06/0.5291, allocations: 4 kB / 0.633 GB, free: 12.78 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.781e-05/0.5292, allocations: 15.94 kB / 0.633 GB, free: 12.77 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.509e-06/0.5292, allocations: 4 kB / 0.633 GB, free: 12.76 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.846e-06/0.5292, allocations: 4 kB / 0.633 GB, free: 12.76 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00116/0.5303, allocations: 1.029 MB / 0.634 GB, free: 11.64 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002856/0.5306, allocations: 188.1 kB / 0.6342 GB, free: 11.44 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.972e-05/0.5307, allocations: 15.98 kB / 0.6342 GB, free: 11.43 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003209/0.5311, allocations: 19.98 kB / 0.6343 GB, free: 11.41 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.91e-05/0.5311, allocations: 36.47 kB / 0.6343 GB, free: 11.37 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.766e-05/0.5312, allocations: 20 kB / 0.6343 GB, free: 11.35 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.0004283/0.5316, allocations: 411 kB / 0.6347 GB, free: 10.95 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.21e-07/0.5316, allocations: 0 / 0.6347 GB, free: 10.95 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.0008044/0.5324, allocations: 227.9 kB / 0.6349 GB, free: 10.73 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 6 (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: 2 (system.initime,$cse3) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (55): * Single equations (assignments): 54 * 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.0002254/0.5327, allocations: 139.1 kB / 0.6351 GB, free: 10.59 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.001711/0.5344, allocations: 1.147 MB / 0.6362 GB, free: 9.387 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 4.369e-06/0.5344, allocations: 0 / 0.6362 GB, free: 9.387 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003664/0.5348, allocations: 266.7 kB / 0.6364 GB, free: 9.129 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005992/0.5354, allocations: 130.9 kB / 0.6366 GB, free: 9 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003232/0.5386, allocations: 2.38 MB / 0.6389 GB, free: 6.57 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006444/0.5393, allocations: 1.098 MB / 0.64 GB, free: 5.445 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.0005335/0.5398, allocations: 197.7 kB / 0.6401 GB, free: 5.25 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001444/0.54, allocations: 55.42 kB / 0.6402 GB, free: 5.195 MB / 474.7 MB Notification: Performance of SimCode: time 8.92e-07/0.54, allocations: 0 / 0.6402 GB, free: 5.195 MB / 474.7 MB Notification: Performance of Templates: time 0.1987/0.7387, allocations: 8.533 MB / 0.6485 GB, free: 131.9 MB / 474.7 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.PowerAngle.makefile (rm -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.PowerAngle.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.PowerAngle.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.PowerAngle.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.PowerAngle.sim & ./PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.PowerAngle -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.PowerAngle.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.PowerAngle_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC3ph.Generation.PowerAngle.mat","../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.PowerAngle.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.alpha,Vbus1.alpha0,Vbus1.f,Vbus1.fType,Vbus1.phi,Vbus1.puUnits,Vbus1.use_vPhasor_in,Vbus1.v0,Vbus1.vPhasor_internal[1],Vbus1.vPhasor_internal[2],Vgen1.S_nom,Vgen1.V_base,Vgen1.V_nom,Vgen1.alpha,Vgen1.alpha0,Vgen1.f,Vgen1.fType,Vgen1.phi,Vgen1.puUnits,Vgen1.use_vPhasor_in,Vgen1.v0,Vgen1.vPhasor_internal[1],Vgen1.vPhasor_internal[2],bdCond.T_amb,bdCond.heat.m,bdCond.heat.ports[1].T,bdCond.heat.ports[2].T,bdCond.m,excitation.V_nom,excitation.Vf_nom,excitation.fieldVoltage,exciter.fieldVoltage,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.heat.ports[1].T,generator.heat.ports[2].T,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,infBus.S_base,infBus.S_nom,infBus.V_base,infBus.V_nom,infBus.alpha,infBus.alpha0,infBus.phi,infBus.puUnits,infBus.use_vPhasor_in,infBus.v0,infBus.vPhasor_internal[1],infBus.vPhasor_internal[2],powerAngle.delta,powerAngle.gamma,powerAngle.pp,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