Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 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.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_10_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_10_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.001609/0.001609, allocations: 110.4 kB / 16.42 MB, free: 6.508 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.001767/0.001767, allocations: 185.5 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.381/1.381, allocations: 222.9 MB / 241 MB, free: 15.16 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.446/2.446, allocations: 437 MB / 0.7112 GB, free: 4.383 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001532/0.001532, allocations: 68.12 kB / 1.019 GB, free: 9.363 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7452/0.7467, allocations: 151.6 MB / 1.167 GB, free: 3.809 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.BoreholeSegment): time 0.05175/0.7985, allocations: 49.22 MB / 1.215 GB, free: 2.41 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.01923/0.8178, allocations: 14 MB / 1.229 GB, free: 4.375 MB / 0.9512 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002222/0.82, allocations: 67.62 kB / 1.229 GB, free: 4.309 MB / 0.9512 GB Notification: Performance of NFTyping.typeComponents: time 0.002499/0.8226, allocations: 0.9086 MB / 1.23 GB, free: 3.395 MB / 0.9512 GB Notification: Performance of NFTyping.typeBindings: time 0.006601/0.8292, allocations: 2.631 MB / 1.233 GB, free: 0.7578 MB / 0.9512 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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.004332/0.8336, allocations: 1.706 MB / 1.234 GB, free: 15.07 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.006311/0.8399, allocations: 5.128 MB / 1.239 GB, free: 9.93 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002585/0.8425, allocations: 1.723 MB / 1.241 GB, free: 8.168 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004466/0.847, allocations: 1.91 MB / 1.243 GB, free: 6.262 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002658/0.8497, allocations: 1.479 MB / 1.244 GB, free: 4.777 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 0.0007603/0.8504, allocations: 260 kB / 1.244 GB, free: 4.523 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004443/0.8549, allocations: 1.954 MB / 1.246 GB, free: 2.566 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 0.0009282/0.8558, allocations: 0.6387 MB / 1.247 GB, free: 1.926 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 0.002133/0.858, allocations: 1.191 MB / 1.248 GB, free: 0.7305 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.006207/0.8642, allocations: 4.264 MB / 1.252 GB, free: 12.46 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 3.998e-06/0.8642, allocations: 0 / 1.252 GB, free: 12.46 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.593e-06/0.8642, allocations: 0 / 1.252 GB, free: 12.46 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 8.83e-05/0.8643, allocations: 0 / 1.252 GB, free: 12.46 MB / 0.9825 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.006578/0.8709, allocations: 2.546 MB / 1.255 GB, free: 9.855 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 4.134e-05/0.871, allocations: 12.92 kB / 1.255 GB, free: 9.844 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007563/0.8717, allocations: 218.5 kB / 1.255 GB, free: 9.629 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003498/0.8752, allocations: 1.761 MB / 1.257 GB, free: 7.812 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.92e-05/0.8753, allocations: 94.16 kB / 1.257 GB, free: 7.719 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003036/0.8756, allocations: 144 kB / 1.257 GB, free: 7.578 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002281/0.8779, allocations: 1.235 MB / 1.258 GB, free: 6.281 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.312e-05/0.878, allocations: 4 kB / 1.258 GB, free: 6.277 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001128/0.8781, allocations: 44 kB / 1.258 GB, free: 6.234 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.094e-05/0.8781, allocations: 35.98 kB / 1.258 GB, free: 6.199 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001737/0.8799, allocations: 0.9451 MB / 1.259 GB, free: 5.246 MB / 0.9825 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.0123/0.8922, allocations: 7.198 MB / 1.266 GB, free: 13.59 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002651/0.8949, allocations: 1.109 MB / 1.267 GB, free: 12.47 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007677/0.8957, allocations: 466.4 kB / 1.268 GB, free: 12.01 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006639/0.8963, allocations: 0.598 MB / 1.268 GB, free: 11.28 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007627/0.8971, allocations: 452.3 kB / 1.269 GB, free: 10.83 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=78): time 3.246e-06/0.8971, allocations: 0 / 1.269 GB, free: 10.83 MB / 0.9981 GB Notification: Performance of matching and sorting (n=82): time 0.00642/0.9035, allocations: 2.948 MB / 1.272 GB, free: 7.766 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.712e-05/0.9036, allocations: 64.06 kB / 1.272 GB, free: 7.691 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002549/0.9062, allocations: 1.417 MB / 1.273 GB, free: 6.262 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 0.0002164/0.9064, allocations: 53.7 kB / 1.273 GB, free: 6.203 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007764/0.9072, allocations: 0.6731 MB / 1.274 GB, free: 5.523 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004285/0.9076, allocations: 299.8 kB / 1.274 GB, free: 5.227 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005847/0.9082, allocations: 299.4 kB / 1.274 GB, free: 4.93 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.0001646/0.9084, allocations: 365.8 kB / 1.275 GB, free: 4.566 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001083/0.9095, allocations: 0.5943 MB / 1.275 GB, free: 3.969 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001329/0.9108, allocations: 0.8809 MB / 1.276 GB, free: 2.984 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002031/0.9129, allocations: 1.258 MB / 1.277 GB, free: 1.641 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.468e-06/0.9129, allocations: 4 kB / 1.277 GB, free: 1.637 MB / 0.9981 GB Notification: Performance of matching and sorting (n=178) (initialization): time 0.003384/0.9163, allocations: 1.84 MB / 1.279 GB, free: 15.79 MB / 1.014 GB Notification: Performance of prepare postOptimizeDAE: time 2.649e-05/0.9163, allocations: 12.77 kB / 1.279 GB, free: 15.77 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.466e-05/0.9163, allocations: 7.938 kB / 1.279 GB, free: 15.77 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007612/0.9171, allocations: 260.9 kB / 1.279 GB, free: 15.51 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001433/0.9186, allocations: 287.5 kB / 1.28 GB, free: 15.23 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001471/0.92, allocations: 1.591 MB / 1.281 GB, free: 13.59 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002851/0.9229, allocations: 107.9 kB / 1.281 GB, free: 13.48 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001364/0.9231, allocations: 55.97 kB / 1.281 GB, free: 13.43 MB / 1.014 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001553/0.9246, allocations: 0.9334 MB / 1.282 GB, free: 12.49 MB / 1.014 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001245/0.9259, allocations: 0.8732 MB / 1.283 GB, free: 11.52 MB / 1.014 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001819/0.9277, allocations: 1.258 MB / 1.284 GB, free: 10.18 MB / 1.014 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 7.484e-06/0.9277, allocations: 4 kB / 1.284 GB, free: 10.18 MB / 1.014 GB Notification: Performance of matching and sorting (n=178) (initialization_lambda0): time 0.00317/0.9309, allocations: 1.831 MB / 1.286 GB, free: 8.336 MB / 1.014 GB Notification: Performance of prepare postOptimizeDAE: time 1.936e-05/0.9309, allocations: 8 kB / 1.286 GB, free: 8.328 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.24e-05/0.931, allocations: 11.98 kB / 1.286 GB, free: 8.316 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006844/0.9317, allocations: 261.2 kB / 1.287 GB, free: 8.059 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001252/0.9329, allocations: 279.6 kB / 1.287 GB, free: 7.785 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001039/0.934, allocations: 0.9894 MB / 1.288 GB, free: 6.77 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002825/0.9368, allocations: 111.9 kB / 1.288 GB, free: 6.66 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001426/0.937, allocations: 51.98 kB / 1.288 GB, free: 6.609 MB / 1.014 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.0003698/0.9373, allocations: 262.1 kB / 1.288 GB, free: 6.348 MB / 1.014 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003969/0.9377, allocations: 154.1 kB / 1.288 GB, free: 6.195 MB / 1.014 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002052/0.9398, allocations: 1.072 MB / 1.289 GB, free: 5.102 MB / 1.014 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001471/0.9413, allocations: 0.9479 MB / 1.29 GB, free: 4.109 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.804e-06/0.9413, allocations: 0 / 1.29 GB, free: 4.109 MB / 1.014 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007284/0.942, allocations: 355 kB / 1.291 GB, free: 3.742 MB / 1.014 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002988/0.9423, allocations: 31.92 kB / 1.291 GB, free: 3.711 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001495/0.9438, allocations: 47.92 kB / 1.291 GB, free: 3.664 MB / 1.014 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001281/0.944, allocations: 60.84 kB / 1.291 GB, free: 3.605 MB / 1.014 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.002718/0.9467, allocations: 1.258 MB / 1.292 GB, free: 2.328 MB / 1.014 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.002235/0.949, allocations: 1.67 MB / 1.294 GB, free: 0.6367 MB / 1.014 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0005671/0.9495, allocations: 423.9 kB / 1.294 GB, free: 228 kB / 1.014 GB Notification: Performance of sorting global known variables: time 0.001488/0.951, allocations: 0.947 MB / 1.295 GB, free: 15.28 MB / 1.029 GB Notification: Performance of Backend: time 8.12e-07/0.9511, allocations: 4 kB / 1.295 GB, free: 15.27 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.006146/0.9572, allocations: 2.529 MB / 1.297 GB, free: 12.75 MB / 1.029 GB Notification: Performance of SimCode: time 0.007632/0.9649, allocations: 4.319 MB / 1.302 GB, free: 8.402 MB / 1.029 GB Notification: Performance of Templates: time 0.07192/1.037, allocations: 47.9 MB / 1.348 GB, free: 8.816 MB / 1.076 GB make -j1 -f Buildings_10_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.BoreholeSegment.makefile (rm -f Buildings_10_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.BoreholeSegment.pipe ; mkfifo Buildings_10_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.BoreholeSegment.pipe ; head -c 1048576 < Buildings_10_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.BoreholeSegment.pipe >> ../files/Buildings_10_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.BoreholeSegment.sim & ./Buildings_10_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.BoreholeSegment -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.BoreholeSegment.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.BoreholeSegment_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Fluid_Geothermal_Boreholes_BaseClasses_Examples_BoreholeSegment.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.BoreholeSegment.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches