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/Buildings 10.0.0-master/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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/Buildings 10.0.0-master/package.mo): time 2.266/2.266, allocations: 393.5 MB / 408.4 MB, free: 11.01 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001294/0.001294, allocations: 184 kB / 0.4902 GB, free: 2.293 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.591/1.591, allocations: 223.2 MB / 0.7992 GB, free: 14.76 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001013/0.001013, allocations: 98.41 kB / 0.9396 GB, free: 1.945 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0003831/0.0003833, allocations: 10.19 kB / 1.09 GB, free: 216.2 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.35/0.3504, allocations: 143 MB / 1.229 GB, free: 105.8 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.09/1.44, allocations: 443.2 MB / 1.662 GB, free: 8.492 MB / 0.9792 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003551/1.44, allocations: 115.7 kB / 1.662 GB, free: 8.426 MB / 0.9792 GB Notification: Performance of FrontEnd - DAE generated: time 2.729/4.17, allocations: 0.6655 GB / 2.328 GB, free: 239.7 MB / 1.151 GB Notification: Performance of FrontEnd: time 2.164e-06/4.17, allocations: 0 / 2.328 GB, free: 239.7 MB / 1.151 GB Notification: Performance of Transformations before backend: time 0.0001521/4.17, allocations: 41.23 kB / 2.328 GB, free: 239.7 MB / 1.151 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.005629/4.175, allocations: 2.341 MB / 2.33 GB, free: 239 MB / 1.151 GB Notification: Performance of prepare preOptimizeDAE: time 4.044e-05/4.175, allocations: 7.281 kB / 2.33 GB, free: 239 MB / 1.151 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005244/4.176, allocations: 214.1 kB / 2.33 GB, free: 238.9 MB / 1.151 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003807/4.18, allocations: 2.093 MB / 2.332 GB, free: 238.6 MB / 1.151 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.976e-05/4.18, allocations: 99.66 kB / 2.332 GB, free: 238.6 MB / 1.151 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002037/4.18, allocations: 141.3 kB / 2.332 GB, free: 238.6 MB / 1.151 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0018/4.182, allocations: 1.198 MB / 2.334 GB, free: 238.5 MB / 1.151 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.114e-05/4.182, allocations: 7.219 kB / 2.334 GB, free: 238.5 MB / 1.151 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001002/4.182, allocations: 47.55 kB / 2.334 GB, free: 238.5 MB / 1.151 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.259e-05/4.182, allocations: 30.83 kB / 2.334 GB, free: 238.5 MB / 1.151 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001345/4.183, allocations: 0.9173 MB / 2.335 GB, free: 238.4 MB / 1.151 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.009917/4.193, allocations: 6.959 MB / 2.341 GB, free: 235.8 MB / 1.151 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002319/4.196, allocations: 1.09 MB / 2.342 GB, free: 235.8 MB / 1.151 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005209/4.196, allocations: 0.6047 MB / 2.343 GB, free: 235.1 MB / 1.151 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005882/4.197, allocations: 440.4 kB / 2.343 GB, free: 235.1 MB / 1.151 GB Notification: Performance of pre-optimization done (n=78): time 2.594e-06/4.197, allocations: 2.719 kB / 2.343 GB, free: 235.1 MB / 1.151 GB Notification: Performance of matching and sorting (n=82): time 0.005281/4.202, allocations: 2.921 MB / 2.346 GB, free: 234.2 MB / 1.151 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.846e-05/4.202, allocations: 63.41 kB / 2.346 GB, free: 234.1 MB / 1.151 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001529/4.204, allocations: 1.258 MB / 2.348 GB, free: 234 MB / 1.151 GB Notification: Performance of collectPreVariables (initialization): time 0.0001154/4.204, allocations: 54.11 kB / 2.348 GB, free: 233.9 MB / 1.151 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005344/4.204, allocations: 0.6866 MB / 2.348 GB, free: 233.7 MB / 1.151 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002219/4.205, allocations: 296.3 kB / 2.349 GB, free: 233.6 MB / 1.151 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.289e-05/4.205, allocations: 29.12 kB / 2.349 GB, free: 233.6 MB / 1.151 GB Notification: Performance of setup shared object (initialization): time 8.974e-05/4.205, allocations: 363.5 kB / 2.349 GB, free: 233.3 MB / 1.151 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007794/4.206, allocations: 0.5502 MB / 2.349 GB, free: 233.3 MB / 1.151 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009058/4.207, allocations: 0.8508 MB / 2.35 GB, free: 233 MB / 1.151 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000899/4.207, allocations: 0.6748 MB / 2.351 GB, free: 233 MB / 1.151 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.878e-06/4.207, allocations: 2.969 kB / 2.351 GB, free: 233 MB / 1.151 GB Notification: Performance of matching and sorting (n=170) (initialization): time 0.002531/4.21, allocations: 1.772 MB / 2.353 GB, free: 232.8 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004591/4.21, allocations: 2.303 MB / 2.355 GB, free: 230.4 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.979e-05/4.211, allocations: 10.53 kB / 2.355 GB, free: 230.4 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006593/4.211, allocations: 253.9 kB / 2.355 GB, free: 230.4 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001341/4.213, allocations: 272 kB / 2.355 GB, free: 230.4 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001121/4.214, allocations: 1.581 MB / 2.357 GB, free: 229.3 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002454/4.216, allocations: 154.3 kB / 2.357 GB, free: 229.3 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001156/4.216, allocations: 57.14 kB / 2.357 GB, free: 229.3 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 1.139e-05/4.216, allocations: 5.594 kB / 2.357 GB, free: 229.3 MB / 1.151 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002348/4.219, allocations: 1.608 MB / 2.359 GB, free: 229.3 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.549e-05/4.219, allocations: 6.938 kB / 2.359 GB, free: 229.3 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005262/4.219, allocations: 258.7 kB / 2.359 GB, free: 229.2 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00119/4.22, allocations: 254.3 kB / 2.359 GB, free: 229.2 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007938/4.221, allocations: 0.9994 MB / 2.36 GB, free: 228.7 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002464/4.224, allocations: 151.8 kB / 2.36 GB, free: 228.7 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001107/4.224, allocations: 59.06 kB / 2.36 GB, free: 228.7 MB / 1.151 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 ($PRE.seg.TBouCon.iSam,seg.TBouCon.iSam,$PRE.seg.TBouCon.UOld,seg.TBouCon.UOld,$PRE.seg.TBouCon.QAve_flow,seg.TBouCon.QAve_flow,$whenCondition1,$PRE.seg.TBouCon.port.T,seg.TBouCon.port.T) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (140): * Single equations (assignments): 137 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 26} Notification: Performance of prepare postOptimizeDAE: time 0.0009482/4.225, allocations: 0.4989 MB / 2.361 GB, free: 228.5 MB / 1.151 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002153/4.225, allocations: 150 kB / 2.361 GB, free: 228.4 MB / 1.151 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001564/4.227, allocations: 1.061 MB / 2.362 GB, free: 228.3 MB / 1.151 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.183e-05/4.227, allocations: 10.94 kB / 2.362 GB, free: 228.3 MB / 1.151 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.506e-06/4.227, allocations: 3.953 kB / 2.362 GB, free: 228.3 MB / 1.151 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001645/4.228, allocations: 0.9388 MB / 2.363 GB, free: 228.1 MB / 1.151 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 postOpt removeSimpleEquations (simulation): time 0.004394/4.233, allocations: 2.846 MB / 2.366 GB, free: 227.6 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.863e-06/4.233, allocations: 3.906 kB / 2.366 GB, free: 227.6 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006943/4.233, allocations: 149.1 kB / 2.366 GB, free: 227.6 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002592/4.234, allocations: 118.3 kB / 2.366 GB, free: 227.6 MB / 1.151 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.337e-05/4.234, allocations: 28.67 kB / 2.366 GB, free: 227.6 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002812/4.237, allocations: 5.3 MB / 2.371 GB, free: 223 MB / 1.151 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.354e-06/4.237, allocations: 6.672 kB / 2.371 GB, free: 223 MB / 1.151 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002088/4.239, allocations: 1.639 MB / 2.373 GB, free: 222.6 MB / 1.151 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007589/4.239, allocations: 375.7 kB / 2.373 GB, free: 222.5 MB / 1.151 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000184/4.24, allocations: 29.02 kB / 2.373 GB, free: 222.5 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001261/4.241, allocations: 87.09 kB / 2.373 GB, free: 222.5 MB / 1.151 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001123/4.241, allocations: 64.69 kB / 2.373 GB, free: 222.5 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.156e-05/4.241, allocations: 29.11 kB / 2.373 GB, free: 222.5 MB / 1.151 GB Notification: Performance of sorting global known variables: time 0.001278/4.242, allocations: 0.9519 MB / 2.374 GB, free: 222.3 MB / 1.151 GB Notification: Performance of sort global known variables: time 1.3e-07/4.242, allocations: 0 / 2.374 GB, free: 222.3 MB / 1.151 GB Notification: Performance of remove unused functions: time 0.003273/4.246, allocations: 1.145 MB / 2.376 GB, free: 222.3 MB / 1.151 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 14 (seg.pipFil.vol1.dynBal.U,seg.pipFil.vol2.dynBal.U,seg.pipFil.capFil1.T,seg.pipFil.capFil2.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],seg.TBouCon.U) * Number of discrete variables: 5 ($whenCondition1,seg.TBouCon.QAve_flow,seg.TBouCon.port.T,seg.TBouCon.UOld,seg.TBouCon.iSam) * Number of discrete states: 2 (seg.TBouCon.iSam,seg.TBouCon.UOld) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (73): * Single equations (assignments): 63 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 4 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 3,(1,100.0%) 3,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00149/4.247, allocations: 0.8129 MB / 2.376 GB, free: 222.1 MB / 1.151 GB Notification: Performance of simCode: created initialization part: time 0.003225/4.25, allocations: 2.098 MB / 2.378 GB, free: 222 MB / 1.151 GB Notification: Performance of simCode: created event and clocks part: time 4.699e-06/4.25, allocations: 3.312 kB / 2.378 GB, free: 222 MB / 1.151 GB Notification: Performance of simCode: created simulation system equations: time 0.0008827/4.251, allocations: 0.7967 MB / 2.379 GB, free: 221.6 MB / 1.151 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003133/4.254, allocations: 0.7619 MB / 2.38 GB, free: 221.6 MB / 1.151 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005112/4.26, allocations: 4.185 MB / 2.384 GB, free: 220.1 MB / 1.151 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006608/4.26, allocations: 1.314 MB / 2.385 GB, free: 219.4 MB / 1.151 GB Notification: Performance of simCode: alias equations: time 0.001677/4.262, allocations: 451.9 kB / 2.386 GB, free: 219.4 MB / 1.151 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003606/4.262, allocations: 125.4 kB / 2.386 GB, free: 219.4 MB / 1.151 GB Notification: Performance of SimCode: time 1.203e-06/4.262, allocations: 2.062 kB / 2.386 GB, free: 219.4 MB / 1.151 GB Notification: Performance of Templates: time 0.05411/4.316, allocations: 39.22 MB / 2.424 GB, free: 217.9 MB / 1.151 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","../files/Buildings_latest_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.BoreholeSegment.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches