Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.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 10.1.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.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.GFunction_SmallScaleValidation,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|gFun_int",fileNamePrefix="Buildings_10_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation") translateModel(Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|gFun_int",fileNamePrefix="Buildings_10_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001294/0.001294, allocations: 100.1 kB / 15.88 MB, free: 12 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.001489/0.001489, allocations: 196.5 kB / 16.79 MB, free: 6.809 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.44/1.44, allocations: 222.9 MB / 240.5 MB, free: 4.594 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.739/2.739, allocations: 437 MB / 0.7106 GB, free: 5.328 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001282/0.001282, allocations: 63.89 kB / 0.8693 GB, free: 5.145 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7842/0.7855, allocations: 151.6 MB / 1.017 GB, free: 2.773 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation): time 0.003207/0.7887, allocations: 1.815 MB / 1.019 GB, free: 0.9453 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.008293/0.797, allocations: 5.666 MB / 1.025 GB, free: 11.26 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001404/0.7972, allocations: 4 kB / 1.025 GB, free: 11.25 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.001361/0.7987, allocations: 358.6 kB / 1.025 GB, free: 10.9 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0001716/0.7988, allocations: 55.72 kB / 1.025 GB, free: 10.85 MB / 0.7794 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Math/Random.mo:1057:5-1146:31:writable] Warning: Pure function ‘Modelica.Math.Random.Utilities.initializeImpureRandom‘ contains a call to impure function ‘Modelica.Math.Random.Utilities.initializeImpureRandom.setInternalState‘. Notification: Performance of NFTyping.typeClassSections: time 0.003745/0.8026, allocations: 1.176 MB / 1.026 GB, free: 9.672 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.000325/0.8029, allocations: 199.3 kB / 1.026 GB, free: 9.477 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 6.036e-05/0.803, allocations: 17.55 kB / 1.026 GB, free: 9.457 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001017/0.8031, allocations: 55.73 kB / 1.026 GB, free: 9.402 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002669/0.8034, allocations: 180.8 kB / 1.027 GB, free: 9.227 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 5.463e-05/0.8035, allocations: 12 kB / 1.027 GB, free: 9.215 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00392/0.8074, allocations: 2.18 MB / 1.029 GB, free: 7.031 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 0.0002503/0.8076, allocations: 283.8 kB / 1.029 GB, free: 6.754 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.0003285/0.808, allocations: 306.1 kB / 1.029 GB, free: 6.453 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.002572/0.8106, allocations: 1.555 MB / 1.031 GB, free: 4.895 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 4.969e-06/0.8106, allocations: 0 / 1.031 GB, free: 4.895 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.503e-06/0.8106, allocations: 0 / 1.031 GB, free: 4.895 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 2.326e-05/0.8106, allocations: 0 / 1.031 GB, free: 4.895 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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.008404/0.819, allocations: 1.37 MB / 1.032 GB, free: 3.473 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.598e-05/0.8191, allocations: 8.031 kB / 1.032 GB, free: 3.465 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004709/0.8196, allocations: 103.5 kB / 1.032 GB, free: 3.363 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005736/0.8202, allocations: 410.2 kB / 1.033 GB, free: 2.914 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.742e-05/0.8202, allocations: 4.359 kB / 1.033 GB, free: 2.91 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.982e-05/0.8202, allocations: 12.38 kB / 1.033 GB, free: 2.898 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004616/0.8207, allocations: 391.5 kB / 1.033 GB, free: 2.504 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.377e-06/0.8207, allocations: 4 kB / 1.033 GB, free: 2.5 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.37e-05/0.8208, allocations: 0 / 1.033 GB, free: 2.5 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.779e-06/0.8208, allocations: 0 / 1.033 GB, free: 2.5 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004721/0.8212, allocations: 439.7 kB / 1.033 GB, free: 2.07 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006894/0.8219, allocations: 0.6654 MB / 1.034 GB, free: 1.355 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005263/0.8225, allocations: 0.5594 MB / 1.035 GB, free: 0.7773 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000329/0.8228, allocations: 333.7 kB / 1.035 GB, free: 456 kB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001183/0.824, allocations: 1.04 MB / 1.036 GB, free: 15.18 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004523/0.8245, allocations: 412.7 kB / 1.036 GB, free: 14.76 MB / 0.795 GB Notification: Performance of pre-optimization done (n=8): time 1.803e-06/0.8245, allocations: 0 / 1.036 GB, free: 14.76 MB / 0.795 GB Notification: Performance of matching and sorting (n=8): time 0.001468/0.826, allocations: 1.3 MB / 1.038 GB, free: 13.45 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.417e-05/0.826, allocations: 81.11 kB / 1.038 GB, free: 13.36 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001319/0.8274, allocations: 1.286 MB / 1.039 GB, free: 12.06 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 4.039e-05/0.8274, allocations: 25.7 kB / 1.039 GB, free: 12.03 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002154/0.8276, allocations: 285.4 kB / 1.039 GB, free: 11.74 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 4.919e-05/0.8277, allocations: 31.62 kB / 1.039 GB, free: 11.71 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003556/0.828, allocations: 351.6 kB / 1.04 GB, free: 11.36 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 0.0001173/0.8282, allocations: 318.1 kB / 1.04 GB, free: 11.05 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00126/0.8294, allocations: 1.373 MB / 1.041 GB, free: 9.672 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001346/0.8308, allocations: 1.507 MB / 1.043 GB, free: 8.156 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007181/0.838, allocations: 3.56 MB / 1.046 GB, free: 4.504 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.37e-06/0.838, allocations: 0 / 1.046 GB, free: 4.504 MB / 0.795 GB Notification: Performance of matching and sorting (n=319) (initialization): time 0.004609/0.8426, allocations: 4.01 MB / 1.05 GB, free: 468 kB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 2.453e-05/0.8427, allocations: 4 kB / 1.05 GB, free: 464 kB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.928e-05/0.8427, allocations: 4 kB / 1.05 GB, free: 460 kB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.799e-05/0.8427, allocations: 0 / 1.05 GB, free: 460 kB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001448/0.8429, allocations: 15.98 kB / 1.05 GB, free: 444 kB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.033e-05/0.8429, allocations: 4 kB / 1.05 GB, free: 440 kB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000502/0.8434, allocations: 232.3 kB / 1.05 GB, free: 204 kB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.584e-05/0.8435, allocations: 23.98 kB / 1.05 GB, free: 180 kB / 0.795 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 13 (cluSiz[1],labels[1],gFun2,$PRE.gFun2,gFun1,$PRE.gFun1,t2,$PRE.t2,t1,$PRE.t1,k,$PRE.k,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (17): * Single equations (assignments): 13 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 2 * 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 0.0003775/0.8439, allocations: 250.1 kB / 1.051 GB, free: 15.92 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.862e-05/0.844, allocations: 78.62 kB / 1.051 GB, free: 15.84 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003291/0.8443, allocations: 83.81 kB / 1.051 GB, free: 15.75 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.767e-06/0.8443, allocations: 0 / 1.051 GB, free: 15.75 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.961e-06/0.8443, allocations: 4 kB / 1.051 GB, free: 15.74 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.276e-06/0.8443, allocations: 0 / 1.051 GB, free: 15.74 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005214/0.8449, allocations: 0.5256 MB / 1.051 GB, free: 15.17 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.485e-06/0.8449, allocations: 7.875 kB / 1.051 GB, free: 15.16 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.355e-05/0.845, allocations: 11.92 kB / 1.051 GB, free: 15.15 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.066e-06/0.845, allocations: 0 / 1.051 GB, free: 15.15 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.629e-05/0.845, allocations: 4 kB / 1.051 GB, free: 15.15 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.407e-06/0.845, allocations: 4 kB / 1.051 GB, free: 15.14 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.793e-06/0.845, allocations: 0 / 1.051 GB, free: 15.14 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009665/0.846, allocations: 1.006 MB / 1.052 GB, free: 14.12 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001575/0.8461, allocations: 163.7 kB / 1.053 GB, free: 13.94 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.577e-05/0.8462, allocations: 0 / 1.053 GB, free: 13.94 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001524/0.8464, allocations: 7.984 kB / 1.053 GB, free: 13.93 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.798e-05/0.8464, allocations: 11.94 kB / 1.053 GB, free: 13.92 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.949e-05/0.8465, allocations: 15.97 kB / 1.053 GB, free: 13.9 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 0.0008301/0.8473, allocations: 0.7183 MB / 1.053 GB, free: 13.18 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.4e-07/0.8473, allocations: 0 / 1.053 GB, free: 13.18 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.001726/0.8491, allocations: 0.5974 MB / 1.054 GB, free: 12.58 MB / 0.8106 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition1,k,t1,t2,gFun1,gFun2) * Number of discrete states: 2 (k,t2) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * 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.002583/0.8517, allocations: 0.6856 MB / 1.055 GB, free: 11.91 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.002483/0.8542, allocations: 2.56 MB / 1.057 GB, free: 9.336 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.796e-06/0.8542, allocations: 0 / 1.057 GB, free: 9.336 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0003337/0.8545, allocations: 335.8 kB / 1.057 GB, free: 9.008 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004586/0.855, allocations: 62.27 kB / 1.057 GB, free: 8.949 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002619/0.8576, allocations: 2.113 MB / 1.059 GB, free: 6.801 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006046/0.8582, allocations: 0.9842 MB / 1.06 GB, free: 5.789 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001268/0.8584, allocations: 31.41 kB / 1.06 GB, free: 5.762 MB / 0.8106 GB Notification: Performance of SimCode: time 5.51e-07/0.8584, allocations: 0 / 1.06 GB, free: 5.762 MB / 0.8106 GB Notification: Performance of Templates: time 0.02581/0.8842, allocations: 14.47 MB / 1.075 GB, free: 7.309 MB / 0.8262 GB make -j1 -f Buildings_10_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.makefile (rm -f Buildings_10_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe ; mkfifo Buildings_10_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe ; head -c 1048576 < Buildings_10_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe >> ../files/Buildings_10_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.sim & ./Buildings_10_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Fluid_Geothermal_Borefields_BaseClasses_HeatTransfer_ThermalResponseFactors_Validation_GFunction_SmallScaleValidation.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,gFun_int Variables in the result:gFun_int,time