Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.SingleUTubeBoundaryCondition.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.SingleUTubeBoundaryCondition,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|TBouSte.port.T|TBouCon.port.T|TBouPul.port.T",fileNamePrefix="Buildings_latest_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_latest_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.SingleUTubeBoundaryCondition") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.221/2.221, allocations: 390.5 MB / 398 MB, free: 10.91 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.001002/0.001002, allocations: 180.8 kB / 491.2 MB, free: 1.531 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.582/1.582, allocations: 221.5 MB / 0.7868 GB, free: 13.29 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.0009358/0.0009359, allocations: 91.58 kB / 0.9269 GB, free: 13.8 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 2.445e-05/2.441e-05, allocations: 4 kB / 1.073 GB, free: 182 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2776/0.2777, allocations: 143 MB / 1.212 GB, free: 39.52 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1/1.278, allocations: 154.1 MB / 1.363 GB, free: 17.54 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000255/1.278, allocations: 93.03 kB / 1.363 GB, free: 17.54 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.01533/1.294, allocations: 5.438 MB / 1.368 GB, free: 32.83 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.563e-06/1.294, allocations: 0 / 1.368 GB, free: 32.83 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 1.577e-05/1.294, allocations: 3.844 kB / 1.368 GB, free: 32.83 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.0008585/1.295, allocations: 0.5337 MB / 1.369 GB, free: 32.38 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 4.043e-05/1.295, allocations: 11.66 kB / 1.369 GB, free: 32.37 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000105/1.295, allocations: 35.05 kB / 1.369 GB, free: 32.36 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003856/1.295, allocations: 296.2 kB / 1.369 GB, free: 32.12 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.9e-05/1.295, allocations: 10.19 kB / 1.369 GB, free: 32.12 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.801e-05/1.295, allocations: 11.5 kB / 1.369 GB, free: 32.12 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001757/1.295, allocations: 63.2 kB / 1.369 GB, free: 32.12 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002635/1.296, allocations: 173.7 kB / 1.369 GB, free: 32.04 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.795e-05/1.296, allocations: 2.25 kB / 1.369 GB, free: 32.04 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.521e-05/1.296, allocations: 3.875 kB / 1.369 GB, free: 32.04 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.721e-06/1.296, allocations: 0 / 1.369 GB, free: 32.04 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001008/1.297, allocations: 0.8774 MB / 1.37 GB, free: 31.37 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002336/1.297, allocations: 165.8 kB / 1.37 GB, free: 31.3 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.18e-05/1.297, allocations: 64.69 kB / 1.37 GB, free: 31.27 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 1.205e-05/1.297, allocations: 7.781 kB / 1.37 GB, free: 31.27 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002333/1.297, allocations: 178.2 kB / 1.371 GB, free: 31.19 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=23): time 1.553e-06/1.297, allocations: 0 / 1.371 GB, free: 31.19 MB / 0.8386 GB Notification: Performance of matching and sorting (n=23): time 0.0005071/1.298, allocations: 247.1 kB / 1.371 GB, free: 31.14 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.986e-05/1.298, allocations: 125.1 kB / 1.371 GB, free: 31 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000168/1.298, allocations: 196.2 kB / 1.371 GB, free: 30.9 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 2.619e-05/1.298, allocations: 29.67 kB / 1.371 GB, free: 30.87 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 7.949e-05/1.298, allocations: 148.1 kB / 1.371 GB, free: 30.77 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 3.898e-05/1.298, allocations: 54.72 kB / 1.371 GB, free: 30.74 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.108e-05/1.298, allocations: 0 / 1.371 GB, free: 30.74 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001041/1.298, allocations: 342.6 kB / 1.372 GB, free: 30.43 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.794e-05/1.298, allocations: 48.75 kB / 1.372 GB, free: 30.42 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001409/1.299, allocations: 225.4 kB / 1.372 GB, free: 30.2 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001273/1.299, allocations: 90.19 kB / 1.372 GB, free: 30.18 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.516e-06/1.299, allocations: 0 / 1.372 GB, free: 30.18 MB / 0.8386 GB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0003854/1.299, allocations: 284.8 kB / 1.372 GB, free: 30.1 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 3.13e-05/1.299, allocations: 36.91 kB / 1.372 GB, free: 30.07 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.074e-05/1.299, allocations: 8 kB / 1.372 GB, free: 30.07 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.864e-05/1.299, allocations: 11.09 kB / 1.372 GB, free: 30.07 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002124/1.299, allocations: 75.47 kB / 1.372 GB, free: 30.05 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.122e-05/1.3, allocations: 11.64 kB / 1.372 GB, free: 30.05 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002342/1.3, allocations: 40.2 kB / 1.372 GB, free: 30.04 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.257e-05/1.3, allocations: 22.78 kB / 1.373 GB, free: 30.03 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 0.000105/1.3, allocations: 133.5 kB / 1.373 GB, free: 29.91 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.595e-05/1.3, allocations: 31.16 kB / 1.373 GB, free: 29.89 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.618e-05/1.3, allocations: 27.58 kB / 1.373 GB, free: 29.89 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.16e-06/1.3, allocations: 7.797 kB / 1.373 GB, free: 29.89 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.703e-06/1.3, allocations: 3.938 kB / 1.373 GB, free: 29.88 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.941e-06/1.3, allocations: 2.766 kB / 1.373 GB, free: 29.88 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002107/1.3, allocations: 230.8 kB / 1.373 GB, free: 29.73 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.314e-06/1.3, allocations: 0 / 1.373 GB, free: 29.73 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001173/1.3, allocations: 29.05 kB / 1.373 GB, free: 29.72 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.857e-06/1.3, allocations: 0 / 1.373 GB, free: 29.72 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.188e-05/1.3, allocations: 10.45 kB / 1.373 GB, free: 29.72 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.695e-06/1.3, allocations: 3.844 kB / 1.373 GB, free: 29.72 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.635e-06/1.3, allocations: 0 / 1.373 GB, free: 29.72 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005096/1.301, allocations: 383.4 kB / 1.373 GB, free: 29.58 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 5.339e-05/1.301, allocations: 109.1 kB / 1.373 GB, free: 29.47 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.917e-05/1.301, allocations: 14.92 kB / 1.373 GB, free: 29.46 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001537/1.301, allocations: 21.53 kB / 1.373 GB, free: 29.46 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.838e-05/1.301, allocations: 23.56 kB / 1.374 GB, free: 29.46 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.69e-05/1.301, allocations: 10.61 kB / 1.374 GB, free: 29.46 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 0.0001072/1.301, allocations: 143.8 kB / 1.374 GB, free: 29.38 MB / 0.8386 GB Notification: Performance of sort global known variables: time 2.3e-07/1.301, allocations: 0 / 1.374 GB, free: 29.38 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.000415/1.302, allocations: 87.75 kB / 1.374 GB, free: 29.37 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.0003685/1.302, allocations: 192.3 kB / 1.374 GB, free: 29.25 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0002744/1.303, allocations: 231.6 kB / 1.374 GB, free: 29.17 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 1.914e-06/1.303, allocations: 0 / 1.374 GB, free: 29.17 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.0001103/1.303, allocations: 83.27 kB / 1.374 GB, free: 29.17 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002924/1.303, allocations: 52.58 kB / 1.374 GB, free: 29.16 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001117/1.304, allocations: 0.5803 MB / 1.375 GB, free: 28.88 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003051/1.304, allocations: 0.7468 MB / 1.376 GB, free: 28.18 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 0.0001324/1.305, allocations: 48 kB / 1.376 GB, free: 28.17 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.35e-05/1.305, allocations: 25.59 kB / 1.376 GB, free: 28.16 MB / 0.8386 GB Notification: Performance of SimCode: time 3.4e-07/1.305, allocations: 0 / 1.376 GB, free: 28.16 MB / 0.8386 GB Notification: Performance of Templates: time 0.006151/1.311, allocations: 3.441 MB / 1.379 GB, free: 27.92 MB / 0.8386 GB make -j1 -f Buildings_latest_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.SingleUTubeBoundaryCondition.makefile (rm -f Buildings_latest_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.SingleUTubeBoundaryCondition.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.SingleUTubeBoundaryCondition.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.SingleUTubeBoundaryCondition.pipe >> ../files/Buildings_latest_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.SingleUTubeBoundaryCondition.sim & ./Buildings_latest_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.SingleUTubeBoundaryCondition -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.SingleUTubeBoundaryCondition.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.SingleUTubeBoundaryCondition_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_Geothermal_Boreholes_BaseClasses_Examples_SingleUTubeBoundaryCondition.csv","../files/Buildings_latest_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.SingleUTubeBoundaryCondition.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches