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.001586/0.001585, allocations: 115.5 kB / 17.69 MB, free: 5.438 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.001907/0.001907, allocations: 192 kB / 18.63 MB, free: 4.504 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.457/1.457, allocations: 222.9 MB / 242.3 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1902/0.1902, allocations: 38.04 MB / 330.5 MB, free: 8.785 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00133/0.00133, allocations: 65.84 kB / 400.3 MB, free: 33.39 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.128/0.1293, allocations: 58.07 MB / 458.3 MB, free: 7.348 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Elementary.Line): time 0.007053/0.1364, allocations: 5.171 MB / 463.5 MB, free: 2.148 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002855/0.1393, allocations: 1.757 MB / 465.3 MB, free: 396 kB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002143/0.1396, allocations: 15.88 kB / 465.3 MB, free: 380 kB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001266/0.1408, allocations: 442 kB / 465.7 MB, free: 15.93 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006263/0.1415, allocations: 306.3 kB / 466 MB, free: 15.64 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009053/0.1424, allocations: 359.2 kB / 466.4 MB, free: 15.29 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007792/0.1432, allocations: 0.7558 MB / 467.1 MB, free: 14.53 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000552/0.1437, allocations: 374.1 kB / 467.5 MB, free: 14.16 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004311/0.1442, allocations: 338.7 kB / 467.8 MB, free: 13.82 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006699/0.1449, allocations: 458.6 kB / 468.3 MB, free: 13.38 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.937e-05/0.145, allocations: 55.94 kB / 468.3 MB, free: 13.32 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003595/0.1453, allocations: 175.7 kB / 468.5 MB, free: 13.15 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003115/0.1457, allocations: 283.3 kB / 468.8 MB, free: 12.87 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003886/0.146, allocations: 334.3 kB / 469.1 MB, free: 12.54 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009959/0.1471, allocations: 0.8216 MB / 469.9 MB, free: 11.72 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.983e-06/0.1471, allocations: 0 / 469.9 MB, free: 11.72 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.134e-06/0.1471, allocations: 4 kB / 469.9 MB, free: 11.71 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.331e-05/0.1471, allocations: 0 / 469.9 MB, free: 11.71 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.001909/0.149, allocations: 0.9058 MB / 470.8 MB, free: 10.76 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.497e-05/0.1491, allocations: 11.89 kB / 470.8 MB, free: 10.75 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001058/0.1502, allocations: 136.1 kB / 471 MB, free: 10.62 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001258/0.1514, allocations: 0.5392 MB / 471.5 MB, free: 10.04 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.897e-05/0.1515, allocations: 37.11 kB / 471.5 MB, free: 10 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003851/0.1519, allocations: 131.8 kB / 471.7 MB, free: 9.871 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001495/0.1534, allocations: 0.8548 MB / 472.5 MB, free: 8.953 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.592e-05/0.1534, allocations: 11.94 kB / 472.5 MB, free: 8.941 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.093e-05/0.1535, allocations: 20 kB / 472.5 MB, free: 8.922 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004351/0.154, allocations: 76.92 kB / 472.6 MB, free: 8.848 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001207/0.1552, allocations: 0.6127 MB / 473.2 MB, free: 8.23 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00568/0.1609, allocations: 3.781 MB / 477 MB, free: 4.285 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001162/0.1621, allocations: 0.5499 MB / 477.6 MB, free: 3.715 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000453/0.1626, allocations: 319 kB / 477.9 MB, free: 3.395 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.439e-05/0.1626, allocations: 8.422 kB / 477.9 MB, free: 3.387 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.191e-05/0.1627, allocations: 42.94 kB / 477.9 MB, free: 3.336 MB / 350.1 MB Notification: Performance of pre-optimization done (n=48): time 3.296e-06/0.1627, allocations: 3.938 kB / 477.9 MB, free: 3.332 MB / 350.1 MB Notification: Performance of matching and sorting (n=49): time 0.003232/0.1659, allocations: 1.838 MB / 479.8 MB, free: 1.449 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.984e-05/0.166, allocations: 81.55 kB / 479.8 MB, free: 1.352 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004872/0.1665, allocations: 421.7 kB / 480.3 MB, free: 0.9297 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.254e-05/0.1666, allocations: 33.7 kB / 480.3 MB, free: 0.8906 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002815/0.1668, allocations: 331.6 kB / 480.6 MB, free: 0.5625 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001909/0.167, allocations: 201.3 kB / 480.8 MB, free: 372 kB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002294/0.1673, allocations: 142.2 kB / 481 MB, free: 224 kB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002455/0.1675, allocations: 374.7 kB / 481.3 MB, free: 15.84 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005755/0.1681, allocations: 381.5 kB / 481.7 MB, free: 15.47 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007701/0.1689, allocations: 0.594 MB / 482.3 MB, free: 14.78 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001367/0.1703, allocations: 1.061 MB / 483.3 MB, free: 13.62 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.066e-06/0.1703, allocations: 0 / 483.3 MB, free: 13.62 MB / 366.1 MB Notification: Performance of matching and sorting (n=100) (initialization): time 0.004366/0.1747, allocations: 2.003 MB / 485.3 MB, free: 11.6 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.438e-05/0.1747, allocations: 15.94 kB / 485.4 MB, free: 11.58 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.543e-05/0.1747, allocations: 4 kB / 485.4 MB, free: 11.58 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002432/0.1772, allocations: 0.9774 MB / 486.3 MB, free: 10.59 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004396/0.1776, allocations: 115.8 kB / 486.5 MB, free: 10.48 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01169/0.1893, allocations: 8.189 MB / 494.6 MB, free: 2.004 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005949/0.19, allocations: 35.97 kB / 494.7 MB, free: 1.969 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.873e-05/0.1901, allocations: 32 kB / 494.7 MB, free: 1.938 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.00039/0.1905, allocations: 257.4 kB / 495 MB, free: 1.676 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001044/0.1906, allocations: 47.44 kB / 495 MB, free: 1.629 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001198/0.1918, allocations: 0.7335 MB / 495.7 MB, free: 0.8906 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.982e-06/0.1918, allocations: 4 kB / 495.7 MB, free: 0.8867 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.088e-06/0.1918, allocations: 0 / 495.7 MB, free: 0.8867 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.922e-06/0.1918, allocations: 3.938 kB / 495.8 MB, free: 0.8828 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00258/0.1944, allocations: 1.521 MB / 497.3 MB, free: 15.3 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.089e-06/0.1944, allocations: 4 kB / 497.3 MB, free: 15.3 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001028/0.1954, allocations: 183.8 kB / 497.5 MB, free: 15.12 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.48e-06/0.1955, allocations: 0 / 497.5 MB, free: 15.12 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.566e-05/0.1955, allocations: 31.92 kB / 497.5 MB, free: 15.09 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.153e-06/0.1955, allocations: 12.08 kB / 497.5 MB, free: 15.07 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.132e-06/0.1956, allocations: 0 / 497.5 MB, free: 15.07 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001341/0.1969, allocations: 0.9933 MB / 498.5 MB, free: 14.05 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001412/0.1971, allocations: 132.4 kB / 498.6 MB, free: 13.9 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.016e-05/0.1971, allocations: 27.98 kB / 498.6 MB, free: 13.88 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003273/0.1975, allocations: 27.97 kB / 498.7 MB, free: 13.85 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.141e-05/0.1976, allocations: 28.41 kB / 498.7 MB, free: 13.82 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.244e-05/0.1976, allocations: 15.98 kB / 498.7 MB, free: 13.8 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003054/0.1979, allocations: 279.1 kB / 499 MB, free: 13.53 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1979, allocations: 0 / 499 MB, free: 13.53 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0009076/0.1989, allocations: 216 kB / 499.2 MB, free: 13.32 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.0001937/0.1991, allocations: 131.2 kB / 499.3 MB, free: 13.18 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002582/0.2016, allocations: 1.469 MB / 0.4891 GB, free: 11.69 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.938e-06/0.2017, allocations: 0 / 0.4891 GB, free: 11.69 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004372/0.2021, allocations: 303.1 kB / 0.4894 GB, free: 11.39 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006582/0.2028, allocations: 140.7 kB / 0.4895 GB, free: 11.26 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004022/0.2068, allocations: 2.678 MB / 0.4921 GB, free: 8.539 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006055/0.2074, allocations: 0.9843 MB / 0.4931 GB, free: 7.527 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0004771/0.2079, allocations: 204.6 kB / 0.4933 GB, free: 7.324 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001734/0.2081, allocations: 47.36 kB / 0.4933 GB, free: 7.281 MB / 382.1 MB Notification: Performance of SimCode: time 8.51e-07/0.2081, allocations: 4 kB / 0.4933 GB, free: 7.277 MB / 382.1 MB Notification: Performance of Templates: time 0.01762/0.2257, allocations: 10.63 MB / 0.5037 GB, free: 12.7 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 -s cvode -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]