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.001382/0.001383, allocations: 112.3 kB / 17.68 MB, free: 5.473 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.001583/0.001583, allocations: 190.9 kB / 18.62 MB, free: 4.543 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.381/1.381, allocations: 222.9 MB / 242.3 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1734/0.1734, allocations: 38.04 MB / 330.5 MB, free: 8.777 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001266/0.001266, allocations: 66.16 kB / 400.3 MB, free: 33.38 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1102/0.1115, allocations: 58.07 MB / 458.3 MB, free: 7.332 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Elementary.Line): time 0.006864/0.1184, allocations: 5.159 MB / 463.5 MB, free: 2.145 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003365/0.1218, allocations: 1.753 MB / 465.2 MB, free: 396 kB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002713/0.1221, allocations: 19.88 kB / 465.3 MB, free: 376 kB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001258/0.1234, allocations: 442 kB / 465.7 MB, free: 15.93 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000633/0.124, allocations: 310.4 kB / 466 MB, free: 15.63 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009171/0.1249, allocations: 351.2 kB / 466.3 MB, free: 15.29 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007611/0.1257, allocations: 0.7636 MB / 467.1 MB, free: 14.52 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004948/0.1262, allocations: 374.2 kB / 467.5 MB, free: 14.15 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003817/0.1266, allocations: 334.7 kB / 467.8 MB, free: 13.82 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005643/0.1272, allocations: 462.6 kB / 468.2 MB, free: 13.37 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.211e-05/0.1273, allocations: 48 kB / 468.3 MB, free: 13.32 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002854/0.1275, allocations: 175.8 kB / 468.5 MB, free: 13.15 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002493/0.1278, allocations: 287.3 kB / 468.7 MB, free: 12.87 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000302/0.1281, allocations: 334.3 kB / 469.1 MB, free: 12.54 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008236/0.1289, allocations: 0.8216 MB / 469.9 MB, free: 11.71 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.49e-06/0.129, allocations: 0 / 469.9 MB, free: 11.71 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.535e-06/0.129, allocations: 0 / 469.9 MB, free: 11.71 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.028e-05/0.129, 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.001546/0.1305, allocations: 0.9059 MB / 470.8 MB, free: 10.76 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.419e-05/0.1306, allocations: 15.83 kB / 470.8 MB, free: 10.75 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008904/0.1315, allocations: 132.1 kB / 470.9 MB, free: 10.62 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009668/0.1325, allocations: 0.5431 MB / 471.5 MB, free: 10.04 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.294e-05/0.1325, allocations: 41.06 kB / 471.5 MB, free: 9.992 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000328/0.1328, allocations: 135.8 kB / 471.7 MB, free: 9.859 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001138/0.134, allocations: 0.8509 MB / 472.5 MB, free: 8.945 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.426e-05/0.134, allocations: 11.92 kB / 472.5 MB, free: 8.934 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.764e-05/0.1341, allocations: 19.98 kB / 472.5 MB, free: 8.914 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004157/0.1345, allocations: 72.94 kB / 472.6 MB, free: 8.844 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009228/0.1354, allocations: 0.6205 MB / 473.2 MB, free: 8.219 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004375/0.1398, allocations: 3.773 MB / 477 MB, free: 4.281 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009976/0.1408, allocations: 0.5567 MB / 477.6 MB, free: 3.707 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004228/0.1413, allocations: 319 kB / 477.9 MB, free: 3.387 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.983e-05/0.1413, allocations: 8.438 kB / 477.9 MB, free: 3.379 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.066e-05/0.1414, allocations: 42.94 kB / 477.9 MB, free: 3.328 MB / 350.1 MB Notification: Performance of pre-optimization done (n=48): time 3.096e-06/0.1414, allocations: 0 / 477.9 MB, free: 3.328 MB / 350.1 MB Notification: Performance of matching and sorting (n=49): time 0.002754/0.1441, allocations: 1.838 MB / 479.8 MB, free: 1.445 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.842e-05/0.1442, allocations: 81.55 kB / 479.8 MB, free: 1.348 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003875/0.1446, allocations: 421.8 kB / 480.2 MB, free: 0.9258 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.105e-05/0.1446, allocations: 33.7 kB / 480.3 MB, free: 0.8867 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001882/0.1448, allocations: 335.6 kB / 480.6 MB, free: 0.5547 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001546/0.145, allocations: 197.3 kB / 480.8 MB, free: 368 kB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002033/0.1452, allocations: 146.2 kB / 480.9 MB, free: 216 kB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001584/0.1454, allocations: 370.7 kB / 481.3 MB, free: 15.84 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005528/0.1459, allocations: 377.5 kB / 481.7 MB, free: 15.47 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006774/0.1466, allocations: 0.6018 MB / 482.3 MB, free: 14.77 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001248/0.1479, allocations: 1.061 MB / 483.3 MB, free: 13.61 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.63e-06/0.1479, allocations: 4 kB / 483.3 MB, free: 13.61 MB / 366.1 MB Notification: Performance of matching and sorting (n=100) (initialization): time 0.004126/0.152, allocations: 2.003 MB / 485.3 MB, free: 11.59 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.135e-05/0.1521, allocations: 8 kB / 485.3 MB, free: 11.58 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.18e-05/0.1521, allocations: 4 kB / 485.4 MB, free: 11.57 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002323/0.1544, allocations: 0.9769 MB / 486.3 MB, free: 10.59 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003953/0.1548, allocations: 115.8 kB / 486.4 MB, free: 10.48 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01022/0.165, allocations: 8.193 MB / 494.6 MB, free: 1.996 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005018/0.1656, allocations: 31.97 kB / 494.7 MB, free: 1.965 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.442e-05/0.1656, allocations: 36 kB / 494.7 MB, free: 1.93 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.000393/0.166, allocations: 257.5 kB / 495 MB, free: 1.668 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00011/0.1662, allocations: 47.44 kB / 495 MB, free: 1.621 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001225/0.1674, allocations: 0.7296 MB / 495.7 MB, free: 0.8867 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.239e-06/0.1674, allocations: 4 kB / 495.7 MB, free: 0.8828 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.864e-06/0.1674, allocations: 0 / 495.7 MB, free: 0.8828 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.224e-06/0.1674, allocations: 3.938 kB / 495.7 MB, free: 0.8789 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002588/0.17, allocations: 1.521 MB / 497.3 MB, free: 15.3 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.63e-06/0.17, allocations: 8.094 kB / 497.3 MB, free: 15.29 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001025/0.1711, allocations: 183.8 kB / 497.4 MB, free: 15.11 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.35e-06/0.1711, allocations: 4 kB / 497.4 MB, free: 15.11 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.769e-05/0.1712, allocations: 35.91 kB / 497.5 MB, free: 15.07 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.498e-06/0.1712, allocations: 4 kB / 497.5 MB, free: 15.07 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.925e-06/0.1712, allocations: 4 kB / 497.5 MB, free: 15.06 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00129/0.1725, allocations: 0.9933 MB / 498.5 MB, free: 14.04 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001203/0.1726, allocations: 128.4 kB / 498.6 MB, free: 13.89 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.844e-05/0.1727, allocations: 31.98 kB / 498.6 MB, free: 13.86 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003336/0.173, allocations: 19.97 kB / 498.7 MB, free: 13.84 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.807e-05/0.1731, allocations: 32.39 kB / 498.7 MB, free: 13.81 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.137e-05/0.1732, allocations: 16 kB / 498.7 MB, free: 13.8 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002812/0.1735, allocations: 283.1 kB / 499 MB, free: 13.52 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1735, allocations: 0 / 499 MB, free: 13.52 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0007756/0.1743, allocations: 212 kB / 499.2 MB, free: 13.31 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.0001823/0.1744, allocations: 131.2 kB / 499.3 MB, free: 13.18 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002535/0.177, allocations: 1.469 MB / 0.4891 GB, free: 11.68 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.697e-06/0.177, allocations: 0 / 0.4891 GB, free: 11.68 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000455/0.1775, allocations: 310.3 kB / 0.4893 GB, free: 11.38 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006712/0.1782, allocations: 125.8 kB / 0.4895 GB, free: 11.25 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00407/0.1822, allocations: 2.688 MB / 0.4921 GB, free: 8.523 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005657/0.1828, allocations: 0.9843 MB / 0.4931 GB, free: 7.512 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0004664/0.1833, allocations: 200.6 kB / 0.4932 GB, free: 7.312 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001833/0.1835, allocations: 47.42 kB / 0.4933 GB, free: 7.27 MB / 382.1 MB Notification: Performance of SimCode: time 9.12e-07/0.1835, allocations: 3.938 kB / 0.4933 GB, free: 7.266 MB / 382.1 MB Notification: Performance of Templates: time 0.01711/0.2006, allocations: 10.62 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 gbode -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]