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: translateModel(Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|gFun_int",fileNamePrefix="Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation") translateModel(Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|gFun_int",fileNamePrefix="Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.24/2.24, allocations: 390.5 MB / 398 MB, free: 10.91 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.001237/0.001237, allocations: 180.8 kB / 491.2 MB, free: 1.562 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.488/1.488, allocations: 221.5 MB / 0.7868 GB, free: 13.31 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.001016/0.001016, allocations: 95.89 kB / 0.9269 GB, free: 13.81 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 1.99e-05/1.991e-05, allocations: 8 kB / 1.073 GB, free: 182 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.304/0.304, allocations: 143 MB / 1.212 GB, free: 39.49 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9601/1.264, allocations: 177.3 MB / 1.386 GB, free: 14.18 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000278/1.265, allocations: 124.4 kB / 1.386 GB, free: 14.16 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.1277/1.392, allocations: 38.19 MB / 1.423 GB, free: 4.582 MB / 0.8386 GB Notification: Performance of FrontEnd: time 2.214e-06/1.392, allocations: 0 / 1.423 GB, free: 4.582 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 7.512e-05/1.392, allocations: 12 kB / 1.423 GB, free: 4.57 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.003237/1.396, allocations: 1.159 MB / 1.424 GB, free: 3.426 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 4.956e-05/1.396, allocations: 8.031 kB / 1.424 GB, free: 3.418 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000487/1.396, allocations: 110.5 kB / 1.424 GB, free: 3.309 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001007/1.397, allocations: 472.3 kB / 1.425 GB, free: 2.809 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.752e-05/1.397, allocations: 0 / 1.425 GB, free: 2.809 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.5e-05/1.397, allocations: 24 kB / 1.425 GB, free: 2.785 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004371/1.398, allocations: 423.7 kB / 1.425 GB, free: 2.375 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003745/1.398, allocations: 382.8 kB / 1.425 GB, free: 1.996 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.041e-05/1.398, allocations: 0 / 1.425 GB, free: 1.996 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.382e-05/1.398, allocations: 0 / 1.425 GB, free: 1.996 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.565e-06/1.398, allocations: 3.953 kB / 1.425 GB, free: 1.992 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00101/1.399, allocations: 0.7252 MB / 1.426 GB, free: 1.352 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005116/1.4, allocations: 0.5547 MB / 1.427 GB, free: 0.7852 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002945/1.4, allocations: 333.5 kB / 1.427 GB, free: 468 kB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001139/1.401, allocations: 1.036 MB / 1.428 GB, free: 15.2 MB / 0.8542 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003974/1.402, allocations: 400.2 kB / 1.428 GB, free: 14.8 MB / 0.8542 GB Notification: Performance of pre-optimization done (n=8): time 2.404e-06/1.402, allocations: 0 / 1.428 GB, free: 14.8 MB / 0.8542 GB Notification: Performance of matching and sorting (n=8): time 0.0011/1.403, allocations: 0.9605 MB / 1.429 GB, free: 13.85 MB / 0.8542 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.986e-05/1.403, allocations: 84.84 kB / 1.429 GB, free: 13.75 MB / 0.8542 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001369/1.404, allocations: 1.074 MB / 1.43 GB, free: 12.89 MB / 0.8542 GB Notification: Performance of collectPreVariables (initialization): time 7.39e-05/1.404, allocations: 29.7 kB / 1.43 GB, free: 12.86 MB / 0.8542 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003025/1.405, allocations: 283.4 kB / 1.431 GB, free: 12.66 MB / 0.8542 GB Notification: Performance of collectInitialBindings (initialization): time 5.145e-05/1.405, allocations: 23.05 kB / 1.431 GB, free: 12.64 MB / 0.8542 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.737e-05/1.405, allocations: 0 / 1.431 GB, free: 12.64 MB / 0.8542 GB Notification: Performance of setup shared object (initialization): time 0.0002192/1.405, allocations: 429.4 kB / 1.431 GB, free: 12.25 MB / 0.8542 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001337/1.406, allocations: 1.201 MB / 1.432 GB, free: 11.47 MB / 0.8542 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001629/1.408, allocations: 1.339 MB / 1.434 GB, free: 10.59 MB / 0.8542 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002134/1.41, allocations: 1.604 MB / 1.435 GB, free: 9.395 MB / 0.8542 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.245e-06/1.41, allocations: 0 / 1.435 GB, free: 9.395 MB / 0.8542 GB Notification: Performance of matching and sorting (n=319) (initialization): time 0.00512/1.415, allocations: 3.426 MB / 1.439 GB, free: 6.793 MB / 0.8542 GB Notification: Performance of prepare postOptimizeDAE: time 3.274e-05/1.415, allocations: 4 kB / 1.439 GB, free: 6.789 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.178e-05/1.415, allocations: 8.031 kB / 1.439 GB, free: 6.781 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.435e-05/1.415, allocations: 4 kB / 1.439 GB, free: 6.777 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007027/1.416, allocations: 147.3 kB / 1.439 GB, free: 6.637 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.019e-05/1.416, allocations: 4 kB / 1.439 GB, free: 6.633 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000973/1.417, allocations: 232.3 kB / 1.439 GB, free: 6.402 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001549/1.417, allocations: 59.3 kB / 1.439 GB, free: 6.352 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.0002279/1.417, allocations: 122.4 kB / 1.439 GB, free: 6.227 MB / 0.8542 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001849/1.418, allocations: 74.69 kB / 1.439 GB, free: 6.152 MB / 0.8542 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001426/1.419, allocations: 0.934 MB / 1.44 GB, free: 5.227 MB / 0.8542 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.432e-06/1.419, allocations: 0 / 1.44 GB, free: 5.227 MB / 0.8542 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.18e-05/1.419, allocations: 4 kB / 1.44 GB, free: 5.223 MB / 0.8542 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.97e-06/1.419, allocations: 0 / 1.44 GB, free: 5.223 MB / 0.8542 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008135/1.42, allocations: 499.4 kB / 1.441 GB, free: 4.789 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.961e-06/1.42, allocations: 3.984 kB / 1.441 GB, free: 4.785 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.757e-05/1.42, allocations: 11.98 kB / 1.441 GB, free: 4.773 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.368e-06/1.42, allocations: 0 / 1.441 GB, free: 4.773 MB / 0.8542 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.206e-05/1.42, allocations: 7.469 kB / 1.441 GB, free: 4.77 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.224e-05/1.42, allocations: 4 kB / 1.441 GB, free: 4.766 MB / 0.8542 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.678e-06/1.42, allocations: 3.938 kB / 1.441 GB, free: 4.762 MB / 0.8542 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001261/1.421, allocations: 1.015 MB / 1.442 GB, free: 3.738 MB / 0.8542 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002896/1.422, allocations: 155.8 kB / 1.442 GB, free: 3.566 MB / 0.8542 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001029/1.422, allocations: 0 / 1.442 GB, free: 3.566 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001758/1.422, allocations: 11.98 kB / 1.442 GB, free: 3.555 MB / 0.8542 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.175e-05/1.422, allocations: 6.625 kB / 1.442 GB, free: 3.551 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.98e-05/1.422, allocations: 15.97 kB / 1.442 GB, free: 3.535 MB / 0.8542 GB Notification: Performance of sorting global known variables: time 0.0009308/1.423, allocations: 0.6441 MB / 1.442 GB, free: 3.02 MB / 0.8542 GB Notification: Performance of sort global known variables: time 1.61e-07/1.423, allocations: 0 / 1.442 GB, free: 3.02 MB / 0.8542 GB Notification: Performance of remove unused functions: time 0.00343/1.427, allocations: 0.6938 MB / 1.443 GB, free: 2.352 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.004641/1.431, allocations: 0.889 MB / 1.444 GB, free: 1.492 MB / 0.8542 GB Notification: Performance of simCode: created initialization part: time 0.002432/1.434, allocations: 2.381 MB / 1.446 GB, free: 15.88 MB / 0.8698 GB Notification: Performance of simCode: created event and clocks part: time 4.067e-06/1.434, allocations: 0 / 1.446 GB, free: 15.88 MB / 0.8698 GB Notification: Performance of simCode: created simulation system equations: time 0.0002986/1.434, allocations: 338.4 kB / 1.447 GB, free: 15.55 MB / 0.8698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000417/1.434, allocations: 52.98 kB / 1.447 GB, free: 15.52 MB / 0.8698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001951/1.436, allocations: 1.487 MB / 1.448 GB, free: 14.04 MB / 0.8698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005936/1.437, allocations: 1.005 MB / 1.449 GB, free: 13.01 MB / 0.8698 GB Notification: Performance of simCode: alias equations: time 0.0002346/1.437, allocations: 63.25 kB / 1.449 GB, free: 12.95 MB / 0.8698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001096/1.437, allocations: 38.86 kB / 1.449 GB, free: 12.92 MB / 0.8698 GB Notification: Performance of SimCode: time 4.3e-07/1.437, allocations: 0 / 1.449 GB, free: 12.92 MB / 0.8698 GB Notification: Performance of Templates: time 0.02472/1.462, allocations: 13.88 MB / 1.463 GB, free: 15.12 MB / 0.8855 GB make -j1 -f Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.makefile (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 & ./Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe 2>&1)