Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.BoreholeSegment.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/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_maint.7.0.x_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_maint.7.0.x_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.BoreholeSegment") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.43/1.43, allocations: 249.3 MB / 261.8 MB, free: 5.789 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009488/0.0009488, allocations: 180.9 kB / 321.3 MB, free: 14.64 MB / 266.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.372/1.372, allocations: 205.2 MB / 0.572 GB, free: 10.59 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009991/0.0009992, allocations: 94.45 kB / 0.6764 GB, free: 15.56 MB / 0.5261 GB Notification: Performance of FrontEnd - loaded program: time 3.023e-05/3.039e-05, allocations: 4 kB / 0.788 GB, free: 97.06 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1776/0.1777, allocations: 106.3 MB / 0.8918 GB, free: 6.637 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.3/1.477, allocations: 422.3 MB / 1.304 GB, free: 317.1 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003777/1.478, allocations: 105.8 kB / 1.304 GB, free: 317 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 1.721/3.199, allocations: 0.6305 GB / 1.935 GB, free: 6.098 MB / 0.8698 GB Notification: Performance of FrontEnd: time 1.082e-06/3.199, allocations: 0 / 1.935 GB, free: 6.098 MB / 0.8698 GB Notification: Performance of Transformations before backend: time 0.000145/3.199, allocations: 43.92 kB / 1.935 GB, free: 6.055 MB / 0.8698 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.004795/3.204, allocations: 2.027 MB / 1.937 GB, free: 3.973 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 4.907e-05/3.204, allocations: 11.97 kB / 1.937 GB, free: 3.961 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006623/3.204, allocations: 209.6 kB / 1.937 GB, free: 3.754 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004187/3.209, allocations: 2.05 MB / 1.939 GB, free: 1.648 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.325e-05/3.209, allocations: 99.02 kB / 1.939 GB, free: 1.551 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002216/3.209, allocations: 136 kB / 1.939 GB, free: 1.418 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001865/3.211, allocations: 1.185 MB / 1.94 GB, free: 176 kB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.841e-05/3.211, allocations: 0 / 1.94 GB, free: 176 kB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.079e-05/3.211, allocations: 48 kB / 1.94 GB, free: 128 kB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.402e-05/3.211, allocations: 31.98 kB / 1.94 GB, free: 96 kB / 0.8698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.5476/3.759, allocations: 0.8876 MB / 1.941 GB, free: 144.3 MB / 0.8698 GB Warning: The model contains alias variables with conflicting start and/or 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.01263/3.771, allocations: 6.945 MB / 1.948 GB, free: 141.8 MB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002721/3.774, allocations: 1.08 MB / 1.949 GB, free: 141.8 MB / 0.8698 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008041/3.775, allocations: 458.9 kB / 1.95 GB, free: 141.7 MB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005892/3.775, allocations: 0.599 MB / 1.95 GB, free: 141.1 MB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008156/3.776, allocations: 433.6 kB / 1.951 GB, free: 141 MB / 0.8698 GB Notification: Performance of pre-optimization done (n=78): time 3.356e-06/3.776, allocations: 2.719 kB / 1.951 GB, free: 141 MB / 0.8698 GB Notification: Performance of matching and sorting (n=82): time 0.005321/3.782, allocations: 2.269 MB / 1.953 GB, free: 140.5 MB / 0.8698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.207e-05/3.782, allocations: 67.28 kB / 1.953 GB, free: 140.4 MB / 0.8698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002133/3.784, allocations: 1.236 MB / 1.954 GB, free: 140.2 MB / 0.8698 GB Notification: Performance of collectPreVariables (initialization): time 0.0001469/3.784, allocations: 52.23 kB / 1.954 GB, free: 140.2 MB / 0.8698 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007006/3.785, allocations: 0.6868 MB / 1.955 GB, free: 140 MB / 0.8698 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003053/3.785, allocations: 293 kB / 1.955 GB, free: 139.8 MB / 0.8698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.537e-05/3.785, allocations: 25 kB / 1.955 GB, free: 139.8 MB / 0.8698 GB Notification: Performance of setup shared object (initialization): time 0.0001217/3.785, allocations: 362.4 kB / 1.955 GB, free: 139.5 MB / 0.8698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001098/3.786, allocations: 0.5451 MB / 1.956 GB, free: 139.5 MB / 0.8698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001267/3.788, allocations: 0.859 MB / 1.957 GB, free: 139.2 MB / 0.8698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00123/3.789, allocations: 0.6692 MB / 1.958 GB, free: 139.2 MB / 0.8698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.374e-06/3.789, allocations: 2.219 kB / 1.958 GB, free: 139.2 MB / 0.8698 GB Notification: Performance of matching and sorting (n=170) (initialization): time 0.003346/3.792, allocations: 1.751 MB / 1.959 GB, free: 139.1 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 0.0006618/3.793, allocations: 2.308 MB / 1.961 GB, free: 136.7 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.328e-05/3.793, allocations: 8 kB / 1.961 GB, free: 136.7 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007766/3.794, allocations: 259.8 kB / 1.962 GB, free: 136.7 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00127/3.795, allocations: 267.5 kB / 1.962 GB, free: 136.7 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001095/3.796, allocations: 1.585 MB / 1.964 GB, free: 135.6 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002844/3.799, allocations: 161 kB / 1.964 GB, free: 135.6 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001361/3.799, allocations: 55.67 kB / 1.964 GB, free: 135.6 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 1.337e-05/3.799, allocations: 7.281 kB / 1.964 GB, free: 135.6 MB / 0.8698 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002582/3.802, allocations: 1.588 MB / 1.965 GB, free: 135.5 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.09e-05/3.802, allocations: 8.797 kB / 1.965 GB, free: 135.5 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007576/3.802, allocations: 253.7 kB / 1.966 GB, free: 135.5 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001229/3.804, allocations: 260 kB / 1.966 GB, free: 135.5 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001097/3.805, allocations: 0.9957 MB / 1.967 GB, free: 135 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002819/3.808, allocations: 167.6 kB / 1.967 GB, free: 135 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001387/3.808, allocations: 53.84 kB / 1.967 GB, free: 135 MB / 0.8698 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 () * 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 {3 25} Notification: Performance of prepare postOptimizeDAE: time 0.0003717/3.808, allocations: 183.6 kB / 1.967 GB, free: 134.9 MB / 0.8698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004002/3.809, allocations: 142.5 kB / 1.967 GB, free: 134.8 MB / 0.8698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00204/3.811, allocations: 1.051 MB / 1.968 GB, free: 134.7 MB / 0.8698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.781e-05/3.811, allocations: 11.8 kB / 1.968 GB, free: 134.7 MB / 0.8698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.418e-06/3.811, allocations: 2.219 kB / 1.968 GB, free: 134.7 MB / 0.8698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001407/3.812, allocations: 0.9359 MB / 1.969 GB, free: 134.5 MB / 0.8698 GB Warning: The model contains alias variables with conflicting start and/or 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.005691/3.818, allocations: 2.828 MB / 1.972 GB, free: 134 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.448e-06/3.818, allocations: 3.344 kB / 1.972 GB, free: 134 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007387/3.819, allocations: 139 kB / 1.972 GB, free: 134 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003319/3.819, allocations: 122.6 kB / 1.972 GB, free: 134 MB / 0.8698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.449e-05/3.819, allocations: 27.75 kB / 1.972 GB, free: 134 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003592/3.823, allocations: 5.262 MB / 1.977 GB, free: 129.4 MB / 0.8698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.306e-06/3.823, allocations: 4.656 kB / 1.977 GB, free: 129.4 MB / 0.8698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003669/3.826, allocations: 1.617 MB / 1.979 GB, free: 129 MB / 0.8698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001756/3.828, allocations: 367.2 kB / 1.979 GB, free: 128.8 MB / 0.8698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002433/3.828, allocations: 25.14 kB / 1.979 GB, free: 128.8 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001366/3.83, allocations: 94.84 kB / 1.979 GB, free: 128.8 MB / 0.8698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002586/3.83, allocations: 56.81 kB / 1.98 GB, free: 128.8 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001052/3.83, allocations: 29.91 kB / 1.98 GB, free: 128.8 MB / 0.8698 GB Notification: Performance of sorting global known variables: time 0.002618/3.833, allocations: 0.9283 MB / 1.98 GB, free: 128.7 MB / 0.8698 GB Notification: Performance of sort global known variables: time 5.21e-07/3.833, allocations: 3.906 kB / 1.98 GB, free: 128.7 MB / 0.8698 GB Notification: Performance of remove unused functions: time 0.006645/3.839, allocations: 1.133 MB / 1.982 GB, free: 128.7 MB / 0.8698 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 14 (seg.port_b1.h_outflow,seg.port_a2.h_outflow,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) * 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.002529/3.842, allocations: 0.8223 MB / 1.982 GB, free: 128.6 MB / 0.8698 GB Notification: Performance of simCode: created initialization part: time 0.004692/3.847, allocations: 2.116 MB / 1.984 GB, free: 128.5 MB / 0.8698 GB Notification: Performance of simCode: created event and clocks part: time 6.342e-06/3.847, allocations: 4.312 kB / 1.984 GB, free: 128.5 MB / 0.8698 GB Notification: Performance of simCode: created simulation system equations: time 0.001243/3.848, allocations: 0.7824 MB / 1.985 GB, free: 128.1 MB / 0.8698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004639/3.853, allocations: 0.7684 MB / 1.986 GB, free: 128.1 MB / 0.8698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006307/3.859, allocations: 2.983 MB / 1.989 GB, free: 127.5 MB / 0.8698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001188/3.86, allocations: 1.314 MB / 1.99 GB, free: 126.7 MB / 0.8698 GB Notification: Performance of simCode: alias equations: time 0.00295/3.863, allocations: 0.5238 MB / 1.991 GB, free: 126.7 MB / 0.8698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003794/3.863, allocations: 99.53 kB / 1.991 GB, free: 126.7 MB / 0.8698 GB Notification: Performance of SimCode: time 1.472e-06/3.864, allocations: 2.375 kB / 1.991 GB, free: 126.7 MB / 0.8698 GB Notification: Performance of Templates: time 0.0683/3.932, allocations: 42.15 MB / 2.032 GB, free: 125.2 MB / 0.8698 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.BoreholeSegment.makefile (rm -f Buildings_maint.7.0.x_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.BoreholeSegment.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.BoreholeSegment.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.BoreholeSegment.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.BoreholeSegment.sim & ./Buildings_maint.7.0.x_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.BoreholeSegment -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.BoreholeSegment.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.BoreholeSegment_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Fluid_Geothermal_Boreholes_BaseClasses_Examples_BoreholeSegment.csv","../files/Buildings_maint.7.0.x_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.BoreholeSegment.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches