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_1borehole_5meters.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_1borehole_5meters,fileNamePrefix="Buildings_latest_Buildings_Fluid_Geothermal_Borefields_BaseClasses_HeatTransfer_ThermalResponseFactors_Validation_GFunction_1borehole_5meters",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters,fileNamePrefix="Buildings_latest_Buildings_Fluid_Geothermal_Borefields_BaseClasses_HeatTransfer_ThermalResponseFactors_Validation_GFunction_1borehole_5meters",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.32/2.32, allocations: 393.5 MB / 408.4 MB, free: 10.98 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.001319/0.001319, allocations: 187.9 kB / 0.4902 GB, free: 2.23 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.493/1.493, allocations: 223.1 MB / 0.7992 GB, free: 14.75 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.0009449/0.0009451, allocations: 96.28 kB / 0.9396 GB, free: 1.926 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0003657/0.0003659, allocations: 14.56 kB / 1.09 GB, free: 216.3 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2785/0.2789, allocations: 143 MB / 1.229 GB, free: 105.6 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2162/0.4951, allocations: 173.5 MB / 1.399 GB, free: 11.88 MB / 0.9011 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003087/0.4955, allocations: 119.9 kB / 1.399 GB, free: 11.76 MB / 0.9011 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.7552/1.251, allocations: 30.4 MB / 1.429 GB, free: 178.1 MB / 0.9167 GB Notification: Performance of FrontEnd: time 2.044e-06/1.251, allocations: 0 / 1.429 GB, free: 178.1 MB / 0.9167 GB Notification: Performance of Transformations before backend: time 2.947e-05/1.251, allocations: 14.66 kB / 1.429 GB, free: 178.1 MB / 0.9167 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.002712/1.254, allocations: 1.265 MB / 1.43 GB, free: 177.4 MB / 0.9167 GB Notification: Performance of prepare preOptimizeDAE: time 5.798e-05/1.254, allocations: 14.05 kB / 1.43 GB, free: 177.4 MB / 0.9167 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.661e-05/1.254, allocations: 35.45 kB / 1.43 GB, free: 177.3 MB / 0.9167 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003892/1.254, allocations: 98.47 kB / 1.43 GB, free: 177.3 MB / 0.9167 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006645/1.255, allocations: 426 kB / 1.43 GB, free: 177 MB / 0.9167 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.655e-05/1.255, allocations: 27.28 kB / 1.43 GB, free: 177 MB / 0.9167 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.37e-05/1.255, allocations: 42.12 kB / 1.43 GB, free: 177 MB / 0.9167 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004877/1.255, allocations: 386.1 kB / 1.431 GB, free: 176.9 MB / 0.9167 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.028e-05/1.255, allocations: 0 / 1.431 GB, free: 176.9 MB / 0.9167 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.414e-05/1.255, allocations: 3.656 kB / 1.431 GB, free: 176.9 MB / 0.9167 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.793e-06/1.255, allocations: 6.859 kB / 1.431 GB, free: 176.9 MB / 0.9167 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005288/1.256, allocations: 435 kB / 1.431 GB, free: 176.9 MB / 0.9167 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008579/1.257, allocations: 0.7488 MB / 1.432 GB, free: 176.7 MB / 0.9167 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006331/1.257, allocations: 0.5658 MB / 1.433 GB, free: 176.6 MB / 0.9167 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00083/1.258, allocations: 1.036 MB / 1.434 GB, free: 175.5 MB / 0.9167 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004837/1.259, allocations: 405.3 kB / 1.434 GB, free: 175.4 MB / 0.9167 GB Notification: Performance of pre-optimization done (n=8): time 1.894e-06/1.259, allocations: 0 / 1.434 GB, free: 175.4 MB / 0.9167 GB Notification: Performance of matching and sorting (n=8): time 0.001836/1.261, allocations: 1.302 MB / 1.435 GB, free: 175.3 MB / 0.9167 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.438e-05/1.261, allocations: 85.06 kB / 1.435 GB, free: 175.2 MB / 0.9167 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001279/1.262, allocations: 1.076 MB / 1.436 GB, free: 175 MB / 0.9167 GB Notification: Performance of collectPreVariables (initialization): time 8.496e-05/1.262, allocations: 41.12 kB / 1.436 GB, free: 175 MB / 0.9167 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002047/1.262, allocations: 272.7 kB / 1.437 GB, free: 174.8 MB / 0.9167 GB Notification: Performance of collectInitialBindings (initialization): time 3.578e-05/1.262, allocations: 18.06 kB / 1.437 GB, free: 174.8 MB / 0.9167 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.735e-05/1.262, allocations: 19.22 kB / 1.437 GB, free: 174.8 MB / 0.9167 GB Notification: Performance of setup shared object (initialization): time 0.0001646/1.263, allocations: 419.3 kB / 1.437 GB, free: 174.5 MB / 0.9167 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001471/1.264, allocations: 1.233 MB / 1.438 GB, free: 174.5 MB / 0.9167 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001591/1.266, allocations: 1.368 MB / 1.44 GB, free: 174.5 MB / 0.9167 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001797/1.267, allocations: 1.626 MB / 1.441 GB, free: 174.1 MB / 0.9167 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.308e-06/1.267, allocations: 0.9688 kB / 1.441 GB, free: 174.1 MB / 0.9167 GB Notification: Performance of matching and sorting (n=319) (initialization): time 0.004365/1.272, allocations: 3.492 MB / 1.445 GB, free: 173.4 MB / 0.9167 GB Notification: Performance of prepare postOptimizeDAE: time 2.472e-05/1.272, allocations: 5.406 kB / 1.445 GB, free: 173.4 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.512e-05/1.272, allocations: 8.5 kB / 1.445 GB, free: 173.4 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.646e-05/1.272, allocations: 4.312 kB / 1.445 GB, free: 173.4 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006723/1.273, allocations: 141.6 kB / 1.445 GB, free: 173.4 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.334e-05/1.273, allocations: 4.219 kB / 1.445 GB, free: 173.4 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000664/1.273, allocations: 238.8 kB / 1.445 GB, free: 173.2 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001114/1.273, allocations: 66.81 kB / 1.445 GB, free: 173.2 MB / 0.9167 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 () * Number of clocked 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.0003535/1.274, allocations: 254.9 kB / 1.445 GB, free: 173.1 MB / 0.9167 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.552e-05/1.274, allocations: 72.86 kB / 1.445 GB, free: 173 MB / 0.9167 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001262/1.275, allocations: 0.9466 MB / 1.446 GB, free: 173 MB / 0.9167 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.6e-06/1.275, allocations: 2.469 kB / 1.446 GB, free: 173 MB / 0.9167 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.779e-06/1.275, allocations: 3.719 kB / 1.446 GB, free: 173 MB / 0.9167 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.43e-06/1.275, allocations: 2.125 kB / 1.446 GB, free: 173 MB / 0.9167 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005539/1.276, allocations: 0.4905 MB / 1.447 GB, free: 172.8 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.815e-06/1.276, allocations: 3.562 kB / 1.447 GB, free: 172.8 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.461e-05/1.276, allocations: 7.375 kB / 1.447 GB, free: 172.8 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.734e-06/1.276, allocations: 2.734 kB / 1.447 GB, free: 172.8 MB / 0.9167 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.384e-05/1.276, allocations: 3.188 kB / 1.447 GB, free: 172.8 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.645e-06/1.276, allocations: 0.9688 kB / 1.447 GB, free: 172.8 MB / 0.9167 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.475e-06/1.276, allocations: 0.9062 kB / 1.447 GB, free: 172.8 MB / 0.9167 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001213/1.277, allocations: 1.017 MB / 1.448 GB, free: 172.6 MB / 0.9167 GB Notification: Performance of postOpt removeConstants (simulation): time 9.943e-05/1.277, allocations: 151.6 kB / 1.448 GB, free: 172.5 MB / 0.9167 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.946e-05/1.277, allocations: 2.75 kB / 1.448 GB, free: 172.5 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001468/1.277, allocations: 4.656 kB / 1.448 GB, free: 172.5 MB / 0.9167 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.83e-05/1.277, allocations: 9.984 kB / 1.448 GB, free: 172.5 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.612e-05/1.278, allocations: 13.8 kB / 1.448 GB, free: 172.5 MB / 0.9167 GB Notification: Performance of sorting global known variables: time 0.0009985/1.279, allocations: 0.6663 MB / 1.449 GB, free: 172.4 MB / 0.9167 GB Notification: Performance of sort global known variables: time 2.9e-07/1.279, allocations: 0 / 1.449 GB, free: 172.4 MB / 0.9167 GB Notification: Performance of remove unused functions: time 0.002746/1.281, allocations: 0.6959 MB / 1.449 GB, free: 172.2 MB / 0.9167 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) * 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.004532/1.286, allocations: 2.329 MB / 1.452 GB, free: 171.3 MB / 0.9167 GB Notification: Performance of simCode: created initialization part: time 0.003951/1.29, allocations: 2.415 MB / 1.454 GB, free: 171.3 MB / 0.9167 GB Notification: Performance of simCode: created event and clocks part: time 5.23e-06/1.29, allocations: 0.5625 kB / 1.454 GB, free: 171.3 MB / 0.9167 GB Notification: Performance of simCode: created simulation system equations: time 0.0005406/1.29, allocations: 348.8 kB / 1.454 GB, free: 171.3 MB / 0.9167 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003977/1.291, allocations: 36.11 kB / 1.454 GB, free: 171.2 MB / 0.9167 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004367/1.295, allocations: 2.764 MB / 1.457 GB, free: 170.1 MB / 0.9167 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005094/1.296, allocations: 0.9862 MB / 1.458 GB, free: 169.4 MB / 0.9167 GB Notification: Performance of simCode: alias equations: time 0.0002158/1.296, allocations: 63.03 kB / 1.458 GB, free: 169.4 MB / 0.9167 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003183/1.296, allocations: 279.8 kB / 1.458 GB, free: 169.4 MB / 0.9167 GB Notification: Performance of SimCode: time 7.31e-07/1.296, allocations: 0 / 1.458 GB, free: 169.4 MB / 0.9167 GB [CodegenUtil.tpl:197:14-197:14:writable] Error: Template error: initial value of unknown type: 5.0 * floor(0.0).