Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildSysPro_BuildSysPro.IBPSA.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.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/BuildSysPro 3.5.0-master/package.mo", uses=false) Using package BuildSysPro with version 3.5.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.5.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(BuildSysPro.IBPSA.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters,fileNamePrefix="BuildSysPro_BuildSysPro_IBPSA_Fluid_Geothermal_Borefields_BaseClasses_HeatTransfer_ThermalResponseFactors_Validation_GFunction_1borehole_5meters",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildSysPro.IBPSA.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters,fileNamePrefix="BuildSysPro_BuildSysPro_IBPSA_Fluid_Geothermal_Borefields_BaseClasses_HeatTransfer_ThermalResponseFactors_Validation_GFunction_1borehole_5meters",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.0009111/0.0009111, allocations: 84.38 kB / 15.06 MB, free: 1.09 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.0009705/0.0009705, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.47/1.47, allocations: 223.2 MB / 240 MB, free: 5.387 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.5.0-master/package.mo): time 1.016/1.016, allocations: 143.4 MB / 434.4 MB, free: 13.76 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003197/0.0003198, allocations: 15.98 kB / 0.5161 GB, free: 11.16 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1554/0.1558, allocations: 83.41 MB / 0.5976 GB, free: 7.691 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(BuildSysPro.IBPSA.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters): time 0.00141/0.1572, allocations: 1.129 MB / 0.5987 GB, free: 6.551 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.005389/0.1626, allocations: 3.912 MB / 0.6025 GB, free: 2.621 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.325e-05/0.1627, allocations: 0 / 0.6025 GB, free: 2.621 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.0001004/0.1628, allocations: 11.88 kB / 0.6025 GB, free: 2.609 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.0002001/0.163, allocations: 23.89 kB / 0.6026 GB, free: 2.586 MB / 0.4981 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.002967/0.166, allocations: 1.13 MB / 0.6037 GB, free: 1.453 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0001548/0.1662, allocations: 99.7 kB / 0.6037 GB, free: 1.355 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 5.222e-05/0.1662, allocations: 7.984 kB / 0.6038 GB, free: 1.348 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 6.85e-05/0.1663, allocations: 47.84 kB / 0.6038 GB, free: 1.301 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002457/0.1666, allocations: 175.7 kB / 0.604 GB, free: 1.129 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 3.591e-05/0.1666, allocations: 16 kB / 0.604 GB, free: 1.113 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.3059/0.4725, allocations: 1.94 MB / 0.6059 GB, free: 35.51 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0001934/0.4728, allocations: 262.3 kB / 0.6061 GB, free: 35.51 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0001076/0.4729, allocations: 117.4 kB / 0.6062 GB, free: 35.48 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.001981/0.4749, allocations: 1.403 MB / 0.6076 GB, free: 35.39 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 4.99e-06/0.4749, allocations: 0 / 0.6076 GB, free: 35.39 MB / 0.4981 GB Notification: Performance of FrontEnd: time 2.104e-06/0.4749, allocations: 0 / 0.6076 GB, free: 35.39 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 7.684e-06/0.4749, allocations: 0 / 0.6076 GB, free: 35.39 MB / 0.4981 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.006764/0.4817, allocations: 1.247 MB / 0.6088 GB, free: 34.54 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.164e-05/0.4818, allocations: 10.05 kB / 0.6088 GB, free: 34.54 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.4e-05/0.4818, allocations: 40.22 kB / 0.6089 GB, free: 34.5 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003205/0.4821, allocations: 91.58 kB / 0.609 GB, free: 34.45 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003097/0.4824, allocations: 358 kB / 0.6093 GB, free: 34.18 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.214e-05/0.4825, allocations: 5.812 kB / 0.6093 GB, free: 34.18 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.684e-05/0.4825, allocations: 7.234 kB / 0.6093 GB, free: 34.18 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003503/0.4829, allocations: 386.9 kB / 0.6097 GB, free: 34.14 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.012e-05/0.4829, allocations: 0.6094 kB / 0.6097 GB, free: 34.14 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.235e-05/0.4829, allocations: 3 kB / 0.6097 GB, free: 34.14 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.909e-06/0.4829, allocations: 1.031 kB / 0.6097 GB, free: 34.14 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000335/0.4832, allocations: 438 kB / 0.6101 GB, free: 34.14 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004389/0.4837, allocations: 0.6477 MB / 0.6107 GB, free: 33.84 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003979/0.4841, allocations: 0.5645 MB / 0.6113 GB, free: 33.79 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000237/0.4844, allocations: 335 kB / 0.6116 GB, free: 33.78 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007333/0.4851, allocations: 1.034 MB / 0.6126 GB, free: 32.65 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003137/0.4854, allocations: 409.3 kB / 0.613 GB, free: 32.59 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=8): time 1.332e-06/0.4854, allocations: 0 / 0.613 GB, free: 32.59 MB / 0.4981 GB Notification: Performance of matching and sorting (n=8): time 0.00108/0.4865, allocations: 1.293 MB / 0.6143 GB, free: 32.51 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.361e-05/0.4866, allocations: 80.92 kB / 0.6144 GB, free: 32.41 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000918/0.4875, allocations: 1.206 MB / 0.6155 GB, free: 32.18 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 2.737e-05/0.4875, allocations: 25.7 kB / 0.6156 GB, free: 32.15 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001342/0.4877, allocations: 264.1 kB / 0.6158 GB, free: 32.02 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 2.935e-05/0.4877, allocations: 25.61 kB / 0.6158 GB, free: 32 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.39e-05/0.4877, allocations: 3.359 kB / 0.6158 GB, free: 32 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001067/0.4878, allocations: 421.8 kB / 0.6162 GB, free: 31.69 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00101/0.4889, allocations: 1.37 MB / 0.6176 GB, free: 31.68 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001116/0.49, allocations: 1.506 MB / 0.619 GB, free: 31.64 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001377/0.4914, allocations: 1.915 MB / 0.6209 GB, free: 31.15 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.156e-06/0.4914, allocations: 0 / 0.6209 GB, free: 31.15 MB / 0.4981 GB Notification: Performance of matching and sorting (n=319) (initialization): time 0.003522/0.4949, allocations: 3.978 MB / 0.6248 GB, free: 30.09 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.857e-05/0.4949, allocations: 7.656 kB / 0.6248 GB, free: 30.09 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.824e-05/0.495, allocations: 2.656 kB / 0.6248 GB, free: 30.09 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.007e-05/0.495, allocations: 6.156 kB / 0.6248 GB, free: 30.09 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000122/0.4951, allocations: 19.5 kB / 0.6248 GB, free: 30.09 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.364e-06/0.4951, allocations: 0.8438 kB / 0.6248 GB, free: 30.09 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004079/0.4956, allocations: 234.8 kB / 0.6251 GB, free: 29.9 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.801e-05/0.4956, allocations: 23.45 kB / 0.6251 GB, free: 29.9 MB / 0.4981 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 ($whenCondition1,$PRE.k,k,$PRE.t1,t1,$PRE.t2,t2,$PRE.gFun1,gFun1,$PRE.gFun2,gFun2,labels[1],cluSiz[1]) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002561/0.4959, allocations: 239.7 kB / 0.6253 GB, free: 29.79 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.262e-05/0.4959, allocations: 71.77 kB / 0.6254 GB, free: 29.73 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002434/0.4962, allocations: 73.12 kB / 0.6254 GB, free: 29.68 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.438e-06/0.4962, allocations: 5.531 kB / 0.6255 GB, free: 29.68 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.68e-06/0.4962, allocations: 0 / 0.6255 GB, free: 29.68 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.048e-06/0.4962, allocations: 4.688 kB / 0.6255 GB, free: 29.68 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003457/0.4966, allocations: 0.4918 MB / 0.6259 GB, free: 29.48 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.483e-06/0.4966, allocations: 0 / 0.6259 GB, free: 29.48 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.191e-05/0.4966, allocations: 8.625 kB / 0.6259 GB, free: 29.48 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.076e-06/0.4966, allocations: 7.219 kB / 0.626 GB, free: 29.48 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.27e-05/0.4967, allocations: 4.938 kB / 0.626 GB, free: 29.48 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.023e-06/0.4967, allocations: 0 / 0.626 GB, free: 29.48 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.316e-06/0.4967, allocations: 3.641 kB / 0.626 GB, free: 29.48 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007429/0.4974, allocations: 0.9945 MB / 0.6269 GB, free: 29.36 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 7.066e-05/0.4975, allocations: 157.6 kB / 0.6271 GB, free: 29.2 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.483e-05/0.4976, allocations: 3.094 kB / 0.6271 GB, free: 29.2 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001214/0.4977, allocations: 9.859 kB / 0.6271 GB, free: 29.2 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.701e-05/0.4977, allocations: 8.062 kB / 0.6271 GB, free: 29.2 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.028e-05/0.4978, allocations: 13.89 kB / 0.6271 GB, free: 29.2 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0005943/0.4984, allocations: 0.66 MB / 0.6278 GB, free: 29.09 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.1e-07/0.4984, allocations: 3.781 kB / 0.6278 GB, free: 29.09 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.001508/0.4999, allocations: 0.5756 MB / 0.6283 GB, free: 29.02 MB / 0.4981 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002855/0.5028, allocations: 2.118 MB / 0.6304 GB, free: 28.28 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.00272/0.5055, allocations: 2.559 MB / 0.6329 GB, free: 27.9 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 3.657e-06/0.5055, allocations: 0 / 0.6329 GB, free: 27.9 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0004203/0.5059, allocations: 343 kB / 0.6332 GB, free: 27.89 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003642/0.5063, allocations: 34.78 kB / 0.6333 GB, free: 27.87 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01294/0.5193, allocations: 9.744 MB / 0.6428 GB, free: 23.95 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004873/0.5198, allocations: 0.9684 MB / 0.6437 GB, free: 23.24 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0001855/0.52, allocations: 34.72 kB / 0.6437 GB, free: 23.23 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002695/0.5203, allocations: 261.5 kB / 0.644 GB, free: 23.02 MB / 0.4981 GB Notification: Performance of SimCode: time 1.483e-06/0.5203, allocations: 5.812 kB / 0.644 GB, free: 23.01 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05348/0.5738, allocations: 22.96 MB / 0.6664 GB, free: 19.32 MB / 0.4981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001653/0.574, allocations: 322.3 kB / 0.6667 GB, free: 18.96 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.584/3.158, allocations: 0 / 0.6667 GB, free: 18.96 MB / 0.4981 GB (rm -f BuildSysPro_BuildSysPro.IBPSA.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.pipe ; mkfifo BuildSysPro_BuildSysPro.IBPSA.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.pipe ; head -c 1048576 < BuildSysPro_BuildSysPro.IBPSA.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.pipe >> ../files/BuildSysPro_BuildSysPro.IBPSA.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildSysPro_BuildSysPro_IBPSA_Fluid_Geothermal_Borefields_BaseClasses_HeatTransfer_ThermalResponseFactors_Validation_GFunction_1borehole_5meters_fmu --startTime=0 --stopTime=4.12e+08 --timeout=50 --tolerance=1e-06 BuildSysPro_BuildSysPro_IBPSA_Fluid_Geothermal_Borefields_BaseClasses_HeatTransfer_ThermalResponseFactors_Validation_GFunction_1borehole_5meters.fmu > BuildSysPro_BuildSysPro.IBPSA.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.pipe 2>&1) Environment - environmentSimulation: