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.00142/0.00142, allocations: 107.8 kB / 16.41 MB, free: 6.5 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.001547/0.001547, allocations: 192.3 kB / 17.35 MB, free: 5.762 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.606/1.606, allocations: 222.9 MB / 241.1 MB, free: 15.2 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.78/2.78, allocations: 461.9 MB / 0.7355 GB, free: 11.12 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001425/0.001425, allocations: 55.91 kB / 1.055 GB, free: 7.75 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9764/0.9778, allocations: 157.4 MB / 1.208 GB, free: 13.7 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_L): time 0.01056/0.9885, allocations: 6.091 MB / 1.214 GB, free: 7.586 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.007222/0.9957, allocations: 3.145 MB / 1.217 GB, free: 4.43 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00128/0.9971, allocations: 31.81 kB / 1.217 GB, free: 4.398 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 0.00326/1, allocations: 0.9296 MB / 1.218 GB, free: 3.469 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 0.002152/1.003, allocations: 485.5 kB / 1.219 GB, free: 2.992 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.001793/1.004, allocations: 474.8 kB / 1.219 GB, free: 2.527 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.001965/1.006, allocations: 1.1 MB / 1.22 GB, free: 1.422 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001422/1.008, allocations: 0.6426 MB / 1.221 GB, free: 0.7812 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0009808/1.009, allocations: 438.3 kB / 1.221 GB, free: 360 kB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001004/1.01, allocations: 474.2 kB / 1.222 GB, free: 15.89 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 0.0002291/1.01, allocations: 60 kB / 1.222 GB, free: 15.83 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001443/1.011, allocations: 483 kB / 1.222 GB, free: 15.36 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 0.0006117/1.012, allocations: 287.2 kB / 1.223 GB, free: 15.07 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 0.00102/1.013, allocations: 401.9 kB / 1.223 GB, free: 14.68 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.00285/1.016, allocations: 1.17 MB / 1.224 GB, free: 13.51 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 7.143e-06/1.016, allocations: 4 kB / 1.224 GB, free: 13.5 MB / 0.9512 GB Notification: Performance of FrontEnd: time 1.517e-05/1.016, allocations: 0 / 1.224 GB, free: 13.5 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 5.492e-05/1.016, allocations: 3.938 kB / 1.224 GB, free: 13.5 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.002767/1.019, allocations: 1.05 MB / 1.225 GB, free: 12.4 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 5.118e-05/1.019, allocations: 12.03 kB / 1.225 GB, free: 12.39 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001779/1.021, allocations: 219.7 kB / 1.225 GB, free: 12.17 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001362/1.022, allocations: 0.5843 MB / 1.226 GB, free: 11.55 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.763e-05/1.022, allocations: 49.67 kB / 1.226 GB, free: 11.5 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001659/1.022, allocations: 64.36 kB / 1.226 GB, free: 11.44 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00179/1.024, allocations: 1.034 MB / 1.227 GB, free: 10.29 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.547e-05/1.024, allocations: 11.94 kB / 1.227 GB, free: 10.28 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.324e-05/1.024, allocations: 27.98 kB / 1.227 GB, free: 10.25 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.477e-05/1.024, allocations: 65.27 kB / 1.227 GB, free: 10.19 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001276/1.026, allocations: 0.6918 MB / 1.228 GB, free: 9.496 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006575/1.032, allocations: 5.729 MB / 1.233 GB, free: 3.34 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000947/1.033, allocations: 0.606 MB / 1.234 GB, free: 2.691 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008383/1.034, allocations: 428.6 kB / 1.234 GB, free: 2.27 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 4.947e-05/1.034, allocations: 4 kB / 1.234 GB, free: 2.266 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.798e-05/1.034, allocations: 34.56 kB / 1.235 GB, free: 2.223 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=41): time 3.056e-06/1.034, allocations: 0 / 1.235 GB, free: 2.223 MB / 0.9512 GB Notification: Performance of matching and sorting (n=42): time 0.004927/1.039, allocations: 2.018 MB / 1.237 GB, free: 112 kB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.565e-05/1.039, allocations: 59.41 kB / 1.237 GB, free: 40 kB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005702/1.04, allocations: 454.8 kB / 1.237 GB, free: 15.59 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 5.106e-05/1.04, allocations: 29.7 kB / 1.237 GB, free: 15.55 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003461/1.04, allocations: 394.9 kB / 1.237 GB, free: 15.16 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001589/1.04, allocations: 153.8 kB / 1.238 GB, free: 15.01 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001727/1.041, allocations: 110.2 kB / 1.238 GB, free: 14.89 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001977/1.041, allocations: 358.8 kB / 1.238 GB, free: 14.53 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003691/1.041, allocations: 241.2 kB / 1.238 GB, free: 14.3 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005682/1.042, allocations: 453 kB / 1.239 GB, free: 13.76 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001002/1.043, allocations: 0.7516 MB / 1.239 GB, free: 12.91 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.571e-06/1.043, allocations: 4 kB / 1.239 GB, free: 12.91 MB / 0.9669 GB Notification: Performance of matching and sorting (n=73) (initialization): time 0.001964/1.045, allocations: 1.038 MB / 1.24 GB, free: 11.85 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 3.02e-05/1.045, allocations: 10.03 kB / 1.24 GB, free: 11.84 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.265e-05/1.045, allocations: 4.844 kB / 1.24 GB, free: 11.84 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001063/1.046, allocations: 319.1 kB / 1.241 GB, free: 11.51 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003217/1.046, allocations: 103.8 kB / 1.241 GB, free: 11.41 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008038/1.054, allocations: 7.482 MB / 1.248 GB, free: 3.363 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006233/1.055, allocations: 24.03 kB / 1.248 GB, free: 3.34 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.053e-05/1.055, allocations: 35.92 kB / 1.248 GB, free: 3.305 MB / 0.9669 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.0004193/1.055, allocations: 241.5 kB / 1.248 GB, free: 3.059 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.112e-05/1.056, allocations: 59.34 kB / 1.248 GB, free: 3 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001725/1.057, allocations: 0.8921 MB / 1.249 GB, free: 2.09 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.44e-06/1.057, allocations: 0 / 1.249 GB, free: 2.09 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.485e-06/1.057, allocations: 0 / 1.249 GB, free: 2.09 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000281/1.058, allocations: 180.3 kB / 1.25 GB, free: 1.895 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.899e-05/1.058, allocations: 8 kB / 1.25 GB, free: 1.887 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002496/1.058, allocations: 19.97 kB / 1.25 GB, free: 1.867 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001166/1.058, allocations: 43.92 kB / 1.25 GB, free: 1.824 MB / 0.9669 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.002103/1.06, allocations: 0.9449 MB / 1.251 GB, free: 0.8594 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.001342/1.062, allocations: 0.9802 MB / 1.251 GB, free: 15.86 MB / 0.9825 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0003975/1.062, allocations: 244.5 kB / 1.252 GB, free: 15.62 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.000364/1.062, allocations: 306.9 kB / 1.252 GB, free: 15.33 MB / 0.9825 GB Notification: Performance of Backend: time 1.012e-06/1.062, allocations: 3.938 kB / 1.252 GB, free: 15.32 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.002902/1.065, allocations: 1.294 MB / 1.253 GB, free: 13.97 MB / 0.9825 GB Notification: Performance of SimCode: time 0.002902/1.068, allocations: 1.878 MB / 1.255 GB, free: 12.04 MB / 0.9825 GB Notification: Performance of Templates: time 0.02273/1.091, allocations: 12.2 MB / 1.267 GB, free: 15.92 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