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.0009283/0.0009282, allocations: 96.27 kB / 15.69 MB, free: 480 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008988/0.0008988, allocations: 178.2 kB / 16.57 MB, free: 6.855 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.244/1.244, allocations: 223.2 MB / 240.5 MB, free: 5.441 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.6613/0.6613, allocations: 113.7 MB / 405.3 MB, free: 4.699 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003047/0.0003047, allocations: 8 kB / 493 MB, free: 8.566 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1541/0.1544, allocations: 77.12 MB / 0.5568 GB, free: 11.65 MB / 430.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation): time 0.001823/0.1563, allocations: 1.38 MB / 0.5581 GB, free: 10.26 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.006636/0.1629, allocations: 4.856 MB / 0.5629 GB, free: 5.387 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001331/0.1631, allocations: 3.938 kB / 0.5629 GB, free: 5.383 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0012/0.1643, allocations: 338.9 kB / 0.5632 GB, free: 5.051 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000113/0.1644, allocations: 51.83 kB / 0.5632 GB, free: 5 MB / 430.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.003133/0.1676, allocations: 1.084 MB / 0.5643 GB, free: 3.914 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001967/0.1678, allocations: 103.8 kB / 0.5644 GB, free: 3.812 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.349e-05/0.1678, allocations: 9.562 kB / 0.5644 GB, free: 3.805 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.79e-05/0.1679, allocations: 63.77 kB / 0.5645 GB, free: 3.742 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002057/0.1682, allocations: 163.6 kB / 0.5646 GB, free: 3.582 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 3.944e-05/0.1682, allocations: 16 kB / 0.5646 GB, free: 3.566 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002886/0.1711, allocations: 1.864 MB / 0.5665 GB, free: 1.699 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001883/0.1713, allocations: 255.3 kB / 0.5667 GB, free: 1.449 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001198/0.1714, allocations: 129.1 kB / 0.5668 GB, free: 1.316 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002037/0.1735, allocations: 1.446 MB / 0.5682 GB, free: 15.87 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.697e-06/0.1735, allocations: 0 / 0.5682 GB, free: 15.87 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.385e-06/0.1735, allocations: 4 kB / 0.5682 GB, free: 15.86 MB / 446.1 MB Notification: Performance of Transformations before backend: time 7.424e-06/0.1735, allocations: 3.938 kB / 0.5682 GB, free: 15.86 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.01013/0.1836, allocations: 1.316 MB / 0.5695 GB, free: 14.49 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.157e-05/0.1837, allocations: 12.03 kB / 0.5695 GB, free: 14.48 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.49e-05/0.1838, allocations: 34.56 kB / 0.5696 GB, free: 14.44 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003608/0.1841, allocations: 98.64 kB / 0.5697 GB, free: 14.34 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004755/0.1846, allocations: 393.1 kB / 0.57 GB, free: 13.91 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.017e-05/0.1846, allocations: 7.984 kB / 0.57 GB, free: 13.9 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.266e-05/0.1847, allocations: 11.95 kB / 0.5701 GB, free: 13.89 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004125/0.1851, allocations: 387.1 kB / 0.5704 GB, free: 13.5 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.2e-05/0.1851, allocations: 0 / 0.5704 GB, free: 13.5 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.402e-05/0.1851, allocations: 7.922 kB / 0.5704 GB, free: 13.49 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.051e-06/0.1852, allocations: 4 kB / 0.5704 GB, free: 13.48 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004112/0.1856, allocations: 431.8 kB / 0.5709 GB, free: 13.06 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006503/0.1862, allocations: 0.6654 MB / 0.5715 GB, free: 12.35 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000494/0.1867, allocations: 0.5633 MB / 0.5721 GB, free: 11.77 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001004/0.1877, allocations: 1.044 MB / 0.5731 GB, free: 10.5 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003824/0.1881, allocations: 408.8 kB / 0.5735 GB, free: 10.08 MB / 446.1 MB Notification: Performance of pre-optimization done (n=8): time 1.522e-06/0.1882, allocations: 0 / 0.5735 GB, free: 10.08 MB / 446.1 MB Notification: Performance of matching and sorting (n=8): time 0.00131/0.1895, allocations: 1.285 MB / 0.5747 GB, free: 8.789 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.397e-05/0.1895, allocations: 93.03 kB / 0.5748 GB, free: 8.68 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001229/0.1908, allocations: 1.278 MB / 0.5761 GB, free: 7.391 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 4.138e-05/0.1908, allocations: 29.7 kB / 0.5761 GB, free: 7.355 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002083/0.191, allocations: 293.4 kB / 0.5764 GB, free: 7.062 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.686e-05/0.1911, allocations: 19.73 kB / 0.5764 GB, free: 7.043 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.634e-05/0.1911, allocations: 7.984 kB / 0.5764 GB, free: 7.035 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001783/0.1913, allocations: 419.9 kB / 0.5768 GB, free: 6.617 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001152/0.1925, allocations: 1.369 MB / 0.5781 GB, free: 5.246 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001292/0.1938, allocations: 1.505 MB / 0.5796 GB, free: 3.73 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001546/0.1953, allocations: 1.914 MB / 0.5815 GB, free: 1.801 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.268e-06/0.1953, allocations: 0 / 0.5815 GB, free: 1.801 MB / 446.1 MB Notification: Performance of matching and sorting (n=319) (initialization): time 0.353/0.5483, allocations: 3.982 MB / 0.5854 GB, free: 31.56 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.407e-05/0.5484, allocations: 8.328 kB / 0.5854 GB, free: 31.56 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.495e-05/0.5484, allocations: 7.609 kB / 0.5854 GB, free: 31.56 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.216e-05/0.5485, allocations: 1.875 kB / 0.5854 GB, free: 31.56 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000151/0.5486, allocations: 18.86 kB / 0.5854 GB, free: 31.56 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.038e-05/0.5486, allocations: 2.406 kB / 0.5854 GB, free: 31.56 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005756/0.5492, allocations: 236.7 kB / 0.5856 GB, free: 31.39 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.036e-05/0.5493, allocations: 22.64 kB / 0.5856 GB, free: 31.39 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 ($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.0004038/0.5497, allocations: 247.3 kB / 0.5859 GB, free: 31.28 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.877e-05/0.5498, allocations: 79.36 kB / 0.5859 GB, free: 31.22 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000321/0.5501, allocations: 82.83 kB / 0.586 GB, free: 31.17 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.911e-06/0.5501, allocations: 1.875 kB / 0.586 GB, free: 31.17 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.995e-06/0.5501, allocations: 5.203 kB / 0.586 GB, free: 31.17 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.09e-06/0.5502, allocations: 1.812 kB / 0.586 GB, free: 31.17 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006524/0.5508, allocations: 0.5137 MB / 0.5865 GB, free: 30.98 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.365e-06/0.5508, allocations: 1.781 kB / 0.5865 GB, free: 30.98 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.721e-05/0.5509, allocations: 11 kB / 0.5865 GB, free: 30.98 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.517e-06/0.5509, allocations: 3.688 kB / 0.5866 GB, free: 30.98 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.557e-05/0.5509, allocations: 5.516 kB / 0.5866 GB, free: 30.98 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.076e-06/0.5509, allocations: 2.078 kB / 0.5866 GB, free: 30.98 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.725e-06/0.551, allocations: 0 / 0.5866 GB, free: 30.98 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001404/0.5524, allocations: 1.026 MB / 0.5876 GB, free: 30.84 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001196/0.5525, allocations: 157.5 kB / 0.5877 GB, free: 30.69 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.258e-05/0.5526, allocations: 2.906 kB / 0.5877 GB, free: 30.69 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001614/0.5527, allocations: 9.266 kB / 0.5877 GB, free: 30.69 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.604e-05/0.5528, allocations: 6.562 kB / 0.5877 GB, free: 30.69 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.851e-05/0.5529, allocations: 13.31 kB / 0.5877 GB, free: 30.69 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.00117/0.554, allocations: 0.7133 MB / 0.5884 GB, free: 30.58 MB / 446.1 MB Notification: Performance of sort global known variables: time 3.4e-07/0.554, allocations: 0 / 0.5884 GB, free: 30.58 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002011/0.5561, allocations: 0.5853 MB / 0.589 GB, free: 30.56 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 (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.003568/0.5596, allocations: 2.21 MB / 0.5912 GB, free: 29.82 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.003182/0.5628, allocations: 2.551 MB / 0.5937 GB, free: 28.93 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 4.288e-06/0.5629, allocations: 3.5 kB / 0.5937 GB, free: 28.93 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005112/0.5634, allocations: 341.4 kB / 0.594 GB, free: 28.92 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004773/0.5639, allocations: 64.91 kB / 0.5941 GB, free: 28.88 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004794/0.5687, allocations: 2.806 MB / 0.5968 GB, free: 27.69 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007016/0.5694, allocations: 1.012 MB / 0.5978 GB, free: 26.98 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0002238/0.5696, allocations: 38.3 kB / 0.5978 GB, free: 26.98 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003433/0.57, allocations: 287.8 kB / 0.5981 GB, free: 26.74 MB / 446.1 MB Notification: Performance of SimCode: time 1.954e-06/0.57, allocations: 0 / 0.5981 GB, free: 26.74 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1116/0.6816, allocations: 21.83 MB / 0.6194 GB, free: 14.44 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001756/0.6818, allocations: 301.5 kB / 0.6197 GB, free: 14.09 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.063/3.744, allocations: 4.062 kB / 0.6197 GB, free: 14.08 MB / 446.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/linux/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) Environment - environmentSimulation: