Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.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(Buildings.Electrical.AC.ThreePhasesBalanced.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.ThreePhasesBalanced.Lines.Examples.ACLine_L") translateModel(Buildings.Electrical.AC.ThreePhasesBalanced.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.ThreePhasesBalanced.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.001391/0.001397, allocations: 114.3 kB / 16.42 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.001449/0.001449, allocations: 183.9 kB / 17.34 MB, free: 5.758 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.371/1.371, 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 12.0.0-master/package.mo): time 2.603/2.603, allocations: 472.7 MB / 0.746 GB, free: 444 kB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001476/0.001476, allocations: 59.91 kB / 1.07 GB, free: 9.559 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.031/1.033, allocations: 159.9 MB / 1.226 GB, free: 13.53 MB / 0.9512 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_L): time 0.01001/1.043, allocations: 6.168 MB / 1.232 GB, free: 7.336 MB / 0.9512 GB Notification: Performance of NFInst.instExpressions: time 0.006316/1.049, allocations: 3.168 MB / 1.235 GB, free: 4.156 MB / 0.9512 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009095/1.05, allocations: 27.81 kB / 1.235 GB, free: 4.129 MB / 0.9512 GB Notification: Performance of NFTyping.typeComponents: time 0.002835/1.053, allocations: 0.9337 MB / 1.236 GB, free: 3.191 MB / 0.9512 GB Notification: Performance of NFTyping.typeBindings: time 0.001702/1.055, allocations: 493.5 kB / 1.237 GB, free: 2.707 MB / 0.9512 GB Notification: Performance of NFTyping.typeClassSections: time 0.001424/1.056, allocations: 0.4907 MB / 1.237 GB, free: 2.219 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 0.001472/1.058, allocations: 1.108 MB / 1.238 GB, free: 1.109 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0009429/1.059, allocations: 0.6428 MB / 1.239 GB, free: 472 kB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0006269/1.059, allocations: 446.3 kB / 1.239 GB, free: 24 kB / 0.9512 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0006238/1.06, allocations: 474.2 kB / 1.24 GB, free: 15.56 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 0.0001026/1.06, allocations: 63.94 kB / 1.24 GB, free: 15.5 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001002/1.061, allocations: 483 kB / 1.24 GB, free: 15.02 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 0.0002943/1.061, allocations: 291.2 kB / 1.241 GB, free: 14.74 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 0.0004104/1.062, allocations: 401.9 kB / 1.241 GB, free: 14.34 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.001453/1.063, allocations: 1.183 MB / 1.242 GB, free: 13.16 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 6.262e-06/1.063, allocations: 8 kB / 1.242 GB, free: 13.15 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.262e-06/1.063, allocations: 0 / 1.242 GB, free: 13.15 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 1.106e-05/1.063, allocations: 0 / 1.242 GB, free: 13.15 MB / 0.9669 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.001774/1.065, allocations: 1.082 MB / 1.243 GB, free: 12.02 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 4.817e-05/1.065, allocations: 12.03 kB / 1.243 GB, free: 12 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001551/1.067, allocations: 224.1 kB / 1.244 GB, free: 11.79 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000938/1.068, allocations: 0.5926 MB / 1.244 GB, free: 11.15 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.757e-05/1.068, allocations: 45.67 kB / 1.244 GB, free: 11.11 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001153/1.068, allocations: 68.31 kB / 1.244 GB, free: 11.04 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001475/1.069, allocations: 1.038 MB / 1.245 GB, free: 9.891 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.176e-05/1.069, allocations: 7.938 kB / 1.245 GB, free: 9.883 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.679e-05/1.069, allocations: 27.98 kB / 1.245 GB, free: 9.855 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001136/1.069, allocations: 73.27 kB / 1.245 GB, free: 9.785 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001083/1.07, allocations: 0.6917 MB / 1.246 GB, free: 9.094 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005362/1.076, allocations: 5.742 MB / 1.252 GB, free: 2.926 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008964/1.077, allocations: 0.5962 MB / 1.252 GB, free: 2.285 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008158/1.078, allocations: 436.6 kB / 1.253 GB, free: 1.855 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 4.046e-05/1.078, allocations: 4 kB / 1.253 GB, free: 1.852 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.876e-05/1.078, allocations: 34.56 kB / 1.253 GB, free: 1.809 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=41): time 3.096e-06/1.078, allocations: 0 / 1.253 GB, free: 1.809 MB / 0.9669 GB Notification: Performance of matching and sorting (n=42): time 0.004407/1.082, allocations: 2.027 MB / 1.255 GB, free: 15.69 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.564e-05/1.082, allocations: 55.41 kB / 1.255 GB, free: 15.62 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005591/1.083, allocations: 470.8 kB / 1.255 GB, free: 15.15 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 4.684e-05/1.083, allocations: 33.7 kB / 1.255 GB, free: 15.11 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002993/1.083, allocations: 396.1 kB / 1.256 GB, free: 14.72 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001424/1.083, allocations: 150.7 kB / 1.256 GB, free: 14.57 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001711/1.083, allocations: 118.2 kB / 1.256 GB, free: 14.45 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001901/1.084, allocations: 362.8 kB / 1.256 GB, free: 14.09 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003665/1.084, allocations: 249 kB / 1.256 GB, free: 13.84 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005308/1.085, allocations: 453.6 kB / 1.257 GB, free: 13.3 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000962/1.085, allocations: 0.7555 MB / 1.258 GB, free: 12.45 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.41e-06/1.086, allocations: 4 kB / 1.258 GB, free: 12.45 MB / 0.9825 GB Notification: Performance of matching and sorting (n=73) (initialization): time 0.001872/1.087, allocations: 1.043 MB / 1.259 GB, free: 11.39 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 2.245e-05/1.087, allocations: 8 kB / 1.259 GB, free: 11.38 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.302e-05/1.087, allocations: 8 kB / 1.259 GB, free: 11.37 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00101/1.088, allocations: 319.1 kB / 1.259 GB, free: 11.05 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003149/1.089, allocations: 99.81 kB / 1.259 GB, free: 10.95 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00786/1.097, allocations: 7.474 MB / 1.266 GB, free: 2.914 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005188/1.097, allocations: 27.98 kB / 1.266 GB, free: 2.887 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.183e-05/1.097, allocations: 24.19 kB / 1.266 GB, free: 2.863 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.0004553/1.098, allocations: 253.6 kB / 1.267 GB, free: 2.605 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00015/1.098, allocations: 63.61 kB / 1.267 GB, free: 2.543 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001798/1.1, allocations: 0.8964 MB / 1.268 GB, free: 1.625 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.127e-06/1.1, allocations: 4 kB / 1.268 GB, free: 1.621 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.555e-06/1.1, allocations: 0 / 1.268 GB, free: 1.621 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000293/1.1, allocations: 180.6 kB / 1.268 GB, free: 1.426 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.567e-05/1.1, allocations: 4 kB / 1.268 GB, free: 1.422 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002614/1.1, allocations: 19.98 kB / 1.268 GB, free: 1.402 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001213/1.101, allocations: 43.92 kB / 1.268 GB, free: 1.359 MB / 0.9825 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.001948/1.102, allocations: 0.9526 MB / 1.269 GB, free: 396 kB / 0.9825 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.001315/1.104, allocations: 0.987 MB / 1.27 GB, free: 15.38 MB / 0.9981 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0003648/1.104, allocations: 247.7 kB / 1.27 GB, free: 15.14 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.0004059/1.105, allocations: 310.9 kB / 1.27 GB, free: 14.84 MB / 0.9981 GB Notification: Performance of Backend: time 5.72e-07/1.105, allocations: 4.281 kB / 1.27 GB, free: 14.84 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.00278/1.107, allocations: 1.294 MB / 1.271 GB, free: 13.48 MB / 0.9981 GB Notification: Performance of SimCode: time 0.002982/1.11, allocations: 1.914 MB / 1.273 GB, free: 11.52 MB / 0.9981 GB Notification: Performance of Templates: time 0.02224/1.133, allocations: 12.02 MB / 1.285 GB, free: 15.59 MB / 1.014 GB make -j1 -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_L.makefile (rm -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_L.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_L.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_L.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_L.sim & ./Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_L -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_L.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_L_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_AC_ThreePhasesBalanced_Lines_Examples_ACLine_L.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.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.star,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.star,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.star,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.star,load_sc.use_C_in,load_sc.use_L_in,load_sc.use_R_in,time