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.001592/0.001592, allocations: 104.8 kB / 16.92 MB, free: 6.145 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.001776/0.001776, allocations: 187.4 kB / 17.85 MB, free: 5.285 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.428/1.428, allocations: 222.9 MB / 241.5 MB, free: 15.21 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1723/0.1723, allocations: 38.04 MB / 329.7 MB, free: 8.832 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00123/0.00123, allocations: 57.38 kB / 398.8 MB, free: 34.06 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1088/0.11, allocations: 58.06 MB / 456.9 MB, free: 8.059 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Elementary.Line): time 0.008345/0.1184, allocations: 5.182 MB / 462 MB, free: 2.848 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003622/0.1221, allocations: 1.753 MB / 463.8 MB, free: 1.09 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006664/0.1228, allocations: 19.88 kB / 463.8 MB, free: 1.07 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001554/0.1243, allocations: 438 kB / 464.2 MB, free: 0.6406 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008632/0.1252, allocations: 298.4 kB / 464.5 MB, free: 356 kB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001062/0.1263, allocations: 359.2 kB / 464.9 MB, free: 15.99 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001151/0.1275, allocations: 0.7559 MB / 465.6 MB, free: 15.23 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007022/0.1282, allocations: 382.1 kB / 466 MB, free: 14.86 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006565/0.1288, allocations: 334.7 kB / 466.3 MB, free: 14.53 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009073/0.1298, allocations: 462.5 kB / 466.8 MB, free: 14.08 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001832/0.13, allocations: 48 kB / 466.8 MB, free: 14.03 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005242/0.1305, allocations: 171.8 kB / 467 MB, free: 13.86 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003758/0.1309, allocations: 291.2 kB / 467.3 MB, free: 13.58 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006605/0.1316, allocations: 330.4 kB / 467.6 MB, free: 13.25 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001126/0.1327, allocations: 0.8022 MB / 468.4 MB, free: 12.45 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.56e-06/0.1327, allocations: 3.938 kB / 468.4 MB, free: 12.45 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.1327, allocations: 4 kB / 468.4 MB, free: 12.44 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.029e-05/0.1328, allocations: 0 / 468.4 MB, free: 12.44 MB / 350.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.002634/0.1354, allocations: 0.9097 MB / 469.3 MB, free: 11.48 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.243e-05/0.1355, allocations: 11.89 kB / 469.3 MB, free: 11.47 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001239/0.1367, allocations: 136.1 kB / 469.5 MB, free: 11.34 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001035/0.1378, allocations: 0.5119 MB / 470 MB, free: 10.79 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.995e-05/0.1378, allocations: 41.12 kB / 470 MB, free: 10.75 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003496/0.1382, allocations: 127.8 kB / 470.2 MB, free: 10.62 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001322/0.1395, allocations: 0.8626 MB / 471 MB, free: 9.695 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.354e-05/0.1396, allocations: 3.938 kB / 471 MB, free: 9.691 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.69e-05/0.1396, allocations: 20 kB / 471 MB, free: 9.672 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004672/0.1401, allocations: 68.94 kB / 471.1 MB, free: 9.605 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009922/0.1411, allocations: 0.6205 MB / 471.7 MB, free: 8.98 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00424/0.1454, allocations: 3.796 MB / 475.5 MB, free: 5.02 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001081/0.1465, allocations: 0.546 MB / 476.1 MB, free: 4.453 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004577/0.1469, allocations: 319 kB / 476.4 MB, free: 4.133 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.811e-05/0.147, allocations: 8.422 kB / 476.4 MB, free: 4.125 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.706e-05/0.1471, allocations: 46.94 kB / 476.4 MB, free: 4.07 MB / 350.1 MB Notification: Performance of pre-optimization done (n=48): time 2.034e-06/0.1471, allocations: 0 / 476.4 MB, free: 4.07 MB / 350.1 MB Notification: Performance of matching and sorting (n=49): time 0.003021/0.1501, allocations: 1.83 MB / 478.3 MB, free: 2.195 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.764e-05/0.1502, allocations: 89.53 kB / 478.4 MB, free: 2.09 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000442/0.1506, allocations: 421.7 kB / 478.8 MB, free: 1.668 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.707e-05/0.1507, allocations: 33.83 kB / 478.8 MB, free: 1.629 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002351/0.1509, allocations: 331.6 kB / 479.1 MB, free: 1.301 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002/0.1511, allocations: 201.3 kB / 479.3 MB, free: 1.102 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002291/0.1514, allocations: 142.2 kB / 479.5 MB, free: 0.957 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001946/0.1516, allocations: 374.7 kB / 479.8 MB, free: 0.582 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005874/0.1522, allocations: 377.5 kB / 480.2 MB, free: 220 kB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007876/0.1529, allocations: 0.5979 MB / 480.8 MB, free: 15.52 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001426/0.1544, allocations: 1.065 MB / 481.9 MB, free: 14.35 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.32e-06/0.1544, allocations: 3.938 kB / 481.9 MB, free: 14.35 MB / 366.1 MB Notification: Performance of matching and sorting (n=100) (initialization): time 0.004462/0.1589, allocations: 2 MB / 483.9 MB, free: 12.33 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.036e-05/0.1589, allocations: 8 kB / 483.9 MB, free: 12.32 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.343e-05/0.1589, allocations: 8 kB / 483.9 MB, free: 12.32 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002395/0.1613, allocations: 0.9769 MB / 484.9 MB, free: 11.33 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004102/0.1618, allocations: 115.8 kB / 485 MB, free: 11.22 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0109/0.1727, allocations: 8.208 MB / 493.2 MB, free: 2.723 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005176/0.1732, allocations: 27.98 kB / 493.2 MB, free: 2.695 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.002e-05/0.1733, allocations: 47.98 kB / 493.3 MB, free: 2.648 MB / 366.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.0003914/0.1737, allocations: 245.5 kB / 493.5 MB, free: 2.398 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001247/0.1738, allocations: 51.44 kB / 493.5 MB, free: 2.348 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001261/0.1751, allocations: 0.7257 MB / 494.3 MB, free: 1.617 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.71e-06/0.1751, allocations: 4 kB / 494.3 MB, free: 1.613 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.014e-06/0.1751, allocations: 4 kB / 494.3 MB, free: 1.609 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.598e-06/0.1751, allocations: 3.984 kB / 494.3 MB, free: 1.605 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002496/0.1776, allocations: 1.517 MB / 495.8 MB, free: 28 kB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.931e-06/0.1777, allocations: 4 kB / 495.8 MB, free: 24 kB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001023/0.1787, allocations: 183.8 kB / 496 MB, free: 15.84 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.983e-06/0.1787, allocations: 0 / 496 MB, free: 15.84 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.832e-05/0.1788, allocations: 35.92 kB / 496 MB, free: 15.81 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.584e-06/0.1788, allocations: 7.938 kB / 496 MB, free: 15.8 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.104e-06/0.1788, allocations: 4.094 kB / 496 MB, free: 15.8 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001372/0.1802, allocations: 0.9934 MB / 497 MB, free: 14.77 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001516/0.1804, allocations: 128.4 kB / 497.1 MB, free: 14.63 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001019/0.1805, allocations: 23.98 kB / 497.2 MB, free: 14.61 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000352/0.1808, allocations: 31.97 kB / 497.2 MB, free: 14.57 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.978e-05/0.1809, allocations: 36.33 kB / 497.2 MB, free: 14.54 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.591e-05/0.181, allocations: 19.98 kB / 497.3 MB, free: 14.52 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002858/0.1813, allocations: 279.1 kB / 497.5 MB, free: 14.25 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1813, allocations: 0 / 497.5 MB, free: 14.25 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0008274/0.1821, allocations: 212 kB / 497.7 MB, free: 14.04 MB / 382.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.000167/0.1823, allocations: 127.2 kB / 497.9 MB, free: 13.91 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002817/0.1851, allocations: 1.656 MB / 499.5 MB, free: 12.23 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.048e-06/0.1851, allocations: 3.938 kB / 499.5 MB, free: 12.22 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004514/0.1856, allocations: 306.3 kB / 499.8 MB, free: 11.92 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006963/0.1863, allocations: 139.9 kB / 500 MB, free: 11.79 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00463/0.1909, allocations: 2.698 MB / 0.4909 GB, free: 9.051 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006747/0.1916, allocations: 0.9843 MB / 0.4918 GB, free: 8.039 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0005211/0.1921, allocations: 200.6 kB / 0.492 GB, free: 7.84 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001689/0.1923, allocations: 43.44 kB / 0.4921 GB, free: 7.801 MB / 382.1 MB Notification: Performance of SimCode: time 2.2e-07/0.1923, allocations: 0 / 0.4921 GB, free: 7.801 MB / 382.1 MB Notification: Performance of Templates: time 0.01712/0.2095, allocations: 10.62 MB / 0.5024 GB, free: 13.23 MB / 398.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]