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.001602/0.001602, allocations: 117.4 kB / 16.63 MB, free: 6.812 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.001892/0.001892, allocations: 189.8 kB / 17.55 MB, free: 5.934 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.337/1.337, allocations: 222.9 MB / 241.2 MB, free: 15.41 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.2058/0.2058, allocations: 38.04 MB / 329.4 MB, free: 9.02 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002169/0.002169, allocations: 66.55 kB / 398.3 MB, free: 34.43 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09749/0.09968, allocations: 58.07 MB / 456.4 MB, free: 8.418 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Elementary.Line): time 0.007247/0.107, allocations: 6.018 MB / 462.4 MB, free: 2.367 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00356/0.1105, allocations: 1.994 MB / 464.4 MB, free: 376 kB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006074/0.1112, allocations: 35.75 kB / 464.4 MB, free: 340 kB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001295/0.1125, allocations: 418.4 kB / 464.8 MB, free: 15.92 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008121/0.1133, allocations: 274.7 kB / 465.1 MB, free: 15.65 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000888/0.1142, allocations: 327.5 kB / 465.4 MB, free: 15.33 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008567/0.1151, allocations: 0.752 MB / 466.1 MB, free: 14.57 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005719/0.1157, allocations: 410.1 kB / 466.6 MB, free: 14.16 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000566/0.1163, allocations: 334.6 kB / 466.9 MB, free: 13.84 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006708/0.117, allocations: 486.6 kB / 467.4 MB, free: 13.36 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001083/0.1171, allocations: 56 kB / 467.4 MB, free: 13.3 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003506/0.1174, allocations: 171.7 kB / 467.6 MB, free: 13.14 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002775/0.1177, allocations: 287.2 kB / 467.9 MB, free: 12.86 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003808/0.1181, allocations: 334.4 kB / 468.2 MB, free: 12.53 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008075/0.1189, allocations: 0.8061 MB / 469 MB, free: 11.72 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.078e-06/0.1189, allocations: 0 / 469 MB, free: 11.72 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.462e-06/0.119, allocations: 0 / 469 MB, free: 11.72 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.835e-05/0.119, allocations: 0 / 469 MB, free: 11.72 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.001722/0.1207, allocations: 0.9175 MB / 469.9 MB, free: 10.75 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.055e-05/0.1208, allocations: 11.89 kB / 469.9 MB, free: 10.74 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009862/0.1217, allocations: 136 kB / 470 MB, free: 10.61 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008796/0.1226, allocations: 0.5158 MB / 470.6 MB, free: 10.05 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.214e-05/0.1227, allocations: 41.12 kB / 470.6 MB, free: 10.01 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003457/0.1231, allocations: 127.9 kB / 470.7 MB, free: 9.883 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001237/0.1243, allocations: 0.8548 MB / 471.6 MB, free: 8.961 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.366e-05/0.1243, allocations: 7.844 kB / 471.6 MB, free: 8.953 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.143e-05/0.1244, allocations: 23.98 kB / 471.6 MB, free: 8.93 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004767/0.1249, allocations: 72.92 kB / 471.7 MB, free: 8.859 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009773/0.1259, allocations: 0.6205 MB / 472.3 MB, free: 8.238 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004566/0.1304, allocations: 3.788 MB / 476.1 MB, free: 4.289 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001106/0.1316, allocations: 0.546 MB / 476.6 MB, free: 3.723 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004482/0.132, allocations: 319 kB / 477 MB, free: 3.402 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.856e-05/0.1321, allocations: 8.422 kB / 477 MB, free: 3.395 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.884e-05/0.1321, allocations: 42.94 kB / 477 MB, free: 3.344 MB / 350.1 MB Notification: Performance of pre-optimization done (n=48): time 2.265e-06/0.1321, allocations: 0 / 477 MB, free: 3.344 MB / 350.1 MB Notification: Performance of matching and sorting (n=49): time 0.002873/0.135, allocations: 1.845 MB / 478.8 MB, free: 1.453 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.965e-05/0.1351, allocations: 81.55 kB / 478.9 MB, free: 1.355 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004534/0.1355, allocations: 417.8 kB / 479.3 MB, free: 0.9375 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.073e-05/0.1356, allocations: 33.7 kB / 479.4 MB, free: 0.8984 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000257/0.1359, allocations: 331.7 kB / 479.7 MB, free: 0.5703 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000152/0.136, allocations: 197.2 kB / 479.9 MB, free: 384 kB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002139/0.1362, allocations: 154.2 kB / 480 MB, free: 224 kB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000163/0.1364, allocations: 370.7 kB / 480.4 MB, free: 15.85 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005077/0.1369, allocations: 373.5 kB / 480.8 MB, free: 15.48 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006771/0.1376, allocations: 0.5979 MB / 481.4 MB, free: 14.78 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001405/0.139, allocations: 1.065 MB / 482.4 MB, free: 13.62 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.256e-06/0.139, allocations: 0 / 482.4 MB, free: 13.62 MB / 366.1 MB Notification: Performance of matching and sorting (n=100) (initialization): time 0.004353/0.1434, allocations: 2.003 MB / 484.4 MB, free: 11.6 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.184e-05/0.1434, allocations: 8 kB / 484.4 MB, free: 11.59 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.323e-05/0.1435, allocations: 11.98 kB / 484.4 MB, free: 11.58 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002423/0.1459, allocations: 0.9775 MB / 485.4 MB, free: 10.59 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004197/0.1463, allocations: 119.8 kB / 485.5 MB, free: 10.48 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01034/0.1567, allocations: 8.2 MB / 493.7 MB, free: 1.996 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004829/0.1572, allocations: 31.97 kB / 493.8 MB, free: 1.965 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.672e-05/0.1573, allocations: 32 kB / 493.8 MB, free: 1.934 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.0003657/0.1576, allocations: 257.5 kB / 494.1 MB, free: 1.672 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001043/0.1577, allocations: 51.34 kB / 494.1 MB, free: 1.621 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001153/0.1589, allocations: 0.7219 MB / 494.8 MB, free: 0.8945 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.408e-06/0.1589, allocations: 11.98 kB / 494.8 MB, free: 0.8828 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.834e-06/0.1589, allocations: 7.875 kB / 494.8 MB, free: 0.875 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.6e-06/0.1589, allocations: 0 / 494.8 MB, free: 0.875 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002396/0.1613, allocations: 1.521 MB / 496.4 MB, free: 15.29 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.077e-06/0.1614, allocations: 4.094 kB / 496.4 MB, free: 15.29 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001118/0.1625, allocations: 183.8 kB / 496.6 MB, free: 15.11 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.671e-06/0.1625, allocations: 0 / 496.6 MB, free: 15.11 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.238e-05/0.1626, allocations: 35.86 kB / 496.6 MB, free: 15.07 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.571e-06/0.1626, allocations: 7.984 kB / 496.6 MB, free: 15.07 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.774e-06/0.1626, allocations: 0 / 496.6 MB, free: 15.07 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001347/0.1639, allocations: 0.9895 MB / 497.6 MB, free: 14.04 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000111/0.1641, allocations: 136.3 kB / 497.7 MB, free: 13.89 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.972e-05/0.1642, allocations: 23.98 kB / 497.7 MB, free: 13.87 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003436/0.1645, allocations: 31.91 kB / 497.8 MB, free: 13.84 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.811e-05/0.1646, allocations: 28.41 kB / 497.8 MB, free: 13.81 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.143e-05/0.1646, allocations: 19.98 kB / 497.8 MB, free: 13.79 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002737/0.1649, allocations: 283.1 kB / 498.1 MB, free: 13.51 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1649, allocations: 0 / 498.1 MB, free: 13.51 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0007343/0.1657, allocations: 212 kB / 498.3 MB, free: 13.3 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.0001436/0.1658, allocations: 131.1 kB / 498.4 MB, free: 13.17 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002913/0.1687, allocations: 1.647 MB / 0.4884 GB, free: 11.5 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.811e-06/0.1688, allocations: 4 kB / 0.4884 GB, free: 11.5 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004332/0.1692, allocations: 310.3 kB / 0.4887 GB, free: 11.19 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006291/0.1698, allocations: 128.4 kB / 0.4888 GB, free: 11.07 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004264/0.1741, allocations: 2.925 MB / 0.4916 GB, free: 8.098 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005527/0.1747, allocations: 0.9882 MB / 0.4926 GB, free: 7.082 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.000529/0.1752, allocations: 204.6 kB / 0.4928 GB, free: 6.879 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001701/0.1754, allocations: 39.44 kB / 0.4928 GB, free: 6.84 MB / 382.1 MB Notification: Performance of SimCode: time 5.11e-07/0.1754, allocations: 0 / 0.4928 GB, free: 6.84 MB / 382.1 MB Notification: Performance of Templates: time 0.01673/0.1921, allocations: 10.81 MB / 0.5034 GB, free: 12.09 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]