Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/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_10_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_10_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.001401/0.001401, allocations: 113 kB / 16.42 MB, free: 6.449 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.001557/0.001557, allocations: 185.7 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.448/1.448, allocations: 222.9 MB / 241.1 MB, free: 15.21 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.543/2.543, allocations: 437 MB / 0.7112 GB, free: 4.402 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.0015/0.0015, allocations: 64.11 kB / 1.019 GB, free: 9.434 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9059/0.9074, allocations: 151.6 MB / 1.167 GB, free: 3.84 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_L): time 0.007487/0.9149, allocations: 6.161 MB / 1.173 GB, free: 13.65 MB / 0.9044 GB Notification: Performance of NFInst.instExpressions: time 0.005096/0.9201, allocations: 3.168 MB / 1.176 GB, free: 10.47 MB / 0.9044 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000471/0.9206, allocations: 31.81 kB / 1.176 GB, free: 10.44 MB / 0.9044 GB Notification: Performance of NFTyping.typeComponents: time 0.002358/0.923, allocations: 0.9325 MB / 1.177 GB, free: 9.508 MB / 0.9044 GB Notification: Performance of NFTyping.typeBindings: time 0.001189/0.9242, allocations: 493.5 kB / 1.178 GB, free: 9.023 MB / 0.9044 GB Notification: Performance of NFTyping.typeClassSections: time 0.001189/0.9254, allocations: 0.5002 MB / 1.178 GB, free: 8.523 MB / 0.9044 GB Notification: Performance of NFFlatten.flatten: time 0.001181/0.9266, allocations: 1.104 MB / 1.179 GB, free: 7.414 MB / 0.9044 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0008314/0.9274, allocations: 0.6424 MB / 1.18 GB, free: 6.77 MB / 0.9044 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005269/0.928, allocations: 450.2 kB / 1.18 GB, free: 6.328 MB / 0.9044 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005402/0.9285, allocations: 474.2 kB / 1.181 GB, free: 5.863 MB / 0.9044 GB Notification: Performance of NFPackage.collectConstants: time 9.103e-05/0.9286, allocations: 63.88 kB / 1.181 GB, free: 5.801 MB / 0.9044 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0008709/0.9295, allocations: 479 kB / 1.181 GB, free: 5.332 MB / 0.9044 GB Notification: Performance of NFScalarize.scalarize: time 0.0002534/0.9297, allocations: 287.3 kB / 1.182 GB, free: 5.051 MB / 0.9044 GB Notification: Performance of NFVerifyModel.verify: time 0.0003498/0.9301, allocations: 401.9 kB / 1.182 GB, free: 4.656 MB / 0.9044 GB Notification: Performance of NFConvertDAE.convert: time 0.001175/0.9313, allocations: 1.182 MB / 1.183 GB, free: 3.473 MB / 0.9044 GB Notification: Performance of FrontEnd - DAE generated: time 6.843e-06/0.9313, allocations: 4 kB / 1.183 GB, free: 3.469 MB / 0.9044 GB Notification: Performance of FrontEnd: time 1.393e-06/0.9313, allocations: 0 / 1.183 GB, free: 3.469 MB / 0.9044 GB Notification: Performance of Transformations before backend: time 1.052e-05/0.9313, allocations: 0 / 1.183 GB, free: 3.469 MB / 0.9044 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.00157/0.9329, allocations: 1.063 MB / 1.184 GB, free: 2.352 MB / 0.9044 GB Notification: Performance of prepare preOptimizeDAE: time 4.129e-05/0.933, allocations: 12.92 kB / 1.184 GB, free: 2.34 MB / 0.9044 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001541/0.9345, allocations: 219.7 kB / 1.184 GB, free: 2.125 MB / 0.9044 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00091/0.9354, allocations: 0.596 MB / 1.185 GB, free: 1.488 MB / 0.9044 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.456e-05/0.9355, allocations: 45.67 kB / 1.185 GB, free: 1.445 MB / 0.9044 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001018/0.9356, allocations: 60.36 kB / 1.185 GB, free: 1.387 MB / 0.9044 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001337/0.9369, allocations: 1.03 MB / 1.186 GB, free: 248 kB / 0.9044 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.05e-05/0.937, allocations: 11.84 kB / 1.186 GB, free: 236 kB / 0.9044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.273e-05/0.937, allocations: 35.98 kB / 1.186 GB, free: 200 kB / 0.9044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.427e-05/0.9371, allocations: 69.27 kB / 1.186 GB, free: 132 kB / 0.9044 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001038/0.9382, allocations: 0.6957 MB / 1.187 GB, free: 15.43 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004801/0.943, allocations: 5.721 MB / 1.193 GB, free: 9.285 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008024/0.9438, allocations: 0.6135 MB / 1.193 GB, free: 8.625 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008038/0.9446, allocations: 433.6 kB / 1.194 GB, free: 8.199 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 3.07e-05/0.9447, allocations: 8 kB / 1.194 GB, free: 8.191 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.133e-05/0.9447, allocations: 34.56 kB / 1.194 GB, free: 8.148 MB / 0.92 GB Notification: Performance of pre-optimization done (n=41): time 2.114e-06/0.9447, allocations: 0 / 1.194 GB, free: 8.148 MB / 0.92 GB Notification: Performance of matching and sorting (n=42): time 0.004285/0.949, allocations: 2.011 MB / 1.196 GB, free: 6.043 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.983e-05/0.949, allocations: 55.41 kB / 1.196 GB, free: 5.977 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004612/0.9495, allocations: 462.8 kB / 1.196 GB, free: 5.516 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 3.417e-05/0.9496, allocations: 37.7 kB / 1.196 GB, free: 5.473 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002191/0.9498, allocations: 387 kB / 1.196 GB, free: 5.09 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001033/0.9499, allocations: 146 kB / 1.197 GB, free: 4.945 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001586/0.9501, allocations: 110.2 kB / 1.197 GB, free: 4.832 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.0001313/0.9502, allocations: 366.8 kB / 1.197 GB, free: 4.465 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003458/0.9505, allocations: 249.1 kB / 1.197 GB, free: 4.223 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004553/0.951, allocations: 449 kB / 1.198 GB, free: 3.688 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008789/0.9519, allocations: 0.7519 MB / 1.198 GB, free: 2.84 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.086e-06/0.9519, allocations: 0 / 1.198 GB, free: 2.84 MB / 0.92 GB Notification: Performance of matching and sorting (n=73) (initialization): time 0.0018/0.9537, allocations: 1.046 MB / 1.199 GB, free: 1.773 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 2.123e-05/0.9537, allocations: 8 kB / 1.2 GB, free: 1.766 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.47e-05/0.9538, allocations: 8 kB / 1.2 GB, free: 1.758 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001036/0.9548, allocations: 315.6 kB / 1.2 GB, free: 1.438 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003218/0.9551, allocations: 99.81 kB / 1.2 GB, free: 1.34 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007088/0.9622, allocations: 7.466 MB / 1.207 GB, free: 9.305 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004449/0.9627, allocations: 32.02 kB / 1.207 GB, free: 9.273 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.934e-05/0.9628, allocations: 28 kB / 1.207 GB, free: 9.246 MB / 0.9356 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.0003554/0.9631, allocations: 249.5 kB / 1.207 GB, free: 8.992 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001155/0.9633, allocations: 55.34 kB / 1.208 GB, free: 8.938 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001716/0.965, allocations: 0.9006 MB / 1.208 GB, free: 8.016 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.355e-06/0.965, allocations: 4.172 kB / 1.208 GB, free: 8.012 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.967e-06/0.965, allocations: 4 kB / 1.208 GB, free: 8.008 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002804/0.9653, allocations: 184.2 kB / 1.209 GB, free: 7.809 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001085/0.9654, allocations: 8 kB / 1.209 GB, free: 7.801 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002799/0.9657, allocations: 19.97 kB / 1.209 GB, free: 7.781 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001017/0.9658, allocations: 43.92 kB / 1.209 GB, free: 7.738 MB / 0.9356 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.001997/0.9678, allocations: 0.9406 MB / 1.21 GB, free: 6.777 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.001183/0.969, allocations: 0.9846 MB / 1.211 GB, free: 5.777 MB / 0.9356 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0003405/0.9694, allocations: 247.7 kB / 1.211 GB, free: 5.535 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 0.0003469/0.9697, allocations: 310.9 kB / 1.211 GB, free: 5.234 MB / 0.9356 GB Notification: Performance of Backend: time 6.01e-07/0.9697, allocations: 0 / 1.211 GB, free: 5.234 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.002656/0.9724, allocations: 1.287 MB / 1.212 GB, free: 3.887 MB / 0.9356 GB Notification: Performance of SimCode: time 0.002805/0.9752, allocations: 1.899 MB / 1.214 GB, free: 1.949 MB / 0.9356 GB Notification: Performance of Templates: time 0.02155/0.9968, allocations: 12.02 MB / 1.226 GB, free: 6.027 MB / 0.9512 GB make -j1 -f Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_L.makefile (rm -f Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_L.pipe ; mkfifo Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_L.pipe ; head -c 1048576 < Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_L.pipe >> ../files/Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_L.sim & ./Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_L -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_L.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_L_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Electrical_AC_ThreePhasesBalanced_Lines_Examples_ACLine_L.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_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