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.001567/0.001567, allocations: 116.3 kB / 17.07 MB, free: 5.973 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.001834/0.001834, allocations: 198.8 kB / 18.01 MB, free: 5.055 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.382/1.382, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1795/0.1795, allocations: 38.06 MB / 329.9 MB, free: 8.766 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001277/0.001277, allocations: 67.89 kB / 458.1 MB, free: 6.863 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4007/0.402, allocations: 58.05 MB / 0.5041 GB, free: 7.797 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Elementary.Line): time 0.006861/0.4089, allocations: 5.184 MB / 0.5092 GB, free: 4.184 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.003562/0.4125, allocations: 1.748 MB / 0.5109 GB, free: 2.965 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004175/0.4129, allocations: 19.16 kB / 0.5109 GB, free: 2.957 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001569/0.4145, allocations: 444.6 kB / 0.5113 GB, free: 2.695 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007982/0.4153, allocations: 300.7 kB / 0.5116 GB, free: 2.523 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001148/0.4165, allocations: 357.4 kB / 0.5119 GB, free: 2.379 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001199/0.4177, allocations: 0.7614 MB / 0.5127 GB, free: 2.055 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008941/0.4186, allocations: 380.1 kB / 0.513 GB, free: 1.895 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007889/0.4194, allocations: 340 kB / 0.5134 GB, free: 1.754 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008755/0.4203, allocations: 459.5 kB / 0.5138 GB, free: 1.602 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001452/0.4205, allocations: 53.34 kB / 0.5139 GB, free: 1.598 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005819/0.4211, allocations: 175 kB / 0.514 GB, free: 1.555 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004654/0.4215, allocations: 285.2 kB / 0.5143 GB, free: 1.457 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005061/0.4221, allocations: 337.3 kB / 0.5146 GB, free: 1.266 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001579/0.4237, allocations: 0.8133 MB / 0.5154 GB, free: 0.9727 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.302e-06/0.4237, allocations: 0 / 0.5154 GB, free: 0.9727 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.836e-06/0.4237, allocations: 0 / 0.5154 GB, free: 0.9727 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.588e-05/0.4237, allocations: 5.062 kB / 0.5154 GB, free: 0.9688 MB / 382.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.002737/0.4265, allocations: 0.9041 MB / 0.5163 GB, free: 328 kB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.491e-05/0.4265, allocations: 13.73 kB / 0.5163 GB, free: 324 kB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001649/0.4282, allocations: 133.4 kB / 0.5164 GB, free: 288 kB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001662/0.4299, allocations: 0.54 MB / 0.517 GB, free: 15.94 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.227e-05/0.43, allocations: 34.75 kB / 0.517 GB, free: 15.92 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006885/0.4307, allocations: 130.5 kB / 0.5171 GB, free: 15.89 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002124/0.4328, allocations: 0.8597 MB / 0.518 GB, free: 15.46 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.907e-05/0.4329, allocations: 14.45 kB / 0.518 GB, free: 15.45 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.969e-05/0.433, allocations: 21.59 kB / 0.518 GB, free: 15.43 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006476/0.4336, allocations: 72.66 kB / 0.5181 GB, free: 15.43 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001674/0.4353, allocations: 0.6198 MB / 0.5187 GB, free: 15.23 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007306/0.4426, allocations: 3.783 MB / 0.5224 GB, free: 12.6 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001713/0.4444, allocations: 0.5431 MB / 0.5229 GB, free: 12.39 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008101/0.4452, allocations: 316.6 kB / 0.5232 GB, free: 12.28 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.816e-05/0.4453, allocations: 10.59 kB / 0.5232 GB, free: 12.27 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.792e-05/0.4454, allocations: 45.14 kB / 0.5233 GB, free: 12.22 MB / 398.1 MB Notification: Performance of pre-optimization done (n=48): time 3.236e-06/0.4454, allocations: 1.875 kB / 0.5233 GB, free: 12.22 MB / 398.1 MB Notification: Performance of matching and sorting (n=49): time 0.005808/0.4512, allocations: 1.836 MB / 0.525 GB, free: 11.32 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.12e-05/0.4513, allocations: 83.14 kB / 0.5251 GB, free: 11.23 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009705/0.4523, allocations: 417.5 kB / 0.5255 GB, free: 11.04 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 8.736e-05/0.4524, allocations: 36.08 kB / 0.5256 GB, free: 11 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004347/0.4529, allocations: 326.9 kB / 0.5259 GB, free: 10.73 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003385/0.4532, allocations: 205.2 kB / 0.5261 GB, free: 10.58 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004529/0.4537, allocations: 146.1 kB / 0.5262 GB, free: 10.51 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.000263/0.454, allocations: 378.1 kB / 0.5266 GB, free: 10.16 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001137/0.4551, allocations: 376.1 kB / 0.5269 GB, free: 10.05 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001429/0.4566, allocations: 0.5989 MB / 0.5275 GB, free: 9.656 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002806/0.4594, allocations: 1.069 MB / 0.5286 GB, free: 9.051 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.032e-05/0.4594, allocations: 3.094 kB / 0.5286 GB, free: 9.051 MB / 398.1 MB Notification: Performance of matching and sorting (n=100) (initialization): time 0.008586/0.468, allocations: 1.997 MB / 0.5305 GB, free: 8.352 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.611e-05/0.4681, allocations: 7.969 kB / 0.5305 GB, free: 8.352 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.526e-05/0.4681, allocations: 7.938 kB / 0.5305 GB, free: 8.352 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005065/0.4732, allocations: 0.9751 MB / 0.5315 GB, free: 8.145 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009345/0.4742, allocations: 117.6 kB / 0.5316 GB, free: 8.117 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02306/0.4973, allocations: 8.183 MB / 0.5396 GB, free: 2.512 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001177/0.4985, allocations: 36.77 kB / 0.5396 GB, free: 2.492 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002141/0.4987, allocations: 36.89 kB / 0.5397 GB, free: 2.484 MB / 398.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.0008276/0.4996, allocations: 249.6 kB / 0.5399 GB, free: 2.289 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002744/0.4999, allocations: 51.81 kB / 0.5399 GB, free: 2.262 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002439/0.5023, allocations: 0.7301 MB / 0.5407 GB, free: 1.859 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.234e-05/0.5024, allocations: 10 kB / 0.5407 GB, free: 1.855 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.981e-06/0.5024, allocations: 0 / 0.5407 GB, free: 1.855 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.64e-05/0.5024, allocations: 5.484 kB / 0.5407 GB, free: 1.852 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005197/0.5076, allocations: 1.519 MB / 0.5421 GB, free: 0.6406 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.262e-06/0.5076, allocations: 3.938 kB / 0.5422 GB, free: 0.6367 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002286/0.5099, allocations: 187.8 kB / 0.5423 GB, free: 464 kB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.27e-05/0.51, allocations: 4 kB / 0.5423 GB, free: 460 kB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001095/0.5101, allocations: 31.92 kB / 0.5424 GB, free: 428 kB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.035e-06/0.5101, allocations: 4.031 kB / 0.5424 GB, free: 424 kB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.472e-06/0.5102, allocations: 12.06 kB / 0.5424 GB, free: 412 kB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002693/0.5129, allocations: 0.9856 MB / 0.5433 GB, free: 15.39 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003016/0.5132, allocations: 132.4 kB / 0.5435 GB, free: 15.24 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002172/0.5134, allocations: 31.98 kB / 0.5435 GB, free: 15.21 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006939/0.5141, allocations: 23.97 kB / 0.5435 GB, free: 15.19 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001309/0.5143, allocations: 32.39 kB / 0.5436 GB, free: 15.15 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.741e-05/0.5144, allocations: 16 kB / 0.5436 GB, free: 15.14 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0005705/0.515, allocations: 279.1 kB / 0.5438 GB, free: 14.86 MB / 414.1 MB Notification: Performance of sort global known variables: time 5.91e-07/0.515, allocations: 4 kB / 0.5438 GB, free: 14.86 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001621/0.5166, allocations: 212 kB / 0.544 GB, free: 14.65 MB / 414.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.0002773/0.5169, allocations: 127.2 kB / 0.5442 GB, free: 14.52 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.004595/0.5215, allocations: 1.465 MB / 0.5456 GB, free: 13.03 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 6.171e-06/0.5215, allocations: 0 / 0.5456 GB, free: 13.03 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008749/0.5224, allocations: 310.3 kB / 0.5459 GB, free: 12.73 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001358/0.5238, allocations: 134.4 kB / 0.546 GB, free: 12.6 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008039/0.5319, allocations: 2.688 MB / 0.5486 GB, free: 9.867 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001086/0.533, allocations: 0.9804 MB / 0.5496 GB, free: 8.859 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.001005/0.534, allocations: 204.6 kB / 0.5498 GB, free: 8.66 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003115/0.5343, allocations: 43.44 kB / 0.5498 GB, free: 8.617 MB / 414.1 MB Notification: Performance of SimCode: time 1.393e-06/0.5344, allocations: 4 kB / 0.5498 GB, free: 8.613 MB / 414.1 MB Notification: Performance of Templates: time 0.03328/0.5676, allocations: 10.87 MB / 0.5605 GB, free: 13.8 MB / 430.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]