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/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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/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_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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00106/0.00106, allocations: 91.84 kB / 15.36 MB, free: 0.7383 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.007636/0.007636, allocations: 170 kB / 16.26 MB, free: 6.613 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.438/1.438, allocations: 223.3 MB / 240.3 MB, free: 5.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 3.073/3.073, allocations: 483.2 MB / 0.7565 GB, free: 12.19 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.0003197/0.0003197, allocations: 10.7 kB / 0.9276 GB, free: 29.2 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2798/0.2801, allocations: 164.5 MB / 1.088 GB, free: 10.33 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.SingleUTubeBoundaryCondition): time 0.002802/0.283, allocations: 2.035 MB / 1.09 GB, free: 8.281 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.001566/0.2846, allocations: 1.005 MB / 1.091 GB, free: 7.27 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.521e-05/0.2847, allocations: 7.938 kB / 1.091 GB, free: 7.262 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.0001909/0.2849, allocations: 39.75 kB / 1.091 GB, free: 7.223 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.000169/0.2851, allocations: 67.41 kB / 1.091 GB, free: 7.156 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003758/0.2854, allocations: 147.7 kB / 1.091 GB, free: 7.012 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.0002846/0.2857, allocations: 266.8 kB / 1.092 GB, free: 6.75 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001085/0.2858, allocations: 36.61 kB / 1.092 GB, free: 6.715 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001548/0.286, allocations: 99.5 kB / 1.092 GB, free: 6.617 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001498/0.2862, allocations: 111.5 kB / 1.092 GB, free: 6.508 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 2.695e-05/0.2862, allocations: 12 kB / 1.092 GB, free: 6.496 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002578/0.2865, allocations: 99.84 kB / 1.092 GB, free: 6.398 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 5.189e-05/0.2865, allocations: 31.84 kB / 1.092 GB, free: 6.367 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 0.0001671/0.2867, allocations: 141.1 kB / 1.092 GB, free: 6.223 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.0004035/0.2871, allocations: 295 kB / 1.093 GB, free: 5.934 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 5.911e-06/0.2871, allocations: 0 / 1.093 GB, free: 5.934 MB / 0.8419 GB Notification: Performance of FrontEnd: time 1.653e-06/0.2871, allocations: 3.938 kB / 1.093 GB, free: 5.93 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 5.621e-06/0.2872, allocations: 0 / 1.093 GB, free: 5.93 MB / 0.8419 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.001028/0.2882, allocations: 0.5554 MB / 1.093 GB, free: 5.316 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 3.334e-05/0.2882, allocations: 8.031 kB / 1.093 GB, free: 5.309 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.609e-05/0.2883, allocations: 36.55 kB / 1.093 GB, free: 5.273 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004345/0.2887, allocations: 287 kB / 1.093 GB, free: 4.957 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.587e-05/0.2888, allocations: 16.61 kB / 1.093 GB, free: 4.941 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.176e-05/0.2888, allocations: 28.3 kB / 1.093 GB, free: 4.914 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004495/0.2893, allocations: 206.3 kB / 1.094 GB, free: 4.691 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.488e-05/0.2893, allocations: 8 kB / 1.094 GB, free: 4.684 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.518e-05/0.2894, allocations: 4 kB / 1.094 GB, free: 4.68 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.414e-06/0.2894, allocations: 11.88 kB / 1.094 GB, free: 4.668 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000383/0.2898, allocations: 119.8 kB / 1.094 GB, free: 4.551 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001084/0.2909, allocations: 0.8684 MB / 1.095 GB, free: 3.613 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005316/0.2914, allocations: 219.8 kB / 1.095 GB, free: 3.371 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002226/0.2916, allocations: 86.61 kB / 1.095 GB, free: 3.277 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 1.917e-05/0.2917, allocations: 8 kB / 1.095 GB, free: 3.27 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000455/0.2921, allocations: 208 kB / 1.095 GB, free: 3.047 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=23): time 1.553e-06/0.2921, allocations: 0 / 1.095 GB, free: 3.047 MB / 0.8419 GB Notification: Performance of matching and sorting (n=23): time 0.0009599/0.2931, allocations: 385.1 kB / 1.095 GB, free: 2.664 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.145e-05/0.2932, allocations: 118.8 kB / 1.096 GB, free: 2.523 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002577/0.2935, allocations: 246.4 kB / 1.096 GB, free: 2.277 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 3.704e-05/0.2935, allocations: 37.7 kB / 1.096 GB, free: 2.234 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001142/0.2936, allocations: 144.5 kB / 1.096 GB, free: 2.09 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 6.455e-05/0.2937, allocations: 67.19 kB / 1.096 GB, free: 2.023 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.538e-05/0.2938, allocations: 49.69 kB / 1.096 GB, free: 1.969 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001582/0.2939, allocations: 334.8 kB / 1.096 GB, free: 1.633 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000253/0.2942, allocations: 92.69 kB / 1.097 GB, free: 1.539 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003799/0.2946, allocations: 259.2 kB / 1.097 GB, free: 1.203 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006745/0.2953, allocations: 400.5 kB / 1.097 GB, free: 0.7227 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.416e-06/0.2953, allocations: 0 / 1.097 GB, free: 0.7227 MB / 0.8419 GB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0008075/0.2961, allocations: 411 kB / 1.098 GB, free: 316 kB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 3.935e-05/0.2961, allocations: 37.69 kB / 1.098 GB, free: 272 kB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.488e-05/0.2962, allocations: 8 kB / 1.098 GB, free: 264 kB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.866e-05/0.2962, allocations: 8 kB / 1.098 GB, free: 256 kB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000232/0.2964, allocations: 67.84 kB / 1.098 GB, free: 188 kB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.681e-05/0.2964, allocations: 24.08 kB / 1.098 GB, free: 164 kB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002504/0.2967, allocations: 51.58 kB / 1.098 GB, free: 112 kB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.035e-05/0.2967, allocations: 20 kB / 1.098 GB, free: 92 kB / 0.8419 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.0001781/0.2969, allocations: 156 kB / 1.098 GB, free: 15.92 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.651e-05/0.297, allocations: 27.7 kB / 1.098 GB, free: 15.89 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.044e-05/0.297, allocations: 25.72 kB / 1.098 GB, free: 15.87 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.206e-06/0.297, allocations: 384 / 1.098 GB, free: 15.87 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.454e-05/0.2971, allocations: 7.938 kB / 1.098 GB, free: 15.86 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.123e-06/0.2971, allocations: 7.922 kB / 1.098 GB, free: 15.86 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003116/0.2974, allocations: 269.3 kB / 1.098 GB, free: 15.55 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.664e-06/0.2974, allocations: 3.938 kB / 1.098 GB, free: 15.54 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001333/0.2975, allocations: 23.98 kB / 1.098 GB, free: 15.52 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.585e-06/0.2976, allocations: 0 / 1.098 GB, free: 15.52 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.531e-05/0.2976, allocations: 15.98 kB / 1.098 GB, free: 15.5 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.084e-06/0.2976, allocations: 3.938 kB / 1.098 GB, free: 15.5 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.699e-06/0.2976, allocations: 7.938 kB / 1.098 GB, free: 15.49 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009391/0.2985, allocations: 430.2 kB / 1.099 GB, free: 15.05 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 8.453e-05/0.2986, allocations: 96.83 kB / 1.099 GB, free: 14.93 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.053e-05/0.2987, allocations: 12.03 kB / 1.099 GB, free: 14.92 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001736/0.2989, allocations: 19.98 kB / 1.099 GB, free: 14.9 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.37e-05/0.299, allocations: 27.91 kB / 1.099 GB, free: 14.88 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.382e-05/0.299, allocations: 12.08 kB / 1.099 GB, free: 14.86 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 0.0001544/0.2992, allocations: 166 kB / 1.099 GB, free: 14.7 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.5e-07/0.2992, allocations: 0 / 1.099 GB, free: 14.7 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0004042/0.2996, allocations: 91.83 kB / 1.099 GB, free: 14.61 MB / 0.8575 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.0003424/0.2999, allocations: 175.3 kB / 1.099 GB, free: 14.44 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0007131/0.3006, allocations: 311.3 kB / 1.1 GB, free: 14.12 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.345e-06/0.3007, allocations: 0 / 1.1 GB, free: 14.12 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0002888/0.301, allocations: 115.9 kB / 1.1 GB, free: 14.01 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003945/0.3014, allocations: 58.33 kB / 1.1 GB, free: 13.95 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001295/0.3027, allocations: 0.7223 MB / 1.1 GB, free: 13.19 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003536/0.303, allocations: 0.7449 MB / 1.101 GB, free: 12.42 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 0.0001451/0.3032, allocations: 46.94 kB / 1.101 GB, free: 12.38 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.857e-05/0.3032, allocations: 27.44 kB / 1.101 GB, free: 12.35 MB / 0.8575 GB Notification: Performance of SimCode: time 3.91e-07/0.3032, allocations: 0 / 1.101 GB, free: 12.35 MB / 0.8575 GB Notification: Performance of Templates: time 0.008524/0.3118, allocations: 3.732 MB / 1.105 GB, free: 8.695 MB / 0.8575 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=400 -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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.SingleUTubeBoundaryCondition.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches