Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesOneUTube.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 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesOneUTube,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|TWal.T|TPip1.T|TPip2.T|intRes1UTub.capFil1.T|intRes1UTub.capFil2.T",fileNamePrefix="Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesOneUTube") translateModel(Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesOneUTube,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|TWal.T|TPip1.T|TPip2.T|intRes1UTub.capFil1.T|intRes1UTub.capFil2.T",fileNamePrefix="Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesOneUTube") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.007247/0.007247, allocations: 104.8 kB / 15.74 MB, free: 5.996 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.001664/0.001664, allocations: 200 kB / 16.68 MB, free: 5.922 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.342/1.342, allocations: 222.9 MB / 240.3 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.515/2.515, allocations: 461.9 MB / 0.7348 GB, free: 11.1 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001158/0.001158, allocations: 67.84 kB / 1.054 GB, free: 7.664 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6838/0.6849, allocations: 157.4 MB / 1.208 GB, free: 13.64 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesOneUTube): time 0.003904/0.6889, allocations: 3.059 MB / 1.211 GB, free: 10.57 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.002448/0.6913, allocations: 2.14 MB / 1.213 GB, free: 8.422 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001313/0.6915, allocations: 8 kB / 1.213 GB, free: 8.414 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 0.001203/0.6927, allocations: 0.4917 MB / 1.213 GB, free: 7.922 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 0.0002405/0.6929, allocations: 154.8 kB / 1.213 GB, free: 7.77 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001086/0.6931, allocations: 55.94 kB / 1.214 GB, free: 7.715 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.0004424/0.6935, allocations: 449.8 kB / 1.214 GB, free: 7.273 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002288/0.6937, allocations: 155.2 kB / 1.214 GB, free: 7.117 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001737/0.6939, allocations: 147.4 kB / 1.214 GB, free: 6.973 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002101/0.6941, allocations: 187.1 kB / 1.214 GB, free: 6.789 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 4.879e-05/0.6942, allocations: 36 kB / 1.214 GB, free: 6.754 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 6.468e-05/0.6943, allocations: 32 kB / 1.214 GB, free: 6.723 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 9.992e-05/0.6944, allocations: 99.67 kB / 1.215 GB, free: 6.625 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 0.0001914/0.6946, allocations: 218.9 kB / 1.215 GB, free: 6.41 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0004678/0.695, allocations: 0.5489 MB / 1.215 GB, free: 5.859 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 3.797e-06/0.6951, allocations: 0 / 1.215 GB, free: 5.859 MB / 0.9356 GB Notification: Performance of FrontEnd: time 1.132e-06/0.6951, allocations: 0 / 1.215 GB, free: 5.859 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 9.147e-06/0.6951, allocations: 0 / 1.215 GB, free: 5.859 MB / 0.9356 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 52 * Number of variables: 52 Notification: Performance of Generate backend data structure: time 0.0009567/0.696, allocations: 0.7006 MB / 1.216 GB, free: 5.109 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 3.245e-05/0.6961, allocations: 8.031 kB / 1.216 GB, free: 5.102 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.722e-05/0.6961, allocations: 44.38 kB / 1.216 GB, free: 5.059 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004955/0.6966, allocations: 374.1 kB / 1.216 GB, free: 4.652 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.696e-05/0.6967, allocations: 16.81 kB / 1.216 GB, free: 4.637 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.065e-05/0.6967, allocations: 24.38 kB / 1.216 GB, free: 4.613 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000397/0.6971, allocations: 211.5 kB / 1.217 GB, free: 4.402 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.342e-05/0.6971, allocations: 0 / 1.217 GB, free: 4.402 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.02e-05/0.6972, allocations: 11.94 kB / 1.217 GB, free: 4.391 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.985e-06/0.6972, allocations: 8 kB / 1.217 GB, free: 4.383 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003789/0.6976, allocations: 165.6 kB / 1.217 GB, free: 4.223 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001114/0.6987, allocations: 0.8622 MB / 1.218 GB, free: 3.285 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003017/0.699, allocations: 153.4 kB / 1.218 GB, free: 3.129 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000216/0.6992, allocations: 114.4 kB / 1.218 GB, free: 3.016 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 1.733e-05/0.6993, allocations: 4 kB / 1.218 GB, free: 3.012 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.566e-05/0.6993, allocations: 34.56 kB / 1.218 GB, free: 2.969 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=18): time 1.352e-06/0.6993, allocations: 0 / 1.218 GB, free: 2.969 MB / 0.9356 GB Notification: Performance of matching and sorting (n=18): time 0.000573/0.6999, allocations: 261.2 kB / 1.218 GB, free: 2.707 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.121e-05/0.6999, allocations: 55.41 kB / 1.218 GB, free: 2.641 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004219/0.7003, allocations: 413.7 kB / 1.219 GB, free: 2.23 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 2.14e-05/0.7004, allocations: 33.7 kB / 1.219 GB, free: 2.191 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001263/0.7005, allocations: 212.2 kB / 1.219 GB, free: 1.98 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 5.445e-05/0.7006, allocations: 67.08 kB / 1.219 GB, free: 1.914 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.042e-05/0.7006, allocations: 25.72 kB / 1.219 GB, free: 1.883 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001278/0.7008, allocations: 346.8 kB / 1.219 GB, free: 1.535 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001466/0.7009, allocations: 59.97 kB / 1.219 GB, free: 1.477 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001351/0.7011, allocations: 53.34 kB / 1.219 GB, free: 1.426 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002914/0.7014, allocations: 139.2 kB / 1.22 GB, free: 1.289 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.713e-06/0.7014, allocations: 0 / 1.22 GB, free: 1.289 MB / 0.9356 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003738/0.7017, allocations: 213.1 kB / 1.22 GB, free: 1.074 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 1.423e-05/0.7018, allocations: 6.188 kB / 1.22 GB, free: 1.07 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.908e-06/0.7018, allocations: 0 / 1.22 GB, free: 1.07 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.291e-05/0.7018, allocations: 7.938 kB / 1.22 GB, free: 1.062 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002434/0.702, allocations: 55.95 kB / 1.22 GB, free: 1.008 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.4e-06/0.7021, allocations: 4 kB / 1.22 GB, free: 1.004 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001361/0.7022, allocations: 15.84 kB / 1.22 GB, free: 0.9883 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.167e-05/0.7022, allocations: 4 kB / 1.22 GB, free: 0.9844 MB / 0.9356 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (20): * Single equations (assignments): 20 * Array equations: 0 * Algorithm blocks: 0 * 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.0001432/0.7024, allocations: 165.8 kB / 1.22 GB, free: 0.8125 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.745e-05/0.7025, allocations: 39.53 kB / 1.22 GB, free: 0.7734 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.793e-05/0.7026, allocations: 43.53 kB / 1.22 GB, free: 0.7266 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.226e-06/0.7026, allocations: 0 / 1.22 GB, free: 0.7266 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.127e-06/0.7026, allocations: 0 / 1.22 GB, free: 0.7266 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.22e-06/0.7026, allocations: 7.984 kB / 1.22 GB, free: 0.7188 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003948/0.703, allocations: 373.3 kB / 1.22 GB, free: 312 kB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.332e-06/0.703, allocations: 0 / 1.22 GB, free: 312 kB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002605/0.7033, allocations: 59.91 kB / 1.221 GB, free: 252 kB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.969e-06/0.7033, allocations: 3.984 kB / 1.221 GB, free: 248 kB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.421e-05/0.7033, allocations: 3.938 kB / 1.221 GB, free: 244 kB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.683e-06/0.7033, allocations: 4 kB / 1.221 GB, free: 240 kB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/0.7033, allocations: 0 / 1.221 GB, free: 240 kB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005879/0.7039, allocations: 374.9 kB / 1.221 GB, free: 15.85 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 9.816e-05/0.704, allocations: 116.7 kB / 1.221 GB, free: 15.72 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.311e-05/0.7041, allocations: 11.92 kB / 1.221 GB, free: 15.71 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001679/0.7043, allocations: 11.98 kB / 1.221 GB, free: 15.7 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.221e-05/0.7043, allocations: 7.984 kB / 1.221 GB, free: 15.69 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.153e-05/0.7043, allocations: 8 kB / 1.221 GB, free: 15.68 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 0.0003131/0.7046, allocations: 307.2 kB / 1.221 GB, free: 15.38 MB / 0.9512 GB Notification: Performance of sort global known variables: time 1.7e-07/0.7046, allocations: 3.938 kB / 1.221 GB, free: 15.38 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.0003088/0.705, allocations: 71.84 kB / 1.221 GB, free: 15.31 MB / 0.9512 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (intRes1UTub.capFil1.T,intRes1UTub.capFil2.T) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (18): * Single equations (assignments): 18 * Array equations: 0 * Algorithm blocks: 0 * 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 Backend phase and start with SimCode phase: time 0.0001153/0.7051, allocations: 107.2 kB / 1.222 GB, free: 15.2 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.0003704/0.7055, allocations: 154 kB / 1.222 GB, free: 15.05 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 1.703e-06/0.7055, allocations: 0 / 1.222 GB, free: 15.05 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 0.0001665/0.7056, allocations: 81.62 kB / 1.222 GB, free: 14.97 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005166/0.7062, allocations: 77.52 kB / 1.222 GB, free: 14.89 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001192/0.7074, allocations: 0.7612 MB / 1.223 GB, free: 14.11 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003462/0.7077, allocations: 0.7951 MB / 1.223 GB, free: 13.29 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 0.0001124/0.7079, allocations: 34.97 kB / 1.223 GB, free: 13.25 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.754e-05/0.7079, allocations: 23.44 kB / 1.223 GB, free: 13.23 MB / 0.9512 GB Notification: Performance of SimCode: time 2.6e-07/0.7079, allocations: 0 / 1.223 GB, free: 13.23 MB / 0.9512 GB Notification: Performance of Templates: time 0.007675/0.7156, allocations: 4.099 MB / 1.227 GB, free: 9.242 MB / 0.9512 GB make -j1 -f Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesOneUTube.makefile (rm -f Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesOneUTube.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesOneUTube.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesOneUTube.pipe >> ../files/Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesOneUTube.sim & ./Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesOneUTube -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesOneUTube.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesOneUTube_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Examples_InternalResistancesOneUTube.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesOneUTube.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches