Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.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/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-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(BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Geothermal_Borefields_BaseClasses_HeatTransfer_ThermalResponseFactors_Validation_GFunction_1borehole_5meters",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters,fileNamePrefix="BuildingSystems_BuildingSystems_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.001106/0.001106, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001047/0.001047, allocations: 189.9 kB / 16.13 MB, free: 6.66 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.2/1.2, allocations: 222.9 MB / 239.8 MB, free: 4.586 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002834/0.002834, allocations: 269.9 kB / 290.2 MB, free: 2.203 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8543/0.8543, allocations: 169.2 MB / 0.4977 GB, free: 14.18 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001514/0.001514, allocations: 88.62 kB / 0.5946 GB, free: 28.35 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.122/0.1235, allocations: 86.99 MB / 0.6796 GB, free: 1.047 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters): time 0.002117/0.1256, allocations: 1.475 MB / 0.681 GB, free: 15.57 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.005604/0.1313, allocations: 4.492 MB / 0.6854 GB, free: 11.06 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.052e-05/0.1313, allocations: 0 / 0.6854 GB, free: 11.06 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 8.534e-05/0.1314, allocations: 15.92 kB / 0.6854 GB, free: 11.05 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001583/0.1316, allocations: 27.84 kB / 0.6855 GB, free: 11.02 MB / 494.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‘. Notification: Performance of NFTyping.typeClassSections: time 0.002249/0.1338, allocations: 1.18 MB / 0.6866 GB, free: 9.84 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001082/0.1339, allocations: 127.6 kB / 0.6867 GB, free: 9.715 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.116e-05/0.134, allocations: 4 kB / 0.6867 GB, free: 9.711 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.967e-05/0.134, allocations: 39.84 kB / 0.6868 GB, free: 9.672 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001839/0.1342, allocations: 160.9 kB / 0.6869 GB, free: 9.516 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 3.814e-05/0.1343, allocations: 16 kB / 0.6869 GB, free: 9.5 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002463/0.1367, allocations: 2.18 MB / 0.6891 GB, free: 7.316 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001818/0.1369, allocations: 271.8 kB / 0.6893 GB, free: 7.051 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002101/0.1372, allocations: 278.3 kB / 0.6896 GB, free: 6.777 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002049/0.1392, allocations: 2.151 MB / 0.6917 GB, free: 4.617 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.869e-06/0.1392, allocations: 3.984 kB / 0.6917 GB, free: 4.613 MB / 494.1 MB Notification: Performance of FrontEnd: time 6.41e-07/0.1392, allocations: 0 / 0.6917 GB, free: 4.613 MB / 494.1 MB Notification: Performance of Transformations before backend: time 4.98e-06/0.1392, allocations: 0 / 0.6917 GB, free: 4.613 MB / 494.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.007085/0.1463, allocations: 1.304 MB / 0.693 GB, free: 3.258 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.435e-05/0.1464, allocations: 8.031 kB / 0.693 GB, free: 3.25 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.122e-05/0.1464, allocations: 42.75 kB / 0.693 GB, free: 3.199 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003313/0.1467, allocations: 83.69 kB / 0.6931 GB, free: 3.117 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003245/0.1471, allocations: 365 kB / 0.6934 GB, free: 2.711 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.913e-06/0.1471, allocations: 4.375 kB / 0.6934 GB, free: 2.707 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.562e-05/0.1471, allocations: 8.375 kB / 0.6935 GB, free: 2.699 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003661/0.1475, allocations: 391.3 kB / 0.6938 GB, free: 2.305 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.891e-06/0.1475, allocations: 0 / 0.6938 GB, free: 2.305 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.369e-05/0.1475, allocations: 7.984 kB / 0.6938 GB, free: 2.297 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.777e-06/0.1475, allocations: 0 / 0.6938 GB, free: 2.297 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003743/0.1479, allocations: 435.6 kB / 0.6943 GB, free: 1.871 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004718/0.1484, allocations: 0.6482 MB / 0.6949 GB, free: 1.172 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004339/0.1489, allocations: 0.5556 MB / 0.6954 GB, free: 0.5977 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002667/0.1491, allocations: 337.6 kB / 0.6958 GB, free: 268 kB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0008675/0.15, allocations: 1.028 MB / 0.6968 GB, free: 15.01 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003471/0.1504, allocations: 400.8 kB / 0.6971 GB, free: 14.6 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=8): time 1.092e-06/0.1504, allocations: 0 / 0.6971 GB, free: 14.6 MB / 0.4981 GB Notification: Performance of matching and sorting (n=8): time 0.001126/0.1515, allocations: 1.293 MB / 0.6984 GB, free: 13.3 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.804e-05/0.1516, allocations: 81.11 kB / 0.6985 GB, free: 13.2 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009617/0.1525, allocations: 1.222 MB / 0.6997 GB, free: 11.96 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 3.336e-05/0.1526, allocations: 29.69 kB / 0.6997 GB, free: 11.93 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001577/0.1527, allocations: 265.4 kB / 0.7 GB, free: 11.66 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 2.727e-05/0.1528, allocations: 19.88 kB / 0.7 GB, free: 11.64 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002728/0.153, allocations: 355.6 kB / 0.7003 GB, free: 11.29 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 8.309e-05/0.1531, allocations: 310 kB / 0.7006 GB, free: 10.98 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001054/0.1542, allocations: 1.369 MB / 0.7019 GB, free: 9.613 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001147/0.1553, allocations: 1.509 MB / 0.7034 GB, free: 8.094 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006373/0.1617, allocations: 3.56 MB / 0.7069 GB, free: 4.441 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.304e-06/0.1617, allocations: 0 / 0.7069 GB, free: 4.441 MB / 0.4981 GB Notification: Performance of matching and sorting (n=319) (initialization): time 0.003661/0.1654, allocations: 4.006 MB / 0.7108 GB, free: 408 kB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.241e-05/0.1654, allocations: 4 kB / 0.7108 GB, free: 404 kB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.197e-05/0.1654, allocations: 4 kB / 0.7108 GB, free: 400 kB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.029e-05/0.1655, allocations: 0 / 0.7108 GB, free: 400 kB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001104/0.1656, allocations: 20.02 kB / 0.7108 GB, free: 380 kB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.533e-06/0.1656, allocations: 4 kB / 0.7108 GB, free: 376 kB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003837/0.166, allocations: 228.3 kB / 0.7111 GB, free: 144 kB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.985e-05/0.166, allocations: 23.98 kB / 0.7111 GB, free: 120 kB / 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 (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.0002496/0.1663, allocations: 243.1 kB / 0.7113 GB, free: 15.87 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.935e-05/0.1663, allocations: 66.72 kB / 0.7114 GB, free: 15.8 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002382/0.1666, allocations: 79.06 kB / 0.7114 GB, free: 15.72 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.194e-06/0.1666, allocations: 0 / 0.7114 GB, free: 15.72 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.917e-06/0.1666, allocations: 0 / 0.7114 GB, free: 15.72 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.655e-06/0.1666, allocations: 0 / 0.7114 GB, free: 15.72 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003634/0.167, allocations: 0.493 MB / 0.7119 GB, free: 15.18 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.345e-06/0.167, allocations: 3.938 kB / 0.7119 GB, free: 15.18 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.69e-05/0.1671, allocations: 11.92 kB / 0.7119 GB, free: 15.16 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.362e-06/0.1671, allocations: 8 kB / 0.712 GB, free: 15.16 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.002e-05/0.1671, allocations: 32 / 0.712 GB, free: 15.16 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.473e-06/0.1671, allocations: 4 kB / 0.712 GB, free: 15.15 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.98e-06/0.1671, allocations: 7.969 kB / 0.712 GB, free: 15.14 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007828/0.1679, allocations: 0.9974 MB / 0.7129 GB, free: 14.12 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 8.644e-05/0.168, allocations: 155.8 kB / 0.7131 GB, free: 13.95 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.463e-05/0.1681, allocations: 4 kB / 0.7131 GB, free: 13.95 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001292/0.1682, allocations: 11.98 kB / 0.7131 GB, free: 13.94 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.022e-05/0.1682, allocations: 7.984 kB / 0.7131 GB, free: 13.93 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.498e-05/0.1683, allocations: 15.92 kB / 0.7131 GB, free: 13.91 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.0006062/0.1689, allocations: 0.6689 MB / 0.7138 GB, free: 13.24 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.3e-07/0.1689, allocations: 0 / 0.7138 GB, free: 13.24 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.001246/0.1701, allocations: 0.5896 MB / 0.7144 GB, free: 12.65 MB / 0.5137 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.002517/0.1726, allocations: 2.135 MB / 0.7164 GB, free: 10.5 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.001949/0.1746, allocations: 2.548 MB / 0.7189 GB, free: 7.938 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 2.003e-06/0.1746, allocations: 4.062 kB / 0.7189 GB, free: 7.934 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.0002961/0.1749, allocations: 339.8 kB / 0.7193 GB, free: 7.602 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002701/0.1752, allocations: 36.53 kB / 0.7193 GB, free: 7.566 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01304/0.1883, allocations: 15.26 MB / 0.7342 GB, free: 8.133 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004198/0.1887, allocations: 0.9682 MB / 0.7351 GB, free: 7.141 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.0001558/0.1889, allocations: 36.55 kB / 0.7352 GB, free: 7.105 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002612/0.1891, allocations: 263.3 kB / 0.7354 GB, free: 6.848 MB / 0.5294 GB Notification: Performance of SimCode: time 6.71e-07/0.1891, allocations: 0 / 0.7354 GB, free: 6.848 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.398/1.587, allocations: 23.27 MB / 0.7582 GB, free: 15.81 MB / 0.5606 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002974/1.588, allocations: 349.9 kB / 0.7585 GB, free: 15.44 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.292/3.88, allocations: 0 / 0.7585 GB, free: 15.44 MB / 0.5606 GB (rm -f BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Fluid_Geothermal_Borefields_BaseClasses_HeatTransfer_ThermalResponseFactors_Validation_GFunction_1borehole_5meters_fmu --startTime=0 --stopTime=4.12e+08 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Fluid_Geothermal_Borefields_BaseClasses_HeatTransfer_ThermalResponseFactors_Validation_GFunction_1borehole_5meters.fmu > BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.pipe 2>&1)