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/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/Complex 3.2.3+maint.om/package.mo): time 0.001371/0.001371, allocations: 186.5 kB / 17.27 MB, free: 4.504 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.501/1.501, allocations: 205.1 MB / 223.1 MB, free: 8.465 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001052/0.001052, allocations: 110.9 kB / 270.5 MB, free: 8.426 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2189/0.2189, allocations: 38 MB / 355.8 MB, free: 2.93 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001001/0.001001, allocations: 47.92 kB / 421.9 MB, free: 37.77 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3026/0.3036, allocations: 55.23 MB / 477.1 MB, free: 9.906 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Elementary.Line): time 0.006784/0.3105, allocations: 6.022 MB / 483.1 MB, free: 5.629 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.003846/0.3144, allocations: 2.064 MB / 485.2 MB, free: 4.184 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007068/0.3151, allocations: 36.34 kB / 485.2 MB, free: 4.168 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001168/0.3163, allocations: 423.3 kB / 485.6 MB, free: 3.918 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0007113/0.317, allocations: 275.3 kB / 485.9 MB, free: 3.766 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001035/0.3181, allocations: 320.9 kB / 486.2 MB, free: 3.633 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.001285/0.3194, allocations: 1.079 MB / 487.3 MB, free: 3.281 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006126/0.32, allocations: 354.6 kB / 487.6 MB, free: 3.145 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004927/0.3205, allocations: 298.7 kB / 487.9 MB, free: 3.023 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007026/0.3212, allocations: 477 kB / 488.4 MB, free: 2.883 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 8.374e-05/0.3213, allocations: 32.16 kB / 488.4 MB, free: 2.883 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003639/0.3217, allocations: 167.1 kB / 488.6 MB, free: 2.84 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002759/0.3219, allocations: 269.5 kB / 488.9 MB, free: 2.758 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003044/0.3223, allocations: 313.8 kB / 489.2 MB, free: 2.59 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0008491/0.3231, allocations: 0.7916 MB / 490 MB, free: 2.309 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.392e-06/0.3231, allocations: 5.625 kB / 490 MB, free: 2.305 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.142e-06/0.3231, allocations: 0 / 490 MB, free: 2.305 MB / 314.7 MB Notification: Performance of Transformations before backend: time 8.716e-06/0.3232, allocations: 0 / 490 MB, free: 2.305 MB / 314.7 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.001694/0.3249, allocations: 0.9079 MB / 490.9 MB, free: 1.66 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.665e-05/0.3249, allocations: 14.89 kB / 490.9 MB, free: 1.656 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009314/0.3258, allocations: 129 kB / 491 MB, free: 1.625 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009073/0.3268, allocations: 0.5158 MB / 491.5 MB, free: 1.281 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.299e-05/0.3268, allocations: 42.97 kB / 491.6 MB, free: 1.258 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003467/0.3272, allocations: 125.9 kB / 491.7 MB, free: 1.23 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001155/0.3283, allocations: 0.8669 MB / 492.6 MB, free: 0.7891 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.892e-05/0.3283, allocations: 6.188 kB / 492.6 MB, free: 0.7852 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.829e-05/0.3284, allocations: 18.23 kB / 492.6 MB, free: 0.7734 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004522/0.3289, allocations: 71.22 kB / 492.6 MB, free: 0.7656 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009471/0.3298, allocations: 0.6205 MB / 493.3 MB, free: 0.5742 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004784/0.3346, allocations: 3.798 MB / 497.1 MB, free: 13.93 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001115/0.3358, allocations: 0.5415 MB / 497.6 MB, free: 13.69 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004569/0.3362, allocations: 326 kB / 497.9 MB, free: 13.53 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.539e-05/0.3363, allocations: 8.703 kB / 497.9 MB, free: 13.52 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.463e-05/0.3363, allocations: 50.16 kB / 498 MB, free: 13.46 MB / 330.7 MB Notification: Performance of pre-optimization done (n=48): time 2.585e-06/0.3363, allocations: 0 / 498 MB, free: 13.46 MB / 330.7 MB Notification: Performance of matching and sorting (n=49): time 0.00318/0.3395, allocations: 1.827 MB / 499.8 MB, free: 12.43 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.274e-05/0.3396, allocations: 90.8 kB / 499.9 MB, free: 12.33 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005094/0.3401, allocations: 423.2 kB / 0.4886 GB, free: 12.07 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 5.043e-05/0.3402, allocations: 31.98 kB / 0.4886 GB, free: 12.04 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002291/0.3404, allocations: 326.8 kB / 0.4889 GB, free: 11.75 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001849/0.3406, allocations: 199.1 kB / 0.4891 GB, free: 11.57 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002628/0.3409, allocations: 144.6 kB / 0.4893 GB, free: 11.5 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001778/0.3411, allocations: 374.9 kB / 0.4896 GB, free: 11.14 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005629/0.3416, allocations: 375.1 kB / 0.49 GB, free: 10.98 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007811/0.3424, allocations: 0.6069 MB / 0.4906 GB, free: 10.51 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001524/0.344, allocations: 1.065 MB / 0.4916 GB, free: 9.832 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.59e-06/0.344, allocations: 2.625 kB / 0.4916 GB, free: 9.832 MB / 330.7 MB Notification: Performance of matching and sorting (n=100) (initialization): time 0.004936/0.3489, allocations: 2.004 MB / 0.4936 GB, free: 8.77 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.698e-05/0.349, allocations: 8.094 kB / 0.4936 GB, free: 8.77 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.549e-05/0.349, allocations: 6.438 kB / 0.4936 GB, free: 8.77 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002707/0.3517, allocations: 0.9798 MB / 0.4945 GB, free: 8.422 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006146/0.3524, allocations: 121.2 kB / 0.4946 GB, free: 8.391 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01087/0.3632, allocations: 7.368 MB / 0.5018 GB, free: 1.238 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001122/0.3644, allocations: 39.97 kB / 0.5019 GB, free: 1.199 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000145/0.3646, allocations: 32 kB / 0.5019 GB, free: 1.168 MB / 330.7 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.0006182/0.3652, allocations: 249.5 kB / 0.5021 GB, free: 0.9141 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000185/0.3654, allocations: 51.38 kB / 0.5022 GB, free: 0.8633 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0019/0.3673, allocations: 0.7374 MB / 0.5029 GB, free: 120 kB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.097e-05/0.3674, allocations: 8 kB / 0.5029 GB, free: 112 kB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.677e-06/0.3674, allocations: 0 / 0.5029 GB, free: 112 kB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.134e-06/0.3674, allocations: 0 / 0.5029 GB, free: 112 kB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004118/0.3715, allocations: 1.528 MB / 0.5044 GB, free: 14.51 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.152e-06/0.3715, allocations: 0 / 0.5044 GB, free: 14.51 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001616/0.3732, allocations: 183.9 kB / 0.5046 GB, free: 14.33 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.107e-05/0.3732, allocations: 4 kB / 0.5046 GB, free: 14.33 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.592e-05/0.3733, allocations: 31.97 kB / 0.5046 GB, free: 14.3 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.049e-05/0.3733, allocations: 4 kB / 0.5046 GB, free: 14.29 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.226e-06/0.3733, allocations: 3.938 kB / 0.5046 GB, free: 14.29 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01325/0.3866, allocations: 5.368 MB / 0.5099 GB, free: 8.766 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001863/0.3868, allocations: 124.7 kB / 0.51 GB, free: 8.625 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001358/0.387, allocations: 31.92 kB / 0.51 GB, free: 8.594 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005444/0.3875, allocations: 23.97 kB / 0.5101 GB, free: 8.57 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000123/0.3877, allocations: 32.39 kB / 0.5101 GB, free: 8.539 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.635e-05/0.3878, allocations: 16 kB / 0.5101 GB, free: 8.523 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.00044/0.3882, allocations: 275.1 kB / 0.5104 GB, free: 8.254 MB / 346.7 MB Notification: Performance of sort global known variables: time 3e-07/0.3882, allocations: 4 kB / 0.5104 GB, free: 8.25 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.001679/0.3899, allocations: 284 kB / 0.5106 GB, free: 7.973 MB / 346.7 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.0002261/0.3901, allocations: 131.4 kB / 0.5108 GB, free: 7.836 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.003791/0.3939, allocations: 1.465 MB / 0.5122 GB, free: 6.34 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 5.761e-06/0.394, allocations: 4.625 kB / 0.5122 GB, free: 6.336 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006646/0.3946, allocations: 310.3 kB / 0.5125 GB, free: 6.035 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001033/0.3957, allocations: 118 kB / 0.5126 GB, free: 5.922 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007477/0.4032, allocations: 3.281 MB / 0.5158 GB, free: 2.582 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008555/0.4041, allocations: 1.008 MB / 0.5168 GB, free: 1.543 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.001078/0.4052, allocations: 220.6 kB / 0.517 GB, free: 1.328 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003573/0.4055, allocations: 47.44 kB / 0.517 GB, free: 1.281 MB / 346.7 MB Notification: Performance of SimCode: time 8.21e-07/0.4055, allocations: 0 / 0.517 GB, free: 1.281 MB / 346.7 MB Notification: Performance of Templates: time 0.02888/0.4344, allocations: 12.53 MB / 0.5293 GB, free: 4.77 MB / 362.7 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@2/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]