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.446/1.446, allocations: 249.5 MB / 257 MB, free: 6.934 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.001077/0.001077, allocations: 188.8 kB / 316.3 MB, free: 3.227 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.535/1.535, allocations: 205.3 MB / 0.5671 GB, free: 15.8 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.0009419/0.0009419, allocations: 96.36 kB / 0.6714 GB, free: 4.914 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 1.429e-05/1.431e-05, allocations: 4 kB / 0.7814 GB, free: 102.7 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2038/0.2039, allocations: 106.3 MB / 0.8852 GB, free: 12.23 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.31/1.513, allocations: 422.5 MB / 1.298 GB, free: 322.4 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000298/1.514, allocations: 111.1 kB / 1.298 GB, free: 322.4 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 1.679/3.193, allocations: 0.6274 GB / 1.925 GB, free: 17.59 MB / 0.8698 GB Notification: Performance of FrontEnd: time 1.593e-06/3.193, allocations: 0 / 1.925 GB, free: 17.59 MB / 0.8698 GB Notification: Performance of Transformations before backend: time 0.0001543/3.193, allocations: 47.91 kB / 1.925 GB, free: 17.55 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.004735/3.198, allocations: 2.022 MB / 1.927 GB, free: 15.49 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 4.479e-05/3.198, allocations: 12.56 kB / 1.927 GB, free: 15.48 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005944/3.198, allocations: 209.6 kB / 1.928 GB, free: 15.27 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00385/3.202, allocations: 2.047 MB / 1.93 GB, free: 13.2 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.933e-05/3.202, allocations: 36.86 kB / 1.93 GB, free: 13.16 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001761/3.202, allocations: 80 kB / 1.93 GB, free: 13.09 MB / 0.8698 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001369/3.204, allocations: 0.8399 MB / 1.931 GB, free: 12.24 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001454/3.205, allocations: 1.028 MB / 1.932 GB, free: 11.16 MB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.186e-05/3.205, allocations: 4 kB / 1.932 GB, free: 11.15 MB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.617e-05/3.205, allocations: 0 / 1.932 GB, free: 11.15 MB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.054e-05/3.205, allocations: 28 kB / 1.932 GB, free: 11.12 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.009525/3.215, allocations: 6.716 MB / 1.938 GB, free: 4.086 MB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002062/3.217, allocations: 1.041 MB / 1.939 GB, free: 3.039 MB / 0.8698 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005066/3.217, allocations: 427.4 kB / 1.94 GB, free: 2.613 MB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005066/3.218, allocations: 0.598 MB / 1.94 GB, free: 1.891 MB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005421/3.218, allocations: 412.5 kB / 1.941 GB, free: 1.477 MB / 0.8698 GB Notification: Performance of pre-optimization done (n=78): time 3.326e-06/3.218, allocations: 0 / 1.941 GB, free: 1.477 MB / 0.8698 GB Notification: Performance of matching and sorting (n=82): time 0.5732/3.792, allocations: 2.227 MB / 1.943 GB, free: 149 MB / 0.8698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.001e-05/3.792, allocations: 62.8 kB / 1.943 GB, free: 148.9 MB / 0.8698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001835/3.794, allocations: 1.061 MB / 1.944 GB, free: 148.8 MB / 0.8698 GB Notification: Performance of collectPreVariables (initialization): time 0.0002335/3.794, allocations: 32.8 kB / 1.944 GB, free: 148.7 MB / 0.8698 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007682/3.795, allocations: 0.6711 MB / 1.944 GB, free: 148.5 MB / 0.8698 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003663/3.795, allocations: 290 kB / 1.945 GB, free: 148.4 MB / 0.8698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.921e-05/3.795, allocations: 0 / 1.945 GB, free: 148.4 MB / 0.8698 GB Notification: Performance of setup shared object (initialization): time 0.0001219/3.795, allocations: 361.8 kB / 1.945 GB, free: 148.1 MB / 0.8698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009471/3.796, allocations: 0.5201 MB / 1.946 GB, free: 148.1 MB / 0.8698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001092/3.797, allocations: 0.8152 MB / 1.946 GB, free: 147.8 MB / 0.8698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001617/3.799, allocations: 0.6984 MB / 1.947 GB, free: 147.8 MB / 0.8698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.684e-06/3.799, allocations: 2.219 kB / 1.947 GB, free: 147.8 MB / 0.8698 GB Notification: Performance of matching and sorting (n=170) (initialization): time 0.003444/3.802, allocations: 1.665 MB / 1.949 GB, free: 147.6 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004605/3.803, allocations: 2.294 MB / 1.951 GB, free: 145.3 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.709e-05/3.803, allocations: 7.969 kB / 1.951 GB, free: 145.3 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006646/3.804, allocations: 220.5 kB / 1.951 GB, free: 145.2 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001418/3.805, allocations: 271.6 kB / 1.951 GB, free: 145.2 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00138/3.806, allocations: 1.619 MB / 1.953 GB, free: 144.1 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002764/3.809, allocations: 132.8 kB / 1.953 GB, free: 144.1 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001758/3.809, allocations: 60.91 kB / 1.953 GB, free: 144.1 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 1.532e-05/3.809, allocations: 3.312 kB / 1.953 GB, free: 144.1 MB / 0.8698 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003227/3.813, allocations: 1.491 MB / 1.955 GB, free: 144.1 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.564e-05/3.813, allocations: 10.78 kB / 1.955 GB, free: 144.1 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005837/3.813, allocations: 219.9 kB / 1.955 GB, free: 144.1 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001261/3.815, allocations: 265 kB / 1.955 GB, free: 144.1 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001078/3.816, allocations: 1.014 MB / 1.956 GB, free: 143.5 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002672/3.818, allocations: 124.1 kB / 1.956 GB, free: 143.5 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001412/3.818, allocations: 58.52 kB / 1.956 GB, free: 143.5 MB / 0.8698 GB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: seg.pipFil.Rgg.Q_flow:VARIABLE(unit = "W" protected = true ) "Heat flow rate from port_a -> port_b" type: Real 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.0004276/3.819, allocations: 134.8 kB / 1.956 GB, free: 143.4 MB / 0.8698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003198/3.819, allocations: 136.9 kB / 1.957 GB, free: 143.3 MB / 0.8698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002371/3.822, allocations: 1.013 MB / 1.958 GB, free: 143.2 MB / 0.8698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.086e-05/3.822, allocations: 11.16 kB / 1.958 GB, free: 143.2 MB / 0.8698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.057e-06/3.822, allocations: 2.406 kB / 1.958 GB, free: 143.2 MB / 0.8698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001461/3.823, allocations: 0.9071 MB / 1.958 GB, free: 143.1 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.004919/3.828, allocations: 2.661 MB / 1.961 GB, free: 142.6 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.282e-06/3.828, allocations: 1.438 kB / 1.961 GB, free: 142.6 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00073/3.829, allocations: 143.7 kB / 1.961 GB, free: 142.6 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002894/3.829, allocations: 115.5 kB / 1.961 GB, free: 142.6 MB / 0.8698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.728e-05/3.829, allocations: 20.64 kB / 1.961 GB, free: 142.6 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003275/3.833, allocations: 5.12 MB / 1.966 GB, free: 138.2 MB / 0.8698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.252e-06/3.833, allocations: 4.594 kB / 1.966 GB, free: 138.2 MB / 0.8698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003385/3.836, allocations: 1.572 MB / 1.968 GB, free: 137.8 MB / 0.8698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009695/3.837, allocations: 350 kB / 1.968 GB, free: 137.7 MB / 0.8698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001933/3.837, allocations: 18.27 kB / 1.968 GB, free: 137.6 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001256/3.838, allocations: 77.41 kB / 1.968 GB, free: 137.6 MB / 0.8698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001802/3.839, allocations: 57.95 kB / 1.968 GB, free: 137.6 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.041e-05/3.839, allocations: 29.78 kB / 1.968 GB, free: 137.6 MB / 0.8698 GB Notification: Performance of sorting global known variables: time 0.001535/3.84, allocations: 0.7748 MB / 1.969 GB, free: 137.5 MB / 0.8698 GB Notification: Performance of sort global known variables: time 5.11e-07/3.84, allocations: 1.406 kB / 1.969 GB, free: 137.5 MB / 0.8698 GB Notification: Performance of remove unused functions: time 0.004544/3.845, allocations: 1.083 MB / 1.97 GB, free: 137.5 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,(2,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001983/3.847, allocations: 0.815 MB / 1.971 GB, free: 137.4 MB / 0.8698 GB Notification: Performance of simCode: created initialization part: time 0.004234/3.851, allocations: 2.027 MB / 1.973 GB, free: 137.3 MB / 0.8698 GB Notification: Performance of simCode: created event and clocks part: time 6.032e-06/3.851, allocations: 0 / 1.973 GB, free: 137.3 MB / 0.8698 GB Notification: Performance of simCode: created simulation system equations: time 0.001103/3.852, allocations: 0.7501 MB / 1.974 GB, free: 137 MB / 0.8698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003631/3.856, allocations: 0.6295 MB / 1.974 GB, free: 137 MB / 0.8698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005667/3.861, allocations: 2.9 MB / 1.977 GB, free: 136.3 MB / 0.8698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00104/3.863, allocations: 1.312 MB / 1.978 GB, free: 135.6 MB / 0.8698 GB Notification: Performance of simCode: alias equations: time 0.00236/3.865, allocations: 0.4937 MB / 1.979 GB, free: 135.6 MB / 0.8698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003481/3.865, allocations: 94.02 kB / 1.979 GB, free: 135.6 MB / 0.8698 GB Notification: Performance of SimCode: time 1.142e-06/3.865, allocations: 0 / 1.979 GB, free: 135.6 MB / 0.8698 GB Notification: Performance of Templates: time 0.05482/3.92, allocations: 34.56 MB / 2.013 GB, free: 134.5 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