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: translateModel(Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.ShaGFunction,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|cmp",fileNamePrefix="Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.ShaGFunction") translateModel(Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.ShaGFunction,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|cmp",fileNamePrefix="Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.ShaGFunction") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009374/0.0009375, allocations: 100.2 kB / 15.05 MB, free: 1.105 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.001043/0.001043, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.327/1.327, allocations: 223.2 MB / 239.9 MB, free: 5.438 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.55/2.55, allocations: 436.5 MB / 0.7104 GB, free: 7.805 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003228/0.0003229, allocations: 11.94 kB / 0.8708 GB, free: 4.719 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5837/0.584, allocations: 153.6 MB / 1.021 GB, free: 1.074 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.ShaGFunction): time 0.0006515/0.5847, allocations: 296.6 kB / 1.021 GB, free: 0.7852 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.001042/0.5858, allocations: 0.9449 MB / 1.022 GB, free: 15.82 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.659e-05/0.5858, allocations: 4 kB / 1.022 GB, free: 15.82 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 9.999e-06/0.5858, allocations: 0 / 1.022 GB, free: 15.82 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0005754/0.5864, allocations: 87.77 kB / 1.022 GB, free: 15.73 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 2.741e-05/0.5864, allocations: 8 kB / 1.022 GB, free: 15.73 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 3.136e-05/0.5865, allocations: 0 / 1.022 GB, free: 15.73 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 4.031e-05/0.5865, allocations: 3.984 kB / 1.022 GB, free: 15.72 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 1.69e-05/0.5865, allocations: 4 kB / 1.022 GB, free: 15.72 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001326/0.5867, allocations: 31.97 kB / 1.022 GB, free: 15.69 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 7.604e-06/0.5867, allocations: 3.938 kB / 1.022 GB, free: 15.68 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001052/0.5868, allocations: 59.89 kB / 1.022 GB, free: 15.62 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 8.315e-06/0.5868, allocations: 7.984 kB / 1.022 GB, free: 15.62 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 1.854e-05/0.5868, allocations: 25.7 kB / 1.022 GB, free: 15.59 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0001012/0.587, allocations: 51.94 kB / 1.022 GB, free: 15.54 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 1.964e-06/0.587, allocations: 0 / 1.022 GB, free: 15.54 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.432e-06/0.587, allocations: 0 / 1.022 GB, free: 15.54 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 5.701e-06/0.587, allocations: 0 / 1.022 GB, free: 15.54 MB / 0.7794 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.0002552/0.5872, allocations: 329.2 kB / 1.023 GB, free: 15.17 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.217e-05/0.5873, allocations: 12.03 kB / 1.023 GB, free: 15.16 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.443e-05/0.5873, allocations: 4 kB / 1.023 GB, free: 15.15 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000122/0.5874, allocations: 167.1 kB / 1.023 GB, free: 14.95 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.068e-05/0.5875, allocations: 0 / 1.023 GB, free: 14.95 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.372e-06/0.5875, allocations: 4 kB / 1.023 GB, free: 14.95 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 6.857e-05/0.5875, allocations: 29.66 kB / 1.023 GB, free: 14.91 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.2e-06/0.5876, allocations: 0 / 1.023 GB, free: 14.91 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.696e-06/0.5876, allocations: 3.984 kB / 1.023 GB, free: 14.91 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.627e-06/0.5876, allocations: 0 / 1.023 GB, free: 14.91 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.83e-05/0.5876, allocations: 7.938 kB / 1.023 GB, free: 14.9 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003502/0.5879, allocations: 468.6 kB / 1.023 GB, free: 14.37 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 7.815e-05/0.588, allocations: 177.2 kB / 1.023 GB, free: 14.19 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 2.448e-05/0.5881, allocations: 75.28 kB / 1.024 GB, free: 14.11 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.073e-05/0.5881, allocations: 109.8 kB / 1.024 GB, free: 14 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=0): time 8.92e-07/0.5881, allocations: 0 / 1.024 GB, free: 14 MB / 0.7794 GB Notification: Performance of matching and sorting (n=0): time 5.732e-05/0.5882, allocations: 29.7 kB / 1.024 GB, free: 13.96 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.109e-05/0.5883, allocations: 130.7 kB / 1.024 GB, free: 13.82 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.695e-05/0.5883, allocations: 101.8 kB / 1.024 GB, free: 13.71 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 9.147e-06/0.5884, allocations: 25.7 kB / 1.024 GB, free: 13.68 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 3.385e-05/0.5884, allocations: 80.14 kB / 1.024 GB, free: 13.6 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 1.513e-06/0.5884, allocations: 0 / 1.024 GB, free: 13.6 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.154e-06/0.5884, allocations: 0 / 1.024 GB, free: 13.6 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001032/0.5885, allocations: 310.8 kB / 1.024 GB, free: 13.29 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.104e-06/0.5885, allocations: 8 kB / 1.024 GB, free: 13.28 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.689e-06/0.5885, allocations: 0 / 1.024 GB, free: 13.28 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 1.305e-05/0.5886, allocations: 0 / 1.024 GB, free: 13.28 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.473e-06/0.5886, allocations: 0 / 1.024 GB, free: 13.28 MB / 0.7794 GB Notification: Performance of matching and sorting (n=1) (initialization): time 8.631e-05/0.5887, allocations: 45.59 kB / 1.024 GB, free: 13.23 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.141e-05/0.5887, allocations: 7.984 kB / 1.024 GB, free: 13.22 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.737e-06/0.5887, allocations: 0 / 1.024 GB, free: 13.22 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.025e-05/0.5887, allocations: 0 / 1.024 GB, free: 13.22 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.487e-05/0.5887, allocations: 7.938 kB / 1.024 GB, free: 13.21 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.336e-06/0.5887, allocations: 4.094 kB / 1.024 GB, free: 13.21 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.444e-05/0.5887, allocations: 7.875 kB / 1.024 GB, free: 13.2 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.789e-06/0.5888, allocations: 0 / 1.024 GB, free: 13.2 MB / 0.7794 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.701e-05/0.5888, allocations: 181.1 kB / 1.025 GB, free: 13.01 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.738e-05/0.5889, allocations: 116.8 kB / 1.025 GB, free: 12.89 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.106e-05/0.589, allocations: 108.1 kB / 1.025 GB, free: 12.78 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.682e-05/0.589, allocations: 184.3 kB / 1.025 GB, free: 12.59 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.322e-05/0.5891, allocations: 188.2 kB / 1.025 GB, free: 12.4 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.708e-05/0.5892, allocations: 176.3 kB / 1.025 GB, free: 12.22 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002144/0.5894, allocations: 401.2 kB / 1.026 GB, free: 11.77 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.121e-05/0.5894, allocations: 109 kB / 1.026 GB, free: 11.66 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.716e-05/0.5895, allocations: 101 kB / 1.026 GB, free: 11.55 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.668e-05/0.5895, allocations: 188.2 kB / 1.026 GB, free: 11.36 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.255e-05/0.5896, allocations: 176.5 kB / 1.026 GB, free: 11.18 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.236e-05/0.5897, allocations: 188.2 kB / 1.026 GB, free: 10.99 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.157e-05/0.5897, allocations: 180.3 kB / 1.027 GB, free: 10.8 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001206/0.5899, allocations: 311.8 kB / 1.027 GB, free: 10.48 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 7.106e-05/0.5899, allocations: 182.1 kB / 1.027 GB, free: 10.27 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.409e-05/0.59, allocations: 184.2 kB / 1.027 GB, free: 10.09 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.092e-05/0.5901, allocations: 109 kB / 1.027 GB, free: 9.973 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.893e-05/0.5902, allocations: 176.3 kB / 1.028 GB, free: 9.793 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.377e-05/0.5902, allocations: 108.9 kB / 1.028 GB, free: 9.68 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 4.028e-05/0.5903, allocations: 83.28 kB / 1.028 GB, free: 9.598 MB / 0.7794 GB Notification: Performance of sort global known variables: time 2.1e-07/0.5903, allocations: 0 / 1.028 GB, free: 9.598 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002499/0.5905, allocations: 20 kB / 1.028 GB, free: 9.578 MB / 0.7794 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003296/0.5909, allocations: 235 kB / 1.028 GB, free: 9.352 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 5.542e-05/0.5909, allocations: 8 kB / 1.028 GB, free: 9.344 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.705e-06/0.5909, allocations: 0 / 1.028 GB, free: 9.344 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 1.362e-06/0.5909, allocations: 0 / 1.028 GB, free: 9.344 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002748/0.5912, allocations: 0.5244 MB / 1.028 GB, free: 8.816 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000209/0.5914, allocations: 166.6 kB / 1.029 GB, free: 8.625 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002279/0.5917, allocations: 0.677 MB / 1.029 GB, free: 7.922 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 2.32e-05/0.5917, allocations: 3.984 kB / 1.029 GB, free: 7.918 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.749e-05/0.5917, allocations: 11.44 kB / 1.029 GB, free: 7.906 MB / 0.7794 GB Notification: Performance of SimCode: time 2.41e-07/0.5917, allocations: 0 / 1.029 GB, free: 7.906 MB / 0.7794 GB Notification: Performance of Templates: time 0.002424/0.5942, allocations: 0.6527 MB / 1.03 GB, free: 7.293 MB / 0.7794 GB make -j1 -f Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.ShaGFunction.makefile (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 & ./Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.ShaGFunction -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > 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","../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