Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.SingleUTubeBoundaryCondition.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.SingleUTubeBoundaryCondition,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|TBouSte.port.T|TBouCon.port.T|TBouPul.port.T",fileNamePrefix="Buildings_9_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.SingleUTubeBoundaryCondition") translateModel(Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.SingleUTubeBoundaryCondition,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|TBouSte.port.T|TBouCon.port.T|TBouPul.port.T",fileNamePrefix="Buildings_9_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.SingleUTubeBoundaryCondition") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.296/2.296, allocations: 387.1 MB / 399.7 MB, free: 9.461 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.001067/0.001067, allocations: 180.9 kB / 492.3 MB, free: 0.6211 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.498/1.498, allocations: 221.3 MB / 0.7871 GB, free: 12.9 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.0008358/0.0008359, allocations: 93.75 kB / 0.9267 GB, free: 13.97 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 3.995e-05/4e-05, allocations: 4 kB / 1.073 GB, free: 180.4 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2781/0.2782, allocations: 142.3 MB / 1.212 GB, free: 38.53 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.953/1.231, allocations: 154 MB / 1.363 GB, free: 19.18 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002614/1.232, allocations: 96.03 kB / 1.363 GB, free: 19.18 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.01536/1.247, allocations: 5.44 MB / 1.368 GB, free: 34.45 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.863e-06/1.247, allocations: 0 / 1.368 GB, free: 34.45 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 9.929e-06/1.247, allocations: 3.875 kB / 1.368 GB, free: 34.45 MB / 0.8386 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 27 * Number of variables: 27 Notification: Performance of Generate backend data structure: time 0.0007141/1.248, allocations: 0.5231 MB / 1.369 GB, free: 34 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 4.501e-05/1.248, allocations: 7.656 kB / 1.369 GB, free: 34 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.632e-05/1.248, allocations: 33.91 kB / 1.369 GB, free: 33.99 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003651/1.248, allocations: 303.7 kB / 1.369 GB, free: 33.76 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.313e-05/1.248, allocations: 14.47 kB / 1.369 GB, free: 33.76 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.337e-05/1.248, allocations: 22.38 kB / 1.369 GB, free: 33.76 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000267/1.249, allocations: 184.9 kB / 1.369 GB, free: 33.67 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.532e-05/1.249, allocations: 3.844 kB / 1.369 GB, free: 33.67 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.228e-05/1.249, allocations: 3.25 kB / 1.369 GB, free: 33.67 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.442e-06/1.249, allocations: 3.812 kB / 1.369 GB, free: 33.67 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001408/1.249, allocations: 74.66 kB / 1.369 GB, free: 33.66 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009598/1.25, allocations: 0.9141 MB / 1.37 GB, free: 32.96 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002597/1.25, allocations: 185.7 kB / 1.37 GB, free: 32.89 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.866e-05/1.25, allocations: 68.19 kB / 1.37 GB, free: 32.86 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 1.276e-05/1.25, allocations: 3.875 kB / 1.37 GB, free: 32.86 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002787/1.25, allocations: 182.8 kB / 1.371 GB, free: 32.78 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=23): time 1.493e-06/1.25, allocations: 4 kB / 1.371 GB, free: 32.78 MB / 0.8386 GB Notification: Performance of matching and sorting (n=23): time 0.0004048/1.251, allocations: 258 kB / 1.371 GB, free: 32.72 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.327e-05/1.251, allocations: 120.9 kB / 1.371 GB, free: 32.6 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001791/1.251, allocations: 208.9 kB / 1.371 GB, free: 32.49 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 2.73e-05/1.251, allocations: 40.2 kB / 1.371 GB, free: 32.46 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 8.914e-05/1.251, allocations: 143.9 kB / 1.371 GB, free: 32.36 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 4.711e-05/1.251, allocations: 62.64 kB / 1.371 GB, free: 32.33 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.341e-05/1.251, allocations: 11.44 kB / 1.371 GB, free: 32.33 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001141/1.251, allocations: 342.3 kB / 1.372 GB, free: 32.01 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.798e-05/1.251, allocations: 59.09 kB / 1.372 GB, free: 32.01 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001592/1.252, allocations: 236.8 kB / 1.372 GB, free: 31.78 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001414/1.252, allocations: 113.9 kB / 1.372 GB, free: 31.73 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.536e-06/1.252, allocations: 0 / 1.372 GB, free: 31.73 MB / 0.8386 GB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0004269/1.252, allocations: 360.4 kB / 1.373 GB, free: 31.62 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 3.377e-05/1.252, allocations: 37.53 kB / 1.373 GB, free: 31.58 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.468e-06/1.252, allocations: 7.719 kB / 1.373 GB, free: 31.58 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.936e-05/1.252, allocations: 7.625 kB / 1.373 GB, free: 31.58 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002035/1.253, allocations: 72.45 kB / 1.373 GB, free: 31.57 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.5e-05/1.253, allocations: 11.75 kB / 1.373 GB, free: 31.57 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000219/1.253, allocations: 58.83 kB / 1.373 GB, free: 31.55 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.217e-05/1.253, allocations: 18.47 kB / 1.373 GB, free: 31.55 MB / 0.8386 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 27 * Number of states: 0 () * Number of discrete variables: 32 ($PRE.TBouSte.QAve_flow,TBouSte.QAve_flow,$PRE.TBouSte.UOld,TBouSte.UOld,$PRE.TBouSte.port.T,TBouSte.port.T,$PRE.TBouSte.iSam,TBouSte.iSam,$whenCondition4,$PRE.TBouCon.QAve_flow,TBouCon.QAve_flow,$PRE.TBouCon.UOld,TBouCon.UOld,$PRE.TBouCon.port.T,TBouCon.port.T,$PRE.TBouCon.iSam,TBouCon.iSam,$whenCondition3,$PRE.TBouPul.QAve_flow,TBouPul.QAve_flow,$PRE.TBouPul.UOld,TBouPul.UOld,$PRE.TBouPul.port.T,TBouPul.port.T,$PRE.TBouPul.iSam,TBouPul.iSam,$whenCondition1,$whenCondition2,$PRE.pulse.T_start,pulse.T_start,$PRE.pulse.count,pulse.count) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (46): * Single equations (assignments): 45 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.288e-05/1.253, allocations: 136.6 kB / 1.373 GB, free: 31.43 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.401e-05/1.253, allocations: 23.25 kB / 1.373 GB, free: 31.42 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.683e-05/1.253, allocations: 34.88 kB / 1.373 GB, free: 31.41 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.627e-06/1.253, allocations: 3.938 kB / 1.373 GB, free: 31.41 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.482e-06/1.253, allocations: 0 / 1.373 GB, free: 31.41 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.62e-06/1.253, allocations: 6.781 kB / 1.373 GB, free: 31.41 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002519/1.253, allocations: 273.3 kB / 1.373 GB, free: 31.21 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.204e-06/1.253, allocations: 0 / 1.373 GB, free: 31.21 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001144/1.253, allocations: 24.41 kB / 1.373 GB, free: 31.21 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.98e-06/1.253, allocations: 0 / 1.373 GB, free: 31.21 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.465e-05/1.253, allocations: 13.92 kB / 1.373 GB, free: 31.21 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.998e-06/1.253, allocations: 10.84 kB / 1.373 GB, free: 31.2 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.473e-06/1.253, allocations: 160 / 1.373 GB, free: 31.2 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004755/1.254, allocations: 395.7 kB / 1.374 GB, free: 31.06 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 5.008e-05/1.254, allocations: 110.5 kB / 1.374 GB, free: 30.95 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.117e-05/1.254, allocations: 6.625 kB / 1.374 GB, free: 30.95 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001535/1.254, allocations: 24.66 kB / 1.374 GB, free: 30.95 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.334e-05/1.254, allocations: 26.12 kB / 1.374 GB, free: 30.95 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.777e-05/1.254, allocations: 10.59 kB / 1.374 GB, free: 30.95 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 0.0001111/1.254, allocations: 163.1 kB / 1.374 GB, free: 30.86 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.5e-07/1.254, allocations: 0 / 1.374 GB, free: 30.86 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0003971/1.255, allocations: 98.28 kB / 1.374 GB, free: 30.84 MB / 0.8386 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 3 (TBouSte.U,TBouCon.U,TBouPul.U) * Number of discrete variables: 18 ($whenCondition4,TBouSte.QAve_flow,TBouSte.port.T,TBouSte.UOld,TBouSte.iSam,$whenCondition3,TBouCon.QAve_flow,TBouCon.port.T,TBouCon.UOld,TBouCon.iSam,$whenCondition2,$whenCondition1,TBouPul.QAve_flow,TBouPul.port.T,TBouPul.UOld,TBouPul.iSam,pulse.T_start,pulse.count) * Number of discrete states: 7 (TBouPul.iSam,TBouPul.UOld,pulse.count,TBouCon.iSam,TBouCon.UOld,TBouSte.iSam,TBouSte.UOld) * Top-level inputs: 0 Notification: Strong component statistics for simulation (23): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 14 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003398/1.255, allocations: 182.1 kB / 1.374 GB, free: 30.73 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0003174/1.256, allocations: 255.6 kB / 1.374 GB, free: 30.65 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/1.256, allocations: 4.062 kB / 1.374 GB, free: 30.64 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.0001263/1.256, allocations: 81.47 kB / 1.375 GB, free: 30.64 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002939/1.256, allocations: 57.91 kB / 1.375 GB, free: 30.64 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001276/1.257, allocations: 0.6083 MB / 1.375 GB, free: 30.34 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002733/1.258, allocations: 0.7451 MB / 1.376 GB, free: 29.64 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 0.00013/1.258, allocations: 53.42 kB / 1.376 GB, free: 29.62 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.165e-05/1.258, allocations: 22.94 kB / 1.376 GB, free: 29.62 MB / 0.8386 GB Notification: Performance of SimCode: time 3.71e-07/1.258, allocations: 0 / 1.376 GB, free: 29.62 MB / 0.8386 GB Notification: Performance of Templates: time 0.007816/1.266, allocations: 3.671 MB / 1.38 GB, free: 29.38 MB / 0.8386 GB make -j1 -f Buildings_9_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.SingleUTubeBoundaryCondition.makefile (rm -f Buildings_9_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.SingleUTubeBoundaryCondition.pipe ; mkfifo Buildings_9_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.SingleUTubeBoundaryCondition.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.SingleUTubeBoundaryCondition.pipe >> ../files/Buildings_9_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.SingleUTubeBoundaryCondition.sim & ./Buildings_9_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.SingleUTubeBoundaryCondition -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.SingleUTubeBoundaryCondition.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.SingleUTubeBoundaryCondition_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_Geothermal_Boreholes_BaseClasses_Examples_SingleUTubeBoundaryCondition.csv","../files/Buildings_9_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.SingleUTubeBoundaryCondition.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches