Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube.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: "" <> buildModelFMU(Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube,fileNamePrefix="Buildings_latest_Buildings_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Examples_InternalResistancesTwoUTube",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube,fileNamePrefix="Buildings_latest_Buildings_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Examples_InternalResistancesTwoUTube",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.007834/0.007834, allocations: 100 kB / 15.73 MB, free: 6.469 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.002003/0.002003, allocations: 196.7 kB / 16.67 MB, free: 6.379 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.372/1.372, allocations: 222.9 MB / 240.4 MB, free: 4.344 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.671/2.671, allocations: 461.9 MB / 0.7348 GB, free: 14.68 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001401/0.001401, allocations: 59.91 kB / 1.054 GB, free: 7.621 MB / 0.8106 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2934/0.2949, allocations: 157.4 MB / 1.207 GB, free: 10.12 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube): time 0.005337/0.3002, allocations: 4.159 MB / 1.211 GB, free: 5.93 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.003051/0.3033, allocations: 2.414 MB / 1.214 GB, free: 3.504 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002873/0.3036, allocations: 8 kB / 1.214 GB, free: 3.496 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.001452/0.3051, allocations: 0.5402 MB / 1.214 GB, free: 2.953 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 0.0004843/0.3056, allocations: 246 kB / 1.215 GB, free: 2.711 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002263/0.3059, allocations: 135.9 kB / 1.215 GB, free: 2.578 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0007915/0.3067, allocations: 0.8116 MB / 1.215 GB, free: 1.766 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004355/0.3071, allocations: 334.5 kB / 1.216 GB, free: 1.438 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003265/0.3075, allocations: 294.9 kB / 1.216 GB, free: 1.148 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003278/0.3078, allocations: 326.6 kB / 1.216 GB, free: 0.8281 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 7.943e-05/0.3079, allocations: 79.98 kB / 1.216 GB, free: 0.75 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 9.548e-05/0.308, allocations: 76 kB / 1.216 GB, free: 0.6758 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 0.0001476/0.3081, allocations: 167.4 kB / 1.217 GB, free: 0.5117 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 0.0003071/0.3084, allocations: 390.2 kB / 1.217 GB, free: 132 kB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0008061/0.3093, allocations: 0.9967 MB / 1.218 GB, free: 15.13 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 6.272e-06/0.3093, allocations: 4 kB / 1.218 GB, free: 15.12 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.833e-06/0.3093, allocations: 0 / 1.218 GB, free: 15.12 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 1.043e-05/0.3093, allocations: 0 / 1.218 GB, free: 15.12 MB / 0.9825 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 122 * Number of variables: 122 Notification: Performance of Generate backend data structure: time 0.001364/0.3107, allocations: 0.9424 MB / 1.219 GB, free: 14.13 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 4.151e-05/0.3107, allocations: 8.625 kB / 1.219 GB, free: 14.12 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.964e-05/0.3108, allocations: 90.7 kB / 1.219 GB, free: 14.03 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001041/0.3109, allocations: 76 kB / 1.219 GB, free: 13.95 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006009/0.3115, allocations: 465.6 kB / 1.22 GB, free: 13.46 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.496e-05/0.3116, allocations: 33.38 kB / 1.22 GB, free: 13.43 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.908e-05/0.3116, allocations: 56.25 kB / 1.22 GB, free: 13.37 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006866/0.3123, allocations: 430.6 kB / 1.22 GB, free: 12.95 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.848e-05/0.3124, allocations: 4 kB / 1.22 GB, free: 12.94 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.774e-05/0.3124, allocations: 23.94 kB / 1.22 GB, free: 12.92 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.186e-05/0.3124, allocations: 8 kB / 1.22 GB, free: 12.91 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006808/0.3131, allocations: 371.8 kB / 1.22 GB, free: 12.55 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001978/0.3151, allocations: 1.516 MB / 1.222 GB, free: 10.96 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004849/0.3156, allocations: 337 kB / 1.222 GB, free: 10.62 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000442/0.3161, allocations: 320.7 kB / 1.223 GB, free: 10.3 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 2.514e-05/0.3161, allocations: 8.625 kB / 1.223 GB, free: 10.29 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.141e-05/0.3161, allocations: 38.5 kB / 1.223 GB, free: 10.25 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=42): time 1.803e-06/0.3161, allocations: 4 kB / 1.223 GB, free: 10.24 MB / 0.9825 GB Notification: Performance of matching and sorting (n=42): time 0.000882/0.317, allocations: 0.4936 MB / 1.223 GB, free: 9.742 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.515e-05/0.3171, allocations: 59.19 kB / 1.223 GB, free: 9.672 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005262/0.3176, allocations: 485.9 kB / 1.224 GB, free: 9.184 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 2.505e-05/0.3176, allocations: 29.7 kB / 1.224 GB, free: 9.148 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001731/0.3178, allocations: 280.3 kB / 1.224 GB, free: 8.871 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001115/0.3179, allocations: 145.8 kB / 1.224 GB, free: 8.727 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.968e-05/0.318, allocations: 62.08 kB / 1.224 GB, free: 8.656 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001278/0.3181, allocations: 358.8 kB / 1.224 GB, free: 8.297 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002414/0.3184, allocations: 128.7 kB / 1.225 GB, free: 8.172 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002429/0.3186, allocations: 125.4 kB / 1.225 GB, free: 8.051 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004768/0.3191, allocations: 290.2 kB / 1.225 GB, free: 7.766 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.655e-06/0.3191, allocations: 0 / 1.225 GB, free: 7.766 MB / 0.9825 GB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0006263/0.3198, allocations: 408.1 kB / 1.225 GB, free: 7.359 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.645e-05/0.3198, allocations: 8 kB / 1.225 GB, free: 7.352 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.68e-06/0.3198, allocations: 0 / 1.225 GB, free: 7.352 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.426e-05/0.3198, allocations: 0 / 1.225 GB, free: 7.352 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004812/0.3203, allocations: 123.9 kB / 1.225 GB, free: 7.23 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.608e-06/0.3203, allocations: 4 kB / 1.225 GB, free: 7.227 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002066/0.3205, allocations: 31.67 kB / 1.225 GB, free: 7.195 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.122e-05/0.3206, allocations: 12 kB / 1.225 GB, free: 7.184 MB / 0.9825 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 (46): * Single equations (assignments): 46 * 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.000206/0.3208, allocations: 201.8 kB / 1.226 GB, free: 6.977 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.914e-05/0.3209, allocations: 55.28 kB / 1.226 GB, free: 6.922 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001057/0.321, allocations: 61.09 kB / 1.226 GB, free: 6.863 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.272e-06/0.321, allocations: 8 kB / 1.226 GB, free: 6.855 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.061e-06/0.321, allocations: 4 kB / 1.226 GB, free: 6.852 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.622e-06/0.321, allocations: 3.984 kB / 1.226 GB, free: 6.848 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005981/0.3216, allocations: 0.5713 MB / 1.226 GB, free: 6.227 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.947e-06/0.3216, allocations: 3.938 kB / 1.226 GB, free: 6.223 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005081/0.3221, allocations: 127.9 kB / 1.226 GB, free: 6.098 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.579e-06/0.3222, allocations: 0 / 1.226 GB, free: 6.098 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.692e-05/0.3222, allocations: 11.94 kB / 1.227 GB, free: 6.086 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.475e-06/0.3222, allocations: 0 / 1.227 GB, free: 6.086 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.61e-07/0.3222, allocations: 0 / 1.227 GB, free: 6.086 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000925/0.3231, allocations: 0.6507 MB / 1.227 GB, free: 5.418 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001238/0.3233, allocations: 144.3 kB / 1.227 GB, free: 5.258 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.332e-05/0.3233, allocations: 12 kB / 1.227 GB, free: 5.246 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002071/0.3236, allocations: 11.98 kB / 1.227 GB, free: 5.234 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.942e-05/0.3236, allocations: 23.97 kB / 1.227 GB, free: 5.211 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.603e-05/0.3236, allocations: 8 kB / 1.227 GB, free: 5.203 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.0003654/0.324, allocations: 355.1 kB / 1.228 GB, free: 4.855 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.3e-07/0.324, allocations: 0 / 1.228 GB, free: 4.855 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0003822/0.3244, allocations: 139.7 kB / 1.228 GB, free: 4.719 MB / 0.9825 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (intRes2UTub.capFil1.T,intRes2UTub.capFil2.T,intRes2UTub.capFil3.T,intRes2UTub.capFil4.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 (42): * Single equations (assignments): 42 * 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.001184/0.3256, allocations: 1.215 MB / 1.229 GB, free: 3.477 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0005542/0.3262, allocations: 311.6 kB / 1.229 GB, free: 3.172 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 2.304e-06/0.3262, allocations: 4 kB / 1.229 GB, free: 3.168 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0002656/0.3264, allocations: 183.6 kB / 1.229 GB, free: 2.988 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006394/0.3271, allocations: 127.2 kB / 1.23 GB, free: 2.863 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006233/0.3333, allocations: 4.845 MB / 1.234 GB, free: 13.94 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004382/0.3338, allocations: 0.8704 MB / 1.235 GB, free: 13.04 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.0002012/0.334, allocations: 48.41 kB / 1.235 GB, free: 12.99 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002445/0.3343, allocations: 191.4 kB / 1.235 GB, free: 12.8 MB / 0.9981 GB Notification: Performance of SimCode: time 6.21e-07/0.3343, allocations: 0 / 1.235 GB, free: 12.8 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03434/0.3686, allocations: 11.63 MB / 1.247 GB, free: 1.484 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.261/8.63, allocations: 10.25 kB / 1.247 GB, free: 1.477 MB / 0.9981 GB (rm -f Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube.pipe >> ../files/Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube_res.mat --tempDir=temp_Buildings_latest_Buildings_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Examples_InternalResistancesTwoUTube_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Examples_InternalResistancesTwoUTube.fmu > Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Examples_InternalResistancesTwoUTube.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches