Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.ShaGFunction.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.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.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: "" <> buildModelFMU(Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.ShaGFunction,fileNamePrefix="Buildings_latest_Buildings_Fluid_Geothermal_Borefields_BaseClasses_HeatTransfer_ThermalResponseFactors_Validation_ShaGFunction",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.ShaGFunction,fileNamePrefix="Buildings_latest_Buildings_Fluid_Geothermal_Borefields_BaseClasses_HeatTransfer_ThermalResponseFactors_Validation_ShaGFunction",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.0009351/0.0009352, allocations: 98.19 kB / 15.36 MB, free: 0.7344 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.005823/0.005823, allocations: 168.5 kB / 16.26 MB, free: 6.652 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.278/1.278, allocations: 223.3 MB / 240.3 MB, free: 5.363 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.435/2.435, allocations: 462.6 MB / 0.7364 GB, free: 15.57 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003233/0.0003234, allocations: 19.44 kB / 0.9029 GB, free: 36.36 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2758/0.2761, allocations: 159.6 MB / 1.059 GB, free: 4.84 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.ShaGFunction): time 0.0006905/0.2768, allocations: 318.8 kB / 1.059 GB, free: 4.527 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001278/0.2781, allocations: 1.003 MB / 1.06 GB, free: 3.508 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.445e-05/0.2782, allocations: 0 / 1.06 GB, free: 3.508 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 1.583e-05/0.2782, allocations: 0 / 1.06 GB, free: 3.508 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0006596/0.2789, allocations: 83.84 kB / 1.06 GB, free: 3.426 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 3.17e-05/0.2789, allocations: 4 kB / 1.06 GB, free: 3.422 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 3.753e-05/0.279, allocations: 11.98 kB / 1.06 GB, free: 3.41 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 3.909e-05/0.279, allocations: 0 / 1.06 GB, free: 3.41 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 1.727e-05/0.279, allocations: 4 kB / 1.06 GB, free: 3.406 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002122/0.2792, allocations: 35.91 kB / 1.06 GB, free: 3.371 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 8.767e-06/0.2793, allocations: 0 / 1.06 GB, free: 3.371 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001668/0.2794, allocations: 95.83 kB / 1.06 GB, free: 3.277 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 7.443e-06/0.2795, allocations: 0 / 1.06 GB, free: 3.277 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 2.572e-05/0.2795, allocations: 25.7 kB / 1.06 GB, free: 3.246 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0001396/0.2796, allocations: 76.12 kB / 1.06 GB, free: 3.172 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.176e-06/0.2796, allocations: 3.938 kB / 1.06 GB, free: 3.168 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.503e-06/0.2797, allocations: 0 / 1.06 GB, free: 3.168 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 3.126e-06/0.2797, allocations: 0 / 1.06 GB, free: 3.168 MB / 0.8106 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.0002817/0.2799, allocations: 335.5 kB / 1.061 GB, free: 2.793 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.841e-05/0.28, allocations: 15.97 kB / 1.061 GB, free: 2.777 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.929e-05/0.28, allocations: 30.75 kB / 1.061 GB, free: 2.738 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.178e-05/0.2801, allocations: 0.9375 kB / 1.061 GB, free: 2.738 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001112/0.2802, allocations: 168.4 kB / 1.061 GB, free: 2.535 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.432e-06/0.2802, allocations: 384 / 1.061 GB, free: 2.535 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.366e-06/0.2802, allocations: 384 / 1.061 GB, free: 2.535 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 7.508e-05/0.2803, allocations: 37.58 kB / 1.061 GB, free: 2.492 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.272e-06/0.2803, allocations: 0 / 1.061 GB, free: 2.492 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.875e-06/0.2803, allocations: 4 kB / 1.061 GB, free: 2.488 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.348e-06/0.2803, allocations: 4 kB / 1.061 GB, free: 2.484 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.612e-05/0.2803, allocations: 0 / 1.061 GB, free: 2.484 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003735/0.2807, allocations: 472.6 kB / 1.061 GB, free: 1.953 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 7.467e-05/0.2808, allocations: 169.1 kB / 1.062 GB, free: 1.777 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.419e-05/0.2808, allocations: 84.08 kB / 1.062 GB, free: 1.691 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 2.099e-05/0.2809, allocations: 79.28 kB / 1.062 GB, free: 1.613 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.758e-05/0.2809, allocations: 109.8 kB / 1.062 GB, free: 1.496 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=0): time 8.02e-07/0.2809, allocations: 0 / 1.062 GB, free: 1.496 MB / 0.8106 GB Notification: Performance of matching and sorting (n=0): time 6.25e-05/0.281, allocations: 25.7 kB / 1.062 GB, free: 1.465 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.697e-05/0.281, allocations: 130.7 kB / 1.062 GB, free: 1.324 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.301e-05/0.2811, allocations: 97.84 kB / 1.062 GB, free: 1.219 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.073e-05/0.2812, allocations: 25.7 kB / 1.062 GB, free: 1.188 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 3.585e-05/0.2812, allocations: 96.05 kB / 1.062 GB, free: 1.09 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 2.535e-06/0.2812, allocations: 0 / 1.062 GB, free: 1.09 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.119e-05/0.2812, allocations: 9.719 kB / 1.062 GB, free: 1.074 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 9.973e-05/0.2813, allocations: 314.8 kB / 1.063 GB, free: 0.7578 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.785e-06/0.2813, allocations: 7.875 kB / 1.063 GB, free: 0.75 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.903e-06/0.2814, allocations: 4 kB / 1.063 GB, free: 0.7461 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.245e-05/0.2814, allocations: 4.859 kB / 1.063 GB, free: 0.7383 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.433e-06/0.2814, allocations: 4.062 kB / 1.063 GB, free: 0.7344 MB / 0.8106 GB Notification: Performance of matching and sorting (n=1) (initialization): time 9.191e-05/0.2815, allocations: 37.69 kB / 1.063 GB, free: 0.6914 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.377e-05/0.2815, allocations: 5.562 kB / 1.063 GB, free: 0.6875 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.158e-06/0.2815, allocations: 0 / 1.063 GB, free: 0.6875 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.016e-05/0.2815, allocations: 0 / 1.063 GB, free: 0.6875 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.538e-05/0.2816, allocations: 0 / 1.063 GB, free: 0.6875 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.498e-06/0.2816, allocations: 0 / 1.063 GB, free: 0.6875 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.632e-05/0.2816, allocations: 8 kB / 1.063 GB, free: 0.6797 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.739e-06/0.2816, allocations: 3.938 kB / 1.063 GB, free: 0.6758 MB / 0.8106 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (cmp) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1): * Single equations (assignments): 1 * 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 8.856e-05/0.2817, allocations: 189.1 kB / 1.063 GB, free: 492 kB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.263e-05/0.2818, allocations: 109.1 kB / 1.063 GB, free: 376 kB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.681e-05/0.2818, allocations: 112.1 kB / 1.063 GB, free: 260 kB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.014e-05/0.2819, allocations: 180.2 kB / 1.063 GB, free: 72 kB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.114e-05/0.2819, allocations: 176.4 kB / 1.063 GB, free: 15.89 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.197e-05/0.282, allocations: 192.2 kB / 1.064 GB, free: 15.7 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002132/0.2822, allocations: 405.2 kB / 1.064 GB, free: 15.24 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.007e-05/0.2823, allocations: 101 kB / 1.064 GB, free: 15.14 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.924e-05/0.2823, allocations: 108.9 kB / 1.064 GB, free: 15.02 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.305e-05/0.2824, allocations: 184.2 kB / 1.064 GB, free: 14.84 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.036e-05/0.2824, allocations: 180.2 kB / 1.064 GB, free: 14.65 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.988e-05/0.2825, allocations: 180.3 kB / 1.065 GB, free: 14.47 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.904e-05/0.2826, allocations: 180.3 kB / 1.065 GB, free: 14.29 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001244/0.2827, allocations: 311.7 kB / 1.065 GB, free: 13.96 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 7.304e-05/0.2828, allocations: 186 kB / 1.065 GB, free: 13.75 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.523e-05/0.2828, allocations: 176.3 kB / 1.065 GB, free: 13.57 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.522e-05/0.2829, allocations: 105 kB / 1.066 GB, free: 13.46 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.535e-05/0.283, allocations: 192.2 kB / 1.066 GB, free: 13.27 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.037e-05/0.283, allocations: 101 kB / 1.066 GB, free: 13.16 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 4.423e-05/0.2831, allocations: 79.28 kB / 1.066 GB, free: 13.08 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.2e-07/0.2831, allocations: 0 / 1.066 GB, free: 13.08 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002426/0.2833, allocations: 23.98 kB / 1.066 GB, free: 13.06 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 (0): * Single equations (assignments): 0 * 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.0005887/0.2839, allocations: 0.87 MB / 1.067 GB, free: 12.17 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 5.402e-05/0.284, allocations: 8 kB / 1.067 GB, free: 12.16 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 1.853e-06/0.284, allocations: 0 / 1.067 GB, free: 12.16 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 1.709e-05/0.284, allocations: 4 kB / 1.067 GB, free: 12.16 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003569/0.2844, allocations: 0.52 MB / 1.067 GB, free: 11.63 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004719/0.2849, allocations: 247.5 kB / 1.068 GB, free: 11.35 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002265/0.2851, allocations: 0.6692 MB / 1.068 GB, free: 10.65 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 2.246e-05/0.2851, allocations: 0 / 1.068 GB, free: 10.65 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.018e-05/0.2852, allocations: 13.16 kB / 1.068 GB, free: 10.64 MB / 0.8262 GB Notification: Performance of SimCode: time 3.21e-07/0.2852, allocations: 0 / 1.068 GB, free: 10.64 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.199/1.484, allocations: 1.338 MB / 1.069 GB, free: 9.535 MB / 0.8262 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002762/1.485, allocations: 327.6 kB / 1.07 GB, free: 9.156 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.944/4.428, allocations: 0 / 1.07 GB, free: 9.156 MB / 0.8262 GB (rm -f Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.ShaGFunction.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.ShaGFunction.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.ShaGFunction.pipe >> ../files/Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.ShaGFunction.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.ShaGFunction_res.mat --tempDir=temp_Buildings_latest_Buildings_Fluid_Geothermal_Borefields_BaseClasses_HeatTransfer_ThermalResponseFactors_Validation_ShaGFunction_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Fluid_Geothermal_Borefields_BaseClasses_HeatTransfer_ThermalResponseFactors_Validation_ShaGFunction.fmu > Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.ShaGFunction.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.ShaGFunction_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_Geothermal_Borefields_BaseClasses_HeatTransfer_ThermalResponseFactors_Validation_ShaGFunction.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.ShaGFunction.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches