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.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.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.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.001357/0.001357, allocations: 104.9 kB / 16.36 MB, free: 6.258 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.001324/0.001325, allocations: 190.4 kB / 17.3 MB, free: 5.848 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.31/1.31, allocations: 222.9 MB / 241 MB, free: 15.09 MB / 206.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/Experimental/DHC/UsersGuide/package.mo:2:1-389:15:writable] Warning: UsersGuide was referenced in the package.order file, but was not found in package.mo, UsersGuide/package.mo or UsersGuide.mo. Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.517/2.517, allocations: 442.6 MB / 0.7166 GB, free: 14.68 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.00125/0.00125, allocations: 59.94 kB / 0.8774 GB, free: 11 MB / 0.6544 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2583/0.2595, allocations: 153 MB / 1.027 GB, free: 2.074 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.BoreholeSegment): time 0.04842/0.308, allocations: 49.21 MB / 1.075 GB, free: 0.6797 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.4566/0.7647, allocations: 13.99 MB / 1.088 GB, free: 11.71 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002657/0.7674, allocations: 67.05 kB / 1.089 GB, free: 11.71 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.00246/0.7699, allocations: 0.8909 MB / 1.089 GB, free: 11.69 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.006908/0.7768, allocations: 2.493 MB / 1.092 GB, free: 11.6 MB / 0.8419 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-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.004483/0.7813, allocations: 1.698 MB / 1.094 GB, free: 11.55 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.007185/0.7885, allocations: 5.14 MB / 1.099 GB, free: 10.42 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.003001/0.7915, allocations: 1.719 MB / 1.1 GB, free: 9.609 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004708/0.7962, allocations: 1.858 MB / 1.102 GB, free: 8.797 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003177/0.7994, allocations: 1.476 MB / 1.103 GB, free: 8.215 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 0.0009687/0.8004, allocations: 260.7 kB / 1.104 GB, free: 8.215 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 0.005634/0.8061, allocations: 1.959 MB / 1.106 GB, free: 7.688 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 0.001113/0.8072, allocations: 0.6274 MB / 1.106 GB, free: 7.324 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 0.002551/0.8098, allocations: 1.198 MB / 1.107 GB, free: 6.586 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.007418/0.8172, allocations: 4.265 MB / 1.112 GB, free: 5.258 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 6.623e-06/0.8172, allocations: 1.125 kB / 1.112 GB, free: 5.258 MB / 0.8419 GB Notification: Performance of FrontEnd: time 1.924e-06/0.8173, allocations: 0 / 1.112 GB, free: 5.258 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 0.0001026/0.8174, allocations: 0 / 1.112 GB, free: 5.258 MB / 0.8419 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.008144/0.8255, allocations: 2.551 MB / 1.114 GB, free: 3.77 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 4.471e-05/0.8256, allocations: 9.25 kB / 1.114 GB, free: 3.77 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001034/0.8266, allocations: 212.1 kB / 1.114 GB, free: 3.672 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00379/0.8304, allocations: 1.763 MB / 1.116 GB, free: 2.68 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001122/0.8306, allocations: 99.69 kB / 1.116 GB, free: 2.633 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005036/0.8311, allocations: 140 kB / 1.116 GB, free: 2.586 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00289/0.834, allocations: 1.24 MB / 1.117 GB, free: 1.996 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.228e-05/0.834, allocations: 2.188 kB / 1.117 GB, free: 1.996 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001443/0.8342, allocations: 46.53 kB / 1.117 GB, free: 1.961 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.364e-05/0.8342, allocations: 27.78 kB / 1.118 GB, free: 1.961 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001723/0.836, allocations: 0.9461 MB / 1.118 GB, free: 1.586 MB / 0.8419 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.01294/0.8489, allocations: 7.2 MB / 1.125 GB, free: 12.82 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002573/0.8515, allocations: 1.095 MB / 1.127 GB, free: 12.43 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007529/0.8523, allocations: 461.1 kB / 1.127 GB, free: 12.25 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006567/0.853, allocations: 0.6082 MB / 1.128 GB, free: 11.58 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007812/0.8538, allocations: 454 kB / 1.128 GB, free: 11.39 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=78): time 3.306e-06/0.8538, allocations: 0 / 1.128 GB, free: 11.39 MB / 0.8575 GB Notification: Performance of matching and sorting (n=82): time 0.006748/0.8605, allocations: 2.937 MB / 1.131 GB, free: 9.738 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.189e-05/0.8606, allocations: 68.09 kB / 1.131 GB, free: 9.672 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002264/0.8629, allocations: 1.425 MB / 1.132 GB, free: 9.078 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 0.0002572/0.8631, allocations: 53.45 kB / 1.132 GB, free: 9.027 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007414/0.8639, allocations: 0.6703 MB / 1.133 GB, free: 8.508 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004211/0.8643, allocations: 301.4 kB / 1.133 GB, free: 8.281 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005895/0.8649, allocations: 297.5 kB / 1.134 GB, free: 8.145 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001347/0.8651, allocations: 355.6 kB / 1.134 GB, free: 7.82 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001035/0.8661, allocations: 0.5951 MB / 1.135 GB, free: 7.574 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001288/0.8674, allocations: 0.8846 MB / 1.135 GB, free: 7.02 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001926/0.8693, allocations: 1.254 MB / 1.137 GB, free: 6.285 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.474e-06/0.8694, allocations: 1.5 kB / 1.137 GB, free: 6.285 MB / 0.8575 GB Notification: Performance of matching and sorting (n=178) (initialization): time 0.003444/0.8728, allocations: 1.847 MB / 1.138 GB, free: 5.449 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 2.011e-05/0.8728, allocations: 8.344 kB / 1.138 GB, free: 5.449 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.188e-05/0.8729, allocations: 6.906 kB / 1.138 GB, free: 5.449 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007245/0.8736, allocations: 265.6 kB / 1.139 GB, free: 5.336 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001419/0.875, allocations: 295.2 kB / 1.139 GB, free: 5.254 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001377/0.8764, allocations: 1.581 MB / 1.141 GB, free: 3.879 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002897/0.8793, allocations: 110.8 kB / 1.141 GB, free: 3.809 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001685/0.8795, allocations: 60.16 kB / 1.141 GB, free: 3.789 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001593/0.8811, allocations: 0.9306 MB / 1.142 GB, free: 3.238 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001254/0.8824, allocations: 0.8816 MB / 1.142 GB, free: 2.594 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001857/0.8843, allocations: 1.245 MB / 1.144 GB, free: 1.797 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 7.163e-06/0.8843, allocations: 1.188 kB / 1.144 GB, free: 1.797 MB / 0.8575 GB Notification: Performance of matching and sorting (n=178) (initialization_lambda0): time 0.003305/0.8876, allocations: 1.834 MB / 1.145 GB, free: 0.8477 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.782e-05/0.8876, allocations: 14.97 kB / 1.145 GB, free: 0.8438 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.933e-05/0.8876, allocations: 7.594 kB / 1.145 GB, free: 0.8438 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006417/0.8883, allocations: 268.1 kB / 1.146 GB, free: 0.7266 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001203/0.8895, allocations: 273.9 kB / 1.146 GB, free: 0.6562 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001029/0.8905, allocations: 0.9867 MB / 1.147 GB, free: 15.88 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00289/0.8934, allocations: 110.1 kB / 1.147 GB, free: 15.82 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001507/0.8936, allocations: 56.06 kB / 1.147 GB, free: 15.8 MB / 0.8731 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.0003846/0.894, allocations: 273.3 kB / 1.147 GB, free: 15.55 MB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004145/0.8944, allocations: 148.3 kB / 1.148 GB, free: 15.47 MB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002021/0.8964, allocations: 1.08 MB / 1.149 GB, free: 14.85 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001448/0.8979, allocations: 0.9532 MB / 1.15 GB, free: 14.29 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.48e-06/0.8979, allocations: 1.312 kB / 1.15 GB, free: 14.29 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007953/0.8987, allocations: 348.5 kB / 1.15 GB, free: 13.98 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003798/0.8991, allocations: 29.16 kB / 1.15 GB, free: 13.96 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001497/0.9006, allocations: 58.31 kB / 1.15 GB, free: 13.92 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001132/0.9008, allocations: 53.92 kB / 1.15 GB, free: 13.9 MB / 0.8731 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.002617/0.9034, allocations: 1.265 MB / 1.151 GB, free: 13.21 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.002442/0.9058, allocations: 1.65 MB / 1.153 GB, free: 12.26 MB / 0.8731 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0005695/0.9064, allocations: 424.7 kB / 1.153 GB, free: 12.03 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 0.001443/0.9079, allocations: 0.952 MB / 1.154 GB, free: 11.5 MB / 0.8731 GB Notification: Performance of Backend: time 4.71e-07/0.9079, allocations: 4 kB / 1.154 GB, free: 11.5 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.006812/0.9147, allocations: 2.531 MB / 1.157 GB, free: 10.29 MB / 0.8731 GB Notification: Performance of SimCode: time 0.007598/0.9223, allocations: 4.3 MB / 1.161 GB, free: 7.449 MB / 0.8731 GB Notification: Performance of Templates: time 0.06944/0.9918, allocations: 47.49 MB / 1.207 GB, free: 10.86 MB / 0.92 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