Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation,fileNamePrefix="Buildings_latest_Buildings_Fluid_Geothermal_Borefields_BaseClasses_HeatTransfer_ThermalResponseFactors_Validation_GFunction_SmallScaleValidation",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation,fileNamePrefix="Buildings_latest_Buildings_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/Buildings 10.0.0-master/package.mo): time 2.367/2.367, allocations: 390.5 MB / 398 MB, free: 10.94 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001098/0.001098, allocations: 180.8 kB / 491.2 MB, free: 1.574 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.48/1.48, allocations: 221.5 MB / 0.7868 GB, free: 13.36 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009919/0.0009919, allocations: 87.59 kB / 0.9269 GB, free: 13.86 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 2.569e-05/2.565e-05, allocations: 4 kB / 1.073 GB, free: 181.9 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2742/0.2743, allocations: 143 MB / 1.212 GB, free: 39.41 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9807/1.255, allocations: 177.3 MB / 1.386 GB, free: 14.14 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003124/1.255, allocations: 128.1 kB / 1.386 GB, free: 14.11 MB / 0.823 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.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 FrontEnd - DAE generated: time 0.1298/1.385, allocations: 38.19 MB / 1.423 GB, free: 4.504 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.533e-06/1.385, allocations: 0 / 1.423 GB, free: 4.504 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 6.156e-05/1.385, allocations: 16 kB / 1.423 GB, free: 4.488 MB / 0.8386 GB 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.002951/1.388, allocations: 1.156 MB / 1.424 GB, free: 3.348 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 4.656e-05/1.388, allocations: 8.031 kB / 1.424 GB, free: 3.34 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004568/1.389, allocations: 106.5 kB / 1.424 GB, free: 3.234 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008146/1.39, allocations: 483.3 kB / 1.425 GB, free: 2.723 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.429e-05/1.39, allocations: 7.5 kB / 1.425 GB, free: 2.719 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.837e-05/1.39, allocations: 20 kB / 1.425 GB, free: 2.699 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004113/1.39, allocations: 422.8 kB / 1.425 GB, free: 2.289 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003737/1.391, allocations: 377.3 kB / 1.426 GB, free: 1.914 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.013e-05/1.391, allocations: 0 / 1.426 GB, free: 1.914 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.446e-05/1.391, allocations: 3 kB / 1.426 GB, free: 1.914 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.811e-06/1.391, allocations: 3.953 kB / 1.426 GB, free: 1.91 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008262/1.391, allocations: 0.7252 MB / 1.426 GB, free: 1.266 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004594/1.392, allocations: 0.5542 MB / 1.427 GB, free: 0.6992 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002668/1.392, allocations: 332.4 kB / 1.427 GB, free: 384 kB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001041/1.393, allocations: 1.032 MB / 1.428 GB, free: 15.12 MB / 0.8542 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003675/1.394, allocations: 403.7 kB / 1.428 GB, free: 14.72 MB / 0.8542 GB Notification: Performance of pre-optimization done (n=8): time 1.803e-06/1.394, allocations: 0 / 1.428 GB, free: 14.72 MB / 0.8542 GB Notification: Performance of matching and sorting (n=8): time 0.001026/1.395, allocations: 0.9695 MB / 1.429 GB, free: 13.76 MB / 0.8542 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.013e-05/1.395, allocations: 77.11 kB / 1.43 GB, free: 13.66 MB / 0.8542 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001167/1.396, allocations: 1.067 MB / 1.431 GB, free: 12.82 MB / 0.8542 GB Notification: Performance of collectPreVariables (initialization): time 6.579e-05/1.396, allocations: 41.03 kB / 1.431 GB, free: 12.77 MB / 0.8542 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002554/1.396, allocations: 282.5 kB / 1.431 GB, free: 12.57 MB / 0.8542 GB Notification: Performance of collectInitialBindings (initialization): time 3.85e-05/1.396, allocations: 19.69 kB / 1.431 GB, free: 12.55 MB / 0.8542 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.426e-05/1.396, allocations: 0 / 1.431 GB, free: 12.55 MB / 0.8542 GB Notification: Performance of setup shared object (initialization): time 0.0002008/1.397, allocations: 430.1 kB / 1.431 GB, free: 12.17 MB / 0.8542 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001128/1.398, allocations: 1.2 MB / 1.432 GB, free: 11.39 MB / 0.8542 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001248/1.399, allocations: 1.334 MB / 1.434 GB, free: 10.51 MB / 0.8542 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001658/1.401, allocations: 1.61 MB / 1.435 GB, free: 9.309 MB / 0.8542 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.548e-06/1.401, allocations: 0 / 1.435 GB, free: 9.309 MB / 0.8542 GB Notification: Performance of matching and sorting (n=319) (initialization): time 0.00419/1.405, allocations: 3.427 MB / 1.439 GB, free: 6.707 MB / 0.8542 GB Notification: Performance of prepare postOptimizeDAE: time 2.204e-05/1.405, allocations: 4 kB / 1.439 GB, free: 6.703 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.735e-05/1.405, allocations: 4 kB / 1.439 GB, free: 6.699 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.19e-05/1.405, allocations: 4 kB / 1.439 GB, free: 6.695 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006742/1.406, allocations: 143.3 kB / 1.439 GB, free: 6.559 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.307e-05/1.406, allocations: 4 kB / 1.439 GB, free: 6.555 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007131/1.406, allocations: 236.3 kB / 1.439 GB, free: 6.32 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001061/1.407, allocations: 59.23 kB / 1.439 GB, free: 6.27 MB / 0.8542 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 ($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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (92): * Single equations (assignments): 89 * Array equations: 1 * 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.000166/1.407, allocations: 116.8 kB / 1.439 GB, free: 6.148 MB / 0.8542 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0008894/1.408, allocations: 0.9626 MB / 1.44 GB, free: 5.195 MB / 0.8542 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001007/1.408, allocations: 74.69 kB / 1.44 GB, free: 5.121 MB / 0.8542 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001035/1.409, allocations: 0.927 MB / 1.441 GB, free: 4.199 MB / 0.8542 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.28e-06/1.409, allocations: 7.938 kB / 1.441 GB, free: 4.191 MB / 0.8542 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.171e-06/1.409, allocations: 4.031 kB / 1.441 GB, free: 4.188 MB / 0.8542 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.901e-06/1.409, allocations: 0 / 1.441 GB, free: 4.188 MB / 0.8542 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006423/1.409, allocations: 0.4975 MB / 1.442 GB, free: 3.746 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.441e-06/1.409, allocations: 4 kB / 1.442 GB, free: 3.742 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.141e-05/1.41, allocations: 7.984 kB / 1.442 GB, free: 3.734 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.01e-06/1.41, allocations: 0 / 1.442 GB, free: 3.734 MB / 0.8542 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.73e-05/1.41, allocations: 4 kB / 1.442 GB, free: 3.73 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.765e-06/1.41, allocations: 3.938 kB / 1.442 GB, free: 3.727 MB / 0.8542 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.567e-06/1.41, allocations: 3.938 kB / 1.442 GB, free: 3.723 MB / 0.8542 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009724/1.411, allocations: 1.018 MB / 1.443 GB, free: 2.699 MB / 0.8542 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001921/1.411, allocations: 155.8 kB / 1.443 GB, free: 2.527 MB / 0.8542 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.888e-05/1.411, allocations: 7.984 kB / 1.443 GB, free: 2.52 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001652/1.411, allocations: 3.984 kB / 1.443 GB, free: 2.516 MB / 0.8542 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.644e-05/1.411, allocations: 7.938 kB / 1.443 GB, free: 2.508 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.175e-05/1.411, allocations: 23.28 kB / 1.443 GB, free: 2.488 MB / 0.8542 GB Notification: Performance of sorting global known variables: time 0.0007988/1.412, allocations: 0.6421 MB / 1.443 GB, free: 1.973 MB / 0.8542 GB Notification: Performance of sort global known variables: time 1.2e-07/1.412, allocations: 0 / 1.443 GB, free: 1.973 MB / 0.8542 GB Notification: Performance of remove unused functions: time 0.002714/1.415, allocations: 0.6918 MB / 1.444 GB, free: 1.305 MB / 0.8542 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) * 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.005324/1.42, allocations: 2.407 MB / 1.447 GB, free: 14.92 MB / 0.8698 GB Notification: Performance of simCode: created initialization part: time 0.002588/1.423, allocations: 2.383 MB / 1.449 GB, free: 13.3 MB / 0.8698 GB Notification: Performance of simCode: created event and clocks part: time 3.487e-06/1.423, allocations: 4.062 kB / 1.449 GB, free: 13.3 MB / 0.8698 GB Notification: Performance of simCode: created simulation system equations: time 0.0003029/1.423, allocations: 334.9 kB / 1.449 GB, free: 12.98 MB / 0.8698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004589/1.423, allocations: 61.83 kB / 1.449 GB, free: 12.95 MB / 0.8698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004128/1.428, allocations: 1.933 MB / 1.451 GB, free: 11 MB / 0.8698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007042/1.428, allocations: 1.001 MB / 1.452 GB, free: 9.98 MB / 0.8698 GB Notification: Performance of simCode: alias equations: time 0.0003043/1.429, allocations: 67.25 kB / 1.452 GB, free: 9.918 MB / 0.8698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003106/1.429, allocations: 298.7 kB / 1.452 GB, free: 9.863 MB / 0.8698 GB Notification: Performance of SimCode: time 9.62e-07/1.429, allocations: 4 kB / 1.452 GB, free: 9.859 MB / 0.8698 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05315/1.482, allocations: 21.99 MB / 1.474 GB, free: 3.926 MB / 0.8855 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002469/1.482, allocations: 266.4 kB / 1.474 GB, free: 3.641 MB / 0.8855 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.883/4.366, allocations: 0 / 1.474 GB, free: 3.641 MB / 0.8855 GB (rm -f Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe >> ../files/Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation_res.mat --tempDir=temp_Buildings_latest_Buildings_Fluid_Geothermal_Borefields_BaseClasses_HeatTransfer_ThermalResponseFactors_Validation_GFunction_SmallScaleValidation_fmu --startTime=0 --stopTime=1.8e+12 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Fluid_Geothermal_Borefields_BaseClasses_HeatTransfer_ThermalResponseFactors_Validation_GFunction_SmallScaleValidation.fmu > Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe 2>&1)