Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Line.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.Line,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,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.Line") translateModel(PowerSystems.Examples.AC3ph.Elementary.Line,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,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.Line") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001037/0.001037, allocations: 111 kB / 17.75 MB, free: 5.332 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.00111/0.00111, allocations: 186.5 kB / 18.67 MB, free: 4.418 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.3/1.3, allocations: 222.9 MB / 242.4 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1728/0.1728, allocations: 38.04 MB / 330.6 MB, free: 8.762 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001237/0.001237, allocations: 63.91 kB / 458.8 MB, free: 6.859 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3089/0.3102, allocations: 58.05 MB / 0.5048 GB, free: 7.746 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Elementary.Line): time 0.005715/0.3159, allocations: 5.186 MB / 0.5098 GB, free: 4.129 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.003014/0.319, allocations: 1.75 MB / 0.5115 GB, free: 2.914 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002487/0.3192, allocations: 15.69 kB / 0.5116 GB, free: 2.91 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001127/0.3204, allocations: 444.6 kB / 0.512 GB, free: 2.648 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006732/0.3211, allocations: 300.3 kB / 0.5123 GB, free: 2.477 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009174/0.322, allocations: 353.1 kB / 0.5126 GB, free: 2.336 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.000812/0.3228, allocations: 0.7651 MB / 0.5134 GB, free: 2.008 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005209/0.3234, allocations: 384.8 kB / 0.5137 GB, free: 1.844 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004538/0.3238, allocations: 335.5 kB / 0.514 GB, free: 1.707 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006654/0.3245, allocations: 471 kB / 0.5145 GB, free: 1.543 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001282/0.3246, allocations: 50.94 kB / 0.5145 GB, free: 1.543 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000367/0.325, allocations: 165.9 kB / 0.5147 GB, free: 1.508 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003265/0.3254, allocations: 290.5 kB / 0.515 GB, free: 1.406 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003168/0.3257, allocations: 336.5 kB / 0.5153 GB, free: 1.215 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008982/0.3266, allocations: 0.8094 MB / 0.5161 GB, free: 0.9258 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.907e-06/0.3266, allocations: 1.469 kB / 0.5161 GB, free: 0.9258 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.092e-06/0.3266, allocations: 0 / 0.5161 GB, free: 0.9258 MB / 382.1 MB Notification: Performance of Transformations before backend: time 9.689e-06/0.3266, allocations: 0 / 0.5161 GB, free: 0.9258 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 139 * Number of variables: 139 Notification: Performance of Generate backend data structure: time 0.001595/0.3282, allocations: 0.9081 MB / 0.517 GB, free: 280 kB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.679e-05/0.3283, allocations: 12.83 kB / 0.517 GB, free: 276 kB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001023/0.3293, allocations: 141.6 kB / 0.5171 GB, free: 232 kB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001086/0.3304, allocations: 0.5351 MB / 0.5176 GB, free: 15.89 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.314e-05/0.3305, allocations: 39.94 kB / 0.5177 GB, free: 15.87 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004146/0.3309, allocations: 130.5 kB / 0.5178 GB, free: 15.84 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001334/0.3322, allocations: 0.8575 MB / 0.5186 GB, free: 15.41 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.875e-05/0.3323, allocations: 10.12 kB / 0.5187 GB, free: 15.4 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.709e-05/0.3324, allocations: 22.23 kB / 0.5187 GB, free: 15.39 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000442/0.3328, allocations: 74.98 kB / 0.5187 GB, free: 15.38 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001011/0.3338, allocations: 0.6249 MB / 0.5194 GB, free: 15.18 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004661/0.3385, allocations: 3.774 MB / 0.523 GB, free: 12.55 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001102/0.3396, allocations: 0.5331 MB / 0.5236 GB, free: 12.36 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004696/0.3401, allocations: 320.1 kB / 0.5239 GB, free: 12.23 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.225e-05/0.3402, allocations: 14.67 kB / 0.5239 GB, free: 12.23 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.754e-05/0.3402, allocations: 42.25 kB / 0.5239 GB, free: 12.18 MB / 398.1 MB Notification: Performance of pre-optimization done (n=48): time 3.106e-06/0.3402, allocations: 0 / 0.5239 GB, free: 12.18 MB / 398.1 MB Notification: Performance of matching and sorting (n=49): time 0.0033/0.3435, allocations: 1.834 MB / 0.5257 GB, free: 11.29 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.944e-05/0.3436, allocations: 86.59 kB / 0.5258 GB, free: 11.19 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005242/0.3441, allocations: 416.7 kB / 0.5262 GB, free: 11 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 6.048e-05/0.3442, allocations: 36.89 kB / 0.5262 GB, free: 10.96 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002515/0.3445, allocations: 330.5 kB / 0.5265 GB, free: 10.69 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001955/0.3447, allocations: 205.4 kB / 0.5267 GB, free: 10.53 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002291/0.3449, allocations: 146.1 kB / 0.5269 GB, free: 10.46 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002491/0.3451, allocations: 369.3 kB / 0.5272 GB, free: 10.12 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005357/0.3457, allocations: 385.2 kB / 0.5276 GB, free: 10 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000704/0.3464, allocations: 0.5955 MB / 0.5282 GB, free: 9.613 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001376/0.3478, allocations: 1.072 MB / 0.5292 GB, free: 9.004 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.849e-06/0.3478, allocations: 2.688 kB / 0.5292 GB, free: 9.004 MB / 398.1 MB Notification: Performance of matching and sorting (n=100) (initialization): time 0.004473/0.3523, allocations: 2.005 MB / 0.5312 GB, free: 8.297 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.023e-05/0.3523, allocations: 8.125 kB / 0.5312 GB, free: 8.297 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.53e-05/0.3523, allocations: 8.062 kB / 0.5312 GB, free: 8.297 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002523/0.3549, allocations: 0.9635 MB / 0.5321 GB, free: 8.078 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004354/0.3553, allocations: 121.8 kB / 0.5323 GB, free: 8.047 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01065/0.366, allocations: 8.179 MB / 0.5402 GB, free: 2.445 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000624/0.3666, allocations: 36.55 kB / 0.5403 GB, free: 2.426 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.462e-05/0.3667, allocations: 39.55 kB / 0.5403 GB, free: 2.414 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 32 * 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 (60): * Single equations (assignments): 58 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,6,100.0%), (23,12,23.8%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0003987/0.3671, allocations: 255.3 kB / 0.5406 GB, free: 2.215 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000106/0.3672, allocations: 50.25 kB / 0.5406 GB, free: 2.188 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001247/0.3685, allocations: 0.727 MB / 0.5413 GB, free: 1.789 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.324e-06/0.3685, allocations: 1.094 kB / 0.5413 GB, free: 1.789 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.599e-06/0.3685, allocations: 5.234 kB / 0.5413 GB, free: 1.785 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001365/0.3687, allocations: 127.8 kB / 0.5414 GB, free: 1.656 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.648e-05/0.3688, allocations: 29.45 kB / 0.5415 GB, free: 1.641 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003274/0.3691, allocations: 25.5 kB / 0.5415 GB, free: 1.625 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001146/0.3692, allocations: 30.73 kB / 0.5415 GB, free: 1.609 MB / 398.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.003023/0.3722, allocations: 1.265 MB / 0.5428 GB, free: 0.7461 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.00174/0.374, allocations: 1.38 MB / 0.5441 GB, free: 15.35 MB / 414.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.000512/0.3745, allocations: 375.2 kB / 0.5445 GB, free: 14.98 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0003353/0.3749, allocations: 275.1 kB / 0.5447 GB, free: 14.71 MB / 414.1 MB Notification: Performance of Backend: time 2.71e-07/0.3749, allocations: 0 / 0.5447 GB, free: 14.71 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.003138/0.378, allocations: 1.384 MB / 0.5461 GB, free: 13.3 MB / 414.1 MB Notification: Performance of SimCode: time 0.003508/0.3815, allocations: 2.891 MB / 0.5489 GB, free: 10.36 MB / 414.1 MB Notification: Performance of Templates: time 0.02125/0.4028, allocations: 13.18 MB / 0.5618 GB, free: 13.23 MB / 430.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Line.makefile (rm -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Line.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Line.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Line.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Line.sim & ./PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Line -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Line.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Line_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC3ph.Elementary.Line.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Line.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:$cse4,$cse5,line.C,line.C0,line.G,line.GC_base[1],line.GC_base[2],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.ne1,line.par.S_nom,line.par.V_nom,line.par.b_pg,line.par.b_pp,line.par.f_nom,line.par.g_pg,line.par.g_pp,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],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,transPh.a_end,transPh.a_start,transPh.coef,transPh.n,transPh.ph_end,transPh.ph_start,transPh.t_change,transPh.t_duration,voltage1.S_nom,voltage1.V_base,voltage1.V_nom,voltage1.alpha0,voltage1.f,voltage1.fType,voltage1.puUnits,voltage1.use_vPhasor_in,voltage1.v0,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]