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_100boreholes.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_100boreholes,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|gFun_int",fileNamePrefix="Buildings_9_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_100boreholes") translateModel(Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_100boreholes,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|gFun_int",fileNamePrefix="Buildings_9_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_100boreholes") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001417/0.001417, allocations: 110.6 kB / 16.37 MB, free: 6.012 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.001464/0.001464, allocations: 189.5 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.306/1.306, allocations: 222.9 MB / 241 MB, free: 15.17 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.189/2.189, allocations: 390.3 MB / 0.6655 GB, free: 0.5508 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.002242/0.002242, allocations: 65.88 kB / 0.8141 GB, free: 32.72 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2762/0.2785, allocations: 140.4 MB / 0.9512 GB, free: 7.965 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_100boreholes): time 0.002804/0.2813, allocations: 1.41 MB / 0.9525 GB, free: 6.547 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.004468/0.2858, allocations: 3.035 MB / 0.9555 GB, free: 3.496 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.762e-05/0.2859, allocations: 0 / 0.9555 GB, free: 3.496 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 0.0001074/0.286, allocations: 15.86 kB / 0.9555 GB, free: 3.48 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 0.0002234/0.2862, allocations: 27.83 kB / 0.9556 GB, free: 3.453 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.002667/0.2889, allocations: 0.9902 MB / 0.9565 GB, free: 2.461 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.0001494/0.2891, allocations: 83.7 kB / 0.9566 GB, free: 2.379 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 4.683e-05/0.2891, allocations: 11.91 kB / 0.9566 GB, free: 2.367 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 6.473e-05/0.2892, allocations: 35.92 kB / 0.9566 GB, free: 2.332 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002215/0.2894, allocations: 165.5 kB / 0.9568 GB, free: 2.172 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 3.496e-05/0.2895, allocations: 12 kB / 0.9568 GB, free: 2.16 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001861/0.2913, allocations: 1.381 MB / 0.9582 GB, free: 0.7773 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 0.0006092/0.292, allocations: 0.6913 MB / 0.9588 GB, free: 80 kB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 0.0003426/0.2923, allocations: 437 kB / 0.9593 GB, free: 15.65 MB / 0.7481 GB Notification: Performance of NFConvertDAE.convert: time 0.001795/0.2941, allocations: 1.788 MB / 0.961 GB, free: 13.86 MB / 0.7481 GB Notification: Performance of FrontEnd - DAE generated: time 5.2e-06/0.2941, allocations: 0 / 0.961 GB, free: 13.86 MB / 0.7481 GB Notification: Performance of FrontEnd: time 1.793e-06/0.2941, allocations: 7.938 kB / 0.961 GB, free: 13.85 MB / 0.7481 GB Notification: Performance of Transformations before backend: time 9.699e-06/0.2942, allocations: 0 / 0.961 GB, free: 13.85 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.008384/0.3026, allocations: 1.694 MB / 0.9627 GB, free: 12.09 MB / 0.7481 GB Notification: Performance of prepare preOptimizeDAE: time 4.148e-05/0.3026, allocations: 8.031 kB / 0.9627 GB, free: 12.09 MB / 0.7481 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003977/0.303, allocations: 142.9 kB / 0.9628 GB, free: 11.95 MB / 0.7481 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005421/0.3036, allocations: 0.5212 MB / 0.9633 GB, free: 11.36 MB / 0.7481 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.284e-05/0.3036, allocations: 8.312 kB / 0.9633 GB, free: 11.35 MB / 0.7481 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.914e-05/0.3036, allocations: 16.31 kB / 0.9633 GB, free: 11.33 MB / 0.7481 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004013/0.304, allocations: 391.5 kB / 0.9637 GB, free: 10.94 MB / 0.7481 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.063e-06/0.3041, allocations: 0 / 0.9637 GB, free: 10.94 MB / 0.7481 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.125e-05/0.3041, allocations: 0 / 0.9637 GB, free: 10.94 MB / 0.7481 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.659e-06/0.3041, allocations: 0 / 0.9637 GB, free: 10.94 MB / 0.7481 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003991/0.3045, allocations: 439.7 kB / 0.9641 GB, free: 10.51 MB / 0.7481 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006683/0.3052, allocations: 0.8074 MB / 0.9649 GB, free: 9.637 MB / 0.7481 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004812/0.3057, allocations: 0.5556 MB / 0.9655 GB, free: 9.062 MB / 0.7481 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002875/0.306, allocations: 333.6 kB / 0.9658 GB, free: 8.73 MB / 0.7481 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000988/0.3069, allocations: 1.044 MB / 0.9668 GB, free: 7.465 MB / 0.7481 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003926/0.3074, allocations: 400.8 kB / 0.9672 GB, free: 7.055 MB / 0.7481 GB Notification: Performance of pre-optimization done (n=8): time 1.343e-06/0.3074, allocations: 4 kB / 0.9672 GB, free: 7.051 MB / 0.7481 GB Notification: Performance of matching and sorting (n=8): time 0.001236/0.3086, allocations: 1.343 MB / 0.9685 GB, free: 5.699 MB / 0.7481 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.642e-05/0.3087, allocations: 85.11 kB / 0.9686 GB, free: 5.598 MB / 0.7481 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001653/0.3103, allocations: 1.846 MB / 0.9704 GB, free: 3.703 MB / 0.7481 GB Notification: Performance of collectPreVariables (initialization): time 3.727e-05/0.3104, allocations: 29.7 kB / 0.9704 GB, free: 3.668 MB / 0.7481 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003279/0.3107, allocations: 477.4 kB / 0.9709 GB, free: 3.195 MB / 0.7481 GB Notification: Performance of collectInitialBindings (initialization): time 3.125e-05/0.3107, allocations: 23.75 kB / 0.9709 GB, free: 3.172 MB / 0.7481 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002947/0.311, allocations: 347.5 kB / 0.9712 GB, free: 2.828 MB / 0.7481 GB Notification: Performance of setup shared object (initialization): time 8.541e-05/0.3111, allocations: 301.1 kB / 0.9715 GB, free: 2.531 MB / 0.7481 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001188/0.3123, allocations: 1.514 MB / 0.973 GB, free: 1.016 MB / 0.7481 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001319/0.3137, allocations: 1.638 MB / 0.9746 GB, free: 15.37 MB / 0.7637 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00702/0.3207, allocations: 3.698 MB / 0.9782 GB, free: 11.58 MB / 0.7637 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.286e-06/0.3207, allocations: 0 / 0.9782 GB, free: 11.58 MB / 0.7637 GB Notification: Performance of matching and sorting (n=317) (initialization): time 0.004179/0.3249, allocations: 4.323 MB / 0.9824 GB, free: 7.223 MB / 0.7637 GB Notification: Performance of prepare postOptimizeDAE: time 2.275e-05/0.3249, allocations: 8 kB / 0.9824 GB, free: 7.215 MB / 0.7637 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.272e-05/0.3249, allocations: 0 / 0.9824 GB, free: 7.215 MB / 0.7637 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.383e-05/0.325, allocations: 4.031 kB / 0.9824 GB, free: 7.211 MB / 0.7637 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001308/0.3251, allocations: 19.98 kB / 0.9825 GB, free: 7.191 MB / 0.7637 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.065e-06/0.3251, allocations: 4 kB / 0.9825 GB, free: 7.188 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005095/0.3256, allocations: 228.3 kB / 0.9827 GB, free: 6.961 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.279e-05/0.3257, allocations: 23.98 kB / 0.9827 GB, free: 6.938 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.0004041/0.3261, allocations: 369.4 kB / 0.983 GB, free: 6.566 MB / 0.7637 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.993e-05/0.3262, allocations: 125.9 kB / 0.9832 GB, free: 6.441 MB / 0.7637 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003079/0.3265, allocations: 153 kB / 0.9833 GB, free: 6.281 MB / 0.7637 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.116e-06/0.3265, allocations: 0 / 0.9833 GB, free: 6.281 MB / 0.7637 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.699e-06/0.3265, allocations: 0 / 0.9833 GB, free: 6.281 MB / 0.7637 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.246e-06/0.3265, allocations: 0 / 0.9833 GB, free: 6.281 MB / 0.7637 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000548/0.3271, allocations: 0.6795 MB / 0.984 GB, free: 5.543 MB / 0.7637 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.186e-06/0.3271, allocations: 4 kB / 0.984 GB, free: 5.539 MB / 0.7637 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.216e-05/0.3272, allocations: 11.92 kB / 0.984 GB, free: 5.527 MB / 0.7637 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.355e-06/0.3272, allocations: 3.938 kB / 0.984 GB, free: 5.523 MB / 0.7637 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.355e-05/0.3272, allocations: 8.031 kB / 0.984 GB, free: 5.516 MB / 0.7637 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.543e-06/0.3272, allocations: 0 / 0.984 GB, free: 5.516 MB / 0.7637 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.623e-06/0.3272, allocations: 0 / 0.984 GB, free: 5.516 MB / 0.7637 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008781/0.3281, allocations: 1.055 MB / 0.985 GB, free: 4.434 MB / 0.7637 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001678/0.3283, allocations: 195.1 kB / 0.9852 GB, free: 4.223 MB / 0.7637 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.138e-05/0.3284, allocations: 12 kB / 0.9852 GB, free: 4.211 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001969/0.3286, allocations: 3.984 kB / 0.9852 GB, free: 4.207 MB / 0.7637 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.591e-05/0.3286, allocations: 7.984 kB / 0.9852 GB, free: 4.199 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.114e-05/0.3287, allocations: 15.97 kB / 0.9853 GB, free: 4.184 MB / 0.7637 GB Notification: Performance of sorting global known variables: time 0.001168/0.3299, allocations: 1.104 MB / 0.9863 GB, free: 3.055 MB / 0.7637 GB Notification: Performance of sort global known variables: time 1.4e-07/0.3299, allocations: 0 / 0.9863 GB, free: 3.055 MB / 0.7637 GB Notification: Performance of remove unused functions: time 0.0009955/0.3309, allocations: 435.8 kB / 0.9868 GB, free: 2.629 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.00104/0.3319, allocations: 478.8 kB / 0.9872 GB, free: 2.152 MB / 0.7637 GB Notification: Performance of simCode: created initialization part: time 0.002142/0.3341, allocations: 2.656 MB / 0.9898 GB, free: 15.49 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.3341, allocations: 0 / 0.9898 GB, free: 15.49 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0003097/0.3344, allocations: 331.8 kB / 0.9901 GB, free: 15.16 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003826/0.3348, allocations: 60.5 kB / 0.9902 GB, free: 15.1 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002747/0.3375, allocations: 2.564 MB / 0.9927 GB, free: 12.5 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006512/0.3382, allocations: 1.161 MB / 0.9938 GB, free: 11.31 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 0.0001141/0.3383, allocations: 32.56 kB / 0.9938 GB, free: 11.28 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.421e-05/0.3384, allocations: 27.41 kB / 0.9939 GB, free: 11.25 MB / 0.7794 GB Notification: Performance of SimCode: time 2.7e-07/0.3384, allocations: 0 / 0.9939 GB, free: 11.25 MB / 0.7794 GB Notification: Performance of Templates: time 0.01772/0.3562, allocations: 10.12 MB / 1.004 GB, free: 1.18 MB / 0.7794 GB make -j1 -f Buildings_9_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_100boreholes.makefile (rm -f Buildings_9_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_100boreholes.pipe ; mkfifo Buildings_9_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_100boreholes.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_100boreholes.pipe >> ../files/Buildings_9_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_100boreholes.sim & ./Buildings_9_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_100boreholes -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_100boreholes.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_100boreholes_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_Geothermal_Borefields_BaseClasses_HeatTransfer_ThermalResponseFactors_Validation_GFunction_100boreholes.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_100boreholes.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches