Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.BoreholeSegment.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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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.Fluid.Geothermal.Boreholes.BaseClasses.Examples.BoreholeSegment,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|seg.port_a1.m_flow|seg.TBouCon.port.T|seg.soi.T.1.|seg.soi.T.2.|seg.soi.T.3.|seg.soi.T.4.|seg.soi.T.5.|seg.soi.T.6.|seg.soi.T.7.|seg.soi.T.8.|seg.soi.T.9.",fileNamePrefix="Buildings_9_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.BoreholeSegment") translateModel(Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.BoreholeSegment,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|seg.port_a1.m_flow|seg.TBouCon.port.T|seg.soi.T.1.|seg.soi.T.2.|seg.soi.T.3.|seg.soi.T.4.|seg.soi.T.5.|seg.soi.T.6.|seg.soi.T.7.|seg.soi.T.8.|seg.soi.T.9.",fileNamePrefix="Buildings_9_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.BoreholeSegment") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001569/0.001569, allocations: 114.8 kB / 16.42 MB, free: 6.496 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.00167/0.00167, allocations: 183.9 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.332/1.332, allocations: 222.9 MB / 241.1 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.238/2.238, allocations: 390.3 MB / 0.6655 GB, free: 0.6758 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.002365/0.002365, allocations: 63.91 kB / 0.9516 GB, free: 7.633 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9205/0.9229, allocations: 140.4 MB / 1.089 GB, free: 5.516 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.BoreholeSegment): time 0.06129/0.9842, allocations: 49.2 MB / 1.137 GB, free: 2.223 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.02611/1.01, allocations: 14 MB / 1.15 GB, free: 8.191 MB / 0.9044 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004299/1.015, allocations: 67.91 kB / 1.15 GB, free: 8.168 MB / 0.9044 GB Notification: Performance of NFTyping.typeComponents: time 0.003741/1.019, allocations: 0.9065 MB / 1.151 GB, free: 7.629 MB / 0.9044 GB Notification: Performance of NFTyping.typeBindings: time 0.01063/1.029, allocations: 2.634 MB / 1.154 GB, free: 6.051 MB / 0.9044 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/Fluid/Geothermal/Boreholes/BaseClasses/temperatureDrop.mo:2:1-109:20:writable] Warning: Pure function 'Buildings.Fluid.Geothermal.Boreholes.BaseClasses.temperatureDrop' contains a call to impure function 'Buildings.Fluid.Geothermal.Boreholes.BaseClasses.exchangeValues'. Notification: Performance of NFTyping.typeClassSections: time 0.006889/1.036, allocations: 1.697 MB / 1.156 GB, free: 5.094 MB / 0.9044 GB Notification: Performance of NFFlatten.flatten: time 0.01096/1.047, allocations: 5.141 MB / 1.161 GB, free: 2.527 MB / 0.9044 GB Notification: Performance of NFFlatten.resolveConnections: time 0.003993/1.051, allocations: 1.722 MB / 1.162 GB, free: 1.688 MB / 0.9044 GB Notification: Performance of NFEvalConstants.evaluate: time 0.006609/1.058, allocations: 1.899 MB / 1.164 GB, free: 0.7656 MB / 0.9044 GB Notification: Performance of NFSimplifyModel.simplify: time 0.004345/1.062, allocations: 1.479 MB / 1.166 GB, free: 84 kB / 0.9044 GB Notification: Performance of NFPackage.collectConstants: time 0.0007882/1.063, allocations: 261.3 kB / 1.166 GB, free: 84 kB / 0.9044 GB Notification: Performance of NFFlatten.collectFunctions: time 0.007098/1.07, allocations: 1.968 MB / 1.168 GB, free: 15.46 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 0.001231/1.071, allocations: 0.6213 MB / 1.168 GB, free: 15.09 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 0.002911/1.074, allocations: 1.194 MB / 1.169 GB, free: 14.34 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.009918/1.084, allocations: 4.269 MB / 1.174 GB, free: 11.44 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 6.152e-06/1.084, allocations: 0 / 1.174 GB, free: 11.44 MB / 0.92 GB Notification: Performance of FrontEnd: time 1.964e-06/1.084, allocations: 1.219 kB / 1.174 GB, free: 11.44 MB / 0.92 GB Notification: Performance of Transformations before backend: time 9.601e-05/1.084, allocations: 0 / 1.174 GB, free: 11.44 MB / 0.92 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 274 * Number of variables: 274 Notification: Performance of Generate backend data structure: time 0.008076/1.092, allocations: 2.551 MB / 1.176 GB, free: 9.625 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 4.981e-05/1.093, allocations: 8.719 kB / 1.176 GB, free: 9.625 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008728/1.093, allocations: 210.8 kB / 1.176 GB, free: 9.527 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003944/1.097, allocations: 1.762 MB / 1.178 GB, free: 8.164 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.437e-05/1.097, allocations: 107.7 kB / 1.178 GB, free: 8.109 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002909/1.098, allocations: 138.3 kB / 1.178 GB, free: 8.062 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002445/1.1, allocations: 1.231 MB / 1.179 GB, free: 7.277 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.921e-05/1.1, allocations: 5.312 kB / 1.18 GB, free: 7.273 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001169/1.1, allocations: 50.47 kB / 1.18 GB, free: 7.234 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.749e-05/1.1, allocations: 28.44 kB / 1.18 GB, free: 7.234 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00186/1.102, allocations: 0.9453 MB / 1.181 GB, free: 6.742 MB / 0.92 GB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01452/1.117, allocations: 7.2 MB / 1.188 GB, free: 0.5703 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003143/1.12, allocations: 1.107 MB / 1.189 GB, free: 28 kB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008454/1.121, allocations: 462.3 kB / 1.189 GB, free: 15.79 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007356/1.122, allocations: 0.604 MB / 1.19 GB, free: 15.11 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008208/1.122, allocations: 447.3 kB / 1.19 GB, free: 14.83 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=78): time 3.457e-06/1.123, allocations: 0 / 1.19 GB, free: 14.83 MB / 0.9356 GB Notification: Performance of matching and sorting (n=82): time 0.007795/1.13, allocations: 2.943 MB / 1.193 GB, free: 12.95 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.132e-05/1.13, allocations: 65.75 kB / 1.193 GB, free: 12.88 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002477/1.133, allocations: 1.412 MB / 1.194 GB, free: 12.09 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 0.0003439/1.133, allocations: 57.61 kB / 1.194 GB, free: 12.04 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008578/1.134, allocations: 0.671 MB / 1.195 GB, free: 11.45 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005315/1.135, allocations: 299.6 kB / 1.195 GB, free: 11.19 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006132/1.135, allocations: 301 kB / 1.196 GB, free: 11.01 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.000195/1.135, allocations: 364.1 kB / 1.196 GB, free: 10.66 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001237/1.137, allocations: 0.5974 MB / 1.197 GB, free: 10.34 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001406/1.138, allocations: 0.8832 MB / 1.197 GB, free: 9.695 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002152/1.14, allocations: 1.252 MB / 1.199 GB, free: 8.891 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.323e-06/1.14, allocations: 2.219 kB / 1.199 GB, free: 8.891 MB / 0.9356 GB Notification: Performance of matching and sorting (n=178) (initialization): time 0.003949/1.144, allocations: 1.84 MB / 1.2 GB, free: 7.938 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 2.851e-05/1.144, allocations: 13.97 kB / 1.2 GB, free: 7.934 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.759e-05/1.144, allocations: 6.812 kB / 1.201 GB, free: 7.934 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008445/1.145, allocations: 273.3 kB / 1.201 GB, free: 7.812 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00158/1.147, allocations: 291.4 kB / 1.201 GB, free: 7.734 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001733/1.149, allocations: 1.583 MB / 1.203 GB, free: 6.355 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003573/1.152, allocations: 110.7 kB / 1.203 GB, free: 6.285 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001832/1.152, allocations: 59.97 kB / 1.203 GB, free: 6.266 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001868/1.154, allocations: 0.9309 MB / 1.204 GB, free: 5.715 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001346/1.156, allocations: 0.8813 MB / 1.205 GB, free: 5.074 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001981/1.158, allocations: 1.248 MB / 1.206 GB, free: 4.27 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.839e-06/1.158, allocations: 1.844 kB / 1.206 GB, free: 4.27 MB / 0.9356 GB Notification: Performance of matching and sorting (n=178) (initialization_lambda0): time 0.003599/1.161, allocations: 1.84 MB / 1.208 GB, free: 2.926 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 1.63e-05/1.161, allocations: 8 kB / 1.208 GB, free: 2.918 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.093e-05/1.161, allocations: 8 kB / 1.208 GB, free: 2.91 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007282/1.162, allocations: 273.5 kB / 1.208 GB, free: 2.641 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001362/1.163, allocations: 267.6 kB / 1.208 GB, free: 2.379 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001077/1.164, allocations: 0.9895 MB / 1.209 GB, free: 1.363 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003557/1.168, allocations: 111.9 kB / 1.209 GB, free: 1.254 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001381/1.168, allocations: 59.97 kB / 1.209 GB, free: 1.195 MB / 0.9356 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 26 * Number of states: 0 () * Number of discrete variables: 9 (seg.TBouCon.iSam,$PRE.seg.TBouCon.iSam,seg.TBouCon.UOld,$PRE.seg.TBouCon.UOld,seg.TBouCon.QAve_flow,$PRE.seg.TBouCon.QAve_flow,$whenCondition1,seg.TBouCon.port.T,$PRE.seg.TBouCon.port.T) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (148): * Single equations (assignments): 145 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(3,25)} Notification: Performance of prepare postOptimizeDAE: time 0.0004538/1.169, allocations: 261.2 kB / 1.209 GB, free: 0.9336 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003522/1.169, allocations: 150.1 kB / 1.21 GB, free: 0.7852 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002126/1.171, allocations: 1.066 MB / 1.211 GB, free: 15.7 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001479/1.173, allocations: 0.9595 MB / 1.212 GB, free: 14.7 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.731e-06/1.173, allocations: 0 / 1.212 GB, free: 14.7 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008572/1.173, allocations: 355.1 kB / 1.212 GB, free: 14.33 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002542/1.174, allocations: 23.94 kB / 1.212 GB, free: 14.31 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001488/1.175, allocations: 47.91 kB / 1.212 GB, free: 14.26 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001421/1.175, allocations: 60.91 kB / 1.212 GB, free: 14.2 MB / 0.9512 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.002831/1.178, allocations: 1.258 MB / 1.213 GB, free: 12.93 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.00238/1.181, allocations: 1.663 MB / 1.215 GB, free: 11.25 MB / 0.9512 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0006035/1.181, allocations: 423.7 kB / 1.215 GB, free: 10.83 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 0.001434/1.183, allocations: 0.947 MB / 1.216 GB, free: 9.883 MB / 0.9512 GB Notification: Performance of Backend: time 6.31e-07/1.183, allocations: 0 / 1.216 GB, free: 9.883 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.006663/1.189, allocations: 2.549 MB / 1.219 GB, free: 7.344 MB / 0.9512 GB Notification: Performance of SimCode: time 0.008572/1.198, allocations: 4.289 MB / 1.223 GB, free: 3.02 MB / 0.9512 GB Notification: Performance of Templates: time 0.0831/1.281, allocations: 47.91 MB / 1.27 GB, free: 3.5 MB / 0.9981 GB make -j1 -f Buildings_9_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.BoreholeSegment.makefile (rm -f Buildings_9_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.BoreholeSegment.pipe ; mkfifo Buildings_9_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.BoreholeSegment.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.BoreholeSegment.pipe >> ../files/Buildings_9_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.BoreholeSegment.sim & ./Buildings_9_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.BoreholeSegment -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.BoreholeSegment.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.BoreholeSegment_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_Geothermal_Boreholes_BaseClasses_Examples_BoreholeSegment.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.BoreholeSegment.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches