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.00175/0.00175, allocations: 108.7 kB / 17.06 MB, free: 6.023 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.001682/0.001682, allocations: 192 kB / 18 MB, free: 5.105 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.533/1.533, 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.1997/0.1997, allocations: 38.04 MB / 329.9 MB, free: 8.754 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001226/0.001226, allocations: 59.91 kB / 458.1 MB, free: 6.852 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4439/0.4451, allocations: 58.06 MB / 0.5041 GB, free: 7.754 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Elementary.Line): time 0.008188/0.4533, allocations: 5.173 MB / 0.5092 GB, free: 4.145 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.003292/0.4567, allocations: 1.753 MB / 0.5109 GB, free: 2.93 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002485/0.457, allocations: 14.53 kB / 0.5109 GB, free: 2.926 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001263/0.4582, allocations: 441.2 kB / 0.5113 GB, free: 2.668 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006798/0.4589, allocations: 309.1 kB / 0.5116 GB, free: 2.488 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009599/0.4599, allocations: 352.6 kB / 0.5119 GB, free: 2.348 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009069/0.4608, allocations: 0.7628 MB / 0.5127 GB, free: 2.023 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006082/0.4614, allocations: 381 kB / 0.513 GB, free: 1.859 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005479/0.462, allocations: 339.7 kB / 0.5134 GB, free: 1.719 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008351/0.4628, allocations: 458.5 kB / 0.5138 GB, free: 1.566 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001193/0.463, allocations: 58.16 kB / 0.5139 GB, free: 1.559 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005182/0.4635, allocations: 175.8 kB / 0.514 GB, free: 1.516 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004327/0.4639, allocations: 289.4 kB / 0.5143 GB, free: 1.414 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004319/0.4644, allocations: 335.1 kB / 0.5146 GB, free: 1.223 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001306/0.4657, allocations: 0.8106 MB / 0.5154 GB, free: 0.9336 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.851e-06/0.4657, allocations: 0 / 0.5154 GB, free: 0.9336 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.844e-06/0.4657, allocations: 0.6562 kB / 0.5154 GB, free: 0.9336 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.907e-05/0.4657, allocations: 1.156 kB / 0.5154 GB, free: 0.9336 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.001835/0.4676, allocations: 0.9121 MB / 0.5163 GB, free: 284 kB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.939e-05/0.4676, allocations: 13.23 kB / 0.5163 GB, free: 280 kB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00105/0.4687, allocations: 137.1 kB / 0.5165 GB, free: 240 kB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001136/0.4698, allocations: 0.5317 MB / 0.517 GB, free: 15.9 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.624e-05/0.4699, allocations: 40.22 kB / 0.517 GB, free: 15.88 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000468/0.4704, allocations: 134.1 kB / 0.5171 GB, free: 15.84 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001707/0.4721, allocations: 0.8577 MB / 0.518 GB, free: 15.41 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.465e-05/0.4721, allocations: 1.344 kB / 0.518 GB, free: 15.41 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.281e-05/0.4722, allocations: 19.34 kB / 0.518 GB, free: 15.4 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004563/0.4727, allocations: 78.89 kB / 0.5181 GB, free: 15.39 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001302/0.474, allocations: 0.6243 MB / 0.5187 GB, free: 15.19 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005581/0.4796, allocations: 3.779 MB / 0.5224 GB, free: 12.56 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001219/0.4808, allocations: 0.5333 MB / 0.5229 GB, free: 12.36 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005511/0.4814, allocations: 323.4 kB / 0.5232 GB, free: 12.24 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.399e-05/0.4814, allocations: 14.61 kB / 0.5232 GB, free: 12.23 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.93e-05/0.4815, allocations: 46.34 kB / 0.5233 GB, free: 12.18 MB / 398.1 MB Notification: Performance of pre-optimization done (n=48): time 2.375e-06/0.4815, allocations: 0 / 0.5233 GB, free: 12.18 MB / 398.1 MB Notification: Performance of matching and sorting (n=49): time 0.003968/0.4855, allocations: 1.83 MB / 0.525 GB, free: 11.29 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.285e-05/0.4856, allocations: 83.55 kB / 0.5251 GB, free: 11.2 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007044/0.4863, allocations: 424.6 kB / 0.5255 GB, free: 11 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 6.531e-05/0.4864, allocations: 40.45 kB / 0.5256 GB, free: 10.95 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003001/0.4867, allocations: 322.5 kB / 0.5259 GB, free: 10.69 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002215/0.4869, allocations: 200.8 kB / 0.5261 GB, free: 10.54 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003092/0.4872, allocations: 155 kB / 0.5262 GB, free: 10.46 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.000201/0.4874, allocations: 368.9 kB / 0.5266 GB, free: 10.12 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006789/0.4881, allocations: 381.3 kB / 0.5269 GB, free: 10.01 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008582/0.489, allocations: 0.6027 MB / 0.5275 GB, free: 9.609 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001584/0.4906, allocations: 1.065 MB / 0.5286 GB, free: 9.008 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.128e-06/0.4906, allocations: 2.469 kB / 0.5286 GB, free: 9.008 MB / 398.1 MB Notification: Performance of matching and sorting (n=100) (initialization): time 0.004796/0.4954, allocations: 1.998 MB / 0.5305 GB, free: 8.309 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.368e-05/0.4954, allocations: 11.91 kB / 0.5305 GB, free: 8.305 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.831e-05/0.4954, allocations: 7.031 kB / 0.5305 GB, free: 8.305 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002689/0.4981, allocations: 0.9693 MB / 0.5315 GB, free: 8.098 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004547/0.4986, allocations: 117.9 kB / 0.5316 GB, free: 8.07 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01182/0.5104, allocations: 8.185 MB / 0.5396 GB, free: 2.461 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008027/0.5113, allocations: 37.91 kB / 0.5396 GB, free: 2.441 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001025/0.5114, allocations: 35.34 kB / 0.5397 GB, free: 2.434 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.0005361/0.5119, allocations: 259 kB / 0.5399 GB, free: 2.23 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00019/0.5121, allocations: 55.11 kB / 0.54 GB, free: 2.199 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001609/0.5138, allocations: 0.7199 MB / 0.5407 GB, free: 1.809 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.088e-05/0.5138, allocations: 8.984 kB / 0.5407 GB, free: 1.805 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.996e-06/0.5138, allocations: 0 / 0.5407 GB, free: 1.805 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.512e-06/0.5138, allocations: 1.062 kB / 0.5407 GB, free: 1.805 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003105/0.5169, allocations: 1.524 MB / 0.5422 GB, free: 0.6328 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.968e-06/0.5169, allocations: 3.984 kB / 0.5422 GB, free: 0.6289 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001074/0.518, allocations: 187.8 kB / 0.5423 GB, free: 456 kB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.307e-06/0.518, allocations: 4 kB / 0.5423 GB, free: 452 kB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.204e-05/0.5181, allocations: 31.92 kB / 0.5424 GB, free: 420 kB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.321e-06/0.5182, allocations: 0 / 0.5424 GB, free: 420 kB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.442e-06/0.5182, allocations: 7.984 kB / 0.5424 GB, free: 412 kB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001541/0.5197, allocations: 0.9896 MB / 0.5433 GB, free: 15.38 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002471/0.52, allocations: 128.5 kB / 0.5435 GB, free: 15.24 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001287/0.5201, allocations: 27.91 kB / 0.5435 GB, free: 15.21 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000393/0.5205, allocations: 23.95 kB / 0.5435 GB, free: 15.19 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.941e-05/0.5206, allocations: 36.39 kB / 0.5436 GB, free: 15.15 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.772e-05/0.5207, allocations: 19.98 kB / 0.5436 GB, free: 15.13 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0003404/0.521, allocations: 279.1 kB / 0.5438 GB, free: 14.86 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.521, allocations: 0 / 0.5438 GB, free: 14.86 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001199/0.5222, allocations: 215.9 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.000238/0.5225, allocations: 131.1 kB / 0.5442 GB, free: 14.51 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.003218/0.5257, allocations: 1.469 MB / 0.5456 GB, free: 13.02 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.308e-06/0.5257, allocations: 0 / 0.5456 GB, free: 13.02 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005167/0.5263, allocations: 310.3 kB / 0.5459 GB, free: 12.71 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007709/0.527, allocations: 133.2 kB / 0.546 GB, free: 12.59 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004799/0.5319, allocations: 2.682 MB / 0.5486 GB, free: 9.867 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007567/0.5326, allocations: 0.9959 MB / 0.5496 GB, free: 8.844 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0005695/0.5332, allocations: 200.6 kB / 0.5498 GB, free: 8.648 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002023/0.5334, allocations: 47.42 kB / 0.5499 GB, free: 8.602 MB / 414.1 MB Notification: Performance of SimCode: time 9.21e-07/0.5334, allocations: 0 / 0.5499 GB, free: 8.602 MB / 414.1 MB Notification: Performance of Templates: time 0.02265/0.5561, allocations: 10.87 MB / 0.5605 GB, free: 13.79 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]