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.0006973/0.0006973, allocations: 92.86 kB / 15.7 MB, free: 472 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.0007049/0.0007049, allocations: 177.3 kB / 16.58 MB, free: 6.398 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.181/1.181, allocations: 223.2 MB / 240.6 MB, free: 5.41 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.6038/0.6038, allocations: 113.7 MB / 405.4 MB, free: 4.562 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002643/0.0002643, allocations: 11.94 kB / 493.2 MB, free: 8.527 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1193/0.1196, allocations: 77.12 MB / 0.5569 GB, free: 11.61 MB / 430.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation): time 0.001634/0.1212, allocations: 1.41 MB / 0.5583 GB, free: 10.19 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.006007/0.1273, allocations: 4.976 MB / 0.5632 GB, free: 5.191 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.66e-05/0.1274, allocations: 4 kB / 0.5632 GB, free: 5.188 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008531/0.1282, allocations: 314.7 kB / 0.5635 GB, free: 4.879 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001011/0.1283, allocations: 55.72 kB / 0.5635 GB, free: 4.824 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.002539/0.1309, allocations: 1.126 MB / 0.5646 GB, free: 3.699 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001879/0.1311, allocations: 171.3 kB / 0.5648 GB, free: 3.531 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.156e-05/0.1311, allocations: 13.55 kB / 0.5648 GB, free: 3.516 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.189e-05/0.1312, allocations: 55.78 kB / 0.5649 GB, free: 3.461 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001933/0.1314, allocations: 187.6 kB / 0.565 GB, free: 3.277 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 3.373e-05/0.1314, allocations: 16 kB / 0.5651 GB, free: 3.262 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002341/0.1338, allocations: 1.954 MB / 0.567 GB, free: 1.305 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00018/0.134, allocations: 267.2 kB / 0.5672 GB, free: 1.043 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001002/0.1341, allocations: 125.2 kB / 0.5673 GB, free: 0.9141 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001341/0.1354, allocations: 1.458 MB / 0.5688 GB, free: 15.45 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.578e-06/0.1354, allocations: 4 kB / 0.5688 GB, free: 15.45 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.152e-06/0.1355, allocations: 0 / 0.5688 GB, free: 15.45 MB / 446.1 MB Notification: Performance of Transformations before backend: time 5.17e-06/0.1355, allocations: 0 / 0.5688 GB, free: 15.45 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.006503/0.142, allocations: 1.308 MB / 0.57 GB, free: 14.09 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.231e-05/0.142, allocations: 12.03 kB / 0.5701 GB, free: 14.08 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.217e-05/0.1421, allocations: 30.56 kB / 0.5701 GB, free: 14.04 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003/0.1424, allocations: 94.66 kB / 0.5702 GB, free: 13.95 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003848/0.1428, allocations: 405 kB / 0.5706 GB, free: 13.5 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.558e-06/0.1428, allocations: 4 kB / 0.5706 GB, free: 13.5 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.053e-05/0.1428, allocations: 7.953 kB / 0.5706 GB, free: 13.49 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003637/0.1432, allocations: 395.2 kB / 0.571 GB, free: 13.09 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.623e-06/0.1432, allocations: 0 / 0.571 GB, free: 13.09 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.689e-06/0.1432, allocations: 4 kB / 0.571 GB, free: 13.09 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.869e-06/0.1432, allocations: 4 kB / 0.571 GB, free: 13.08 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003877/0.1436, allocations: 435.7 kB / 0.5714 GB, free: 12.66 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005181/0.1441, allocations: 0.6615 MB / 0.572 GB, free: 11.95 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004609/0.1446, allocations: 0.5672 MB / 0.5726 GB, free: 11.36 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002755/0.1449, allocations: 337.7 kB / 0.5729 GB, free: 11.02 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0008412/0.1457, allocations: 1.036 MB / 0.5739 GB, free: 9.766 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003524/0.1461, allocations: 412.8 kB / 0.5743 GB, free: 9.344 MB / 446.1 MB Notification: Performance of pre-optimization done (n=8): time 1.223e-06/0.1461, allocations: 0 / 0.5743 GB, free: 9.344 MB / 446.1 MB Notification: Performance of matching and sorting (n=8): time 0.001138/0.1473, allocations: 1.289 MB / 0.5756 GB, free: 8.047 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.906e-05/0.1473, allocations: 93.22 kB / 0.5757 GB, free: 7.938 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001069/0.1484, allocations: 1.27 MB / 0.5769 GB, free: 6.656 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 3.745e-05/0.1484, allocations: 41.62 kB / 0.5769 GB, free: 6.609 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000178/0.1486, allocations: 289.3 kB / 0.5772 GB, free: 6.32 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.83e-05/0.1487, allocations: 19.75 kB / 0.5772 GB, free: 6.301 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.166e-05/0.1487, allocations: 3.938 kB / 0.5772 GB, free: 6.297 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001646/0.1489, allocations: 423.9 kB / 0.5776 GB, free: 5.875 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0011/0.15, allocations: 1.373 MB / 0.579 GB, free: 4.5 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001164/0.1511, allocations: 1.505 MB / 0.5804 GB, free: 2.984 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0014/0.1525, allocations: 1.91 MB / 0.5823 GB, free: 1.059 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.034e-06/0.1526, allocations: 0 / 0.5823 GB, free: 1.059 MB / 446.1 MB Notification: Performance of matching and sorting (n=319) (initialization): time 0.2198/0.3723, allocations: 3.983 MB / 0.5862 GB, free: 31.68 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.278e-05/0.3724, allocations: 8.875 kB / 0.5862 GB, free: 31.68 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.777e-05/0.3724, allocations: 5.5 kB / 0.5862 GB, free: 31.68 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.589e-05/0.3724, allocations: 1.406 kB / 0.5862 GB, free: 31.68 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001176/0.3725, allocations: 16.56 kB / 0.5862 GB, free: 31.68 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.174e-06/0.3726, allocations: 2.938 kB / 0.5862 GB, free: 31.68 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003805/0.3729, allocations: 231.2 kB / 0.5865 GB, free: 31.53 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.94e-05/0.373, allocations: 27.62 kB / 0.5865 GB, free: 31.53 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.0002852/0.3733, allocations: 248.5 kB / 0.5867 GB, free: 31.41 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.906e-05/0.3733, allocations: 79.05 kB / 0.5868 GB, free: 31.36 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000244/0.3736, allocations: 84.34 kB / 0.5869 GB, free: 31.3 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.659e-06/0.3736, allocations: 2.266 kB / 0.5869 GB, free: 31.3 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.899e-06/0.3736, allocations: 0.9062 kB / 0.5869 GB, free: 31.3 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.907e-06/0.3736, allocations: 1.453 kB / 0.5869 GB, free: 31.3 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004551/0.3741, allocations: 0.5184 MB / 0.5874 GB, free: 31.11 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.613e-06/0.3741, allocations: 4.406 kB / 0.5874 GB, free: 31.11 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.363e-05/0.3742, allocations: 8.344 kB / 0.5874 GB, free: 31.11 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.136e-06/0.3742, allocations: 1.438 kB / 0.5874 GB, free: 31.11 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.177e-05/0.3742, allocations: 4.484 kB / 0.5874 GB, free: 31.11 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.775e-06/0.3742, allocations: 1.469 kB / 0.5874 GB, free: 31.11 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.693e-06/0.3742, allocations: 0.875 kB / 0.5874 GB, free: 31.11 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009809/0.3752, allocations: 1.011 MB / 0.5884 GB, free: 30.98 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.783e-05/0.3753, allocations: 165.7 kB / 0.5885 GB, free: 30.83 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.19e-05/0.3753, allocations: 4.406 kB / 0.5886 GB, free: 30.83 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001325/0.3755, allocations: 5.547 kB / 0.5886 GB, free: 30.83 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.994e-05/0.3755, allocations: 11.97 kB / 0.5886 GB, free: 30.83 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.359e-05/0.3756, allocations: 12.52 kB / 0.5886 GB, free: 30.83 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0007629/0.3763, allocations: 0.7178 MB / 0.5893 GB, free: 30.72 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3763, allocations: 3.812 kB / 0.5893 GB, free: 30.72 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001319/0.3777, allocations: 0.5756 MB / 0.5898 GB, free: 30.71 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.002591/0.3803, allocations: 2.133 MB / 0.5919 GB, free: 30.02 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.002256/0.3825, allocations: 2.55 MB / 0.5944 GB, free: 29.01 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.913e-06/0.3825, allocations: 3.219 kB / 0.5944 GB, free: 29.01 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004072/0.383, allocations: 340.7 kB / 0.5947 GB, free: 29 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003267/0.3833, allocations: 57.42 kB / 0.5948 GB, free: 28.97 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009742/0.393, allocations: 9.669 MB / 0.6042 GB, free: 24.9 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004097/0.3935, allocations: 0.9875 MB / 0.6052 GB, free: 24.2 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0001912/0.3937, allocations: 42.97 kB / 0.6053 GB, free: 24.19 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002567/0.3939, allocations: 287.5 kB / 0.6055 GB, free: 23.95 MB / 446.1 MB Notification: Performance of SimCode: time 5.81e-07/0.3939, allocations: 0 / 0.6055 GB, free: 23.95 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03071/0.4247, allocations: 22.97 MB / 0.628 GB, free: 6.238 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001657/0.4249, allocations: 310.4 kB / 0.6283 GB, free: 5.887 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.18/2.605, allocations: 0 / 0.6283 GB, free: 5.887 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: