Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_L.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/Buildings 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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(Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_L,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|R1.v.1.|R1.v.2.|R2.v.1.|R2.v.2.|R3.v.1.|R3.v.2.|R1.i.1.|R1.i.2.|load_sc.i.1.|load_sc.i.2.|R2.i.1.|R2.i.2.|R3.i.1.|R3.i.2.",fileNamePrefix="Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_L") translateModel(Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_L,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|R1.v.1.|R1.v.2.|R2.v.1.|R2.v.2.|R3.v.1.|R3.v.2.|R1.i.1.|R1.i.2.|load_sc.i.1.|load_sc.i.2.|R2.i.1.|R2.i.2.|R3.i.1.|R3.i.2.",fileNamePrefix="Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_L") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001132/0.001132, allocations: 109 kB / 16.42 MB, free: 6.52 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.001115/0.001115, allocations: 192.3 kB / 17.35 MB, free: 5.738 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.352/1.352, allocations: 222.9 MB / 241 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.624/2.624, allocations: 469.4 MB / 0.7428 GB, free: 3.48 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001298/0.001298, allocations: 67.91 kB / 1.066 GB, free: 13.75 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9391/0.9404, allocations: 159.1 MB / 1.221 GB, free: 2.309 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_L): time 0.007774/0.9483, allocations: 6.089 MB / 1.227 GB, free: 12.19 MB / 0.9512 GB Notification: Performance of NFInst.instExpressions: time 0.005344/0.9536, allocations: 3.149 MB / 1.23 GB, free: 9.031 MB / 0.9512 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000661/0.9543, allocations: 31.81 kB / 1.23 GB, free: 9 MB / 0.9512 GB Notification: Performance of NFTyping.typeComponents: time 0.002626/0.957, allocations: 0.9215 MB / 1.231 GB, free: 8.078 MB / 0.9512 GB Notification: Performance of NFTyping.typeBindings: time 0.001433/0.9584, allocations: 0.4898 MB / 1.231 GB, free: 7.586 MB / 0.9512 GB Notification: Performance of NFTyping.typeClassSections: time 0.001363/0.9598, allocations: 482.8 kB / 1.232 GB, free: 7.113 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 0.001572/0.9614, allocations: 1.096 MB / 1.233 GB, free: 6.016 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001084/0.9625, allocations: 0.6386 MB / 1.233 GB, free: 5.371 MB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0008461/0.9633, allocations: 454.3 kB / 1.234 GB, free: 4.926 MB / 0.9512 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0008742/0.9642, allocations: 470.2 kB / 1.234 GB, free: 4.465 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 0.0001709/0.9644, allocations: 60 kB / 1.234 GB, free: 4.406 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00108/0.9655, allocations: 491 kB / 1.235 GB, free: 3.926 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 0.0003864/0.9659, allocations: 291.2 kB / 1.235 GB, free: 3.641 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 0.0006471/0.9665, allocations: 398 kB / 1.236 GB, free: 3.25 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.001796/0.9684, allocations: 1.17 MB / 1.237 GB, free: 2.078 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 5.25e-06/0.9684, allocations: 0 / 1.237 GB, free: 2.078 MB / 0.9512 GB Notification: Performance of FrontEnd: time 1.894e-06/0.9684, allocations: 0 / 1.237 GB, free: 2.078 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 4.395e-05/0.9684, allocations: 4 kB / 1.237 GB, free: 2.074 MB / 0.9512 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 177 * Number of variables: 177 Notification: Performance of Generate backend data structure: time 0.002167/0.9706, allocations: 1.048 MB / 1.238 GB, free: 0.9727 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 4.895e-05/0.9707, allocations: 8.625 kB / 1.238 GB, free: 0.9648 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001638/0.9723, allocations: 223.7 kB / 1.238 GB, free: 0.7461 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001088/0.9734, allocations: 0.5766 MB / 1.238 GB, free: 140 kB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.078e-05/0.9735, allocations: 57.61 kB / 1.239 GB, free: 84 kB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001219/0.9736, allocations: 60.36 kB / 1.239 GB, free: 24 kB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001591/0.9752, allocations: 1.03 MB / 1.24 GB, free: 14.88 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.763e-05/0.9752, allocations: 15.84 kB / 1.24 GB, free: 14.87 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.396e-05/0.9753, allocations: 27.98 kB / 1.24 GB, free: 14.84 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.406e-05/0.9754, allocations: 69.27 kB / 1.24 GB, free: 14.77 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001175/0.9766, allocations: 0.6918 MB / 1.24 GB, free: 14.08 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005492/0.9821, allocations: 5.729 MB / 1.246 GB, free: 7.922 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008272/0.9829, allocations: 0.6012 MB / 1.247 GB, free: 7.277 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008233/0.9838, allocations: 436 kB / 1.247 GB, free: 6.852 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 3.547e-05/0.9838, allocations: 7.938 kB / 1.247 GB, free: 6.844 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.451e-05/0.9839, allocations: 34.56 kB / 1.247 GB, free: 6.801 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=41): time 1.763e-06/0.9839, allocations: 0 / 1.247 GB, free: 6.801 MB / 0.9669 GB Notification: Performance of matching and sorting (n=42): time 0.004322/0.9882, allocations: 2.01 MB / 1.249 GB, free: 4.695 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.517e-05/0.9882, allocations: 55.41 kB / 1.249 GB, free: 4.629 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005305/0.9888, allocations: 462.7 kB / 1.249 GB, free: 4.168 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 3.754e-05/0.9888, allocations: 33.7 kB / 1.25 GB, free: 4.129 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 0.000267/0.9891, allocations: 379.1 kB / 1.25 GB, free: 3.754 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001253/0.9892, allocations: 153.8 kB / 1.25 GB, free: 3.602 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001723/0.9894, allocations: 110.2 kB / 1.25 GB, free: 3.484 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001467/0.9896, allocations: 366.8 kB / 1.25 GB, free: 3.117 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003558/0.9899, allocations: 245.1 kB / 1.251 GB, free: 2.879 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005101/0.9904, allocations: 453.6 kB / 1.251 GB, free: 2.34 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009362/0.9914, allocations: 0.7477 MB / 1.252 GB, free: 1.496 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.641e-06/0.9914, allocations: 4 kB / 1.252 GB, free: 1.492 MB / 0.9669 GB Notification: Performance of matching and sorting (n=73) (initialization): time 0.001919/0.9933, allocations: 1.042 MB / 1.253 GB, free: 440 kB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 2.552e-05/0.9934, allocations: 8 kB / 1.253 GB, free: 432 kB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.458e-05/0.9934, allocations: 7.938 kB / 1.253 GB, free: 424 kB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001002/0.9944, allocations: 319.8 kB / 1.253 GB, free: 92 kB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003322/0.9947, allocations: 99.86 kB / 1.253 GB, free: 15.99 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007762/1.003, allocations: 7.463 MB / 1.261 GB, free: 7.965 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004481/1.003, allocations: 36.02 kB / 1.261 GB, free: 7.93 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.89e-05/1.003, allocations: 28.19 kB / 1.261 GB, free: 7.902 MB / 0.9825 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 31 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (53): * Single equations (assignments): 49 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(3,7,88.9%), (1,5,100.0%), (1,3,100.0%), (2,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0003906/1.003, allocations: 241.5 kB / 1.261 GB, free: 7.656 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001304/1.004, allocations: 59.34 kB / 1.261 GB, free: 7.598 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001731/1.005, allocations: 0.8963 MB / 1.262 GB, free: 6.68 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.024e-05/1.005, allocations: 7.984 kB / 1.262 GB, free: 6.672 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.334e-06/1.005, allocations: 4.281 kB / 1.262 GB, free: 6.668 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002812/1.006, allocations: 172.3 kB / 1.262 GB, free: 6.48 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.804e-05/1.006, allocations: 12 kB / 1.262 GB, free: 6.469 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002557/1.006, allocations: 23.91 kB / 1.262 GB, free: 6.445 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001037/1.006, allocations: 43.92 kB / 1.262 GB, free: 6.402 MB / 0.9825 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.001995/1.008, allocations: 0.9524 MB / 1.263 GB, free: 5.43 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.00125/1.009, allocations: 0.9729 MB / 1.264 GB, free: 4.441 MB / 0.9825 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0003447/1.01, allocations: 247.7 kB / 1.264 GB, free: 4.199 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.0003677/1.01, allocations: 306.9 kB / 1.264 GB, free: 3.902 MB / 0.9825 GB Notification: Performance of Backend: time 5.21e-07/1.01, allocations: 3.938 kB / 1.264 GB, free: 3.898 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.002662/1.013, allocations: 1.279 MB / 1.266 GB, free: 2.559 MB / 0.9825 GB Notification: Performance of SimCode: time 0.002882/1.016, allocations: 1.893 MB / 1.268 GB, free: 0.6133 MB / 0.9825 GB Notification: Performance of Templates: time 0.02224/1.038, allocations: 11.98 MB / 1.279 GB, free: 4.715 MB / 0.9981 GB make -j1 -f Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_L.makefile (rm -f Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_L.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_L.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_L.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_L.sim & ./Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_L -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_L.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_L_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_AC_OnePhase_Lines_Examples_ACLine_L.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_L.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,R1.v[1],R1.v[2],R2.v[1],R2.v[2],R3.v[1],R3.v[2],R1.i[1],R1.i[2],load_sc.i[1],load_sc.i[2],R2.i[1],R2.i[2],R3.i[1],R3.i[2] Variables in the result:$cse1,E.V,E.definiteReference,E.f,E.phiSou,E.potentialReference,Lbase,Lline_1.L,Lline_1.mode,Lline_2a.L,Lline_2a.mode,Lline_2b.L,Lline_2b.mode,Lline_3.L,Lline_3.mode,Lline_3b.L,Lline_3b.mode,Lline_sc.L,Lline_sc.mode,R1.C,R1.CMax,R1.CMin,R1.C_internal,R1.L,R1.LMax,R1.LMin,R1.L_internal,R1.P_nominal,R1.R,R1.RMax,R1.RMin,R1.R_internal,R1.V_nominal,R1.i[1],R1.i[2],R1.inductive,R1.initMode,R1.linearized,R1.mode,R1.use_C_in,R1.use_L_in,R1.use_R_in,R1.v[1],R1.v[2],R2.C,R2.CMax,R2.CMin,R2.C_internal,R2.L,R2.LMax,R2.LMin,R2.L_internal,R2.P_nominal,R2.R,R2.RMax,R2.RMin,R2.R_internal,R2.V_nominal,R2.i[1],R2.i[2],R2.inductive,R2.initMode,R2.linearized,R2.mode,R2.use_C_in,R2.use_L_in,R2.use_R_in,R2.v[1],R2.v[2],R3.C,R3.CMax,R3.CMin,R3.C_internal,R3.L,R3.LMax,R3.LMin,R3.L_internal,R3.P_nominal,R3.R,R3.RMax,R3.RMin,R3.R_internal,R3.V_nominal,R3.i[1],R3.i[2],R3.inductive,R3.initMode,R3.linearized,R3.mode,R3.use_C_in,R3.use_L_in,R3.use_R_in,R3.v[1],R3.v[2],load_sc.C,load_sc.CMax,load_sc.CMin,load_sc.C_internal,load_sc.L,load_sc.LMax,load_sc.LMin,load_sc.L_internal,load_sc.P_nominal,load_sc.R,load_sc.RMax,load_sc.RMin,load_sc.R_internal,load_sc.V_nominal,load_sc.i[1],load_sc.i[2],load_sc.inductive,load_sc.initMode,load_sc.linearized,load_sc.mode,load_sc.use_C_in,load_sc.use_L_in,load_sc.use_R_in,time