Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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.GFunction_SmallScaleValidation,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|gFun_int",fileNamePrefix="Buildings_9_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_9_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.001382/0.001382, allocations: 114.3 kB / 16.37 MB, free: 6 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.001455/0.001455, allocations: 195.9 kB / 17.31 MB, free: 5.613 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.351/1.351, allocations: 222.9 MB / 241 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.256/2.256, allocations: 390.3 MB / 0.6655 GB, free: 0.6211 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001234/0.001234, allocations: 68.38 kB / 0.8141 GB, free: 32.7 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2645/0.2658, allocations: 140.4 MB / 0.9512 GB, free: 8.059 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation): time 0.002739/0.2686, allocations: 1.741 MB / 0.9529 GB, free: 6.309 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.005374/0.2739, allocations: 4.226 MB / 0.957 GB, free: 2.062 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.057e-05/0.2741, allocations: 0 / 0.957 GB, free: 2.062 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 0.001107/0.2752, allocations: 358.5 kB / 0.9573 GB, free: 1.711 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 0.0001176/0.2753, allocations: 63.72 kB / 0.9574 GB, free: 1.648 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.002232/0.2776, allocations: 0.9899 MB / 0.9584 GB, free: 0.6602 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.0002203/0.2778, allocations: 155.3 kB / 0.9585 GB, free: 0.5078 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 4.595e-05/0.2779, allocations: 17.55 kB / 0.9585 GB, free: 500 kB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 6.695e-05/0.2779, allocations: 55.7 kB / 0.9586 GB, free: 444 kB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002065/0.2782, allocations: 159.5 kB / 0.9587 GB, free: 284 kB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 3.762e-05/0.2782, allocations: 16 kB / 0.9587 GB, free: 268 kB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001865/0.2801, allocations: 1.385 MB / 0.9601 GB, free: 14.88 MB / 0.7481 GB Notification: Performance of NFScalarize.scalarize: time 0.0002506/0.2803, allocations: 275.8 kB / 0.9604 GB, free: 14.6 MB / 0.7481 GB Notification: Performance of NFVerifyModel.verify: time 0.0002522/0.2806, allocations: 302.1 kB / 0.9607 GB, free: 14.3 MB / 0.7481 GB Notification: Performance of NFConvertDAE.convert: time 0.001714/0.2823, allocations: 1.543 MB / 0.9622 GB, free: 12.76 MB / 0.7481 GB Notification: Performance of FrontEnd - DAE generated: time 4.859e-06/0.2823, allocations: 8 kB / 0.9622 GB, free: 12.75 MB / 0.7481 GB Notification: Performance of FrontEnd: time 1.593e-06/0.2823, allocations: 0 / 0.9622 GB, free: 12.75 MB / 0.7481 GB Notification: Performance of Transformations before backend: time 7.464e-06/0.2824, allocations: 0 / 0.9622 GB, free: 12.75 MB / 0.7481 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.00811/0.2905, allocations: 1.273 MB / 0.9634 GB, free: 11.43 MB / 0.7481 GB Notification: Performance of prepare preOptimizeDAE: time 3.935e-05/0.2905, allocations: 8.031 kB / 0.9634 GB, free: 11.42 MB / 0.7481 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003845/0.2909, allocations: 95.58 kB / 0.9635 GB, free: 11.32 MB / 0.7481 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005153/0.2914, allocations: 406 kB / 0.9639 GB, free: 10.88 MB / 0.7481 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.886e-05/0.2915, allocations: 12.36 kB / 0.9639 GB, free: 10.87 MB / 0.7481 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.654e-05/0.2915, allocations: 4.375 kB / 0.9639 GB, free: 10.86 MB / 0.7481 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003959/0.2919, allocations: 391.4 kB / 0.9643 GB, free: 10.47 MB / 0.7481 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.147e-06/0.2919, allocations: 3.938 kB / 0.9643 GB, free: 10.46 MB / 0.7481 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.341e-05/0.292, allocations: 7.922 kB / 0.9643 GB, free: 10.46 MB / 0.7481 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.561e-06/0.292, allocations: 4 kB / 0.9643 GB, free: 10.45 MB / 0.7481 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003915/0.2924, allocations: 431.8 kB / 0.9647 GB, free: 10.03 MB / 0.7481 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005368/0.2929, allocations: 0.6652 MB / 0.9654 GB, free: 9.316 MB / 0.7481 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004936/0.2934, allocations: 0.5632 MB / 0.9659 GB, free: 8.734 MB / 0.7481 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002932/0.2937, allocations: 337.7 kB / 0.9662 GB, free: 8.398 MB / 0.7481 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0009214/0.2946, allocations: 1.028 MB / 0.9672 GB, free: 7.148 MB / 0.7481 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003842/0.295, allocations: 412.8 kB / 0.9676 GB, free: 6.727 MB / 0.7481 GB Notification: Performance of pre-optimization done (n=8): time 1.353e-06/0.295, allocations: 0 / 0.9676 GB, free: 6.727 MB / 0.7481 GB Notification: Performance of matching and sorting (n=8): time 0.001252/0.2963, allocations: 1.3 MB / 0.9689 GB, free: 5.418 MB / 0.7481 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.515e-05/0.2964, allocations: 81.11 kB / 0.969 GB, free: 5.32 MB / 0.7481 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001161/0.2975, allocations: 1.281 MB / 0.9702 GB, free: 4.027 MB / 0.7481 GB Notification: Performance of collectPreVariables (initialization): time 3.54e-05/0.2976, allocations: 33.83 kB / 0.9703 GB, free: 3.988 MB / 0.7481 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001892/0.2978, allocations: 281.4 kB / 0.9705 GB, free: 3.707 MB / 0.7481 GB Notification: Performance of collectInitialBindings (initialization): time 3.343e-05/0.2978, allocations: 23.7 kB / 0.9706 GB, free: 3.684 MB / 0.7481 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003011/0.2981, allocations: 347.5 kB / 0.9709 GB, free: 3.34 MB / 0.7481 GB Notification: Performance of setup shared object (initialization): time 9.982e-05/0.2982, allocations: 318 kB / 0.9712 GB, free: 3.023 MB / 0.7481 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001116/0.2994, allocations: 1.357 MB / 0.9725 GB, free: 1.664 MB / 0.7481 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001214/0.3006, allocations: 1.501 MB / 0.974 GB, free: 156 kB / 0.7481 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00698/0.3076, allocations: 3.537 MB / 0.9774 GB, free: 12.53 MB / 0.7637 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.097e-06/0.3076, allocations: 0 / 0.9774 GB, free: 12.53 MB / 0.7637 GB Notification: Performance of matching and sorting (n=317) (initialization): time 0.003972/0.3116, allocations: 3.969 MB / 0.9813 GB, free: 8.523 MB / 0.7637 GB Notification: Performance of prepare postOptimizeDAE: time 2.272e-05/0.3116, allocations: 12.03 kB / 0.9813 GB, free: 8.512 MB / 0.7637 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.867e-05/0.3116, allocations: 3.984 kB / 0.9813 GB, free: 8.508 MB / 0.7637 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.016e-05/0.3117, allocations: 4 kB / 0.9813 GB, free: 8.504 MB / 0.7637 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001407/0.3118, allocations: 19.94 kB / 0.9813 GB, free: 8.484 MB / 0.7637 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.945e-06/0.3118, allocations: 0 / 0.9813 GB, free: 8.484 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004921/0.3123, allocations: 228.3 kB / 0.9816 GB, free: 8.258 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.132e-05/0.3124, allocations: 23.98 kB / 0.9816 GB, free: 8.234 MB / 0.7637 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 11 (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 (16): * Single equations (assignments): 13 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 1 * 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.0003054/0.3127, allocations: 241.7 kB / 0.9818 GB, free: 7.988 MB / 0.7637 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.018e-05/0.3128, allocations: 78.62 kB / 0.9819 GB, free: 7.91 MB / 0.7637 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002887/0.3131, allocations: 87.66 kB / 0.982 GB, free: 7.809 MB / 0.7637 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.599e-06/0.3131, allocations: 0 / 0.982 GB, free: 7.809 MB / 0.7637 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.212e-06/0.3131, allocations: 7.938 kB / 0.982 GB, free: 7.801 MB / 0.7637 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.126e-06/0.3131, allocations: 0 / 0.982 GB, free: 7.801 MB / 0.7637 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004156/0.3135, allocations: 0.51 MB / 0.9825 GB, free: 7.246 MB / 0.7637 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.202e-06/0.3135, allocations: 0 / 0.9825 GB, free: 7.246 MB / 0.7637 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.599e-05/0.3136, allocations: 15.95 kB / 0.9825 GB, free: 7.23 MB / 0.7637 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.419e-06/0.3136, allocations: 4 kB / 0.9825 GB, free: 7.227 MB / 0.7637 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.149e-05/0.3136, allocations: 0 / 0.9825 GB, free: 7.227 MB / 0.7637 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.653e-06/0.3136, allocations: 3.938 kB / 0.9825 GB, free: 7.223 MB / 0.7637 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.865e-06/0.3137, allocations: 4 kB / 0.9825 GB, free: 7.219 MB / 0.7637 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008428/0.3145, allocations: 1.009 MB / 0.9835 GB, free: 6.188 MB / 0.7637 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001201/0.3146, allocations: 171.7 kB / 0.9837 GB, free: 6 MB / 0.7637 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.232e-05/0.3147, allocations: 0 / 0.9837 GB, free: 6 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001534/0.3149, allocations: 7.984 kB / 0.9837 GB, free: 5.992 MB / 0.7637 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.255e-05/0.3149, allocations: 4 kB / 0.9837 GB, free: 5.988 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.755e-05/0.3149, allocations: 15.97 kB / 0.9837 GB, free: 5.973 MB / 0.7637 GB Notification: Performance of sorting global known variables: time 0.0007257/0.3157, allocations: 0.7179 MB / 0.9844 GB, free: 5.25 MB / 0.7637 GB Notification: Performance of sort global known variables: time 5.72e-07/0.3157, allocations: 0 / 0.9844 GB, free: 5.25 MB / 0.7637 GB Notification: Performance of remove unused functions: time 0.0009521/0.3166, allocations: 399.9 kB / 0.9848 GB, free: 4.859 MB / 0.7637 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.001093/0.3177, allocations: 482.7 kB / 0.9852 GB, free: 4.379 MB / 0.7637 GB Notification: Performance of simCode: created initialization part: time 0.00213/0.3199, allocations: 2.502 MB / 0.9877 GB, free: 1.871 MB / 0.7637 GB Notification: Performance of simCode: created event and clocks part: time 3.015e-06/0.3199, allocations: 0 / 0.9877 GB, free: 1.871 MB / 0.7637 GB Notification: Performance of simCode: created simulation system equations: time 0.0003091/0.3202, allocations: 343.7 kB / 0.988 GB, free: 1.535 MB / 0.7637 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003767/0.3206, allocations: 52.66 kB / 0.988 GB, free: 1.484 MB / 0.7637 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002051/0.3227, allocations: 1.861 MB / 0.9899 GB, free: 15.59 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004838/0.3232, allocations: 0.9877 MB / 0.9908 GB, free: 14.58 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 0.0001334/0.3233, allocations: 45.42 kB / 0.9909 GB, free: 14.54 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001025/0.3234, allocations: 27.41 kB / 0.9909 GB, free: 14.51 MB / 0.7794 GB Notification: Performance of SimCode: time 3.7e-07/0.3234, allocations: 0 / 0.9909 GB, free: 14.51 MB / 0.7794 GB Notification: Performance of Templates: time 0.01695/0.3404, allocations: 10.17 MB / 1.001 GB, free: 4.395 MB / 0.7794 GB make -j1 -f Buildings_9_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.makefile (rm -f Buildings_9_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe ; mkfifo Buildings_9_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe >> ../files/Buildings_9_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.sim & ./Buildings_9_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_Geothermal_Borefields_BaseClasses_HeatTransfer_ThermalResponseFactors_Validation_GFunction_SmallScaleValidation.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches