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.0008398/0.0008399, allocations: 91.48 kB / 16.3 MB, free: 6.457 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.0008754/0.0008755, allocations: 180.6 kB / 17.2 MB, free: 6.34 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.225/1.225, allocations: 223.2 MB / 241.1 MB, free: 5.453 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.2654/0.2654, allocations: 38.07 MB / 330.3 MB, free: 14.24 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002687/0.0002689, allocations: 8 kB / 400 MB, free: 9.293 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2608/0.2611, allocations: 59.16 MB / 459.1 MB, free: 29.96 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Elementary.Line): time 0.004843/0.2659, allocations: 5.106 MB / 464.2 MB, free: 26.33 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003557/0.2695, allocations: 1.9 MB / 466.1 MB, free: 25 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004314/0.27, allocations: 33.09 kB / 466.2 MB, free: 24.98 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000454/0.2705, allocations: 137.6 kB / 466.3 MB, free: 24.91 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008014/0.2713, allocations: 300.2 kB / 466.6 MB, free: 24.72 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008783/0.2722, allocations: 337.2 kB / 466.9 MB, free: 24.59 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004974/0.2727, allocations: 425.9 kB / 467.3 MB, free: 24.39 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008664/0.2736, allocations: 0.5632 MB / 467.9 MB, free: 24.03 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004362/0.274, allocations: 256.4 kB / 468.2 MB, free: 23.92 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006076/0.2746, allocations: 347.9 kB / 468.5 MB, free: 23.82 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.976e-05/0.2747, allocations: 25.75 kB / 468.5 MB, free: 23.82 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002871/0.275, allocations: 106.6 kB / 468.6 MB, free: 23.8 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002622/0.2753, allocations: 240.4 kB / 468.9 MB, free: 23.73 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001208/0.2754, allocations: 128 kB / 469 MB, free: 23.65 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007168/0.2761, allocations: 0.6075 MB / 469.6 MB, free: 23.52 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.914e-06/0.2761, allocations: 0 / 469.6 MB, free: 23.52 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.713e-06/0.2762, allocations: 0 / 469.6 MB, free: 23.52 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.816e-06/0.2762, allocations: 4 kB / 469.6 MB, free: 23.51 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.001382/0.2776, allocations: 0.81 MB / 470.4 MB, free: 22.92 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.839e-05/0.2776, allocations: 8.5 kB / 470.4 MB, free: 22.92 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009513/0.2786, allocations: 139.6 kB / 470.5 MB, free: 22.88 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000941/0.2795, allocations: 0.5051 MB / 471.1 MB, free: 22.54 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.134e-05/0.2796, allocations: 39.91 kB / 471.1 MB, free: 22.52 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003727/0.28, allocations: 130.9 kB / 471.2 MB, free: 22.49 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00155/0.2815, allocations: 0.8505 MB / 472.1 MB, free: 22.06 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.697e-05/0.2816, allocations: 5.875 kB / 472.1 MB, free: 22.05 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.632e-05/0.2816, allocations: 17.41 kB / 472.1 MB, free: 22.04 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004498/0.2821, allocations: 74.11 kB / 472.2 MB, free: 22.03 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001097/0.2832, allocations: 0.6195 MB / 472.8 MB, free: 21.84 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004227/0.2874, allocations: 3.774 MB / 476.6 MB, free: 19.22 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009557/0.2884, allocations: 0.5348 MB / 477.1 MB, free: 19.01 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.211e-05/0.2885, allocations: 18.86 kB / 477.1 MB, free: 19 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.775e-05/0.2885, allocations: 38.03 kB / 477.1 MB, free: 18.96 MB / 350.1 MB Notification: Performance of pre-optimization done (n=48): time 2.244e-06/0.2885, allocations: 9.469 kB / 477.2 MB, free: 18.95 MB / 350.1 MB Notification: Performance of matching and sorting (n=49): time 0.002637/0.2911, allocations: 1.823 MB / 479 MB, free: 17.97 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.711e-05/0.2912, allocations: 84.33 kB / 479.1 MB, free: 17.88 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000361/0.2916, allocations: 421.5 kB / 479.5 MB, free: 17.61 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.485e-05/0.2916, allocations: 35.83 kB / 479.5 MB, free: 17.57 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001671/0.2918, allocations: 334.9 kB / 479.8 MB, free: 17.28 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001444/0.2919, allocations: 195.6 kB / 480 MB, free: 17.11 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.405e-05/0.292, allocations: 11.22 kB / 480 MB, free: 17.1 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 8.255e-05/0.2921, allocations: 370.8 kB / 480.4 MB, free: 16.75 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004938/0.2926, allocations: 370.7 kB / 480.8 MB, free: 16.59 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006002/0.2932, allocations: 0.5968 MB / 481.4 MB, free: 16.13 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006378/0.2938, allocations: 472 kB / 481.8 MB, free: 15.92 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.067e-06/0.2938, allocations: 2.75 kB / 481.8 MB, free: 15.92 MB / 350.1 MB Notification: Performance of matching and sorting (n=100) (initialization): time 0.003773/0.2976, allocations: 1.993 MB / 483.8 MB, free: 14.63 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.019e-05/0.2976, allocations: 8 kB / 483.8 MB, free: 14.62 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.184e-05/0.2977, allocations: 8 kB / 483.8 MB, free: 14.62 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001949/0.2996, allocations: 0.9613 MB / 484.8 MB, free: 13.65 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003663/0.3, allocations: 119.8 kB / 484.9 MB, free: 13.53 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007519/0.3075, allocations: 7.646 MB / 492.6 MB, free: 5.613 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005504/0.3081, allocations: 35.97 kB / 492.6 MB, free: 5.578 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.09e-05/0.3082, allocations: 36 kB / 492.6 MB, free: 5.543 MB / 350.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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 6,(23,24.6%) 12} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003351/0.3085, allocations: 253.6 kB / 492.9 MB, free: 5.285 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.479e-05/0.3086, allocations: 47.44 kB / 492.9 MB, free: 5.238 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009119/0.3095, allocations: 0.7218 MB / 493.6 MB, free: 4.508 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.298e-06/0.3095, allocations: 4 kB / 493.6 MB, free: 4.504 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.754e-06/0.3095, allocations: 0 / 493.6 MB, free: 4.504 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.28e-06/0.3095, allocations: 7.984 kB / 493.7 MB, free: 4.496 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002017/0.3115, allocations: 1.521 MB / 495.2 MB, free: 2.91 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.527e-06/0.3116, allocations: 4 kB / 495.2 MB, free: 2.906 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009017/0.3125, allocations: 187.8 kB / 495.4 MB, free: 2.723 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.929e-06/0.3125, allocations: 4 kB / 495.4 MB, free: 2.719 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.807e-05/0.3125, allocations: 31.92 kB / 495.4 MB, free: 2.688 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.276e-06/0.3125, allocations: 4.094 kB / 495.4 MB, free: 2.684 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.553e-06/0.3126, allocations: 4.25 kB / 495.4 MB, free: 2.68 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001/0.3136, allocations: 1.041 MB / 496.4 MB, free: 1.586 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.966e-05/0.3137, allocations: 124.4 kB / 496.6 MB, free: 1.445 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.268e-05/0.3138, allocations: 35.98 kB / 496.6 MB, free: 1.41 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003029/0.3141, allocations: 27.95 kB / 496.6 MB, free: 1.383 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.818e-05/0.3141, allocations: 24.41 kB / 496.7 MB, free: 1.359 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.071e-05/0.3142, allocations: 19.98 kB / 496.7 MB, free: 1.34 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002108/0.3144, allocations: 279.1 kB / 496.9 MB, free: 1.07 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.3144, allocations: 4 kB / 496.9 MB, free: 1.066 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0007977/0.3152, allocations: 212 kB / 497.2 MB, free: 0.8594 MB / 350.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001407/0.3153, allocations: 131.1 kB / 497.3 MB, free: 0.7227 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002208/0.3176, allocations: 1.446 MB / 498.7 MB, free: 15.25 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.466e-06/0.3176, allocations: 0.625 kB / 498.7 MB, free: 15.25 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004282/0.318, allocations: 310.3 kB / 499 MB, free: 14.95 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005412/0.3186, allocations: 113.4 kB / 499.1 MB, free: 14.84 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004276/0.3229, allocations: 3.245 MB / 0.4906 GB, free: 11.55 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005759/0.3234, allocations: 1.008 MB / 0.4916 GB, free: 10.51 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0005086/0.324, allocations: 196.6 kB / 0.4918 GB, free: 10.32 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001519/0.3241, allocations: 51.36 kB / 0.4918 GB, free: 10.27 MB / 366.1 MB Notification: Performance of SimCode: time 5.41e-07/0.3241, allocations: 0 / 0.4918 GB, free: 10.27 MB / 366.1 MB Notification: Performance of Templates: time 0.01534/0.3395, allocations: 9.763 MB / 0.5014 GB, free: 0.5586 MB / 366.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: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]