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.00126/0.00126, allocations: 112.6 kB / 17.07 MB, free: 5.977 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.001273/0.001273, allocations: 195 kB / 18 MB, free: 5.066 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.421/1.421, allocations: 222.9 MB / 241.7 MB, free: 15.13 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1866/0.1866, allocations: 38.05 MB / 329.9 MB, free: 8.73 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001332/0.001332, allocations: 67.89 kB / 458.2 MB, free: 6.84 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4738/0.4751, allocations: 58.05 MB / 0.5041 GB, free: 7.809 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Elementary.Line): time 0.006804/0.482, allocations: 5.174 MB / 0.5092 GB, free: 4.195 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.003024/0.4851, allocations: 1.749 MB / 0.5109 GB, free: 2.977 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003263/0.4854, allocations: 18.09 kB / 0.5109 GB, free: 2.969 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001329/0.4868, allocations: 440.8 kB / 0.5113 GB, free: 2.707 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008103/0.4876, allocations: 304.4 kB / 0.5116 GB, free: 2.531 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001314/0.489, allocations: 356.3 kB / 0.5119 GB, free: 2.387 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001118/0.4901, allocations: 0.7621 MB / 0.5127 GB, free: 2.062 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006362/0.4907, allocations: 384.9 kB / 0.513 GB, free: 1.898 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004638/0.4912, allocations: 334.4 kB / 0.5134 GB, free: 1.758 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007088/0.4919, allocations: 450.6 kB / 0.5138 GB, free: 1.613 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001202/0.4921, allocations: 50.66 kB / 0.5138 GB, free: 1.613 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000392/0.4925, allocations: 177.5 kB / 0.514 GB, free: 1.566 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000316/0.4928, allocations: 289.9 kB / 0.5143 GB, free: 1.465 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003431/0.4931, allocations: 337.1 kB / 0.5146 GB, free: 1.273 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001135/0.4943, allocations: 0.8173 MB / 0.5154 GB, free: 0.9766 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.021e-06/0.4943, allocations: 0 / 0.5154 GB, free: 0.9766 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.343e-06/0.4943, allocations: 0 / 0.5154 GB, free: 0.9766 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.127e-05/0.4943, allocations: 0 / 0.5154 GB, free: 0.9766 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.001886/0.4962, allocations: 0.9278 MB / 0.5163 GB, free: 312 kB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.199e-05/0.4963, allocations: 9.094 kB / 0.5163 GB, free: 312 kB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00104/0.4973, allocations: 138.8 kB / 0.5165 GB, free: 272 kB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001044/0.4984, allocations: 0.5359 MB / 0.517 GB, free: 15.93 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.633e-05/0.4984, allocations: 39.06 kB / 0.517 GB, free: 15.91 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004351/0.4989, allocations: 126.4 kB / 0.5171 GB, free: 15.88 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001565/0.5004, allocations: 0.8655 MB / 0.518 GB, free: 15.44 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.171e-05/0.5005, allocations: 5.906 kB / 0.518 GB, free: 15.44 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.62e-05/0.5006, allocations: 22.22 kB / 0.518 GB, free: 15.42 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004828/0.5011, allocations: 76.02 kB / 0.5181 GB, free: 15.41 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00132/0.5024, allocations: 0.6158 MB / 0.5187 GB, free: 15.22 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004907/0.5073, allocations: 3.793 MB / 0.5224 GB, free: 12.58 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001162/0.5085, allocations: 0.5426 MB / 0.5229 GB, free: 12.37 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005151/0.509, allocations: 320.9 kB / 0.5232 GB, free: 12.25 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.346e-05/0.5091, allocations: 11.05 kB / 0.5232 GB, free: 12.25 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.835e-05/0.5091, allocations: 42.64 kB / 0.5233 GB, free: 12.2 MB / 398.1 MB Notification: Performance of pre-optimization done (n=48): time 3.316e-06/0.5091, allocations: 4 kB / 0.5233 GB, free: 12.19 MB / 398.1 MB Notification: Performance of matching and sorting (n=49): time 0.003566/0.5127, allocations: 1.842 MB / 0.5251 GB, free: 11.29 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.303e-05/0.5128, allocations: 86.39 kB / 0.5252 GB, free: 11.2 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005978/0.5134, allocations: 418.4 kB / 0.5256 GB, free: 11 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 5.507e-05/0.5135, allocations: 30.98 kB / 0.5256 GB, free: 10.97 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003007/0.5138, allocations: 340.9 kB / 0.5259 GB, free: 10.69 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002485/0.514, allocations: 210.5 kB / 0.5261 GB, free: 10.53 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002829/0.5143, allocations: 150 kB / 0.5263 GB, free: 10.46 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002071/0.5145, allocations: 372.6 kB / 0.5266 GB, free: 10.12 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006252/0.5152, allocations: 376.9 kB / 0.527 GB, free: 10 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008144/0.516, allocations: 0.6031 MB / 0.5276 GB, free: 9.605 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001633/0.5176, allocations: 1.073 MB / 0.5286 GB, free: 8.996 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.169e-06/0.5176, allocations: 2.719 kB / 0.5286 GB, free: 8.996 MB / 398.1 MB Notification: Performance of matching and sorting (n=100) (initialization): time 0.005037/0.5227, allocations: 1.998 MB / 0.5306 GB, free: 8.297 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.93e-05/0.5227, allocations: 12.16 kB / 0.5306 GB, free: 8.293 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.365e-05/0.5228, allocations: 6.969 kB / 0.5306 GB, free: 8.293 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003143/0.5259, allocations: 0.9742 MB / 0.5315 GB, free: 8.051 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005884/0.5265, allocations: 117.9 kB / 0.5316 GB, free: 8.023 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01292/0.5395, allocations: 8.203 MB / 0.5397 GB, free: 2.398 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008479/0.5404, allocations: 30.14 kB / 0.5397 GB, free: 2.387 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.569e-05/0.5405, allocations: 38.48 kB / 0.5397 GB, free: 2.375 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.0004954/0.541, allocations: 250.8 kB / 0.54 GB, free: 2.18 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001264/0.5411, allocations: 55.45 kB / 0.54 GB, free: 2.148 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001388/0.5425, allocations: 0.7234 MB / 0.5407 GB, free: 1.754 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.157e-06/0.5425, allocations: 5.719 kB / 0.5407 GB, free: 1.754 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.288e-06/0.5425, allocations: 1.406 kB / 0.5407 GB, free: 1.754 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.758e-06/0.5425, allocations: 3.984 kB / 0.5407 GB, free: 1.75 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002818/0.5454, allocations: 1.515 MB / 0.5422 GB, free: 0.5547 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.322e-06/0.5454, allocations: 0 / 0.5422 GB, free: 0.5547 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001026/0.5464, allocations: 199.8 kB / 0.5424 GB, free: 368 kB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.915e-06/0.5464, allocations: 7.938 kB / 0.5424 GB, free: 360 kB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.784e-05/0.5465, allocations: 35.92 kB / 0.5424 GB, free: 324 kB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.867e-06/0.5465, allocations: 0 / 0.5424 GB, free: 324 kB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.685e-06/0.5465, allocations: 4 kB / 0.5424 GB, free: 320 kB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001408/0.5479, allocations: 0.9937 MB / 0.5434 GB, free: 15.29 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000205/0.5482, allocations: 128.7 kB / 0.5435 GB, free: 15.15 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.847e-05/0.5483, allocations: 31.92 kB / 0.5436 GB, free: 15.12 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003416/0.5486, allocations: 23.97 kB / 0.5436 GB, free: 15.09 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.936e-05/0.5487, allocations: 32.39 kB / 0.5436 GB, free: 15.06 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.842e-05/0.5488, allocations: 19.98 kB / 0.5436 GB, free: 15.04 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0003568/0.5491, allocations: 283.1 kB / 0.5439 GB, free: 14.76 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.5492, allocations: 4 kB / 0.5439 GB, free: 14.76 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001123/0.5503, allocations: 212 kB / 0.5441 GB, free: 14.55 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 21 (line.v[1,1],line.v[1,2],line.v[1,3],line.v[2,1],line.v[2,2],line.v[2,3],line.v[3,1],line.v[3,2],line.v[3,3],line.i[1,1],line.i[1,2],line.i[1,3],line.i[1,4],line.i[2,1],line.i[2,2],line.i[2,3],line.i[2,4],line.i[3,1],line.i[3,2],line.i[3,3],line.i[3,4]) * 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 simulation (52): * Single equations (assignments): 51 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001762/0.5505, allocations: 123.2 kB / 0.5442 GB, free: 14.42 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.002722/0.5532, allocations: 1.48 MB / 0.5457 GB, free: 12.92 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 6.212e-06/0.5532, allocations: 4.125 kB / 0.5457 GB, free: 12.92 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004352/0.5537, allocations: 314.3 kB / 0.546 GB, free: 12.61 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00072/0.5544, allocations: 128 kB / 0.5461 GB, free: 12.49 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004773/0.5592, allocations: 2.708 MB / 0.5488 GB, free: 9.738 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007684/0.56, allocations: 0.9882 MB / 0.5497 GB, free: 8.723 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0006233/0.5606, allocations: 200.6 kB / 0.5499 GB, free: 8.527 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001995/0.5608, allocations: 43.42 kB / 0.55 GB, free: 8.484 MB / 414.1 MB Notification: Performance of SimCode: time 1.072e-06/0.5608, allocations: 4 kB / 0.55 GB, free: 8.48 MB / 414.1 MB Notification: Performance of Templates: time 0.0195/0.5803, allocations: 10.86 MB / 0.5606 GB, free: 13.68 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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC3ph.Elementary.Line.mat","/var/lib/jenkins/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]