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.002056/0.002056, allocations: 172.5 kB / 17.4 MB, free: 4.297 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.55/1.55, allocations: 205.4 MB / 223.5 MB, free: 9.012 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.0007521/0.0007522, allocations: 89.48 kB / 271.9 MB, free: 8.25 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1845/0.1845, allocations: 38.07 MB / 358.2 MB, free: 1.734 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003404/0.0003404, allocations: 16 kB / 425.2 MB, free: 37.36 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2775/0.2779, allocations: 56.31 MB / 481.6 MB, free: 9.59 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1558/0.4337, allocations: 112.2 MB / 0.5799 GB, free: 5.984 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000292/0.4341, allocations: 107.8 kB / 0.58 GB, free: 5.883 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.08539/0.5195, allocations: 29.48 MB / 0.6088 GB, free: 8.027 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.234e-06/0.5195, allocations: 0 / 0.6088 GB, free: 8.027 MB / 442.7 MB Notification: Performance of Transformations before backend: time 7.823e-05/0.5196, allocations: 20 kB / 0.6088 GB, free: 8.008 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.002885/0.5225, allocations: 1.119 MB / 0.6099 GB, free: 6.832 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.199e-05/0.5226, allocations: 8.031 kB / 0.6099 GB, free: 6.824 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001251/0.5238, allocations: 191.6 kB / 0.6101 GB, free: 6.637 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002181/0.526, allocations: 0.8976 MB / 0.611 GB, free: 5.699 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.768e-05/0.5261, allocations: 61.98 kB / 0.611 GB, free: 5.637 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003472/0.5265, allocations: 83.94 kB / 0.6111 GB, free: 5.555 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002334/0.5288, allocations: 1.1 MB / 0.6122 GB, free: 4.406 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.754e-05/0.5289, allocations: 7.938 kB / 0.6122 GB, free: 4.398 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.523e-05/0.529, allocations: 32 kB / 0.6122 GB, free: 4.367 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000111/0.5291, allocations: 65.95 kB / 0.6123 GB, free: 4.301 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001581/0.5307, allocations: 0.8743 MB / 0.6131 GB, free: 3.43 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.006852/0.5376, allocations: 4.092 MB / 0.6171 GB, free: 15.13 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006636/0.5383, allocations: 425.9 kB / 0.6175 GB, free: 14.68 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003735/0.5386, allocations: 265.6 kB / 0.6178 GB, free: 14.41 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.208e-05/0.5387, allocations: 7.984 kB / 0.6178 GB, free: 14.4 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.058e-05/0.5388, allocations: 38.56 kB / 0.6178 GB, free: 14.36 MB / 458.7 MB Notification: Performance of pre-optimization done (n=45): time 2.725e-06/0.5388, allocations: 0 / 0.6178 GB, free: 14.36 MB / 458.7 MB Notification: Performance of matching and sorting (n=52): time 0.004312/0.5431, allocations: 1.989 MB / 0.6198 GB, free: 12.31 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.545e-05/0.5432, allocations: 81.55 kB / 0.6199 GB, free: 12.21 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000797/0.544, allocations: 0.5615 MB / 0.6204 GB, free: 11.64 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 5.356e-05/0.544, allocations: 37.83 kB / 0.6204 GB, free: 11.6 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003675/0.5444, allocations: 466.4 kB / 0.6209 GB, free: 11.14 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001826/0.5446, allocations: 193.3 kB / 0.6211 GB, free: 10.95 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.035e-05/0.5447, allocations: 16 kB / 0.6211 GB, free: 10.93 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001987/0.5449, allocations: 382.8 kB / 0.6214 GB, free: 10.55 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004373/0.5453, allocations: 265.8 kB / 0.6217 GB, free: 10.29 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005932/0.5459, allocations: 0.5042 MB / 0.6222 GB, free: 9.68 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.003525/0.5494, allocations: 1.724 MB / 0.6239 GB, free: 7.836 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.049e-05/0.5495, allocations: 7.938 kB / 0.6239 GB, free: 7.828 MB / 458.7 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.002479/0.552, allocations: 1.162 MB / 0.625 GB, free: 6.625 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.15e-05/0.552, allocations: 8 kB / 0.625 GB, free: 6.617 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.001717/0.5537, allocations: 0.835 MB / 0.6258 GB, free: 5.754 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006759/0.5544, allocations: 207.2 kB / 0.626 GB, free: 5.539 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006296/0.5551, allocations: 167.7 kB / 0.6262 GB, free: 5.375 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00885/0.5639, allocations: 6.268 MB / 0.6323 GB, free: 14.57 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001114/0.5651, allocations: 47.86 kB / 0.6324 GB, free: 14.52 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000194/0.5653, allocations: 40.06 kB / 0.6324 GB, free: 14.48 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.001142/0.5665, allocations: 321.3 kB / 0.6327 GB, free: 14.16 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002732/0.5668, allocations: 63.19 kB / 0.6328 GB, free: 14.09 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001852/0.5686, allocations: 0.6396 MB / 0.6334 GB, free: 13.45 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.219e-05/0.5687, allocations: 12 kB / 0.6334 GB, free: 13.44 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.068e-06/0.5687, allocations: 0 / 0.6334 GB, free: 13.44 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.24e-05/0.5687, allocations: 3.984 kB / 0.6334 GB, free: 13.43 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004126/0.5728, allocations: 1.514 MB / 0.6349 GB, free: 11.84 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.877e-06/0.5729, allocations: 4 kB / 0.6349 GB, free: 11.84 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009581/0.5738, allocations: 123.8 kB / 0.635 GB, free: 11.72 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.664e-05/0.5739, allocations: 4 kB / 0.635 GB, free: 11.71 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.12e-05/0.574, allocations: 23.92 kB / 0.635 GB, free: 11.69 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.172e-05/0.574, allocations: 4 kB / 0.635 GB, free: 11.69 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.777e-06/0.574, allocations: 192 / 0.635 GB, free: 11.69 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002027/0.576, allocations: 0.9473 MB / 0.636 GB, free: 10.7 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004733/0.5765, allocations: 184.3 kB / 0.6361 GB, free: 10.5 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002114/0.5768, allocations: 12 kB / 0.6362 GB, free: 10.49 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006717/0.5774, allocations: 23.89 kB / 0.6362 GB, free: 10.47 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001132/0.5776, allocations: 40.33 kB / 0.6362 GB, free: 10.43 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.329e-05/0.5777, allocations: 12 kB / 0.6362 GB, free: 10.42 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.000951/0.5786, allocations: 407 kB / 0.6366 GB, free: 10.02 MB / 474.7 MB Notification: Performance of sort global known variables: time 4.41e-07/0.5787, allocations: 0 / 0.6366 GB, free: 10.02 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.001695/0.5804, allocations: 235.9 kB / 0.6368 GB, free: 9.785 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.0004005/0.5808, allocations: 139.1 kB / 0.637 GB, free: 9.637 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.00334/0.5841, allocations: 1.146 MB / 0.6381 GB, free: 8.441 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 5.73e-06/0.5842, allocations: 5.375 kB / 0.6381 GB, free: 8.438 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007543/0.5849, allocations: 266.3 kB / 0.6384 GB, free: 8.176 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00182/0.5868, allocations: 136.7 kB / 0.6385 GB, free: 8.047 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006406/0.5932, allocations: 2.387 MB / 0.6408 GB, free: 5.613 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001383/0.5946, allocations: 1.078 MB / 0.6419 GB, free: 4.508 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.001334/0.596, allocations: 197.8 kB / 0.6421 GB, free: 4.312 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003108/0.5963, allocations: 55.42 kB / 0.6421 GB, free: 4.258 MB / 474.7 MB Notification: Performance of SimCode: time 1.453e-06/0.5963, allocations: 0 / 0.6421 GB, free: 4.258 MB / 474.7 MB Notification: Performance of Templates: time 0.2284/0.8248, allocations: 8.595 MB / 0.6505 GB, free: 133.4 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/jenkins1/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