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.001086/0.001086, allocations: 101.3 kB / 16.5 MB, free: 6.648 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.001234/0.001234, allocations: 194.4 kB / 17.42 MB, free: 6.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.399/1.399, allocations: 222.9 MB / 241.1 MB, free: 15.44 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.197/0.197, allocations: 38.05 MB / 329.3 MB, free: 9.074 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001352/0.001353, allocations: 62.47 kB / 398.1 MB, free: 34.54 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1204/0.1217, allocations: 58.06 MB / 456.2 MB, free: 8.551 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Elementary.Line): time 0.006971/0.1288, allocations: 6.026 MB / 462.2 MB, free: 2.488 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003193/0.132, allocations: 2.018 MB / 464.2 MB, free: 476 kB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00036/0.1324, allocations: 35.75 kB / 464.2 MB, free: 440 kB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001129/0.1335, allocations: 414.4 kB / 464.6 MB, free: 24 kB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005569/0.1341, allocations: 274.9 kB / 464.9 MB, free: 15.75 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007774/0.1349, allocations: 327.4 kB / 465.2 MB, free: 15.43 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008795/0.1358, allocations: 1.079 MB / 466.3 MB, free: 14.35 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004779/0.1362, allocations: 356.1 kB / 466.7 MB, free: 14 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003396/0.1366, allocations: 286.8 kB / 466.9 MB, free: 13.72 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005883/0.1372, allocations: 478.6 kB / 467.4 MB, free: 13.25 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.186e-05/0.1373, allocations: 32 kB / 467.4 MB, free: 13.22 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003307/0.1376, allocations: 171.7 kB / 467.6 MB, free: 13.05 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002556/0.1379, allocations: 267.3 kB / 467.9 MB, free: 12.79 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003232/0.1382, allocations: 318.4 kB / 468.2 MB, free: 12.48 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007284/0.139, allocations: 0.7865 MB / 469 MB, free: 11.69 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.727e-06/0.139, allocations: 0 / 469 MB, free: 11.69 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.532e-06/0.139, allocations: 0 / 469 MB, free: 11.69 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.416e-06/0.139, allocations: 4 kB / 469 MB, free: 11.68 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.001646/0.1407, allocations: 0.9136 MB / 469.9 MB, free: 10.72 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.579e-05/0.1407, allocations: 8.031 kB / 469.9 MB, free: 10.71 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009593/0.1417, allocations: 140 kB / 470 MB, free: 10.58 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000806/0.1425, allocations: 0.5003 MB / 470.5 MB, free: 10.03 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.07e-05/0.1425, allocations: 45.11 kB / 470.6 MB, free: 9.988 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003289/0.1429, allocations: 131.9 kB / 470.7 MB, free: 9.859 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001141/0.144, allocations: 0.8587 MB / 471.6 MB, free: 8.934 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.118e-05/0.144, allocations: 7.891 kB / 471.6 MB, free: 8.926 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.989e-05/0.1441, allocations: 23.94 kB / 471.6 MB, free: 8.902 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004518/0.1446, allocations: 68.94 kB / 471.7 MB, free: 8.832 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009769/0.1456, allocations: 0.6282 MB / 472.3 MB, free: 8.207 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004518/0.1501, allocations: 3.792 MB / 476.1 MB, free: 4.25 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001064/0.1512, allocations: 0.5343 MB / 476.6 MB, free: 3.695 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004622/0.1516, allocations: 322.9 kB / 476.9 MB, free: 3.371 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.105e-05/0.1517, allocations: 12.42 kB / 476.9 MB, free: 3.359 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.609e-05/0.1518, allocations: 38.94 kB / 477 MB, free: 3.312 MB / 350.1 MB Notification: Performance of pre-optimization done (n=48): time 2.605e-06/0.1518, allocations: 0 / 477 MB, free: 3.312 MB / 350.1 MB Notification: Performance of matching and sorting (n=49): time 0.003367/0.1551, allocations: 1.832 MB / 478.8 MB, free: 1.43 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.191e-05/0.1552, allocations: 93.47 kB / 478.9 MB, free: 1.316 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004653/0.1557, allocations: 417.8 kB / 479.3 MB, free: 0.8984 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.816e-05/0.1558, allocations: 33.69 kB / 479.3 MB, free: 0.8594 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002416/0.156, allocations: 323.7 kB / 479.7 MB, free: 0.5391 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001851/0.1562, allocations: 201.2 kB / 479.8 MB, free: 348 kB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002334/0.1564, allocations: 150.2 kB / 480 MB, free: 192 kB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001824/0.1566, allocations: 378.7 kB / 480.4 MB, free: 15.81 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005831/0.1572, allocations: 377.5 kB / 480.7 MB, free: 15.44 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007378/0.158, allocations: 0.594 MB / 481.3 MB, free: 14.75 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001393/0.1594, allocations: 1.068 MB / 482.4 MB, free: 13.58 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.541e-06/0.1594, allocations: 4 kB / 482.4 MB, free: 13.58 MB / 366.1 MB Notification: Performance of matching and sorting (n=100) (initialization): time 0.004535/0.1639, allocations: 1.999 MB / 484.4 MB, free: 11.56 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.171e-05/0.164, allocations: 8 kB / 484.4 MB, free: 11.55 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.569e-05/0.164, allocations: 4 kB / 484.4 MB, free: 11.55 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002477/0.1665, allocations: 0.9735 MB / 485.4 MB, free: 10.57 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004518/0.1669, allocations: 119.8 kB / 485.5 MB, free: 10.45 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01088/0.1778, allocations: 7.372 MB / 492.9 MB, free: 2.812 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005461/0.1784, allocations: 43.95 kB / 492.9 MB, free: 2.77 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.363e-05/0.1785, allocations: 32 kB / 492.9 MB, free: 2.738 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.0003776/0.1789, allocations: 253.6 kB / 493.2 MB, free: 2.48 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001324/0.179, allocations: 55.28 kB / 493.2 MB, free: 2.426 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001272/0.1803, allocations: 0.7257 MB / 494 MB, free: 1.684 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.943e-06/0.1803, allocations: 8 kB / 494 MB, free: 1.676 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.695e-06/0.1804, allocations: 0 / 494 MB, free: 1.676 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.68e-06/0.1804, allocations: 0 / 494 MB, free: 1.676 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002713/0.1831, allocations: 1.524 MB / 495.5 MB, free: 92 kB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.338e-06/0.1831, allocations: 0 / 495.5 MB, free: 92 kB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001133/0.1842, allocations: 179.8 kB / 495.7 MB, free: 15.91 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.153e-06/0.1843, allocations: 7.938 kB / 495.7 MB, free: 15.91 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.723e-05/0.1843, allocations: 31.97 kB / 495.7 MB, free: 15.88 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.122e-06/0.1844, allocations: 8.062 kB / 495.7 MB, free: 15.87 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.803e-06/0.1844, allocations: 0 / 495.7 MB, free: 15.87 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001452/0.1858, allocations: 0.9932 MB / 496.7 MB, free: 14.84 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001208/0.1859, allocations: 132.4 kB / 496.9 MB, free: 14.7 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001043/0.1861, allocations: 27.98 kB / 496.9 MB, free: 14.67 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003749/0.1864, allocations: 27.97 kB / 496.9 MB, free: 14.64 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.275e-05/0.1865, allocations: 40.52 kB / 496.9 MB, free: 14.6 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.541e-05/0.1866, allocations: 15.98 kB / 497 MB, free: 14.59 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003003/0.1869, allocations: 279.1 kB / 497.2 MB, free: 14.32 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.1869, allocations: 0 / 497.2 MB, free: 14.32 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0008392/0.1878, allocations: 212 kB / 497.4 MB, free: 14.11 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.000166/0.1879, allocations: 141.9 kB / 497.6 MB, free: 13.96 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002719/0.1907, allocations: 1.457 MB / 499 MB, free: 12.48 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.228e-06/0.1907, allocations: 0 / 499 MB, free: 12.48 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004826/0.1912, allocations: 310.2 kB / 499.3 MB, free: 12.18 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007558/0.1919, allocations: 126.3 kB / 499.5 MB, free: 12.05 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004919/0.1969, allocations: 2.919 MB / 0.4906 GB, free: 9.086 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007708/0.1977, allocations: 0.9882 MB / 0.4916 GB, free: 8.07 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0006611/0.1983, allocations: 196.6 kB / 0.4918 GB, free: 7.875 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000216/0.1986, allocations: 47.42 kB / 0.4918 GB, free: 7.828 MB / 382.1 MB Notification: Performance of SimCode: time 3.767e-06/0.1986, allocations: 4 kB / 0.4918 GB, free: 7.824 MB / 382.1 MB Notification: Performance of Templates: time 0.01885/0.2174, allocations: 10.38 MB / 0.5019 GB, free: 13.5 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]