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.1.0-master/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.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: "" <> 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.008431/0.008432, allocations: 96.53 kB / 15.73 MB, free: 6.043 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.002402/0.002402, allocations: 196.6 kB / 16.67 MB, free: 5.969 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.32/1.32, allocations: 222.9 MB / 240.4 MB, free: 4.305 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-master/package.mo): time 2.678/2.678, allocations: 469.4 MB / 0.7421 GB, free: 7.535 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.00141/0.00141, allocations: 63.89 kB / 1.064 GB, free: 13.84 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3111/0.3125, allocations: 159.1 MB / 1.22 GB, free: 14.6 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.ExchangeValues): time 0.001766/0.3143, allocations: 0.5594 MB / 1.22 GB, free: 14.04 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.0002436/0.3146, allocations: 117.5 kB / 1.22 GB, free: 13.93 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.532e-05/0.3146, allocations: 0 / 1.22 GB, free: 13.93 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 0.0001039/0.3148, allocations: 11.94 kB / 1.22 GB, free: 13.91 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 4.75e-05/0.3148, allocations: 0 / 1.22 GB, free: 13.91 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001572/0.315, allocations: 31.97 kB / 1.22 GB, free: 13.88 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 8.433e-05/0.3151, allocations: 31.91 kB / 1.22 GB, free: 13.85 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 3.668e-05/0.3151, allocations: 0 / 1.22 GB, free: 13.85 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 2.752e-05/0.3151, allocations: 15.98 kB / 1.22 GB, free: 13.84 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 6.015e-05/0.3152, allocations: 19.97 kB / 1.221 GB, free: 13.82 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 1.978e-05/0.3152, allocations: 4 kB / 1.221 GB, free: 13.81 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 4.095e-05/0.3153, allocations: 4 kB / 1.221 GB, free: 13.81 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 1.071e-05/0.3153, allocations: 4 kB / 1.221 GB, free: 13.8 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 3.762e-05/0.3153, allocations: 19.92 kB / 1.221 GB, free: 13.79 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 9.888e-05/0.3154, allocations: 23.97 kB / 1.221 GB, free: 13.76 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 4.318e-06/0.3155, allocations: 0 / 1.221 GB, free: 13.76 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.302e-06/0.3155, allocations: 0 / 1.221 GB, free: 13.76 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 4.438e-06/0.3155, allocations: 0 / 1.221 GB, free: 13.76 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: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.0003612/0.3158, allocations: 365.2 kB / 1.221 GB, free: 13.35 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 4.026e-05/0.3159, allocations: 8.031 kB / 1.221 GB, free: 13.34 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.506e-05/0.3159, allocations: 34.75 kB / 1.221 GB, free: 13.3 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.13e-05/0.316, allocations: 0.9375 kB / 1.221 GB, free: 13.3 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001413/0.3161, allocations: 164.4 kB / 1.221 GB, free: 13.1 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.4e-05/0.3161, allocations: 384 / 1.221 GB, free: 13.1 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.438e-05/0.3161, allocations: 8.312 kB / 1.221 GB, free: 13.09 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001163/0.3163, allocations: 58.16 kB / 1.221 GB, free: 13.03 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.008e-05/0.3163, allocations: 3.938 kB / 1.221 GB, free: 13.02 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.216e-05/0.3163, allocations: 4 kB / 1.221 GB, free: 13.02 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.061e-06/0.3163, allocations: 7.984 kB / 1.221 GB, free: 13.01 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.875e-05/0.3164, allocations: 12 kB / 1.221 GB, free: 13 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001399/0.3165, allocations: 153.7 kB / 1.221 GB, free: 12.8 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 5.808e-05/0.3166, allocations: 26.56 kB / 1.221 GB, free: 12.77 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.326e-05/0.3166, allocations: 20.91 kB / 1.221 GB, free: 12.74 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 6.563e-06/0.3166, allocations: 0 / 1.221 GB, free: 12.74 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.694e-05/0.3167, allocations: 42.5 kB / 1.221 GB, free: 12.69 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=1): time 9.92e-07/0.3167, allocations: 0 / 1.221 GB, free: 12.69 MB / 0.9825 GB Notification: Performance of matching and sorting (n=1): time 0.0002413/0.3169, allocations: 111.2 kB / 1.222 GB, free: 12.57 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.741e-05/0.317, allocations: 81.11 kB / 1.222 GB, free: 12.47 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.62e-05/0.3171, allocations: 93.84 kB / 1.222 GB, free: 12.37 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 1.724e-05/0.3171, allocations: 29.7 kB / 1.222 GB, free: 12.34 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 3.814e-05/0.3171, allocations: 80.14 kB / 1.222 GB, free: 12.25 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 2.524e-05/0.3171, allocations: 7.891 kB / 1.222 GB, free: 12.25 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.936e-05/0.3172, allocations: 25.97 kB / 1.222 GB, free: 12.21 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.000101/0.3173, allocations: 314.8 kB / 1.222 GB, free: 11.9 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.264e-05/0.3173, allocations: 11.98 kB / 1.222 GB, free: 11.89 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.762e-05/0.3174, allocations: 11.94 kB / 1.222 GB, free: 11.88 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.833e-05/0.3175, allocations: 84.25 kB / 1.222 GB, free: 11.78 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.996e-06/0.3175, allocations: 4 kB / 1.222 GB, free: 11.77 MB / 0.9825 GB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001326/0.3176, allocations: 95.38 kB / 1.222 GB, free: 11.67 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 3.379e-05/0.3177, allocations: 37.73 kB / 1.222 GB, free: 11.62 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.438e-06/0.3177, allocations: 4 kB / 1.222 GB, free: 11.62 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.206e-05/0.3177, allocations: 0 / 1.222 GB, free: 11.62 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.01e-07/0.3177, allocations: 0 / 1.222 GB, free: 11.62 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.05e-06/0.3177, allocations: 0 / 1.222 GB, free: 11.62 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001391/0.3178, allocations: 7.984 kB / 1.222 GB, free: 11.61 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.44e-05/0.3179, allocations: 8 kB / 1.222 GB, free: 11.61 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 (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 9.371e-05/0.318, allocations: 135.5 kB / 1.223 GB, free: 11.46 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.852e-05/0.318, allocations: 7.938 kB / 1.223 GB, free: 11.45 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.19e-05/0.318, allocations: 11.11 kB / 1.223 GB, free: 11.44 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.198e-06/0.318, allocations: 0 / 1.223 GB, free: 11.44 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.12e-06/0.318, allocations: 11.88 kB / 1.223 GB, free: 11.43 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.585e-06/0.318, allocations: 0 / 1.223 GB, free: 11.43 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001028/0.3181, allocations: 149.7 kB / 1.223 GB, free: 11.23 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.292e-06/0.3181, allocations: 4 kB / 1.223 GB, free: 11.23 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.21e-07/0.3181, allocations: 0 / 1.223 GB, free: 11.23 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.126e-06/0.3182, allocations: 3.938 kB / 1.223 GB, free: 11.23 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.085e-05/0.3182, allocations: 4 kB / 1.223 GB, free: 11.22 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.062e-06/0.3182, allocations: 0 / 1.223 GB, free: 11.22 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.02e-07/0.3182, allocations: 0 / 1.223 GB, free: 11.22 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001564/0.3183, allocations: 122.8 kB / 1.223 GB, free: 11.08 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 3.741e-05/0.3184, allocations: 85.09 kB / 1.223 GB, free: 10.98 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.775e-05/0.3184, allocations: 3.938 kB / 1.223 GB, free: 10.97 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001014/0.3185, allocations: 4 kB / 1.223 GB, free: 10.97 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.997e-05/0.3185, allocations: 4 kB / 1.223 GB, free: 10.96 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.525e-06/0.3186, allocations: 4 kB / 1.223 GB, free: 10.96 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 3.705e-05/0.3186, allocations: 83.3 kB / 1.223 GB, free: 10.88 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.3e-07/0.3186, allocations: 0 / 1.223 GB, free: 10.88 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0001973/0.3188, allocations: 16 kB / 1.223 GB, free: 10.86 MB / 0.9825 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.0005271/0.3193, allocations: 0.6888 MB / 1.224 GB, free: 10.14 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0001502/0.3195, allocations: 83.38 kB / 1.224 GB, free: 10.05 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 2.335e-06/0.3195, allocations: 0 / 1.224 GB, free: 10.05 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 6.409e-05/0.3196, allocations: 71.39 kB / 1.224 GB, free: 9.965 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001385/0.3197, allocations: 10 kB / 1.224 GB, free: 9.957 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004081/0.3201, allocations: 142.5 kB / 1.224 GB, free: 9.777 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002628/0.3204, allocations: 0.6768 MB / 1.225 GB, free: 9.074 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 8.91e-05/0.3205, allocations: 4 kB / 1.225 GB, free: 9.07 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.843e-05/0.3205, allocations: 7.438 kB / 1.225 GB, free: 9.062 MB / 0.9825 GB Notification: Performance of SimCode: time 2e-07/0.3205, allocations: 0 / 1.225 GB, free: 9.062 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02091/0.3415, allocations: 1.874 MB / 1.226 GB, free: 7.328 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.279/7.621, allocations: 22.31 kB / 1.227 GB, free: 7.312 MB / 0.9825 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