Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.BoreholeSegment.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.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_9_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_9_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.BoreholeSegment") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.122/2.122, allocations: 387.4 MB / 394.9 MB, free: 13.35 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.001063/0.001063, allocations: 172.9 kB / 487.4 MB, free: 5.035 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.423/1.423, allocations: 221.5 MB / 0.7824 GB, free: 0.9062 MB / 0.5417 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008958/0.000896, allocations: 93.58 kB / 0.9219 GB, free: 2.137 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 1.96e-05/1.961e-05, allocations: 4 kB / 1.067 GB, free: 185.7 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2756/0.2757, allocations: 142.4 MB / 1.206 GB, free: 43.91 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.171/1.446, allocations: 441.7 MB / 1.637 GB, free: 13.23 MB / 1.057 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003195/1.447, allocations: 109.2 kB / 1.637 GB, free: 13.17 MB / 1.057 GB Notification: Performance of FrontEnd - DAE generated: time 2.729/4.176, allocations: 0.6604 GB / 2.298 GB, free: 252.2 MB / 1.151 GB Notification: Performance of FrontEnd: time 2.875e-06/4.176, allocations: 3.906 kB / 2.298 GB, free: 252.2 MB / 1.151 GB Notification: Performance of Transformations before backend: time 0.0002477/4.176, allocations: 38.33 kB / 2.298 GB, free: 252.2 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.006168/4.182, allocations: 2.034 MB / 2.3 GB, free: 251.4 MB / 1.151 GB Notification: Performance of prepare preOptimizeDAE: time 4.455e-05/4.183, allocations: 14.52 kB / 2.3 GB, free: 251.4 MB / 1.151 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001134/4.184, allocations: 209.8 kB / 2.3 GB, free: 251.3 MB / 1.151 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004881/4.189, allocations: 2.069 MB / 2.302 GB, free: 251 MB / 1.151 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.75e-05/4.189, allocations: 38.75 kB / 2.302 GB, free: 251 MB / 1.151 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004449/4.189, allocations: 91.59 kB / 2.302 GB, free: 251 MB / 1.151 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001691/4.191, allocations: 0.8282 MB / 2.303 GB, free: 251 MB / 1.151 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001862/4.193, allocations: 1.032 MB / 2.304 GB, free: 250.9 MB / 1.151 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.865e-05/4.193, allocations: 5.438 kB / 2.304 GB, free: 250.9 MB / 1.151 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.981e-05/4.193, allocations: 3.625 kB / 2.304 GB, free: 250.9 MB / 1.151 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.489e-05/4.193, allocations: 29.41 kB / 2.304 GB, free: 250.9 MB / 1.151 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.01074/4.204, allocations: 6.729 MB / 2.311 GB, free: 248.2 MB / 1.151 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002195/4.206, allocations: 1.037 MB / 2.312 GB, free: 248.2 MB / 1.151 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005825/4.206, allocations: 429.4 kB / 2.312 GB, free: 248.2 MB / 1.151 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005337/4.207, allocations: 0.5994 MB / 2.313 GB, free: 247.5 MB / 1.151 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005968/4.208, allocations: 420.8 kB / 2.313 GB, free: 247.5 MB / 1.151 GB Notification: Performance of pre-optimization done (n=78): time 2.976e-06/4.208, allocations: 0 / 2.313 GB, free: 247.5 MB / 1.151 GB Notification: Performance of matching and sorting (n=82): time 0.005625/4.213, allocations: 2.235 MB / 2.315 GB, free: 246.9 MB / 1.151 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.282e-05/4.213, allocations: 66.16 kB / 2.315 GB, free: 246.8 MB / 1.151 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001774/4.215, allocations: 1.066 MB / 2.316 GB, free: 246.6 MB / 1.151 GB Notification: Performance of collectPreVariables (initialization): time 0.0002185/4.215, allocations: 31.83 kB / 2.316 GB, free: 246.6 MB / 1.151 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007108/4.216, allocations: 0.6797 MB / 2.317 GB, free: 246.3 MB / 1.151 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003114/4.216, allocations: 284.5 kB / 2.317 GB, free: 246.1 MB / 1.151 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001182/4.217, allocations: 0 / 2.317 GB, free: 246.1 MB / 1.151 GB Notification: Performance of setup shared object (initialization): time 9.683e-05/4.217, allocations: 362.3 kB / 2.318 GB, free: 245.8 MB / 1.151 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000733/4.217, allocations: 0.5226 MB / 2.318 GB, free: 245.8 MB / 1.151 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008254/4.218, allocations: 0.8119 MB / 2.319 GB, free: 245.5 MB / 1.151 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001245/4.219, allocations: 0.6911 MB / 2.32 GB, free: 245.5 MB / 1.151 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.29e-06/4.219, allocations: 5.75 kB / 2.32 GB, free: 245.5 MB / 1.151 GB Notification: Performance of matching and sorting (n=170) (initialization): time 0.002768/4.222, allocations: 1.668 MB / 2.321 GB, free: 245.4 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 0.000478/4.223, allocations: 2.288 MB / 2.323 GB, free: 243 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.294e-05/4.223, allocations: 10.52 kB / 2.323 GB, free: 243 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005638/4.223, allocations: 226.3 kB / 2.324 GB, free: 243 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001295/4.225, allocations: 278.1 kB / 2.324 GB, free: 243 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001243/4.226, allocations: 1.608 MB / 2.326 GB, free: 241.9 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00239/4.228, allocations: 126.7 kB / 2.326 GB, free: 241.9 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001444/4.228, allocations: 56.34 kB / 2.326 GB, free: 241.9 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 1.117e-05/4.228, allocations: 3.812 kB / 2.326 GB, free: 241.9 MB / 1.151 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002443/4.231, allocations: 1.496 MB / 2.327 GB, free: 241.8 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.876e-05/4.231, allocations: 8.719 kB / 2.327 GB, free: 241.8 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004918/4.231, allocations: 218.6 kB / 2.327 GB, free: 241.8 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001071/4.233, allocations: 263.2 kB / 2.328 GB, free: 241.8 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008962/4.233, allocations: 1.016 MB / 2.329 GB, free: 241.3 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002329/4.236, allocations: 123.7 kB / 2.329 GB, free: 241.2 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001187/4.236, allocations: 63.02 kB / 2.329 GB, free: 241.2 MB / 1.151 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.0003758/4.236, allocations: 139.1 kB / 2.329 GB, free: 241.1 MB / 1.151 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002563/4.237, allocations: 142.9 kB / 2.329 GB, free: 241.1 MB / 1.151 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001923/4.239, allocations: 0.9964 MB / 2.33 GB, free: 241 MB / 1.151 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.073e-05/4.239, allocations: 7.125 kB / 2.33 GB, free: 241 MB / 1.151 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.215e-06/4.239, allocations: 7.156 kB / 2.33 GB, free: 241 MB / 1.151 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001298/4.24, allocations: 0.9167 MB / 2.331 GB, free: 240.8 MB / 1.151 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.003974/4.244, allocations: 2.673 MB / 2.334 GB, free: 240.3 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.203e-06/4.244, allocations: 6.719 kB / 2.334 GB, free: 240.3 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006772/4.245, allocations: 148 kB / 2.334 GB, free: 240.3 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002627/4.245, allocations: 113.1 kB / 2.334 GB, free: 240.3 MB / 1.151 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.505e-05/4.245, allocations: 17.67 kB / 2.334 GB, free: 240.3 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002964/4.248, allocations: 5.119 MB / 2.339 GB, free: 235.9 MB / 1.151 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.328e-06/4.248, allocations: 2.719 kB / 2.339 GB, free: 235.9 MB / 1.151 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002345/4.25, allocations: 1.571 MB / 2.34 GB, free: 235.5 MB / 1.151 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007255/4.251, allocations: 358.4 kB / 2.341 GB, free: 235.4 MB / 1.151 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001699/4.251, allocations: 10.19 kB / 2.341 GB, free: 235.4 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001154/4.252, allocations: 78.36 kB / 2.341 GB, free: 235.4 MB / 1.151 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001287/4.252, allocations: 67.3 kB / 2.341 GB, free: 235.3 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.044e-05/4.253, allocations: 33.12 kB / 2.341 GB, free: 235.3 MB / 1.151 GB Notification: Performance of sorting global known variables: time 0.001062/4.254, allocations: 0.7772 MB / 2.342 GB, free: 235.2 MB / 1.151 GB Notification: Performance of sort global known variables: time 1.6e-07/4.254, allocations: 0 / 2.342 GB, free: 235.2 MB / 1.151 GB Notification: Performance of remove unused functions: time 0.003607/4.257, allocations: 1.08 MB / 2.343 GB, free: 235.2 MB / 1.151 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.001502/4.259, allocations: 0.8124 MB / 2.344 GB, free: 235 MB / 1.151 GB Notification: Performance of simCode: created initialization part: time 0.00324/4.262, allocations: 2.023 MB / 2.345 GB, free: 234.9 MB / 1.151 GB Notification: Performance of simCode: created event and clocks part: time 4.529e-06/4.262, allocations: 3.938 kB / 2.346 GB, free: 234.9 MB / 1.151 GB Notification: Performance of simCode: created simulation system equations: time 0.0008306/4.263, allocations: 0.7506 MB / 2.346 GB, free: 234.6 MB / 1.151 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003014/4.266, allocations: 0.6155 MB / 2.347 GB, free: 234.6 MB / 1.151 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004422/4.27, allocations: 2.929 MB / 2.35 GB, free: 233.9 MB / 1.151 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000667/4.271, allocations: 1.311 MB / 2.351 GB, free: 233.2 MB / 1.151 GB Notification: Performance of simCode: alias equations: time 0.002005/4.273, allocations: 0.4976 MB / 2.351 GB, free: 233.1 MB / 1.151 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002858/4.273, allocations: 94.95 kB / 2.352 GB, free: 233.1 MB / 1.151 GB Notification: Performance of SimCode: time 1.103e-06/4.273, allocations: 0 / 2.352 GB, free: 233.1 MB / 1.151 GB Notification: Performance of Templates: time 0.05116/4.324, allocations: 34.55 MB / 2.385 GB, free: 231.4 MB / 1.151 GB make -j1 -f Buildings_9_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.BoreholeSegment.makefile (rm -f Buildings_9_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.BoreholeSegment.pipe ; mkfifo Buildings_9_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.BoreholeSegment.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.BoreholeSegment.pipe >> ../files/Buildings_9_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.BoreholeSegment.sim & ./Buildings_9_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.BoreholeSegment -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.BoreholeSegment.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.BoreholeSegment_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_Geothermal_Boreholes_BaseClasses_Examples_BoreholeSegment.csv","../files/Buildings_9_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.BoreholeSegment.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches