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.0007345/0.0007344, allocations: 90.72 kB / 16.65 MB, free: 6.535 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.0009409/0.000941, allocations: 177 kB / 17.56 MB, free: 6.18 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.2/1.2, allocations: 223.3 MB / 241.6 MB, free: 14.43 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.157/0.157, allocations: 38.08 MB / 330.8 MB, free: 8.52 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002772/0.0002771, allocations: 8 kB / 400.7 MB, free: 34.11 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08752/0.08781, allocations: 59.17 MB / 459.9 MB, free: 7.023 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Elementary.Line): time 0.00638/0.09423, allocations: 5.616 MB / 465.5 MB, free: 1.375 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003364/0.09762, allocations: 1.983 MB / 467.5 MB, free: 15.39 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005508/0.0982, allocations: 35.75 kB / 467.5 MB, free: 15.35 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004496/0.09867, allocations: 119.1 kB / 467.6 MB, free: 15.23 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007179/0.0994, allocations: 282.8 kB / 467.9 MB, free: 14.96 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000839/0.1003, allocations: 315.5 kB / 468.2 MB, free: 14.65 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001065/0.1013, allocations: 1.08 MB / 469.3 MB, free: 13.57 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009675/0.1023, allocations: 0.6228 MB / 469.9 MB, free: 12.91 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005189/0.1028, allocations: 274.8 kB / 470.2 MB, free: 12.64 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006822/0.1035, allocations: 446.7 kB / 470.6 MB, free: 12.2 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 9.308e-05/0.1036, allocations: 28 kB / 470.7 MB, free: 12.17 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003382/0.104, allocations: 163.7 kB / 470.8 MB, free: 12.01 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002605/0.1043, allocations: 251.3 kB / 471.1 MB, free: 11.77 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003546/0.1046, allocations: 332 kB / 471.4 MB, free: 11.43 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007377/0.1054, allocations: 0.7786 MB / 472.2 MB, free: 10.65 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.777e-06/0.1054, allocations: 0 / 472.2 MB, free: 10.65 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.162e-06/0.1054, allocations: 0 / 472.2 MB, free: 10.65 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.998e-05/0.1054, allocations: 0 / 472.2 MB, free: 10.65 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.001456/0.1069, allocations: 0.7968 MB / 473 MB, free: 9.809 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.447e-05/0.1069, allocations: 12.03 kB / 473 MB, free: 9.797 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009618/0.1079, allocations: 136 kB / 473.1 MB, free: 9.664 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007882/0.1087, allocations: 0.512 MB / 473.6 MB, free: 9.105 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.826e-05/0.1087, allocations: 41.11 kB / 473.7 MB, free: 9.066 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003336/0.1091, allocations: 127.8 kB / 473.8 MB, free: 8.941 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001097/0.1102, allocations: 0.8548 MB / 474.6 MB, free: 8.02 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.205e-05/0.1102, allocations: 7.984 kB / 474.6 MB, free: 8.012 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.603e-05/0.1103, allocations: 23.92 kB / 474.7 MB, free: 7.988 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004487/0.1107, allocations: 80.88 kB / 474.7 MB, free: 7.906 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009193/0.1116, allocations: 0.6166 MB / 475.4 MB, free: 7.293 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004005/0.1157, allocations: 3.8 MB / 479.2 MB, free: 3.328 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009637/0.1166, allocations: 0.5421 MB / 479.7 MB, free: 2.766 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004289/0.1171, allocations: 322.9 kB / 480 MB, free: 2.441 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.961e-05/0.1171, allocations: 8.438 kB / 480 MB, free: 2.434 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.551e-05/0.1172, allocations: 38.94 kB / 480.1 MB, free: 2.387 MB / 350.1 MB Notification: Performance of pre-optimization done (n=48): time 1.963e-06/0.1172, allocations: 0 / 480.1 MB, free: 2.387 MB / 350.1 MB Notification: Performance of matching and sorting (n=49): time 0.002677/0.1198, allocations: 1.845 MB / 481.9 MB, free: 0.4922 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.865e-05/0.1199, allocations: 85.55 kB / 482 MB, free: 400 kB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003876/0.1203, allocations: 413.8 kB / 482.4 MB, free: 15.97 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.323e-05/0.1204, allocations: 37.7 kB / 482.4 MB, free: 15.93 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001865/0.1206, allocations: 327.6 kB / 482.8 MB, free: 15.61 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001502/0.1207, allocations: 201.3 kB / 483 MB, free: 15.41 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001002/0.1208, allocations: 81.67 kB / 483 MB, free: 15.32 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001358/0.121, allocations: 374.7 kB / 483.4 MB, free: 14.95 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005049/0.1215, allocations: 377.5 kB / 483.8 MB, free: 14.58 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006432/0.1221, allocations: 0.594 MB / 484.4 MB, free: 13.89 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001275/0.1234, allocations: 1.068 MB / 485.4 MB, free: 12.72 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.447e-06/0.1234, allocations: 4 kB / 485.4 MB, free: 12.72 MB / 366.1 MB Notification: Performance of matching and sorting (n=100) (initialization): time 0.004184/0.1276, allocations: 1.999 MB / 487.4 MB, free: 10.7 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.642e-05/0.1276, allocations: 8 kB / 487.4 MB, free: 10.69 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.016e-05/0.1277, allocations: 4.656 kB / 487.4 MB, free: 10.69 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002261/0.1299, allocations: 0.9728 MB / 488.4 MB, free: 9.707 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000373/0.1303, allocations: 115.8 kB / 488.5 MB, free: 9.594 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009382/0.1397, allocations: 7.399 MB / 495.9 MB, free: 1.926 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003984/0.1401, allocations: 35.97 kB / 496 MB, free: 1.891 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.531e-05/0.1402, allocations: 35.98 kB / 496 MB, free: 1.855 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.0002958/0.1405, allocations: 249.5 kB / 496.2 MB, free: 1.602 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.542e-05/0.1406, allocations: 55.44 kB / 496.3 MB, free: 1.547 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001137/0.1417, allocations: 0.7257 MB / 497 MB, free: 0.8047 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.158e-05/0.1418, allocations: 4 kB / 497 MB, free: 0.8008 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.804e-06/0.1418, allocations: 0 / 497 MB, free: 0.8008 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.596e-06/0.1418, allocations: 8.047 kB / 497 MB, free: 0.793 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002389/0.1442, allocations: 1.536 MB / 498.6 MB, free: 15.19 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.056e-06/0.1442, allocations: 0 / 498.6 MB, free: 15.19 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009522/0.1451, allocations: 183.8 kB / 498.7 MB, free: 15.01 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.682e-06/0.1452, allocations: 7.938 kB / 498.8 MB, free: 15 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001067/0.1453, allocations: 31.98 kB / 498.8 MB, free: 14.97 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.038e-06/0.1453, allocations: 4 kB / 498.8 MB, free: 14.97 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.222e-06/0.1453, allocations: 0 / 498.8 MB, free: 14.97 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001276/0.1466, allocations: 0.9932 MB / 499.8 MB, free: 13.95 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001167/0.1467, allocations: 120.5 kB / 499.9 MB, free: 13.81 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.24e-05/0.1468, allocations: 35.92 kB / 499.9 MB, free: 13.77 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003225/0.1471, allocations: 23.97 kB / 500 MB, free: 13.75 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.513e-05/0.1472, allocations: 32.52 kB / 500 MB, free: 13.72 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.545e-05/0.1472, allocations: 20 kB / 0.4883 GB, free: 13.7 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002575/0.1475, allocations: 291.1 kB / 0.4886 GB, free: 13.42 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1475, allocations: 0 / 0.4886 GB, free: 13.42 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.000699/0.1482, allocations: 208 kB / 0.4888 GB, free: 13.21 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.0001629/0.1484, allocations: 131.1 kB / 0.4889 GB, free: 13.08 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002365/0.1508, allocations: 1.457 MB / 0.4903 GB, free: 11.59 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.127e-06/0.1508, allocations: 4 kB / 0.4903 GB, free: 11.59 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005141/0.1513, allocations: 306.3 kB / 0.4906 GB, free: 11.29 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000697/0.152, allocations: 114 kB / 0.4907 GB, free: 11.18 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0045/0.1565, allocations: 3.239 MB / 0.4939 GB, free: 7.887 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006019/0.1571, allocations: 0.9843 MB / 0.4948 GB, free: 6.875 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0005478/0.1577, allocations: 204.6 kB / 0.495 GB, free: 6.672 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000176/0.1579, allocations: 43.44 kB / 0.4951 GB, free: 6.629 MB / 382.1 MB Notification: Performance of SimCode: time 1.032e-06/0.1579, allocations: 4 kB / 0.4951 GB, free: 6.625 MB / 382.1 MB Notification: Performance of Templates: time 0.1732/0.3311, allocations: 10.11 MB / 0.505 GB, free: 53.92 MB / 382.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Line.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Line_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC3ph.Elementary.Line.mat","../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]