Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/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_9_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_9_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.001921/0.001921, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.002089/0.002089, allocations: 196.1 kB / 16.14 MB, free: 6.711 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.377/1.377, allocations: 222.9 MB / 239.8 MB, free: 4.621 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.377/2.377, allocations: 390.2 MB / 0.6642 GB, free: 0.6289 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001222/0.001222, allocations: 63.91 kB / 0.8119 GB, free: 14.85 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6364/0.6376, allocations: 140.4 MB / 0.949 GB, free: 9.328 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.ShaGFunction): time 0.001593/0.6392, allocations: 0.6244 MB / 0.9496 GB, free: 8.859 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0009541/0.6402, allocations: 1.005 MB / 0.9505 GB, free: 8.051 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.104e-05/0.6402, allocations: 0 / 0.9505 GB, free: 8.051 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 1.42e-05/0.6403, allocations: 3.938 kB / 0.9506 GB, free: 8.047 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0005847/0.6408, allocations: 73.86 kB / 0.9506 GB, free: 8.004 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 2.551e-05/0.6409, allocations: 16.17 kB / 0.9506 GB, free: 7.992 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 3.65e-05/0.6409, allocations: 3 kB / 0.9506 GB, free: 7.992 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 3.895e-05/0.641, allocations: 2.25 kB / 0.9506 GB, free: 7.992 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 1.687e-05/0.641, allocations: 5.438 kB / 0.9506 GB, free: 7.988 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002108/0.6412, allocations: 42.03 kB / 0.9507 GB, free: 7.965 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 9.919e-06/0.6412, allocations: 0 / 0.9507 GB, free: 7.965 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001506/0.6414, allocations: 78.31 kB / 0.9508 GB, free: 7.926 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 8.666e-06/0.6414, allocations: 1.375 kB / 0.9508 GB, free: 7.926 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 1.744e-05/0.6414, allocations: 5.062 kB / 0.9508 GB, free: 7.922 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001304/0.6415, allocations: 71.84 kB / 0.9508 GB, free: 7.883 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 5.25e-06/0.6416, allocations: 7.984 kB / 0.9508 GB, free: 7.875 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.242e-06/0.6416, allocations: 1.344 kB / 0.9508 GB, free: 7.875 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 3.075e-06/0.6416, allocations: 0 / 0.9508 GB, free: 7.875 MB / 0.7169 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.0002146/0.6418, allocations: 334.9 kB / 0.9512 GB, free: 7.512 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.18e-05/0.6418, allocations: 8.938 kB / 0.9512 GB, free: 7.512 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.528e-05/0.6419, allocations: 2.219 kB / 0.9512 GB, free: 7.512 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 6.501e-05/0.6419, allocations: 161.6 kB / 0.9513 GB, free: 7.316 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.602e-06/0.6419, allocations: 1.562 kB / 0.9513 GB, free: 7.316 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.156e-06/0.642, allocations: 384 / 0.9513 GB, free: 7.316 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 6.353e-05/0.642, allocations: 36.3 kB / 0.9514 GB, free: 7.277 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.952e-06/0.642, allocations: 3.984 kB / 0.9514 GB, free: 7.273 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.094e-06/0.642, allocations: 5.312 kB / 0.9514 GB, free: 7.27 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.377e-06/0.6421, allocations: 0 / 0.9514 GB, free: 7.27 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.572e-05/0.6421, allocations: 5.375 kB / 0.9514 GB, free: 7.266 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002559/0.6423, allocations: 462.7 kB / 0.9518 GB, free: 6.75 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 3.58e-05/0.6424, allocations: 166.2 kB / 0.952 GB, free: 6.578 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.379e-05/0.6424, allocations: 85.83 kB / 0.9521 GB, free: 6.492 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 8.365e-06/0.6424, allocations: 75.28 kB / 0.9521 GB, free: 6.418 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.856e-05/0.6424, allocations: 109.8 kB / 0.9522 GB, free: 6.301 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=0): time 1.392e-06/0.6424, allocations: 1.594 kB / 0.9522 GB, free: 6.301 MB / 0.7169 GB Notification: Performance of matching and sorting (n=0): time 5.599e-05/0.6425, allocations: 29.64 kB / 0.9523 GB, free: 6.266 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.62e-05/0.6425, allocations: 131.9 kB / 0.9524 GB, free: 6.125 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.545e-05/0.6426, allocations: 98.86 kB / 0.9525 GB, free: 6.023 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 4.018e-06/0.6426, allocations: 25.7 kB / 0.9525 GB, free: 5.992 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 1.649e-05/0.6426, allocations: 85.42 kB / 0.9526 GB, free: 5.906 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.074e-06/0.6426, allocations: 3.938 kB / 0.9526 GB, free: 5.902 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.235e-05/0.6427, allocations: 12.09 kB / 0.9526 GB, free: 5.887 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 3.809e-05/0.6427, allocations: 320.1 kB / 0.9529 GB, free: 5.566 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.576e-06/0.6427, allocations: 5.312 kB / 0.9529 GB, free: 5.562 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.179e-06/0.6427, allocations: 0 / 0.9529 GB, free: 5.562 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 1.978e-05/0.6428, allocations: 15.58 kB / 0.9529 GB, free: 5.547 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.993e-06/0.6428, allocations: 0 / 0.9529 GB, free: 5.547 MB / 0.7169 GB Notification: Performance of matching and sorting (n=1) (initialization): time 7.795e-05/0.6428, allocations: 40.2 kB / 0.953 GB, free: 5.508 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.108e-05/0.6429, allocations: 4.938 kB / 0.953 GB, free: 5.508 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.637e-06/0.6429, allocations: 0 / 0.953 GB, free: 5.508 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.997e-06/0.6429, allocations: 0 / 0.953 GB, free: 5.508 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.464e-05/0.6429, allocations: 5.391 kB / 0.953 GB, free: 5.504 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.779e-06/0.6429, allocations: 0 / 0.953 GB, free: 5.504 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.39e-05/0.6429, allocations: 1.062 kB / 0.953 GB, free: 5.504 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.658e-06/0.6429, allocations: 0 / 0.953 GB, free: 5.504 MB / 0.7169 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 4.442e-05/0.643, allocations: 194.2 kB / 0.9532 GB, free: 5.305 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.869e-05/0.643, allocations: 106.5 kB / 0.9533 GB, free: 5.195 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.888e-05/0.6431, allocations: 109.5 kB / 0.9534 GB, free: 5.082 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.038e-05/0.6431, allocations: 181.8 kB / 0.9535 GB, free: 4.898 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.185e-05/0.6431, allocations: 188.4 kB / 0.9537 GB, free: 4.707 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.93e-05/0.6431, allocations: 181.7 kB / 0.9539 GB, free: 4.523 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001218/0.6433, allocations: 415.8 kB / 0.9543 GB, free: 4.062 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.211e-05/0.6433, allocations: 101 kB / 0.9544 GB, free: 3.957 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.22e-05/0.6433, allocations: 106.2 kB / 0.9545 GB, free: 3.848 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.128e-05/0.6433, allocations: 181.6 kB / 0.9547 GB, free: 3.664 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.415e-05/0.6433, allocations: 185.6 kB / 0.9548 GB, free: 3.477 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.844e-05/0.6434, allocations: 180.2 kB / 0.955 GB, free: 3.293 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.995e-05/0.6434, allocations: 181.9 kB / 0.9552 GB, free: 3.109 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.238e-05/0.6435, allocations: 307.7 kB / 0.9555 GB, free: 2.789 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.5e-05/0.6435, allocations: 179.6 kB / 0.9557 GB, free: 2.59 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.84e-05/0.6435, allocations: 188.2 kB / 0.9558 GB, free: 2.398 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.369e-05/0.6436, allocations: 106.5 kB / 0.9559 GB, free: 2.289 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.717e-05/0.6436, allocations: 181.6 kB / 0.9561 GB, free: 2.105 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.208e-05/0.6436, allocations: 101 kB / 0.9562 GB, free: 2 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 2.153e-05/0.6437, allocations: 78.81 kB / 0.9563 GB, free: 1.926 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.2e-07/0.6437, allocations: 1.344 kB / 0.9563 GB, free: 1.926 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002513/0.6439, allocations: 22.55 kB / 0.9563 GB, free: 1.918 MB / 0.7169 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.000295/0.6442, allocations: 241.1 kB / 0.9565 GB, free: 1.723 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 5.146e-05/0.6443, allocations: 2.531 kB / 0.9565 GB, free: 1.723 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.994e-06/0.6443, allocations: 0 / 0.9565 GB, free: 1.723 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 3.226e-06/0.6443, allocations: 3.938 kB / 0.9565 GB, free: 1.719 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002632/0.6446, allocations: 0.5251 MB / 0.9571 GB, free: 1.191 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003236/0.6449, allocations: 196.4 kB / 0.9572 GB, free: 0.9883 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001057/0.645, allocations: 0.672 MB / 0.9579 GB, free: 300 kB / 0.7169 GB Notification: Performance of simCode: alias equations: time 2.543e-05/0.645, allocations: 5.406 kB / 0.9579 GB, free: 296 kB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.047e-05/0.6451, allocations: 12.77 kB / 0.9579 GB, free: 284 kB / 0.7169 GB Notification: Performance of SimCode: time 4.91e-07/0.6451, allocations: 0 / 0.9579 GB, free: 284 kB / 0.7169 GB Notification: Performance of Templates: time 0.002606/0.6477, allocations: 0.6507 MB / 0.9586 GB, free: 15.96 MB / 0.7325 GB make -j1 -f Buildings_9_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.ShaGFunction.makefile (rm -f Buildings_9_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.ShaGFunction.pipe ; mkfifo Buildings_9_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.ShaGFunction.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.ShaGFunction.pipe >> ../files/Buildings_9_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.ShaGFunction.sim & ./Buildings_9_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.ShaGFunction -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.ShaGFunction.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.ShaGFunction_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_Geothermal_Borefields_BaseClasses_HeatTransfer_ThermalResponseFactors_Validation_ShaGFunction.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.ShaGFunction.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches