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_1borehole_5meters.conf.json 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/IBPSA 4.0.0-master/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 IBPSA with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/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) Running command: "" <> buildModelFMU(IBPSA.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters,fileNamePrefix="IBPSA_latest_IBPSA_Fluid_Geothermal_Borefields_BaseClasses_HeatTransfer_ThermalResponseFactors_Validation_GFunction_1borehole_5meters",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IBPSA.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters,fileNamePrefix="IBPSA_latest_IBPSA_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/Complex 4.0.0+maint.om/package.mo): time 0.001699/0.001699, allocations: 181.3 kB / 15.76 MB, free: 6.363 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.5514/0.5514, allocations: 91.98 MB / 108.5 MB, free: 13.05 MB / 90.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.513/1.513, allocations: 223.1 MB / 354.3 MB, free: 12.18 MB / 282.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001056/0.001056, allocations: 96.3 kB / 427.4 MB, free: 3.906 MB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004135/0.0004135, allocations: 12 kB / 0.4984 GB, free: 42.13 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1579/0.1584, allocations: 72.32 MB / 0.569 GB, free: 1.75 MB / 394.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5081/0.6665, allocations: 125 MB / 0.6911 GB, free: 11.27 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003554/0.6669, allocations: 115.9 kB / 0.6912 GB, free: 11.16 MB / 490.7 MB [/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 FrontEnd - DAE generated: time 0.1099/0.7768, allocations: 30.41 MB / 0.7209 GB, free: 12.7 MB / 0.5105 GB Notification: Performance of FrontEnd: time 2.355e-06/0.7769, allocations: 0 / 0.7209 GB, free: 12.7 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 6.647e-05/0.7769, allocations: 16 kB / 0.7209 GB, free: 12.69 MB / 0.5105 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.003306/0.7802, allocations: 1.261 MB / 0.7221 GB, free: 11.38 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 5.185e-05/0.7803, allocations: 8.031 kB / 0.7221 GB, free: 11.37 MB / 0.5105 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.795e-05/0.7804, allocations: 38.48 kB / 0.7222 GB, free: 11.32 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004888/0.7809, allocations: 94.75 kB / 0.7222 GB, free: 11.23 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008521/0.7818, allocations: 427.7 kB / 0.7226 GB, free: 10.76 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.183e-05/0.7818, allocations: 28 kB / 0.7227 GB, free: 10.73 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.993e-05/0.7819, allocations: 36 kB / 0.7227 GB, free: 10.7 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004817/0.7824, allocations: 387.2 kB / 0.7231 GB, free: 10.3 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.307e-05/0.7824, allocations: 3.953 kB / 0.7231 GB, free: 10.3 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.206e-05/0.7824, allocations: 3.938 kB / 0.7231 GB, free: 10.3 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.688e-06/0.7824, allocations: 0 / 0.7231 GB, free: 10.3 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000477/0.7829, allocations: 439.7 kB / 0.7235 GB, free: 9.867 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008772/0.7838, allocations: 0.7457 MB / 0.7242 GB, free: 9.07 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005561/0.7844, allocations: 0.5594 MB / 0.7248 GB, free: 8.492 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001087/0.7855, allocations: 1.036 MB / 0.7258 GB, free: 7.234 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004295/0.7859, allocations: 400.9 kB / 0.7262 GB, free: 6.824 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=8): time 1.433e-06/0.7859, allocations: 4 kB / 0.7262 GB, free: 6.82 MB / 0.5105 GB Notification: Performance of matching and sorting (n=8): time 0.001443/0.7874, allocations: 1.308 MB / 0.7275 GB, free: 5.504 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.51e-05/0.7875, allocations: 81.05 kB / 0.7275 GB, free: 5.406 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0012/0.7887, allocations: 1.072 MB / 0.7286 GB, free: 4.32 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 8.702e-05/0.7888, allocations: 41.7 kB / 0.7286 GB, free: 4.273 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002409/0.789, allocations: 278 kB / 0.7289 GB, free: 3.996 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 4.262e-05/0.7891, allocations: 27.64 kB / 0.7289 GB, free: 3.969 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.887e-05/0.7891, allocations: 20.12 kB / 0.7289 GB, free: 3.949 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0002092/0.7893, allocations: 411.9 kB / 0.7293 GB, free: 3.539 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001422/0.7908, allocations: 1.233 MB / 0.7305 GB, free: 2.301 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001508/0.7923, allocations: 1.369 MB / 0.7319 GB, free: 0.9258 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001734/0.794, allocations: 1.626 MB / 0.7335 GB, free: 15.28 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.799e-06/0.7941, allocations: 0 / 0.7335 GB, free: 15.28 MB / 0.5261 GB Notification: Performance of matching and sorting (n=319) (initialization): time 0.004525/0.7986, allocations: 3.485 MB / 0.7369 GB, free: 11.76 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 2.856e-05/0.7986, allocations: 7.984 kB / 0.7369 GB, free: 11.75 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.722e-05/0.7987, allocations: 4 kB / 0.7369 GB, free: 11.75 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.658e-05/0.7987, allocations: 4 kB / 0.7369 GB, free: 11.75 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006462/0.7993, allocations: 143.8 kB / 0.737 GB, free: 11.61 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.691e-05/0.7994, allocations: 7.953 kB / 0.737 GB, free: 11.6 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007053/0.8001, allocations: 248.3 kB / 0.7373 GB, free: 11.35 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001056/0.8002, allocations: 59.97 kB / 0.7373 GB, free: 11.29 MB / 0.5261 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.0003536/0.8006, allocations: 253.5 kB / 0.7376 GB, free: 11.04 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.21e-05/0.8006, allocations: 62.78 kB / 0.7376 GB, free: 10.97 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00107/0.8017, allocations: 0.9438 MB / 0.7385 GB, free: 10.02 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.899e-06/0.8017, allocations: 0 / 0.7385 GB, free: 10.02 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.997e-06/0.8017, allocations: 4 kB / 0.7385 GB, free: 10.02 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.945e-06/0.8017, allocations: 3.953 kB / 0.7385 GB, free: 10.01 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004821/0.8022, allocations: 0.4929 MB / 0.739 GB, free: 9.473 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.174e-06/0.8022, allocations: 0 / 0.739 GB, free: 9.473 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.481e-05/0.8023, allocations: 15.92 kB / 0.739 GB, free: 9.457 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.015e-06/0.8023, allocations: 0 / 0.739 GB, free: 9.457 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.345e-05/0.8024, allocations: 4 kB / 0.739 GB, free: 9.453 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.216e-06/0.8024, allocations: 4 kB / 0.739 GB, free: 9.449 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.557e-06/0.8024, allocations: 4.016 kB / 0.739 GB, free: 9.445 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001039/0.8034, allocations: 1.008 MB / 0.74 GB, free: 8.41 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001317/0.8036, allocations: 151.9 kB / 0.7402 GB, free: 8.242 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.206e-05/0.8036, allocations: 3.984 kB / 0.7402 GB, free: 8.238 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001419/0.8038, allocations: 8 kB / 0.7402 GB, free: 8.23 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.589e-05/0.8038, allocations: 19.92 kB / 0.7402 GB, free: 8.211 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.306e-05/0.8039, allocations: 15.92 kB / 0.7402 GB, free: 8.195 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.0007779/0.8047, allocations: 0.6611 MB / 0.7409 GB, free: 7.527 MB / 0.5261 GB Notification: Performance of sort global known variables: time 1.5e-07/0.8047, allocations: 0 / 0.7409 GB, free: 7.527 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.002664/0.8074, allocations: 0.6944 MB / 0.7415 GB, free: 6.832 MB / 0.5261 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.004552/0.8119, allocations: 2.33 MB / 0.7438 GB, free: 4.492 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.002736/0.8147, allocations: 2.416 MB / 0.7462 GB, free: 2.062 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 3.807e-06/0.8147, allocations: 0 / 0.7462 GB, free: 2.062 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.0003466/0.815, allocations: 347.8 kB / 0.7465 GB, free: 1.723 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002899/0.8153, allocations: 40.55 kB / 0.7466 GB, free: 1.684 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004182/0.8195, allocations: 2.761 MB / 0.7492 GB, free: 14.85 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005743/0.8201, allocations: 0.9847 MB / 0.7502 GB, free: 13.84 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.0002176/0.8204, allocations: 58.95 kB / 0.7503 GB, free: 13.78 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003339/0.8207, allocations: 278.1 kB / 0.7505 GB, free: 13.51 MB / 0.5417 GB Notification: Performance of SimCode: time 2.054e-06/0.8207, allocations: 0 / 0.7505 GB, free: 13.51 MB / 0.5417 GB [CodegenUtil.tpl:197:14-197:14:writable] Error: Template error: initial value of unknown type: 5.0 * floor(0.0).