Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IBPSA_latest_IBPSA.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/IBPSA 4.0.0-master/package.mo", uses=false) Using package IBPSA with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.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: "" <> buildModelFMU(IBPSA.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation,fileNamePrefix="IBPSA_latest_IBPSA_Fluid_Geothermal_Borefields_BaseClasses_HeatTransfer_ThermalResponseFactors_Validation_GFunction_SmallScaleValidation",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IBPSA.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation,fileNamePrefix="IBPSA_latest_IBPSA_Fluid_Geothermal_Borefields_BaseClasses_HeatTransfer_ThermalResponseFactors_Validation_GFunction_SmallScaleValidation",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001177/0.001177, allocations: 106.8 kB / 15.99 MB, free: 6.352 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.001162/0.001162, allocations: 191.2 kB / 16.91 MB, free: 6.195 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.177/1.177, allocations: 222.9 MB / 240.6 MB, free: 15.41 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.6238/0.6238, allocations: 115.3 MB / 406.1 MB, free: 6.328 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001204/0.001204, allocations: 64.05 kB / 493.2 MB, free: 0.543 MB / 398.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.269/0.2703, allocations: 76.17 MB / 0.5561 GB, free: 36.29 MB / 446.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation): time 0.002221/0.2725, allocations: 1.811 MB / 0.5578 GB, free: 35.05 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.005274/0.2778, allocations: 5.386 MB / 0.5631 GB, free: 31.38 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.518e-05/0.2779, allocations: 0 / 0.5631 GB, free: 31.38 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008952/0.2788, allocations: 351.6 kB / 0.5634 GB, free: 31.23 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 8.61e-05/0.2789, allocations: 55.27 kB / 0.5635 GB, free: 31.2 MB / 446.1 MB [/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‘. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/Utilities/Clustering/KMeans.mo:96:7-96:35:writable] Warning: inertia was used before it was defined (given a value). Additional such uses may exist for the variable, but some messages were suppressed. Notification: Performance of NFTyping.typeClassSections: time 0.002759/0.2817, allocations: 1.341 MB / 0.5648 GB, free: 30.72 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001768/0.2818, allocations: 157.7 kB / 0.5649 GB, free: 30.67 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.782e-05/0.2819, allocations: 18.25 kB / 0.565 GB, free: 30.66 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.081e-05/0.282, allocations: 60.05 kB / 0.565 GB, free: 30.64 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002077/0.2822, allocations: 179.5 kB / 0.5652 GB, free: 30.59 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 3.523e-05/0.2822, allocations: 16.16 kB / 0.5652 GB, free: 30.59 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002467/0.2847, allocations: 2.2 MB / 0.5673 GB, free: 29.92 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001913/0.2849, allocations: 282.7 kB / 0.5676 GB, free: 29.84 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001912/0.2851, allocations: 307.2 kB / 0.5679 GB, free: 29.64 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002264/0.2874, allocations: 2.184 MB / 0.57 GB, free: 29 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.815e-06/0.2874, allocations: 2.328 kB / 0.57 GB, free: 29 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.252e-06/0.2874, allocations: 0 / 0.57 GB, free: 29 MB / 446.1 MB Notification: Performance of Transformations before backend: time 8.536e-06/0.2874, allocations: 0 / 0.57 GB, free: 29 MB / 446.1 MB 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.008354/0.2957, allocations: 1.365 MB / 0.5714 GB, free: 28.04 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.258e-05/0.2958, allocations: 9.625 kB / 0.5714 GB, free: 28.04 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.615e-05/0.2958, allocations: 39.17 kB / 0.5714 GB, free: 28 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000334/0.2962, allocations: 94.11 kB / 0.5715 GB, free: 27.94 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003424/0.2965, allocations: 406.3 kB / 0.5719 GB, free: 27.62 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.11e-05/0.2965, allocations: 8.547 kB / 0.5719 GB, free: 27.62 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.955e-05/0.2966, allocations: 6.641 kB / 0.5719 GB, free: 27.62 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003787/0.297, allocations: 391.9 kB / 0.5723 GB, free: 27.56 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.264e-06/0.297, allocations: 0 / 0.5723 GB, free: 27.56 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.264e-05/0.297, allocations: 4.656 kB / 0.5723 GB, free: 27.55 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.238e-06/0.297, allocations: 1.531 kB / 0.5723 GB, free: 27.55 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000378/0.2974, allocations: 438.7 kB / 0.5727 GB, free: 27.55 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005045/0.2979, allocations: 0.6691 MB / 0.5734 GB, free: 27.15 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004752/0.2984, allocations: 0.5634 MB / 0.5739 GB, free: 27.09 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002744/0.2987, allocations: 338.1 kB / 0.5742 GB, free: 27.07 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007022/0.2994, allocations: 1.029 MB / 0.5752 GB, free: 25.94 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003244/0.2997, allocations: 402.8 kB / 0.5756 GB, free: 25.86 MB / 446.1 MB Notification: Performance of pre-optimization done (n=8): time 1.152e-06/0.2997, allocations: 3.938 kB / 0.5756 GB, free: 25.86 MB / 446.1 MB Notification: Performance of matching and sorting (n=8): time 0.001188/0.3009, allocations: 1.295 MB / 0.5769 GB, free: 25.75 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.691e-05/0.3009, allocations: 81.62 kB / 0.577 GB, free: 25.65 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001095/0.3021, allocations: 1.295 MB / 0.5782 GB, free: 25.14 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 3.914e-05/0.3021, allocations: 36.25 kB / 0.5783 GB, free: 25.1 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001489/0.3023, allocations: 286.3 kB / 0.5785 GB, free: 24.88 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.759e-05/0.3023, allocations: 18.09 kB / 0.5786 GB, free: 24.87 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002955/0.3026, allocations: 355.1 kB / 0.5789 GB, free: 24.77 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 4.078e-05/0.3026, allocations: 317.9 kB / 0.5792 GB, free: 24.46 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001057/0.3037, allocations: 1.371 MB / 0.5805 GB, free: 24.01 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001133/0.3048, allocations: 1.506 MB / 0.582 GB, free: 23.48 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00617/0.311, allocations: 3.554 MB / 0.5855 GB, free: 21.5 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.786e-06/0.311, allocations: 1.188 kB / 0.5855 GB, free: 21.5 MB / 446.1 MB Notification: Performance of matching and sorting (n=319) (initialization): time 0.002997/0.314, allocations: 4.025 MB / 0.5894 GB, free: 17.79 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.505e-05/0.3141, allocations: 4 kB / 0.5894 GB, free: 17.78 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.472e-05/0.3141, allocations: 5.031 kB / 0.5894 GB, free: 17.78 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.433e-05/0.3141, allocations: 0 / 0.5894 GB, free: 17.78 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001164/0.3142, allocations: 19.02 kB / 0.5894 GB, free: 17.76 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.282e-06/0.3142, allocations: 3.938 kB / 0.5894 GB, free: 17.76 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004794/0.3147, allocations: 232.3 kB / 0.5897 GB, free: 17.53 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.308e-05/0.3148, allocations: 24.3 kB / 0.5897 GB, free: 17.5 MB / 446.1 MB 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.0002471/0.315, allocations: 245.7 kB / 0.5899 GB, free: 17.25 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.306e-05/0.3151, allocations: 84.23 kB / 0.59 GB, free: 17.17 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002365/0.3153, allocations: 84.66 kB / 0.5901 GB, free: 17.09 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.635e-06/0.3153, allocations: 0 / 0.5901 GB, free: 17.09 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.728e-06/0.3153, allocations: 4 kB / 0.5901 GB, free: 17.08 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.156e-06/0.3153, allocations: 0.5312 kB / 0.5901 GB, free: 17.08 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000334/0.3157, allocations: 0.5111 MB / 0.5906 GB, free: 16.53 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.475e-06/0.3157, allocations: 3.938 kB / 0.5906 GB, free: 16.52 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.214e-05/0.3158, allocations: 17.08 kB / 0.5906 GB, free: 16.51 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.244e-06/0.3158, allocations: 0 / 0.5906 GB, free: 16.51 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.083e-05/0.3158, allocations: 0 / 0.5906 GB, free: 16.51 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.813e-06/0.3158, allocations: 5.062 kB / 0.5906 GB, free: 16.5 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.743e-06/0.3158, allocations: 3.984 kB / 0.5906 GB, free: 16.5 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005498/0.3164, allocations: 1.004 MB / 0.5916 GB, free: 15.48 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.195e-05/0.3164, allocations: 167.6 kB / 0.5918 GB, free: 15.29 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.261e-05/0.3165, allocations: 8.609 kB / 0.5918 GB, free: 15.29 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001382/0.3166, allocations: 0.875 kB / 0.5918 GB, free: 15.29 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.224e-05/0.3167, allocations: 11.98 kB / 0.5918 GB, free: 15.27 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.531e-05/0.3167, allocations: 17.8 kB / 0.5918 GB, free: 15.26 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0005222/0.3172, allocations: 0.7261 MB / 0.5925 GB, free: 14.53 MB / 446.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3172, allocations: 0 / 0.5925 GB, free: 14.53 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.00164/0.3189, allocations: 0.5818 MB / 0.5931 GB, free: 13.95 MB / 446.1 MB 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.002303/0.3212, allocations: 2.141 MB / 0.5952 GB, free: 11.8 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.001515/0.3227, allocations: 2.556 MB / 0.5977 GB, free: 9.238 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.645e-06/0.3227, allocations: 2.094 kB / 0.5977 GB, free: 9.238 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002126/0.323, allocations: 335.8 kB / 0.598 GB, free: 8.91 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003553/0.3233, allocations: 61.53 kB / 0.598 GB, free: 8.855 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01155/0.3349, allocations: 15.3 MB / 0.613 GB, free: 9.387 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004923/0.3354, allocations: 0.9879 MB / 0.6139 GB, free: 8.375 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.0001823/0.3356, allocations: 37.42 kB / 0.614 GB, free: 8.34 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000284/0.3359, allocations: 291.3 kB / 0.6143 GB, free: 8.055 MB / 462.1 MB Notification: Performance of SimCode: time 5.81e-07/0.3359, allocations: 0 / 0.6143 GB, free: 8.055 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 3.231/3.567, allocations: 23.75 MB / 0.6375 GB, free: 0.5391 MB / 478.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003242/3.568, allocations: 341.8 kB / 0.6378 GB, free: 156 kB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.437/6.004, allocations: 6.344 kB / 0.6378 GB, free: 152 kB / 478.1 MB (rm -f IBPSA_latest_IBPSA.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe ; mkfifo IBPSA_latest_IBPSA.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe >> ../files/IBPSA_latest_IBPSA.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IBPSA_latest_IBPSA_Fluid_Geothermal_Borefields_BaseClasses_HeatTransfer_ThermalResponseFactors_Validation_GFunction_SmallScaleValidation_fmu --startTime=0 --stopTime=1.8e+12 --timeout=50 --tolerance=1e-06 IBPSA_latest_IBPSA_Fluid_Geothermal_Borefields_BaseClasses_HeatTransfer_ThermalResponseFactors_Validation_GFunction_SmallScaleValidation.fmu > IBPSA_latest_IBPSA.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe 2>&1)