Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Fault.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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.AC3ph.Elementary.Fault,tolerance=1e-06,outputFormat="mat",numberOfIntervals=4000,variableFilter="Time|meter.i.1.|meter.i.2.|meter.i.3.|meter.p.1.|meter.p.2.|meter.p.3.|meter.v.1.|meter.v.2.|meter.v.3.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Fault") translateModel(PowerSystems.Examples.AC3ph.Elementary.Fault,tolerance=1e-06,outputFormat="mat",numberOfIntervals=4000,variableFilter="Time|meter.i.1.|meter.i.2.|meter.i.3.|meter.p.1.|meter.p.2.|meter.p.3.|meter.v.1.|meter.v.2.|meter.v.3.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Fault") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001058/0.001058, allocations: 110.9 kB / 17.75 MB, free: 5.309 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.001001/0.001001, allocations: 186.6 kB / 18.67 MB, free: 4.395 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.268/1.268, allocations: 222.9 MB / 242.4 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1758/0.1758, allocations: 38.04 MB / 330.6 MB, free: 8.727 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001378/0.001378, allocations: 63.91 kB / 458.8 MB, free: 6.836 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3116/0.313, allocations: 58.05 MB / 0.5048 GB, free: 7.84 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Elementary.Fault): time 0.007541/0.3206, allocations: 7.386 MB / 0.512 GB, free: 2.664 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.003869/0.3245, allocations: 2.315 MB / 0.5142 GB, free: 1.043 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007379/0.3253, allocations: 23.56 kB / 0.5143 GB, free: 1.035 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001944/0.3272, allocations: 0.7571 MB / 0.515 GB, free: 0.5703 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00168/0.3289, allocations: 0.6272 MB / 0.5156 GB, free: 248 kB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001079/0.33, allocations: 471.3 kB / 0.5161 GB, free: 20 kB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001582/0.3316, allocations: 1.475 MB / 0.5175 GB, free: 15.38 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000945/0.3326, allocations: 0.7319 MB / 0.5182 GB, free: 15.05 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000984/0.3336, allocations: 0.6568 MB / 0.5189 GB, free: 14.77 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001065/0.3346, allocations: 0.7888 MB / 0.5196 GB, free: 14.48 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001805/0.3348, allocations: 116.4 kB / 0.5197 GB, free: 14.47 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009326/0.3358, allocations: 0.5256 MB / 0.5203 GB, free: 14.36 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005658/0.3364, allocations: 0.5778 MB / 0.5208 GB, free: 14.16 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007266/0.3371, allocations: 0.6465 MB / 0.5215 GB, free: 13.77 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001843/0.3389, allocations: 1.653 MB / 0.5231 GB, free: 13.15 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.349e-06/0.339, allocations: 1.375 kB / 0.5231 GB, free: 13.15 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.525e-06/0.339, allocations: 0.9375 kB / 0.5231 GB, free: 13.15 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.871e-05/0.339, allocations: 0 / 0.5231 GB, free: 13.15 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 292 * Number of variables: 292 Notification: Performance of Generate backend data structure: time 0.003119/0.3421, allocations: 1.657 MB / 0.5247 GB, free: 12.12 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.62e-05/0.3422, allocations: 15.23 kB / 0.5247 GB, free: 12.11 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001039/0.3432, allocations: 198.5 kB / 0.5249 GB, free: 12.04 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001429/0.3446, allocations: 0.728 MB / 0.5256 GB, free: 11.59 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.852e-05/0.3447, allocations: 79.91 kB / 0.5257 GB, free: 11.55 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002802/0.345, allocations: 128 kB / 0.5258 GB, free: 11.51 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002472/0.3475, allocations: 1.608 MB / 0.5274 GB, free: 10.8 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.873e-05/0.3475, allocations: 2.406 kB / 0.5274 GB, free: 10.8 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001235/0.3477, allocations: 41.88 kB / 0.5274 GB, free: 10.77 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000252/0.3479, allocations: 83.41 kB / 0.5275 GB, free: 10.76 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002228/0.3502, allocations: 1.436 MB / 0.5289 GB, free: 10.2 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007732/0.3579, allocations: 5.761 MB / 0.5345 GB, free: 5.809 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001755/0.3597, allocations: 1.537 MB / 0.536 GB, free: 4.691 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001061/0.3608, allocations: 0.8082 MB / 0.5368 GB, free: 4.285 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.414e-05/0.3608, allocations: 19.69 kB / 0.5368 GB, free: 4.277 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001464/0.3623, allocations: 1.094 MB / 0.5379 GB, free: 3.613 MB / 398.1 MB Notification: Performance of pre-optimization done (n=153): time 3.417e-06/0.3623, allocations: 0 / 0.5379 GB, free: 3.613 MB / 398.1 MB Notification: Performance of matching and sorting (n=154): time 0.00672/0.3691, allocations: 4.511 MB / 0.5423 GB, free: 1.137 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001166/0.3692, allocations: 222.5 kB / 0.5425 GB, free: 0.8984 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006486/0.3698, allocations: 0.5668 MB / 0.5431 GB, free: 0.5625 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 9.722e-05/0.3699, allocations: 61.16 kB / 0.5431 GB, free: 0.5078 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003377/0.3703, allocations: 456.7 kB / 0.5436 GB, free: 112 kB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003831/0.3707, allocations: 473 kB / 0.544 GB, free: 15.65 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003871/0.3711, allocations: 279.5 kB / 0.5443 GB, free: 15.37 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.000121/0.3712, allocations: 341.9 kB / 0.5446 GB, free: 15.03 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009728/0.3722, allocations: 0.6715 MB / 0.5453 GB, free: 14.36 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001184/0.3734, allocations: 0.9794 MB / 0.5462 GB, free: 13.27 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002246/0.3756, allocations: 1.807 MB / 0.548 GB, free: 11.33 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.589e-06/0.3756, allocations: 0 / 0.548 GB, free: 11.33 MB / 414.1 MB Notification: Performance of matching and sorting (n=217) (initialization): time 0.005208/0.3809, allocations: 2.811 MB / 0.5507 GB, free: 8.5 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.314e-05/0.3809, allocations: 63.41 kB / 0.5508 GB, free: 8.426 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.004493/0.3854, allocations: 2.343 MB / 0.5531 GB, free: 6.078 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00319/0.3886, allocations: 1.075 MB / 0.5541 GB, free: 4.996 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004944/0.3891, allocations: 151.7 kB / 0.5543 GB, free: 4.848 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01344/0.4026, allocations: 9.125 MB / 0.5632 GB, free: 11.58 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007714/0.4034, allocations: 83.91 kB / 0.5633 GB, free: 11.5 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.635e-05/0.4035, allocations: 56 kB / 0.5633 GB, free: 11.44 MB / 430.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 34 * Number of states: 0 () * Number of discrete variables: 79 (system.initime,fault_ab.fault_pp.t0,$PRE.fault_ab.fault_pp.t0,relay2.cnt,$PRE.relay2.cnt,$whenCondition2,relay1.cnt,$PRE.relay1.cnt,$whenCondition1,fault_ab.fault_pp.on,$PRE.fault_ab.fault_pp.on,fault_ab.first,$PRE.fault_ab.first,fault_ab.v_pos,$PRE.fault_ab.v_pos,fault_ab.theta_zero,$PRE.fault_ab.theta_zero,relay2.y[3],$PRE.relay2.y[3],relay2.y[2],$PRE.relay2.y[2],relay2.y[1],$PRE.relay2.y[1],relay1.y[3],$PRE.relay1.y[3],relay1.y[2],$PRE.relay1.y[2],relay1.y[1],$PRE.relay1.y[1],switch2.switch_c.closed,switch2.switch_c.open,$PRE.switch2.switch_c.open,switch2.switch_c.arc,$PRE.switch2.switch_c.arc,switch2.switch_b.closed,switch2.switch_b.open,$PRE.switch2.switch_b.open,switch2.switch_b.arc,$PRE.switch2.switch_b.arc,switch2.switch_a.closed,switch2.switch_a.open,$PRE.switch2.switch_a.open,switch2.switch_a.arc,$PRE.switch2.switch_a.arc,switch1.switch_c.closed,switch1.switch_c.open,$PRE.switch1.switch_c.open,switch1.switch_c.arc,$PRE.switch1.switch_c.arc,switch1.switch_b.closed,switch1.switch_b.open,$PRE.switch1.switch_b.open,switch1.switch_b.arc,$PRE.switch1.switch_b.arc,switch1.switch_a.closed,switch1.switch_a.open,$PRE.switch1.switch_a.open,switch1.switch_a.arc,$PRE.switch1.switch_a.arc,$whenCondition3,$whenCondition4,$whenCondition5,$whenCondition6,$whenCondition7,$whenCondition8,$whenCondition9,$whenCondition10,$whenCondition11,$whenCondition12,$whenCondition13,$whenCondition14,$whenCondition15,$whenCondition16,$whenCondition17,$whenCondition18,$whenCondition19,$whenCondition20,$whenCondition21,$whenCondition22) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (142): * Single equations (assignments): 136 * Array equations: 3 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(12,40,84.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0007036/0.4042, allocations: 488.7 kB / 0.5638 GB, free: 10.94 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002165/0.4044, allocations: 102.7 kB / 0.5639 GB, free: 10.84 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002693/0.4071, allocations: 1.83 MB / 0.5657 GB, free: 8.992 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.159e-05/0.4072, allocations: 7.984 kB / 0.5657 GB, free: 8.984 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.687e-06/0.4072, allocations: 0 / 0.5657 GB, free: 8.984 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005264/0.4077, allocations: 287.8 kB / 0.566 GB, free: 8.684 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001492/0.4079, allocations: 39.92 kB / 0.566 GB, free: 8.645 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005304/0.4084, allocations: 63.92 kB / 0.5661 GB, free: 8.582 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002507/0.4086, allocations: 124.8 kB / 0.5662 GB, free: 8.461 MB / 430.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.004032/0.4127, allocations: 2.243 MB / 0.5684 GB, free: 6.168 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.003841/0.4165, allocations: 2.978 MB / 0.5713 GB, free: 3.156 MB / 430.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.001183/0.4177, allocations: 0.8983 MB / 0.5721 GB, free: 2.262 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0005099/0.4183, allocations: 386.8 kB / 0.5725 GB, free: 1.883 MB / 430.1 MB Notification: Performance of Backend: time 4.31e-07/0.4183, allocations: 0 / 0.5725 GB, free: 1.883 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.004402/0.4227, allocations: 2.008 MB / 0.5745 GB, free: 15.83 MB / 446.1 MB Notification: Performance of SimCode: time 0.003507/0.4262, allocations: 2.821 MB / 0.5772 GB, free: 12.95 MB / 446.1 MB Notification: Performance of Templates: time 0.03232/0.4585, allocations: 21.01 MB / 0.5977 GB, free: 8.047 MB / 462.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Fault.makefile (rm -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Fault.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Fault.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Fault.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Fault.sim & ./PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Fault -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Fault.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Fault_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC3ph.Elementary.Fault.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Fault.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:Time,meter.i[1],meter.i[2],meter.i[3],meter.p[1],meter.p[2],meter.p[3],meter.v[1],meter.v[2],meter.v[3] Variables in the result:$cse1,$cse2,$cse3,$cse4,fault_ab.epsG,fault_ab.epsR,fault_ab.fault_pp.beta,fault_ab.fault_pp.epsG,fault_ab.fault_pp.epsR,fault_ab.fault_pp.relax,fault_ab.fault_pp.t_c,fault_ab.m_ph[1],fault_ab.m_ph[2],fault_ab.n_ph,fault_ab.n_phRef,fault_ab.phi_on,fault_ab.t_on,fault_ab.v_abc_start[1],fault_ab.v_abc_start[2],fault_ab.v_abc_start[3],line.L,line.L0,line.R,line.RL_base[1],line.RL_base[2],line.delta_len_km,line.dynType,line.i_start[1],line.i_start[2],line.i_start[3],line.len,line.ne,line.p,line.par.S_nom,line.par.V_nom,line.par.f_nom,line.par.puUnits,line.par.r,line.par.x,line.par.x0,line.v_start[1],line.v_start[2],line.v_start[3],meter.I_base,meter.S_nom,meter.V_base,meter.V_nom,meter.abc,meter.av,meter.i[1],meter.i[2],meter.i[3],meter.p[1],meter.p[2],meter.p[3],meter.puUnits,meter.tcst,meter.v[1],meter.v[2],meter.v[3],relay1.ini_state,relay1.n,relay1.switched[1],relay1.switched[2],relay1.switched[3],relay1.t_switch[1],relay2.ini_state,relay2.n,relay2.switched[1],relay2.switched[2],relay2.switched[3],relay2.t_switch[1],switch1.I_nom,switch1.V_nom,switch1.epsG,switch1.epsR,switch1.eps[1],switch1.eps[2],switch1.n,switch1.switch_a.epsG,switch1.switch_a.epsR,switch1.switch_b.epsG,switch1.switch_b.epsR,switch1.switch_c.epsG,switch1.switch_c.epsR,switch2.I_nom,switch2.V_nom,switch2.epsG,switch2.epsR,switch2.eps[1],switch2.eps[2],switch2.n,switch2.switch_a.epsG,switch2.switch_a.epsR,switch2.switch_b.epsG,switch2.switch_b.epsR,switch2.switch_c.epsG,switch2.switch_c.epsR,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,voltage1.S_nom,voltage1.V_base,voltage1.V_nom,voltage1.alpha,voltage1.alpha0,voltage1.f,voltage1.fType,voltage1.phi,voltage1.puUnits,voltage1.use_vPhasor_in,voltage1.v0,voltage1.vPhasor_internal[1],voltage1.vPhasor_internal[2],voltage2.S_nom,voltage2.V_base,voltage2.V_nom,voltage2.alpha,voltage2.alpha0,voltage2.f,voltage2.fType,voltage2.phi,voltage2.puUnits,voltage2.use_vPhasor_in,voltage2.v0,voltage2.vPhasor_internal[1],voltage2.vPhasor_internal[2]