Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.SingleUTubeBoundaryCondition.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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/Buildings 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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_10_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_10_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.SingleUTubeBoundaryCondition") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001208/0.001208, allocations: 102.5 kB / 16.39 MB, free: 6.379 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001163/0.001163, allocations: 186.8 kB / 17.33 MB, free: 5.844 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.397/1.397, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.556/2.556, allocations: 437 MB / 0.7112 GB, free: 4.426 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.00149/0.00149, allocations: 63.89 kB / 1.019 GB, free: 9.449 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.971/0.9725, allocations: 151.6 MB / 1.167 GB, free: 3.906 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.SingleUTubeBoundaryCondition): time 0.004384/0.9769, allocations: 2.347 MB / 1.17 GB, free: 1.551 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.001888/0.9789, allocations: 1.006 MB / 1.171 GB, free: 0.5352 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002379/0.9791, allocations: 7.938 kB / 1.171 GB, free: 0.5273 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 0.0003128/0.9794, allocations: 59.56 kB / 1.171 GB, free: 480 kB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 0.0003093/0.9798, allocations: 83.33 kB / 1.171 GB, free: 396 kB / 0.8887 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/Fluid/Geothermal/Boreholes/BaseClasses/temperatureDrop.mo:2:1-109:20:writable] Warning: Pure function 'Buildings.Fluid.Geothermal.Boreholes.BaseClasses.temperatureDrop' contains a call to impure function 'Buildings.Fluid.Geothermal.Boreholes.BaseClasses.exchangeValues'. Notification: Performance of NFTyping.typeClassSections: time 0.0006354/0.9804, allocations: 159.5 kB / 1.171 GB, free: 236 kB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 0.0004509/0.9809, allocations: 286.8 kB / 1.171 GB, free: 15.95 MB / 0.9044 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001455/0.9811, allocations: 40.38 kB / 1.171 GB, free: 15.91 MB / 0.9044 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002529/0.9813, allocations: 119.5 kB / 1.171 GB, free: 15.79 MB / 0.9044 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000175/0.9815, allocations: 107.5 kB / 1.171 GB, free: 15.68 MB / 0.9044 GB Notification: Performance of NFPackage.collectConstants: time 4.206e-05/0.9816, allocations: 20 kB / 1.171 GB, free: 15.66 MB / 0.9044 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003452/0.9819, allocations: 115.8 kB / 1.172 GB, free: 15.55 MB / 0.9044 GB Notification: Performance of NFScalarize.scalarize: time 5.841e-05/0.982, allocations: 51.83 kB / 1.172 GB, free: 15.5 MB / 0.9044 GB Notification: Performance of NFVerifyModel.verify: time 0.0001319/0.9821, allocations: 119.4 kB / 1.172 GB, free: 15.38 MB / 0.9044 GB Notification: Performance of NFConvertDAE.convert: time 0.0005126/0.9826, allocations: 315.3 kB / 1.172 GB, free: 15.08 MB / 0.9044 GB Notification: Performance of FrontEnd - DAE generated: time 4.679e-06/0.9827, allocations: 0 / 1.172 GB, free: 15.08 MB / 0.9044 GB Notification: Performance of FrontEnd: time 1.934e-06/0.9827, allocations: 0 / 1.172 GB, free: 15.08 MB / 0.9044 GB Notification: Performance of Transformations before backend: time 1.025e-05/0.9827, allocations: 0 / 1.172 GB, free: 15.08 MB / 0.9044 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.001179/0.9839, allocations: 0.5979 MB / 1.173 GB, free: 14.43 MB / 0.9044 GB Notification: Performance of prepare preOptimizeDAE: time 4.585e-05/0.9839, allocations: 16.88 kB / 1.173 GB, free: 14.41 MB / 0.9044 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001041/0.984, allocations: 36.73 kB / 1.173 GB, free: 14.38 MB / 0.9044 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005468/0.9846, allocations: 295.1 kB / 1.173 GB, free: 14.05 MB / 0.9044 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.612e-05/0.9846, allocations: 16.59 kB / 1.173 GB, free: 14.04 MB / 0.9044 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.033e-05/0.9847, allocations: 20.38 kB / 1.173 GB, free: 14.02 MB / 0.9044 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004423/0.9851, allocations: 200.6 kB / 1.173 GB, free: 13.8 MB / 0.9044 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.781e-05/0.9852, allocations: 7.938 kB / 1.173 GB, free: 13.79 MB / 0.9044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.564e-05/0.9852, allocations: 8 kB / 1.173 GB, free: 13.78 MB / 0.9044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.726e-06/0.9852, allocations: 4 kB / 1.173 GB, free: 13.78 MB / 0.9044 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003662/0.9856, allocations: 103.8 kB / 1.173 GB, free: 13.68 MB / 0.9044 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001091/0.9867, allocations: 0.8723 MB / 1.174 GB, free: 12.73 MB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004933/0.9872, allocations: 199.9 kB / 1.174 GB, free: 12.51 MB / 0.9044 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002053/0.9874, allocations: 78.61 kB / 1.174 GB, free: 12.43 MB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 1.611e-05/0.9874, allocations: 11.98 kB / 1.174 GB, free: 12.41 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004017/0.9878, allocations: 208.2 kB / 1.175 GB, free: 12.19 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=23): time 2.074e-06/0.9878, allocations: 0 / 1.175 GB, free: 12.19 MB / 0.9044 GB Notification: Performance of matching and sorting (n=23): time 0.0009152/0.9888, allocations: 361.4 kB / 1.175 GB, free: 11.83 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.252e-05/0.9889, allocations: 114.8 kB / 1.175 GB, free: 11.7 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002501/0.9891, allocations: 250.5 kB / 1.175 GB, free: 11.45 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 3.844e-05/0.9892, allocations: 41.7 kB / 1.175 GB, free: 11.4 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 9.927e-05/0.9893, allocations: 144.6 kB / 1.175 GB, free: 11.26 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 6.376e-05/0.9893, allocations: 63.52 kB / 1.176 GB, free: 11.2 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001037/0.9895, allocations: 78.02 kB / 1.176 GB, free: 11.11 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.0001272/0.9896, allocations: 338.8 kB / 1.176 GB, free: 10.77 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002431/0.9898, allocations: 80.75 kB / 1.176 GB, free: 10.69 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003342/0.9902, allocations: 255.2 kB / 1.176 GB, free: 10.36 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005828/0.9908, allocations: 388.4 kB / 1.177 GB, free: 9.891 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.781e-06/0.9908, allocations: 0 / 1.177 GB, free: 9.891 MB / 0.9044 GB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0007727/0.9916, allocations: 403 kB / 1.177 GB, free: 9.484 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 4.244e-05/0.9916, allocations: 37.7 kB / 1.177 GB, free: 9.441 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.155e-05/0.9916, allocations: 4 kB / 1.177 GB, free: 9.438 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.294e-05/0.9917, allocations: 8 kB / 1.177 GB, free: 9.43 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002279/0.9919, allocations: 75.81 kB / 1.177 GB, free: 9.355 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.747e-05/0.9919, allocations: 15.88 kB / 1.177 GB, free: 9.34 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002614/0.9922, allocations: 44.17 kB / 1.177 GB, free: 9.297 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.028e-05/0.9922, allocations: 16 kB / 1.177 GB, free: 9.281 MB / 0.9044 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 (TBouSte.QAve_flow,$PRE.TBouSte.QAve_flow,TBouSte.UOld,$PRE.TBouSte.UOld,TBouSte.port.T,$PRE.TBouSte.port.T,TBouSte.iSam,$PRE.TBouSte.iSam,$whenCondition4,TBouCon.QAve_flow,$PRE.TBouCon.QAve_flow,TBouCon.UOld,$PRE.TBouCon.UOld,TBouCon.port.T,$PRE.TBouCon.port.T,TBouCon.iSam,$PRE.TBouCon.iSam,$whenCondition3,TBouPul.QAve_flow,$PRE.TBouPul.QAve_flow,TBouPul.UOld,$PRE.TBouPul.UOld,TBouPul.port.T,$PRE.TBouPul.port.T,TBouPul.iSam,$PRE.TBouPul.iSam,$whenCondition1,pulse.count,$PRE.pulse.count,pulse.T_start,$PRE.pulse.T_start,$whenCondition2) * Number of discrete states: 0 () * Number of clocked 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001707/0.9924, allocations: 163.9 kB / 1.177 GB, free: 9.113 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.978e-05/0.9925, allocations: 31.81 kB / 1.177 GB, free: 9.082 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.972e-05/0.9925, allocations: 21.7 kB / 1.177 GB, free: 9.059 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.27e-06/0.9925, allocations: 4 kB / 1.177 GB, free: 9.055 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.829e-06/0.9926, allocations: 7.938 kB / 1.177 GB, free: 9.047 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.118e-06/0.9926, allocations: 0 / 1.177 GB, free: 9.047 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002995/0.9929, allocations: 269.4 kB / 1.178 GB, free: 8.734 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.966e-06/0.9929, allocations: 256 / 1.178 GB, free: 8.734 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001232/0.993, allocations: 19.98 kB / 1.178 GB, free: 8.715 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.393e-06/0.993, allocations: 8 kB / 1.178 GB, free: 8.707 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.418e-05/0.9931, allocations: 8.359 kB / 1.178 GB, free: 8.699 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.976e-06/0.9931, allocations: 0 / 1.178 GB, free: 8.699 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.326e-06/0.9931, allocations: 3.938 kB / 1.178 GB, free: 8.695 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008558/0.9939, allocations: 422.2 kB / 1.178 GB, free: 8.258 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 7.793e-05/0.994, allocations: 108.8 kB / 1.178 GB, free: 8.133 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.042e-05/0.9941, allocations: 11.98 kB / 1.178 GB, free: 8.121 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001612/0.9942, allocations: 11.98 kB / 1.178 GB, free: 8.109 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.934e-05/0.9943, allocations: 27.91 kB / 1.178 GB, free: 8.082 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.055e-05/0.9944, allocations: 15.98 kB / 1.178 GB, free: 8.066 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 0.0001541/0.9945, allocations: 170 kB / 1.178 GB, free: 7.898 MB / 0.9044 GB Notification: Performance of sort global known variables: time 1.1e-07/0.9945, allocations: 0 / 1.178 GB, free: 7.898 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.0004197/0.9949, allocations: 79.92 kB / 1.178 GB, free: 7.82 MB / 0.9044 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) * Number of clocked states: 0 () * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003957/0.9954, allocations: 166.3 kB / 1.179 GB, free: 7.652 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.0006352/0.996, allocations: 304.3 kB / 1.179 GB, free: 7.344 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 3.116e-06/0.996, allocations: 0 / 1.179 GB, free: 7.344 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 0.0002635/0.9963, allocations: 95.89 kB / 1.179 GB, free: 7.25 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003801/0.9967, allocations: 66.66 kB / 1.179 GB, free: 7.188 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001265/0.9979, allocations: 0.6413 MB / 1.18 GB, free: 6.508 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003006/0.9983, allocations: 0.7407 MB / 1.18 GB, free: 5.742 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.07e-05/0.9983, allocations: 23.44 kB / 1.18 GB, free: 5.719 MB / 0.9044 GB Notification: Performance of SimCode: time 5.01e-07/0.9983, allocations: 0 / 1.18 GB, free: 5.719 MB / 0.9044 GB Notification: Performance of Templates: time 0.007457/1.006, allocations: 3.868 MB / 1.184 GB, free: 1.879 MB / 0.9044 GB make -j1 -f Buildings_10_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.SingleUTubeBoundaryCondition.makefile (rm -f Buildings_10_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.SingleUTubeBoundaryCondition.pipe ; mkfifo Buildings_10_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.SingleUTubeBoundaryCondition.pipe ; head -c 1048576 < Buildings_10_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.SingleUTubeBoundaryCondition.pipe >> ../files/Buildings_10_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.SingleUTubeBoundaryCondition.sim & ./Buildings_10_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.SingleUTubeBoundaryCondition -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.SingleUTubeBoundaryCondition.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.SingleUTubeBoundaryCondition_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Fluid_Geothermal_Boreholes_BaseClasses_Examples_SingleUTubeBoundaryCondition.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.SingleUTubeBoundaryCondition.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches