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.001101/0.001101, allocations: 106.4 kB / 16.41 MB, free: 6.5 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.001031/0.001031, allocations: 193.2 kB / 17.34 MB, free: 5.742 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.278/1.278, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.7088/0.7088, allocations: 115.3 MB / 406.5 MB, free: 6.133 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001175/0.001175, allocations: 62.11 kB / 0.5573 GB, free: 32.49 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1389/0.1401, allocations: 76.19 MB / 0.6317 GB, free: 4.84 MB / 478.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation): time 0.002918/0.143, allocations: 1.726 MB / 0.6334 GB, free: 3.102 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.007531/0.1506, allocations: 5.397 MB / 0.6386 GB, free: 13.68 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001488/0.1508, allocations: 7.938 kB / 0.6386 GB, free: 13.67 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001273/0.1521, allocations: 373.4 kB / 0.639 GB, free: 13.31 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001642/0.1523, allocations: 55.66 kB / 0.639 GB, free: 13.25 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/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.003976/0.1563, allocations: 1.495 MB / 0.6405 GB, free: 11.75 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002912/0.1566, allocations: 159.4 kB / 0.6406 GB, free: 11.6 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.751e-05/0.1567, allocations: 17.53 kB / 0.6407 GB, free: 11.58 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.759e-05/0.1568, allocations: 63.7 kB / 0.6407 GB, free: 11.52 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002292/0.157, allocations: 167.5 kB / 0.6409 GB, free: 11.36 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 4.552e-05/0.1571, allocations: 12 kB / 0.6409 GB, free: 11.34 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003482/0.1605, allocations: 2.208 MB / 0.6431 GB, free: 9.133 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002294/0.1608, allocations: 287.7 kB / 0.6433 GB, free: 8.848 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002794/0.1611, allocations: 306.1 kB / 0.6436 GB, free: 8.547 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003595/0.1647, allocations: 2.178 MB / 0.6457 GB, free: 6.363 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.148e-06/0.1647, allocations: 4 kB / 0.6458 GB, free: 6.359 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.743e-06/0.1647, allocations: 0 / 0.6458 GB, free: 6.359 MB / 494.1 MB Notification: Performance of Transformations before backend: time 1.869e-05/0.1647, allocations: 0 / 0.6458 GB, free: 6.359 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.01079/0.1755, allocations: 1.37 MB / 0.6471 GB, free: 4.938 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.941e-05/0.1756, allocations: 12.03 kB / 0.6471 GB, free: 4.926 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.487e-05/0.1757, allocations: 30.75 kB / 0.6471 GB, free: 4.887 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004307/0.1761, allocations: 95.59 kB / 0.6472 GB, free: 4.793 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006062/0.1767, allocations: 414.2 kB / 0.6476 GB, free: 4.34 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.62e-05/0.1768, allocations: 4.359 kB / 0.6476 GB, free: 4.336 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.008e-05/0.1768, allocations: 8.312 kB / 0.6476 GB, free: 4.328 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004247/0.1772, allocations: 395.3 kB / 0.648 GB, free: 3.93 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.278e-06/0.1773, allocations: 0 / 0.648 GB, free: 3.93 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.368e-05/0.1773, allocations: 4 kB / 0.648 GB, free: 3.926 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.269e-06/0.1773, allocations: 3.938 kB / 0.648 GB, free: 3.922 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004251/0.1777, allocations: 435.7 kB / 0.6484 GB, free: 3.496 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006875/0.1784, allocations: 0.6731 MB / 0.6491 GB, free: 2.773 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005099/0.1789, allocations: 0.5594 MB / 0.6496 GB, free: 2.195 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003003/0.1792, allocations: 333.7 kB / 0.65 GB, free: 1.863 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001087/0.1803, allocations: 1.028 MB / 0.651 GB, free: 0.6133 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004031/0.1808, allocations: 412.8 kB / 0.6513 GB, free: 196 kB / 494.1 MB Notification: Performance of pre-optimization done (n=8): time 1.874e-06/0.1808, allocations: 0 / 0.6513 GB, free: 196 kB / 494.1 MB Notification: Performance of matching and sorting (n=8): time 0.001358/0.1821, allocations: 1.296 MB / 0.6526 GB, free: 14.89 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.255e-05/0.1822, allocations: 81.11 kB / 0.6527 GB, free: 14.79 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001313/0.1835, allocations: 1.289 MB / 0.654 GB, free: 13.49 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 4.495e-05/0.1836, allocations: 29.7 kB / 0.654 GB, free: 13.45 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002136/0.1838, allocations: 285.4 kB / 0.6543 GB, free: 13.17 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 3.985e-05/0.1839, allocations: 23.73 kB / 0.6543 GB, free: 13.14 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003307/0.1842, allocations: 355.7 kB / 0.6546 GB, free: 12.79 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001093/0.1843, allocations: 318 kB / 0.6549 GB, free: 12.48 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001159/0.1855, allocations: 1.369 MB / 0.6563 GB, free: 11.11 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001213/0.1867, allocations: 1.505 MB / 0.6577 GB, free: 9.59 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006713/0.1934, allocations: 3.564 MB / 0.6612 GB, free: 5.934 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.144e-06/0.1935, allocations: 0 / 0.6612 GB, free: 5.934 MB / 0.4981 GB Notification: Performance of matching and sorting (n=319) (initialization): time 0.004258/0.1977, allocations: 4.014 MB / 0.6651 GB, free: 1.883 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 2.528e-05/0.1978, allocations: 6.031 kB / 0.6651 GB, free: 1.879 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.156e-05/0.1978, allocations: 4 kB / 0.6651 GB, free: 1.875 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.96e-05/0.1978, allocations: 0 / 0.6651 GB, free: 1.875 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001365/0.198, allocations: 20.02 kB / 0.6652 GB, free: 1.855 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.978e-06/0.198, allocations: 4 kB / 0.6652 GB, free: 1.852 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000489/0.1985, allocations: 228.3 kB / 0.6654 GB, free: 1.625 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.788e-05/0.1986, allocations: 23.98 kB / 0.6654 GB, free: 1.602 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 (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.0003228/0.1989, allocations: 253.5 kB / 0.6656 GB, free: 1.344 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.301e-05/0.199, allocations: 82.56 kB / 0.6657 GB, free: 1.262 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002943/0.1993, allocations: 79.81 kB / 0.6658 GB, free: 1.176 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.338e-06/0.1993, allocations: 0 / 0.6658 GB, free: 1.176 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.285e-06/0.1993, allocations: 4 kB / 0.6658 GB, free: 1.172 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.29e-06/0.1993, allocations: 0 / 0.6658 GB, free: 1.172 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004655/0.1998, allocations: 0.5102 MB / 0.6663 GB, free: 0.6172 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.088e-06/0.1998, allocations: 7.938 kB / 0.6663 GB, free: 0.6094 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.552e-05/0.1999, allocations: 4 kB / 0.6663 GB, free: 0.6055 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.507e-06/0.1999, allocations: 0 / 0.6663 GB, free: 0.6055 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.096e-05/0.1999, allocations: 15.98 kB / 0.6663 GB, free: 0.5898 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.214e-06/0.1999, allocations: 7.969 kB / 0.6663 GB, free: 0.582 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.573e-06/0.1999, allocations: 0 / 0.6663 GB, free: 0.582 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008609/0.2008, allocations: 1.014 MB / 0.6673 GB, free: 15.55 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001381/0.2009, allocations: 163.7 kB / 0.6675 GB, free: 15.37 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.969e-05/0.201, allocations: 4 kB / 0.6675 GB, free: 15.36 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000141/0.2012, allocations: 11.98 kB / 0.6675 GB, free: 15.35 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.547e-05/0.2012, allocations: 4 kB / 0.6675 GB, free: 15.35 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.609e-05/0.2013, allocations: 7.984 kB / 0.6675 GB, free: 15.34 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.0007409/0.202, allocations: 0.7261 MB / 0.6682 GB, free: 14.61 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.743e-06/0.202, allocations: 0 / 0.6682 GB, free: 14.61 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.001485/0.2035, allocations: 0.5895 MB / 0.6688 GB, free: 14.02 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.00317/0.2067, allocations: 2.137 MB / 0.6709 GB, free: 11.87 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.002292/0.209, allocations: 2.554 MB / 0.6734 GB, free: 9.301 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 3.126e-06/0.209, allocations: 0 / 0.6734 GB, free: 9.301 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.000333/0.2093, allocations: 343.7 kB / 0.6737 GB, free: 8.965 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004398/0.2098, allocations: 60.22 kB / 0.6738 GB, free: 8.906 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01396/0.2238, allocations: 15.24 MB / 0.6886 GB, free: 9.492 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004807/0.2243, allocations: 0.9995 MB / 0.6896 GB, free: 8.465 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.0001713/0.2245, allocations: 41.72 kB / 0.6897 GB, free: 8.426 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003007/0.2248, allocations: 291.3 kB / 0.6899 GB, free: 8.141 MB / 0.5294 GB Notification: Performance of SimCode: time 1.102e-06/0.2248, allocations: 0 / 0.6899 GB, free: 8.141 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04901/0.2738, allocations: 24.3 MB / 0.7137 GB, free: 48 kB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.812/10.09, allocations: 10.55 kB / 0.7137 GB, free: 36 kB / 0.545 GB (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)