Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 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.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_latest_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_latest_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.001362/0.001362, allocations: 116.2 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.001572/0.001572, 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.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.603/2.603, allocations: 469.4 MB / 0.7428 GB, free: 3.59 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001425/0.001425, allocations: 67.89 kB / 1.065 GB, free: 13.83 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8227/0.8241, allocations: 159.1 MB / 1.221 GB, free: 2.543 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.BoreholeSegment): time 0.05025/0.8744, allocations: 49.21 MB / 1.269 GB, free: 1.148 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.02071/0.8952, allocations: 14.01 MB / 1.283 GB, free: 3.105 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002823/0.8981, allocations: 67.62 kB / 1.283 GB, free: 3.039 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 0.002895/0.901, allocations: 0.9086 MB / 1.284 GB, free: 2.125 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 0.007826/0.9089, allocations: 2.626 MB / 1.286 GB, free: 15.49 MB / 1.014 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/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.005289/0.9142, allocations: 1.713 MB / 1.288 GB, free: 13.79 MB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 0.007877/0.9221, allocations: 5.127 MB / 1.293 GB, free: 8.652 MB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 0.003213/0.9253, allocations: 1.73 MB / 1.295 GB, free: 6.891 MB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004832/0.9302, allocations: 1.903 MB / 1.296 GB, free: 4.988 MB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002966/0.9332, allocations: 1.475 MB / 1.298 GB, free: 3.508 MB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 0.0008623/0.934, allocations: 260 kB / 1.298 GB, free: 3.254 MB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004938/0.939, allocations: 1.962 MB / 1.3 GB, free: 1.289 MB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 0.001127/0.9402, allocations: 0.6271 MB / 1.301 GB, free: 0.6602 MB / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 0.002777/0.943, allocations: 1.198 MB / 1.302 GB, free: 15.46 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.007641/0.9506, allocations: 4.262 MB / 1.306 GB, free: 11.18 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 7.925e-06/0.9507, allocations: 4 kB / 1.306 GB, free: 11.18 MB / 1.029 GB Notification: Performance of FrontEnd: time 2.094e-06/0.9507, allocations: 0 / 1.306 GB, free: 11.18 MB / 1.029 GB Notification: Performance of Transformations before backend: time 0.0001035/0.9508, allocations: 4 kB / 1.306 GB, free: 11.18 MB / 1.029 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.007296/0.9581, allocations: 2.538 MB / 1.308 GB, free: 8.578 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 4.584e-05/0.9581, allocations: 8.625 kB / 1.308 GB, free: 8.57 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008488/0.959, allocations: 218.5 kB / 1.309 GB, free: 8.355 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003868/0.9629, allocations: 1.765 MB / 1.31 GB, free: 6.535 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001025/0.963, allocations: 98.09 kB / 1.31 GB, free: 6.438 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004782/0.9635, allocations: 143.9 kB / 1.311 GB, free: 6.297 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00274/0.9662, allocations: 1.235 MB / 1.312 GB, free: 5 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.508e-05/0.9663, allocations: 8 kB / 1.312 GB, free: 4.992 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001447/0.9665, allocations: 43.98 kB / 1.312 GB, free: 4.949 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.084e-05/0.9665, allocations: 28 kB / 1.312 GB, free: 4.922 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001888/0.9684, allocations: 0.9451 MB / 1.313 GB, free: 3.969 MB / 1.029 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.01329/0.9817, allocations: 7.202 MB / 1.32 GB, free: 12.3 MB / 1.045 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002903/0.9847, allocations: 1.105 MB / 1.321 GB, free: 11.19 MB / 1.045 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008365/0.9855, allocations: 466.6 kB / 1.321 GB, free: 10.73 MB / 1.045 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006949/0.9863, allocations: 0.6019 MB / 1.322 GB, free: 10 MB / 1.045 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008245/0.9871, allocations: 448.3 kB / 1.322 GB, free: 9.547 MB / 1.045 GB Notification: Performance of pre-optimization done (n=78): time 3.166e-06/0.9871, allocations: 0 / 1.322 GB, free: 9.547 MB / 1.045 GB Notification: Performance of matching and sorting (n=82): time 0.006742/0.9939, allocations: 2.944 MB / 1.325 GB, free: 6.488 MB / 1.045 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.752e-05/0.9939, allocations: 64.06 kB / 1.325 GB, free: 6.414 MB / 1.045 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002242/0.9962, allocations: 1.42 MB / 1.327 GB, free: 4.98 MB / 1.045 GB Notification: Performance of collectPreVariables (initialization): time 0.0002234/0.9964, allocations: 53.7 kB / 1.327 GB, free: 4.922 MB / 1.045 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007559/0.9972, allocations: 0.6693 MB / 1.327 GB, free: 4.246 MB / 1.045 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003611/0.9976, allocations: 299.8 kB / 1.328 GB, free: 3.949 MB / 1.045 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006132/0.9982, allocations: 303.3 kB / 1.328 GB, free: 3.648 MB / 1.045 GB Notification: Performance of setup shared object (initialization): time 0.0001424/0.9983, allocations: 361.9 kB / 1.328 GB, free: 3.289 MB / 1.045 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001064/0.9994, allocations: 0.5943 MB / 1.329 GB, free: 2.691 MB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001278/1.001, allocations: 0.877 MB / 1.33 GB, free: 1.711 MB / 1.045 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0019/1.003, allocations: 1.265 MB / 1.331 GB, free: 376 kB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.682e-06/1.003, allocations: 4 kB / 1.331 GB, free: 372 kB / 1.045 GB Notification: Performance of matching and sorting (n=178) (initialization): time 0.003485/1.006, allocations: 1.844 MB / 1.333 GB, free: 14.5 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 2.739e-05/1.006, allocations: 8 kB / 1.333 GB, free: 14.5 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.49e-05/1.006, allocations: 8 kB / 1.333 GB, free: 14.49 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007838/1.007, allocations: 265.5 kB / 1.333 GB, free: 14.23 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001565/1.009, allocations: 287.5 kB / 1.333 GB, free: 13.95 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001462/1.01, allocations: 1.587 MB / 1.335 GB, free: 12.31 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003152/1.013, allocations: 111.7 kB / 1.335 GB, free: 12.2 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002429/1.013, allocations: 51.98 kB / 1.335 GB, free: 12.15 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001805/1.015, allocations: 0.9374 MB / 1.336 GB, free: 11.21 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001282/1.017, allocations: 0.877 MB / 1.337 GB, free: 10.23 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001954/1.019, allocations: 1.25 MB / 1.338 GB, free: 8.906 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 7.474e-06/1.019, allocations: 8 kB / 1.338 GB, free: 8.898 MB / 1.061 GB Notification: Performance of matching and sorting (n=178) (initialization_lambda0): time 0.003493/1.022, allocations: 1.835 MB / 1.34 GB, free: 7.051 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 2.066e-05/1.022, allocations: 7.984 kB / 1.34 GB, free: 7.043 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.972e-05/1.022, allocations: 8 kB / 1.34 GB, free: 7.035 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007367/1.023, allocations: 261 kB / 1.34 GB, free: 6.777 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001376/1.024, allocations: 279.5 kB / 1.34 GB, free: 6.504 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001097/1.025, allocations: 0.982 MB / 1.341 GB, free: 5.496 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003061/1.028, allocations: 119.9 kB / 1.341 GB, free: 5.379 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001658/1.029, allocations: 51.98 kB / 1.341 GB, free: 5.328 MB / 1.061 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.0003806/1.029, allocations: 260.4 kB / 1.342 GB, free: 5.074 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004385/1.029, allocations: 154.1 kB / 1.342 GB, free: 4.922 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002141/1.032, allocations: 1.076 MB / 1.343 GB, free: 3.828 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001497/1.033, allocations: 0.9595 MB / 1.344 GB, free: 2.828 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.832e-06/1.033, allocations: 8 kB / 1.344 GB, free: 2.82 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007721/1.034, allocations: 339.2 kB / 1.344 GB, free: 2.469 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003381/1.034, allocations: 31.92 kB / 1.344 GB, free: 2.438 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001668/1.036, allocations: 47.92 kB / 1.344 GB, free: 2.391 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001337/1.036, allocations: 56.91 kB / 1.344 GB, free: 2.336 MB / 1.061 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.002931/1.039, allocations: 1.25 MB / 1.346 GB, free: 1.07 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.002509/1.042, allocations: 1.67 MB / 1.347 GB, free: 15.38 MB / 1.076 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0006041/1.042, allocations: 427.7 kB / 1.348 GB, free: 14.96 MB / 1.076 GB Notification: Performance of sorting global known variables: time 0.001715/1.044, allocations: 0.947 MB / 1.349 GB, free: 14.01 MB / 1.076 GB Notification: Performance of Backend: time 7.01e-07/1.044, allocations: 0 / 1.349 GB, free: 14.01 MB / 1.076 GB Notification: Performance of simCode: created initialization part: time 0.007185/1.051, allocations: 2.531 MB / 1.351 GB, free: 11.49 MB / 1.076 GB Notification: Performance of SimCode: time 0.008617/1.06, allocations: 4.311 MB / 1.355 GB, free: 7.141 MB / 1.076 GB Notification: Performance of Templates: time 0.07885/1.139, allocations: 47.88 MB / 1.402 GB, free: 7.629 MB / 1.123 GB make -j1 -f Buildings_latest_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.BoreholeSegment.makefile (rm -f Buildings_latest_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.BoreholeSegment.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.BoreholeSegment.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.BoreholeSegment.pipe >> ../files/Buildings_latest_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.BoreholeSegment.sim & ./Buildings_latest_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.BoreholeSegment -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.BoreholeSegment.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.BoreholeSegment_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_Geothermal_Boreholes_BaseClasses_Examples_BoreholeSegment.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.BoreholeSegment.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches