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.004442/0.004442, allocations: 100.5 kB / 15.87 MB, free: 6.312 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.001135/0.001135, allocations: 195.4 kB / 16.79 MB, free: 6.242 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.203/1.203, allocations: 222.9 MB / 240.5 MB, free: 4.551 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.617/0.617, allocations: 115.3 MB / 406 MB, free: 2.762 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00112/0.00112, allocations: 64.88 kB / 493 MB, free: 6.676 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.122/0.1231, allocations: 76.18 MB / 0.5559 GB, free: 10.7 MB / 430.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation): time 0.002524/0.1257, allocations: 1.81 MB / 0.5577 GB, free: 8.867 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.007129/0.1328, allocations: 5.645 MB / 0.5632 GB, free: 3.199 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.793e-05/0.1329, allocations: 7.938 kB / 0.5632 GB, free: 3.191 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008951/0.1338, allocations: 354.7 kB / 0.5635 GB, free: 2.844 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 8.94e-05/0.1339, allocations: 55.73 kB / 0.5636 GB, free: 2.789 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.002294/0.1362, allocations: 1.177 MB / 0.5647 GB, free: 1.613 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002053/0.1364, allocations: 207.3 kB / 0.5649 GB, free: 1.41 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.778e-05/0.1364, allocations: 13.55 kB / 0.5649 GB, free: 1.398 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.086e-05/0.1365, allocations: 63.66 kB / 0.565 GB, free: 1.336 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000184/0.1367, allocations: 176.8 kB / 0.5652 GB, free: 1.164 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 3.957e-05/0.1367, allocations: 16 kB / 0.5652 GB, free: 1.148 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002467/0.1392, allocations: 2.184 MB / 0.5673 GB, free: 14.96 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001907/0.1394, allocations: 275.8 kB / 0.5676 GB, free: 14.69 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002381/0.1397, allocations: 302.2 kB / 0.5679 GB, free: 14.39 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002125/0.1418, allocations: 2.225 MB / 0.57 GB, free: 12.16 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.055e-06/0.1418, allocations: 0 / 0.57 GB, free: 12.16 MB / 446.1 MB Notification: Performance of FrontEnd: time 7.71e-07/0.1418, allocations: 0 / 0.57 GB, free: 12.16 MB / 446.1 MB Notification: Performance of Transformations before backend: time 5.56e-06/0.1418, allocations: 8 kB / 0.57 GB, free: 12.15 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.007167/0.149, allocations: 1.363 MB / 0.5714 GB, free: 10.74 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.333e-05/0.149, allocations: 8.031 kB / 0.5714 GB, free: 10.73 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.484e-05/0.1491, allocations: 38.73 kB / 0.5714 GB, free: 10.68 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003477/0.1494, allocations: 95.59 kB / 0.5715 GB, free: 10.59 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004129/0.1499, allocations: 406.2 kB / 0.5719 GB, free: 10.14 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.1e-05/0.1499, allocations: 12.31 kB / 0.5719 GB, free: 10.13 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.632e-05/0.1499, allocations: 8.375 kB / 0.5719 GB, free: 10.12 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003793/0.1503, allocations: 391.3 kB / 0.5723 GB, free: 9.73 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.432e-06/0.1503, allocations: 0 / 0.5723 GB, free: 9.73 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.166e-05/0.1503, allocations: 0 / 0.5723 GB, free: 9.73 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.838e-06/0.1503, allocations: 3.938 kB / 0.5723 GB, free: 9.727 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004016/0.1508, allocations: 439.7 kB / 0.5727 GB, free: 9.297 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000534/0.1513, allocations: 0.6692 MB / 0.5734 GB, free: 8.578 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004702/0.1518, allocations: 0.5632 MB / 0.5739 GB, free: 7.996 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000276/0.1521, allocations: 337.7 kB / 0.5742 GB, free: 7.66 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0009015/0.153, allocations: 1.025 MB / 0.5752 GB, free: 6.414 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003593/0.1533, allocations: 412.8 kB / 0.5756 GB, free: 5.992 MB / 446.1 MB Notification: Performance of pre-optimization done (n=8): time 1.203e-06/0.1534, allocations: 4 kB / 0.5756 GB, free: 5.988 MB / 446.1 MB Notification: Performance of matching and sorting (n=8): time 0.001191/0.1545, allocations: 1.293 MB / 0.5769 GB, free: 4.688 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.065e-05/0.1546, allocations: 81.11 kB / 0.577 GB, free: 4.59 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001108/0.1557, allocations: 1.293 MB / 0.5782 GB, free: 3.285 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 3.488e-05/0.1558, allocations: 33.69 kB / 0.5783 GB, free: 3.246 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001901/0.156, allocations: 285.5 kB / 0.5785 GB, free: 2.961 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.87e-05/0.156, allocations: 15.81 kB / 0.5785 GB, free: 2.945 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003007/0.1563, allocations: 351.6 kB / 0.5789 GB, free: 2.598 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001075/0.1564, allocations: 318 kB / 0.5792 GB, free: 2.281 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001132/0.1575, allocations: 1.373 MB / 0.5805 GB, free: 0.9062 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.187/0.3445, allocations: 1.499 MB / 0.582 GB, free: 31.84 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006341/0.3509, allocations: 3.568 MB / 0.5855 GB, free: 30.34 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.767e-06/0.3509, allocations: 0 / 0.5855 GB, free: 30.34 MB / 446.1 MB Notification: Performance of matching and sorting (n=319) (initialization): time 0.003584/0.3545, allocations: 4.015 MB / 0.5894 GB, free: 28.4 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.552e-05/0.3545, allocations: 5.75 kB / 0.5894 GB, free: 28.4 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.004e-05/0.3546, allocations: 2.844 kB / 0.5894 GB, free: 28.4 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.477e-05/0.3546, allocations: 3.281 kB / 0.5894 GB, free: 28.4 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001161/0.3547, allocations: 16.7 kB / 0.5894 GB, free: 28.4 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.633e-06/0.3547, allocations: 2.016 kB / 0.5894 GB, free: 28.4 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003755/0.3551, allocations: 236 kB / 0.5896 GB, free: 28.23 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.026e-05/0.3552, allocations: 23.36 kB / 0.5897 GB, free: 28.23 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 (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.0002716/0.3554, allocations: 251.9 kB / 0.5899 GB, free: 28.11 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.015e-05/0.3555, allocations: 75.48 kB / 0.59 GB, free: 28.06 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000247/0.3557, allocations: 77.97 kB / 0.5901 GB, free: 28.01 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.226e-06/0.3558, allocations: 5.297 kB / 0.5901 GB, free: 28.01 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.63e-06/0.3558, allocations: 2.234 kB / 0.5901 GB, free: 28.01 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.507e-06/0.3558, allocations: 3.141 kB / 0.5901 GB, free: 28.01 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003815/0.3562, allocations: 0.5125 MB / 0.5906 GB, free: 27.73 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.623e-06/0.3562, allocations: 0.625 kB / 0.5906 GB, free: 27.73 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.55e-05/0.3562, allocations: 8.188 kB / 0.5906 GB, free: 27.73 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.635e-06/0.3563, allocations: 2.391 kB / 0.5906 GB, free: 27.73 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.229e-05/0.3563, allocations: 10.47 kB / 0.5906 GB, free: 27.72 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.933e-06/0.3563, allocations: 5.109 kB / 0.5906 GB, free: 27.72 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.954e-06/0.3563, allocations: 2.062 kB / 0.5906 GB, free: 27.72 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000921/0.3572, allocations: 1.01 MB / 0.5916 GB, free: 27.57 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.915e-05/0.3573, allocations: 167.4 kB / 0.5917 GB, free: 27.42 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.402e-05/0.3574, allocations: 6.594 kB / 0.5917 GB, free: 27.41 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001429/0.3575, allocations: 4.688 kB / 0.5918 GB, free: 27.41 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.221e-05/0.3576, allocations: 9.203 kB / 0.5918 GB, free: 27.41 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.787e-05/0.3576, allocations: 13.61 kB / 0.5918 GB, free: 27.41 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0007012/0.3583, allocations: 0.7267 MB / 0.5925 GB, free: 27.17 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3583, allocations: 0.6875 kB / 0.5925 GB, free: 27.17 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001326/0.3596, allocations: 0.5905 MB / 0.5931 GB, free: 27.14 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 (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.002547/0.3622, allocations: 2.144 MB / 0.5952 GB, free: 26.41 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.001904/0.3641, allocations: 2.545 MB / 0.5976 GB, free: 25.39 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.683e-06/0.3641, allocations: 0.6562 kB / 0.5976 GB, free: 25.39 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003002/0.3644, allocations: 340.2 kB / 0.598 GB, free: 25.38 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003421/0.3648, allocations: 58.84 kB / 0.598 GB, free: 25.35 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01246/0.3772, allocations: 15.29 MB / 0.613 GB, free: 17.53 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003587/0.3776, allocations: 0.9912 MB / 0.6139 GB, free: 16.64 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0001757/0.3778, allocations: 40.77 kB / 0.614 GB, free: 16.61 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002398/0.3781, allocations: 289.2 kB / 0.6142 GB, free: 16.35 MB / 446.1 MB Notification: Performance of SimCode: time 1.353e-06/0.3781, allocations: 0 / 0.6142 GB, free: 16.35 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02871/0.4068, allocations: 23.45 MB / 0.6371 GB, free: 10.07 MB / 462.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002389/0.407, allocations: 338.3 kB / 0.6375 GB, free: 9.695 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.352/2.759, allocations: 0 / 0.6375 GB, free: 9.695 MB / 462.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/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)