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.001225/0.001225, allocations: 101.4 kB / 16.27 MB, free: 5.93 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.001264/0.001264, allocations: 190.5 kB / 17.2 MB, free: 5.574 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.27/1.27, allocations: 222.9 MB / 240.9 MB, free: 15.28 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.6873/0.6873, allocations: 122.9 MB / 413.9 MB, free: 15.88 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001188/0.001188, allocations: 63.91 kB / 0.4912 GB, free: 7.324 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2843/0.2855, allocations: 77.92 MB / 0.5673 GB, free: 32.7 MB / 446.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation): time 0.002428/0.288, allocations: 1.743 MB / 0.569 GB, free: 31.49 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.005717/0.2937, allocations: 5.381 MB / 0.5743 GB, free: 27.84 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.387e-05/0.2938, allocations: 2.125 kB / 0.5743 GB, free: 27.84 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009877/0.2948, allocations: 371.5 kB / 0.5746 GB, free: 27.68 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 9.983e-05/0.2949, allocations: 57.78 kB / 0.5747 GB, free: 27.65 MB / 446.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.003101/0.298, allocations: 1.507 MB / 0.5762 GB, free: 27.08 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002452/0.2983, allocations: 156.3 kB / 0.5763 GB, free: 27.03 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.388e-05/0.2983, allocations: 18.44 kB / 0.5763 GB, free: 27.02 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.665e-05/0.2984, allocations: 60.78 kB / 0.5764 GB, free: 26.99 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002229/0.2987, allocations: 166.2 kB / 0.5765 GB, free: 26.94 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 4.278e-05/0.2987, allocations: 16.69 kB / 0.5766 GB, free: 26.94 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00272/0.3014, allocations: 2.155 MB / 0.5787 GB, free: 26.23 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001562/0.3016, allocations: 280.4 kB / 0.5789 GB, free: 26.09 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001857/0.3018, allocations: 305 kB / 0.5792 GB, free: 25.88 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001984/0.3038, allocations: 2.17 MB / 0.5813 GB, free: 24.61 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.116e-06/0.3038, allocations: 0.7812 kB / 0.5813 GB, free: 24.61 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.042e-06/0.3038, allocations: 1.531 kB / 0.5813 GB, free: 24.61 MB / 446.1 MB Notification: Performance of Transformations before backend: time 1.241e-05/0.3038, allocations: 4.656 kB / 0.5814 GB, free: 24.6 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.009557/0.3134, allocations: 1.364 MB / 0.5827 GB, free: 23.54 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.4e-05/0.3134, allocations: 12.64 kB / 0.5827 GB, free: 23.53 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.307e-05/0.3135, allocations: 31.59 kB / 0.5827 GB, free: 23.49 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003296/0.3138, allocations: 99.16 kB / 0.5828 GB, free: 23.43 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003255/0.3141, allocations: 410.6 kB / 0.5832 GB, free: 23.07 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.004e-05/0.3142, allocations: 3.406 kB / 0.5832 GB, free: 23.07 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.731e-05/0.3142, allocations: 10.38 kB / 0.5832 GB, free: 23.07 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003417/0.3145, allocations: 396.6 kB / 0.5836 GB, free: 22.94 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.115e-06/0.3146, allocations: 1.188 kB / 0.5836 GB, free: 22.94 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.139e-05/0.3146, allocations: 0 / 0.5836 GB, free: 22.94 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.12e-06/0.3146, allocations: 1.594 kB / 0.5836 GB, free: 22.94 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003619/0.315, allocations: 434.6 kB / 0.584 GB, free: 22.87 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004489/0.3154, allocations: 0.6571 MB / 0.5847 GB, free: 22.37 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004396/0.3159, allocations: 0.5669 MB / 0.5852 GB, free: 22.23 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003059/0.3162, allocations: 338.1 kB / 0.5855 GB, free: 22.16 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007106/0.3169, allocations: 1.03 MB / 0.5865 GB, free: 20.99 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003289/0.3172, allocations: 421.5 kB / 0.5869 GB, free: 20.84 MB / 446.1 MB Notification: Performance of pre-optimization done (n=8): time 1.863e-06/0.3172, allocations: 2.562 kB / 0.5869 GB, free: 20.84 MB / 446.1 MB Notification: Performance of matching and sorting (n=8): time 0.001152/0.3184, allocations: 1.292 MB / 0.5882 GB, free: 20.55 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.744e-05/0.3184, allocations: 83.28 kB / 0.5883 GB, free: 20.45 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009542/0.3194, allocations: 1.297 MB / 0.5896 GB, free: 19.56 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 2.776e-05/0.3194, allocations: 26.39 kB / 0.5896 GB, free: 19.53 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001261/0.3196, allocations: 287.7 kB / 0.5899 GB, free: 19.25 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.565e-05/0.3196, allocations: 23.78 kB / 0.5899 GB, free: 19.22 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002102/0.3198, allocations: 355.5 kB / 0.5902 GB, free: 18.87 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 3.836e-05/0.3199, allocations: 318 kB / 0.5905 GB, free: 18.55 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007646/0.3206, allocations: 1.371 MB / 0.5919 GB, free: 17.18 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008128/0.3214, allocations: 1.497 MB / 0.5933 GB, free: 15.68 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005696/0.3271, allocations: 3.566 MB / 0.5968 GB, free: 12.02 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.975e-06/0.3272, allocations: 0 / 0.5968 GB, free: 12.02 MB / 446.1 MB Notification: Performance of matching and sorting (n=319) (initialization): time 0.003003/0.3302, allocations: 4.012 MB / 0.6007 GB, free: 7.973 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.447e-05/0.3302, allocations: 11.98 kB / 0.6007 GB, free: 7.961 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.309e-05/0.3302, allocations: 0.5938 kB / 0.6007 GB, free: 7.961 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.43e-05/0.3302, allocations: 0 / 0.6007 GB, free: 7.961 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001099/0.3304, allocations: 16.84 kB / 0.6007 GB, free: 7.945 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.172e-06/0.3304, allocations: 7.984 kB / 0.6008 GB, free: 7.938 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003903/0.3308, allocations: 229.6 kB / 0.601 GB, free: 7.711 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.861e-05/0.3308, allocations: 23.98 kB / 0.601 GB, free: 7.688 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.000247/0.3311, allocations: 246.8 kB / 0.6012 GB, free: 7.438 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.504e-05/0.3311, allocations: 76.91 kB / 0.6013 GB, free: 7.363 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002364/0.3314, allocations: 79.19 kB / 0.6014 GB, free: 7.281 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.417e-06/0.3314, allocations: 8.781 kB / 0.6014 GB, free: 7.273 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.108e-06/0.3314, allocations: 0 / 0.6014 GB, free: 7.273 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.458e-06/0.3314, allocations: 8.469 kB / 0.6014 GB, free: 7.266 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002994/0.3317, allocations: 0.5224 MB / 0.6019 GB, free: 6.699 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.854e-06/0.3317, allocations: 7.875 kB / 0.6019 GB, free: 6.691 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.28e-05/0.3318, allocations: 5.562 kB / 0.6019 GB, free: 6.688 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.873e-06/0.3318, allocations: 0 / 0.6019 GB, free: 6.688 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.112e-05/0.3318, allocations: 7.984 kB / 0.6019 GB, free: 6.68 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.253e-06/0.3318, allocations: 0 / 0.6019 GB, free: 6.68 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.303e-06/0.3318, allocations: 1.031 kB / 0.6019 GB, free: 6.68 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000569/0.3324, allocations: 1.005 MB / 0.6029 GB, free: 5.656 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.763e-05/0.3325, allocations: 163.7 kB / 0.6031 GB, free: 5.477 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.113e-05/0.3325, allocations: 4 kB / 0.6031 GB, free: 5.473 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001356/0.3327, allocations: 6.094 kB / 0.6031 GB, free: 5.469 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.039e-05/0.3327, allocations: 7.984 kB / 0.6031 GB, free: 5.461 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.42e-05/0.3327, allocations: 11.98 kB / 0.6031 GB, free: 5.449 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0005225/0.3333, allocations: 0.7222 MB / 0.6038 GB, free: 4.723 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.3333, allocations: 0.6875 kB / 0.6038 GB, free: 4.723 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001378/0.3346, allocations: 0.5818 MB / 0.6044 GB, free: 4.141 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.002047/0.3367, allocations: 2.158 MB / 0.6065 GB, free: 1.984 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.001629/0.3383, allocations: 2.551 MB / 0.609 GB, free: 15.42 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 1.874e-06/0.3384, allocations: 0 / 0.609 GB, free: 15.42 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002926/0.3387, allocations: 339.7 kB / 0.6093 GB, free: 15.09 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003412/0.339, allocations: 60.41 kB / 0.6094 GB, free: 15.03 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01347/0.3525, allocations: 15.16 MB / 0.6242 GB, free: 15.69 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004871/0.353, allocations: 0.9918 MB / 0.6251 GB, free: 14.67 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.0001716/0.3532, allocations: 37.66 kB / 0.6252 GB, free: 14.63 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002943/0.3535, allocations: 295.3 kB / 0.6254 GB, free: 14.34 MB / 478.1 MB Notification: Performance of SimCode: time 3.1e-07/0.3535, allocations: 0 / 0.6254 GB, free: 14.34 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.8476/1.201, allocations: 23.88 MB / 0.6488 GB, free: 6.66 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.34/9.541, allocations: 11.88 kB / 0.6488 GB, free: 6.652 MB / 494.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)