Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.ExchangeValues.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.Boreholes.BaseClasses.Examples.ExchangeValues,fileNamePrefix="Buildings_latest_Buildings_Fluid_Geothermal_Boreholes_BaseClasses_Examples_ExchangeValues",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.ExchangeValues,fileNamePrefix="Buildings_latest_Buildings_Fluid_Geothermal_Boreholes_BaseClasses_Examples_ExchangeValues",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.001408/0.001408, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001526/0.001526, allocations: 198.8 kB / 16.53 MB, free: 6.391 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.456/1.456, allocations: 222.9 MB / 240.2 MB, free: 4.406 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.861/2.861, allocations: 469.4 MB / 0.742 GB, free: 7.664 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.002215/0.002215, allocations: 63.05 kB / 0.9083 GB, free: 34.43 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3336/0.3359, allocations: 159.1 MB / 1.064 GB, free: 14.43 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.ExchangeValues): time 0.00198/0.3379, allocations: 0.5452 MB / 1.064 GB, free: 13.88 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.0002527/0.3382, allocations: 115.6 kB / 1.064 GB, free: 13.77 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.361e-05/0.3382, allocations: 0 / 1.064 GB, free: 13.77 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 9.813e-05/0.3383, allocations: 8 kB / 1.064 GB, free: 13.76 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 5.066e-05/0.3384, allocations: 0 / 1.064 GB, free: 13.76 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001594/0.3386, allocations: 39.89 kB / 1.064 GB, free: 13.72 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 8.656e-05/0.3387, allocations: 27.97 kB / 1.064 GB, free: 13.69 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 4.847e-05/0.3387, allocations: 0 / 1.064 GB, free: 13.69 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 3.037e-05/0.3388, allocations: 16 kB / 1.064 GB, free: 13.68 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 4.512e-05/0.3388, allocations: 7.984 kB / 1.064 GB, free: 13.67 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 2.025e-05/0.3388, allocations: 0 / 1.064 GB, free: 13.67 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 5.322e-05/0.3389, allocations: 15.98 kB / 1.064 GB, free: 13.65 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 1.111e-05/0.3389, allocations: 0 / 1.064 GB, free: 13.65 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 3.51e-05/0.339, allocations: 11.92 kB / 1.064 GB, free: 13.64 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.000106/0.3391, allocations: 35.95 kB / 1.064 GB, free: 13.61 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 4.469e-06/0.3391, allocations: 7.938 kB / 1.064 GB, free: 13.6 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.413e-06/0.3391, allocations: 0 / 1.064 GB, free: 13.6 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 4.749e-06/0.3391, allocations: 0 / 1.064 GB, free: 13.6 MB / 0.8262 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.0003387/0.3394, allocations: 357.2 kB / 1.065 GB, free: 13.19 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.69e-05/0.3395, allocations: 8.031 kB / 1.065 GB, free: 13.18 MB / 0.8262 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.436e-05/0.3395, allocations: 38.75 kB / 1.065 GB, free: 13.14 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.547e-05/0.3396, allocations: 4.938 kB / 1.065 GB, free: 13.13 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001283/0.3397, allocations: 160.4 kB / 1.065 GB, free: 12.94 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.117e-06/0.3397, allocations: 4.312 kB / 1.065 GB, free: 12.93 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.571e-05/0.3397, allocations: 8.375 kB / 1.065 GB, free: 12.93 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001247/0.3399, allocations: 58.22 kB / 1.065 GB, free: 12.86 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.927e-06/0.3399, allocations: 3.938 kB / 1.065 GB, free: 12.86 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.077e-05/0.3399, allocations: 0 / 1.065 GB, free: 12.86 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.947e-06/0.3399, allocations: 0 / 1.065 GB, free: 12.86 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.599e-05/0.34, allocations: 19.92 kB / 1.065 GB, free: 12.84 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001376/0.3401, allocations: 149.7 kB / 1.065 GB, free: 12.64 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 6.125e-05/0.3402, allocations: 26.61 kB / 1.065 GB, free: 12.61 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.726e-05/0.3402, allocations: 24.91 kB / 1.065 GB, free: 12.58 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 5.28e-06/0.3402, allocations: 4 kB / 1.065 GB, free: 12.58 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.148e-05/0.3403, allocations: 30.56 kB / 1.065 GB, free: 12.54 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=1): time 1.203e-06/0.3403, allocations: 0 / 1.065 GB, free: 12.54 MB / 0.8262 GB Notification: Performance of matching and sorting (n=1): time 0.0002404/0.3405, allocations: 107.2 kB / 1.065 GB, free: 12.42 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.824e-05/0.3406, allocations: 85.11 kB / 1.066 GB, free: 12.32 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.584e-05/0.3406, allocations: 98.06 kB / 1.066 GB, free: 12.21 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 1.552e-05/0.3407, allocations: 29.73 kB / 1.066 GB, free: 12.18 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 3.128e-05/0.3407, allocations: 80.14 kB / 1.066 GB, free: 12.1 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 2.748e-05/0.3407, allocations: 7.906 kB / 1.066 GB, free: 12.09 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.303e-05/0.3408, allocations: 21.72 kB / 1.066 GB, free: 12.06 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001049/0.3409, allocations: 314.8 kB / 1.066 GB, free: 11.75 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.231e-05/0.3409, allocations: 12 kB / 1.066 GB, free: 11.73 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.003e-05/0.341, allocations: 11.98 kB / 1.066 GB, free: 11.72 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.562e-05/0.3411, allocations: 80.33 kB / 1.066 GB, free: 11.63 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.743e-06/0.3411, allocations: 0 / 1.066 GB, free: 11.63 MB / 0.8262 GB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001513/0.3412, allocations: 99.31 kB / 1.066 GB, free: 11.52 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 3.541e-05/0.3413, allocations: 37.64 kB / 1.066 GB, free: 11.48 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.579e-06/0.3413, allocations: 0 / 1.066 GB, free: 11.48 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.545e-05/0.3413, allocations: 0 / 1.066 GB, free: 11.48 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.62e-07/0.3413, allocations: 0 / 1.066 GB, free: 11.48 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.035e-06/0.3413, allocations: 7.969 kB / 1.066 GB, free: 11.47 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001502/0.3415, allocations: 4.281 kB / 1.066 GB, free: 11.46 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.317e-05/0.3415, allocations: 4.031 kB / 1.066 GB, free: 11.46 MB / 0.8262 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 (1): * Single equations (assignments): 0 * 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 8.995e-05/0.3416, allocations: 156 kB / 1.066 GB, free: 11.29 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.566e-05/0.3416, allocations: 3.938 kB / 1.066 GB, free: 11.29 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.133e-05/0.3416, allocations: 11.11 kB / 1.066 GB, free: 11.28 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.713e-06/0.3416, allocations: 3.938 kB / 1.066 GB, free: 11.28 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.537e-06/0.3416, allocations: 3.938 kB / 1.066 GB, free: 11.27 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.324e-06/0.3416, allocations: 0 / 1.066 GB, free: 11.27 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.784e-05/0.3417, allocations: 149.7 kB / 1.067 GB, free: 11.08 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.021e-06/0.3417, allocations: 0 / 1.067 GB, free: 11.08 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.31e-07/0.3417, allocations: 0 / 1.067 GB, free: 11.08 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.314e-06/0.3418, allocations: 7.938 kB / 1.067 GB, free: 11.07 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.76e-05/0.3418, allocations: 11.98 kB / 1.067 GB, free: 11.06 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.134e-06/0.3418, allocations: 4 kB / 1.067 GB, free: 11.05 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.21e-07/0.3418, allocations: 0 / 1.067 GB, free: 11.05 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001523/0.3419, allocations: 122.8 kB / 1.067 GB, free: 10.91 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 3.23e-05/0.342, allocations: 85.02 kB / 1.067 GB, free: 10.81 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.001e-05/0.342, allocations: 7.938 kB / 1.067 GB, free: 10.8 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001086/0.3421, allocations: 8.031 kB / 1.067 GB, free: 10.79 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.761e-05/0.3421, allocations: 0 / 1.067 GB, free: 10.79 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.018e-05/0.3422, allocations: 7.984 kB / 1.067 GB, free: 10.79 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 3.264e-05/0.3422, allocations: 75.28 kB / 1.067 GB, free: 10.71 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.01e-07/0.3422, allocations: 0 / 1.067 GB, free: 10.71 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0001969/0.3424, allocations: 12 kB / 1.067 GB, free: 10.7 MB / 0.8262 GB Notification: Model statistics after passing the back-end for simulation: * 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 simulation (1): * Single equations (assignments): 0 * 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 Backend phase and start with SimCode phase: time 0.000513/0.3429, allocations: 0.6779 MB / 1.068 GB, free: 9.988 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0001466/0.3431, allocations: 87.38 kB / 1.068 GB, free: 9.891 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.595e-06/0.3431, allocations: 0 / 1.068 GB, free: 9.891 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 5.931e-05/0.3432, allocations: 67.48 kB / 1.068 GB, free: 9.812 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001491/0.3433, allocations: 16.06 kB / 1.068 GB, free: 9.797 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004098/0.3437, allocations: 130.7 kB / 1.068 GB, free: 9.629 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002173/0.344, allocations: 0.6729 MB / 1.069 GB, free: 8.93 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 8.978e-05/0.3441, allocations: 7.984 kB / 1.069 GB, free: 8.922 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.597e-05/0.3441, allocations: 11.38 kB / 1.069 GB, free: 8.91 MB / 0.8262 GB Notification: Performance of SimCode: time 2.41e-07/0.3441, allocations: 0 / 1.069 GB, free: 8.91 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01693/0.361, allocations: 1.857 MB / 1.07 GB, free: 7.18 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.63/7.991, allocations: 18.05 kB / 1.07 GB, free: 7.168 MB / 0.8262 GB (rm -f Buildings_latest_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.ExchangeValues.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.ExchangeValues.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.ExchangeValues.pipe >> ../files/Buildings_latest_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.ExchangeValues.sim & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.ExchangeValues_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Buildings_latest_Buildings_Fluid_Geothermal_Boreholes_BaseClasses_Examples_ExchangeValues.fmu > Buildings_latest_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.ExchangeValues.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.ExchangeValues_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_Geothermal_Boreholes_BaseClasses_Examples_ExchangeValues.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.ExchangeValues.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches