Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.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/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_SmallScaleValidation,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Geothermal_Borefields_BaseClasses_HeatTransfer_ThermalResponseFactors_Validation_GFunction_SmallScaleValidation",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation,fileNamePrefix="BuildingSystems_BuildingSystems_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.0009949/0.0009952, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001022/0.001022, allocations: 192.4 kB / 16.25 MB, free: 6.617 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.237/1.237, allocations: 222.9 MB / 239.9 MB, free: 4.512 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001948/0.001948, allocations: 295.1 kB / 290.4 MB, free: 2.121 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.866/0.866, allocations: 169.2 MB / 0.4978 GB, free: 14.09 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001578/0.001578, allocations: 99.61 kB / 0.5948 GB, free: 28.37 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1315/0.133, allocations: 86.98 MB / 0.6798 GB, free: 0.8906 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation): time 0.002574/0.1357, allocations: 1.804 MB / 0.6815 GB, free: 15.08 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.006225/0.1419, allocations: 5.395 MB / 0.6868 GB, free: 9.668 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.304e-05/0.142, allocations: 0 / 0.6868 GB, free: 9.668 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008935/0.1429, allocations: 358.6 kB / 0.6871 GB, free: 9.316 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 9.333e-05/0.143, allocations: 55.72 kB / 0.6872 GB, free: 9.262 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‘. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.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.002575/0.1456, allocations: 1.34 MB / 0.6885 GB, free: 7.926 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001799/0.1458, allocations: 163.3 kB / 0.6887 GB, free: 7.766 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.2e-05/0.1458, allocations: 13.55 kB / 0.6887 GB, free: 7.754 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.155e-05/0.1459, allocations: 59.77 kB / 0.6887 GB, free: 7.695 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001975/0.1461, allocations: 176.8 kB / 0.6889 GB, free: 7.523 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 3.45e-05/0.1461, allocations: 16 kB / 0.6889 GB, free: 7.508 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002353/0.1485, allocations: 2.196 MB / 0.6911 GB, free: 5.309 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001839/0.1487, allocations: 279.8 kB / 0.6913 GB, free: 5.035 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002264/0.1489, allocations: 310.1 kB / 0.6916 GB, free: 4.73 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002005/0.1509, allocations: 2.186 MB / 0.6938 GB, free: 2.535 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.125e-06/0.1509, allocations: 0 / 0.6938 GB, free: 2.535 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.132e-06/0.1509, allocations: 0 / 0.6938 GB, free: 2.535 MB / 494.1 MB Notification: Performance of Transformations before backend: time 6.843e-06/0.1509, allocations: 0 / 0.6938 GB, free: 2.535 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.008442/0.1594, allocations: 1.368 MB / 0.6951 GB, free: 1.117 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.287e-05/0.1594, allocations: 12.03 kB / 0.6951 GB, free: 1.105 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.662e-05/0.1595, allocations: 38.75 kB / 0.6951 GB, free: 1.059 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003415/0.1598, allocations: 95.58 kB / 0.6952 GB, free: 0.9648 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003776/0.1602, allocations: 410.1 kB / 0.6956 GB, free: 0.5156 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.122e-05/0.1602, allocations: 8.375 kB / 0.6956 GB, free: 0.5078 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.529e-05/0.1603, allocations: 4.375 kB / 0.6956 GB, free: 0.5039 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00037/0.1606, allocations: 399.2 kB / 0.696 GB, free: 104 kB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.532e-06/0.1607, allocations: 0 / 0.696 GB, free: 104 kB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.067e-05/0.1607, allocations: 0 / 0.696 GB, free: 104 kB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.307e-06/0.1607, allocations: 0 / 0.696 GB, free: 104 kB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003734/0.1611, allocations: 431.8 kB / 0.6964 GB, free: 15.68 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005072/0.1616, allocations: 0.677 MB / 0.6971 GB, free: 14.95 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004331/0.162, allocations: 0.5555 MB / 0.6976 GB, free: 14.38 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002683/0.1623, allocations: 341.7 kB / 0.698 GB, free: 14.04 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008591/0.1632, allocations: 1.025 MB / 0.699 GB, free: 12.79 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003571/0.1635, allocations: 412.8 kB / 0.6994 GB, free: 12.37 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=8): time 1.282e-06/0.1635, allocations: 0 / 0.6994 GB, free: 12.37 MB / 0.4981 GB Notification: Performance of matching and sorting (n=8): time 0.00111/0.1647, allocations: 1.296 MB / 0.7006 GB, free: 11.07 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.501e-05/0.1647, allocations: 81.11 kB / 0.7007 GB, free: 10.97 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001035/0.1658, allocations: 1.293 MB / 0.702 GB, free: 9.664 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 3.475e-05/0.1658, allocations: 29.7 kB / 0.702 GB, free: 9.629 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001729/0.166, allocations: 285.4 kB / 0.7023 GB, free: 9.344 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 2.687e-05/0.166, allocations: 15.81 kB / 0.7023 GB, free: 9.328 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002812/0.1663, allocations: 355.6 kB / 0.7026 GB, free: 8.977 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 8.628e-05/0.1664, allocations: 326.1 kB / 0.7029 GB, free: 8.652 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001061/0.1674, allocations: 1.369 MB / 0.7043 GB, free: 7.281 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001125/0.1686, allocations: 1.505 MB / 0.7057 GB, free: 5.766 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006434/0.175, allocations: 3.56 MB / 0.7092 GB, free: 2.113 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.847e-06/0.175, allocations: 0 / 0.7092 GB, free: 2.113 MB / 0.4981 GB Notification: Performance of matching and sorting (n=319) (initialization): time 0.003692/0.1787, allocations: 4.014 MB / 0.7131 GB, free: 14.06 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 1.374e-05/0.1788, allocations: 4 kB / 0.7131 GB, free: 14.06 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.391e-05/0.1788, allocations: 0 / 0.7131 GB, free: 14.06 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.108e-05/0.1788, allocations: 7.938 kB / 0.7131 GB, free: 14.05 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001102/0.1789, allocations: 19.98 kB / 0.7132 GB, free: 14.03 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.029e-06/0.1789, allocations: 0 / 0.7132 GB, free: 14.03 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000414/0.1793, allocations: 240.2 kB / 0.7134 GB, free: 13.79 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.449e-05/0.1794, allocations: 19.98 kB / 0.7134 GB, free: 13.77 MB / 0.5137 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.00026/0.1797, allocations: 246.3 kB / 0.7136 GB, free: 13.52 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.642e-05/0.1797, allocations: 78.56 kB / 0.7137 GB, free: 13.45 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002496/0.18, allocations: 83.81 kB / 0.7138 GB, free: 13.36 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.314e-06/0.18, allocations: 4 kB / 0.7138 GB, free: 13.35 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.21e-06/0.18, allocations: 4 kB / 0.7138 GB, free: 13.35 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.795e-06/0.18, allocations: 0 / 0.7138 GB, free: 13.35 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003689/0.1804, allocations: 0.5141 MB / 0.7143 GB, free: 12.79 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.545e-06/0.1804, allocations: 3.938 kB / 0.7143 GB, free: 12.79 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.379e-05/0.1805, allocations: 7.984 kB / 0.7143 GB, free: 12.78 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.833e-06/0.1805, allocations: 4 kB / 0.7143 GB, free: 12.77 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.088e-05/0.1805, allocations: 0 / 0.7143 GB, free: 12.77 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.333e-06/0.1805, allocations: 0 / 0.7143 GB, free: 12.77 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.32e-07/0.1805, allocations: 4 kB / 0.7143 GB, free: 12.77 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007733/0.1813, allocations: 1.01 MB / 0.7153 GB, free: 11.74 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001007/0.1814, allocations: 163.6 kB / 0.7155 GB, free: 11.56 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.16e-05/0.1815, allocations: 7.922 kB / 0.7155 GB, free: 11.55 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001369/0.1816, allocations: 7.984 kB / 0.7155 GB, free: 11.54 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.845e-05/0.1816, allocations: 8 kB / 0.7155 GB, free: 11.54 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.941e-05/0.1817, allocations: 19.97 kB / 0.7155 GB, free: 11.52 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.0006732/0.1824, allocations: 0.7222 MB / 0.7162 GB, free: 10.79 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.2e-07/0.1824, allocations: 0 / 0.7162 GB, free: 10.79 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.00122/0.1836, allocations: 0.5818 MB / 0.7168 GB, free: 10.21 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.00247/0.1861, allocations: 2.152 MB / 0.7189 GB, free: 8.039 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.001976/0.1881, allocations: 2.56 MB / 0.7214 GB, free: 5.465 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 1.853e-06/0.1881, allocations: 0 / 0.7214 GB, free: 5.465 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.0002841/0.1884, allocations: 343.8 kB / 0.7217 GB, free: 5.129 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003421/0.1887, allocations: 54.67 kB / 0.7218 GB, free: 5.078 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01354/0.2023, allocations: 15.28 MB / 0.7367 GB, free: 5.621 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004591/0.2027, allocations: 0.9957 MB / 0.7377 GB, free: 4.602 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.000174/0.2029, allocations: 37.42 kB / 0.7377 GB, free: 4.566 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000289/0.2032, allocations: 287.3 kB / 0.738 GB, free: 4.285 MB / 0.5294 GB Notification: Performance of SimCode: time 5.41e-07/0.2032, allocations: 0 / 0.738 GB, free: 4.285 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03422/0.2374, allocations: 23.78 MB / 0.7612 GB, free: 12.78 MB / 0.5606 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002028/0.2377, allocations: 357.7 kB / 0.7615 GB, free: 12.4 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.444/2.682, allocations: 4.062 kB / 0.7615 GB, free: 12.4 MB / 0.5606 GB (rm -f BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Fluid_Geothermal_Borefields_BaseClasses_HeatTransfer_ThermalResponseFactors_Validation_GFunction_SmallScaleValidation_fmu --startTime=0 --stopTime=1.8e+12 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Fluid_Geothermal_Borefields_BaseClasses_HeatTransfer_ThermalResponseFactors_Validation_GFunction_SmallScaleValidation.fmu > BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe 2>&1)