Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.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/Buildings 9.1.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/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(Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation,fileNamePrefix="Buildings_9_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_9_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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001624/0.001624, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001913/0.001913, allocations: 198.1 kB / 16.14 MB, free: 6.719 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.355/1.355, allocations: 222.9 MB / 239.8 MB, free: 4.629 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.397/2.397, allocations: 390.2 MB / 0.6643 GB, free: 0.6445 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.00162/0.00162, allocations: 71.89 kB / 0.812 GB, free: 14.77 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7585/0.7601, allocations: 140.4 MB / 0.9491 GB, free: 9.266 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation): time 0.002603/0.7627, allocations: 1.791 MB / 0.9508 GB, free: 7.863 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.00528/0.768, allocations: 4.402 MB / 0.9551 GB, free: 4.469 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.708e-05/0.7681, allocations: 1.375 kB / 0.9551 GB, free: 4.469 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0009866/0.7691, allocations: 361.6 kB / 0.9555 GB, free: 4.246 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 8.643e-05/0.7692, allocations: 50.36 kB / 0.9555 GB, free: 4.211 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.001495/0.7707, allocations: 0.7654 MB / 0.9563 GB, free: 3.723 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001978/0.7709, allocations: 190.7 kB / 0.9565 GB, free: 3.629 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 4.358e-05/0.771, allocations: 12.84 kB / 0.9565 GB, free: 3.621 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 5.918e-05/0.7711, allocations: 57.03 kB / 0.9565 GB, free: 3.59 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001956/0.7713, allocations: 175 kB / 0.9567 GB, free: 3.496 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 4.501e-05/0.7713, allocations: 15.12 kB / 0.9567 GB, free: 3.496 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001727/0.773, allocations: 1.396 MB / 0.9581 GB, free: 2.723 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 0.0001965/0.7732, allocations: 275.7 kB / 0.9583 GB, free: 2.586 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.0002207/0.7735, allocations: 306.9 kB / 0.9586 GB, free: 2.371 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.001577/0.7751, allocations: 1.546 MB / 0.9601 GB, free: 1.434 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.398e-06/0.7751, allocations: 0 / 0.9601 GB, free: 1.434 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.262e-06/0.7751, allocations: 0 / 0.9601 GB, free: 1.434 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 8.456e-06/0.7751, allocations: 0 / 0.9601 GB, free: 1.434 MB / 0.7169 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.007461/0.7826, allocations: 1.271 MB / 0.9614 GB, free: 440 kB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.94e-05/0.7826, allocations: 10.09 kB / 0.9614 GB, free: 440 kB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.223e-05/0.7826, allocations: 35.97 kB / 0.9614 GB, free: 396 kB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003435/0.783, allocations: 98.8 kB / 0.9615 GB, free: 324 kB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003901/0.7834, allocations: 400.2 kB / 0.9619 GB, free: 15.97 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.116e-05/0.7834, allocations: 4.359 kB / 0.9619 GB, free: 15.97 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.614e-05/0.7835, allocations: 15.62 kB / 0.9619 GB, free: 15.96 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004634/0.7839, allocations: 393 kB / 0.9623 GB, free: 15.84 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.314e-06/0.7839, allocations: 4 kB / 0.9623 GB, free: 15.83 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.444e-05/0.784, allocations: 0.9375 kB / 0.9623 GB, free: 15.83 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.61e-06/0.784, allocations: 0.9375 kB / 0.9623 GB, free: 15.83 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005204/0.7845, allocations: 434.6 kB / 0.9627 GB, free: 15.76 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006845/0.7852, allocations: 0.6584 MB / 0.9634 GB, free: 15.25 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000591/0.7858, allocations: 0.5684 MB / 0.9639 GB, free: 15.11 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003451/0.7862, allocations: 334.4 kB / 0.9642 GB, free: 15.04 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001024/0.7872, allocations: 1.031 MB / 0.9652 GB, free: 13.87 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004117/0.7876, allocations: 411.5 kB / 0.9656 GB, free: 13.72 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=8): time 1.512e-06/0.7876, allocations: 3.938 kB / 0.9656 GB, free: 13.72 MB / 0.7325 GB Notification: Performance of matching and sorting (n=8): time 0.001414/0.789, allocations: 1.294 MB / 0.9669 GB, free: 13.43 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.345e-05/0.7891, allocations: 87.36 kB / 0.967 GB, free: 13.32 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001353/0.7905, allocations: 1.282 MB / 0.9682 GB, free: 12.59 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 3.711e-05/0.7905, allocations: 27.08 kB / 0.9683 GB, free: 12.56 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002251/0.7907, allocations: 284.1 kB / 0.9685 GB, free: 12.31 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 3.532e-05/0.7908, allocations: 27.36 kB / 0.9686 GB, free: 12.29 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000345/0.7911, allocations: 352.5 kB / 0.9689 GB, free: 12.12 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001079/0.7913, allocations: 317.8 kB / 0.9692 GB, free: 11.8 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001254/0.7925, allocations: 1.359 MB / 0.9705 GB, free: 11.23 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001483/0.794, allocations: 1.498 MB / 0.972 GB, free: 10.16 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006907/0.8009, allocations: 3.537 MB / 0.9754 GB, free: 6.539 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.286e-06/0.8009, allocations: 0 / 0.9754 GB, free: 6.539 MB / 0.7325 GB Notification: Performance of matching and sorting (n=317) (initialization): time 0.004274/0.8052, allocations: 3.977 MB / 0.9793 GB, free: 2.523 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.934e-05/0.8053, allocations: 8 kB / 0.9793 GB, free: 2.516 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.748e-05/0.8053, allocations: 4.297 kB / 0.9793 GB, free: 2.512 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.651e-05/0.8053, allocations: 4 kB / 0.9793 GB, free: 2.508 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001287/0.8054, allocations: 12 kB / 0.9793 GB, free: 2.496 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.336e-06/0.8054, allocations: 4 kB / 0.9793 GB, free: 2.492 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006385/0.8061, allocations: 232.3 kB / 0.9796 GB, free: 2.262 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.544e-05/0.8062, allocations: 32 kB / 0.9796 GB, free: 2.23 MB / 0.7325 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 11 (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 (16): * Single equations (assignments): 13 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 1 * 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.0003686/0.8065, allocations: 245.6 kB / 0.9798 GB, free: 1.98 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.236e-05/0.8066, allocations: 74.62 kB / 0.9799 GB, free: 1.906 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002838/0.8069, allocations: 79.72 kB / 0.98 GB, free: 1.816 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.636e-06/0.8069, allocations: 0 / 0.98 GB, free: 1.816 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.115e-06/0.8069, allocations: 8.016 kB / 0.98 GB, free: 1.809 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.426e-06/0.8069, allocations: 0 / 0.98 GB, free: 1.809 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004695/0.8074, allocations: 0.51 MB / 0.9805 GB, free: 1.254 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.995e-06/0.8074, allocations: 3.938 kB / 0.9805 GB, free: 1.25 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.552e-05/0.8075, allocations: 7.984 kB / 0.9805 GB, free: 1.242 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.577e-06/0.8075, allocations: 7.938 kB / 0.9805 GB, free: 1.234 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.297e-05/0.8075, allocations: 0 / 0.9805 GB, free: 1.234 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.633e-06/0.8075, allocations: 0 / 0.9805 GB, free: 1.234 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.925e-06/0.8075, allocations: 0 / 0.9805 GB, free: 1.234 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009312/0.8085, allocations: 1.017 MB / 0.9815 GB, free: 200 kB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001263/0.8086, allocations: 167.6 kB / 0.9817 GB, free: 12 kB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.533e-05/0.8087, allocations: 0 / 0.9817 GB, free: 12 kB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000143/0.8088, allocations: 7.984 kB / 0.9817 GB, free: 4 kB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.139e-05/0.8089, allocations: 8.047 kB / 0.9817 GB, free: 15.99 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.234e-05/0.8089, allocations: 19.92 kB / 0.9817 GB, free: 15.98 MB / 0.7481 GB Notification: Performance of sorting global known variables: time 0.0007578/0.8097, allocations: 0.714 MB / 0.9824 GB, free: 15.26 MB / 0.7481 GB Notification: Performance of sort global known variables: time 1.2e-07/0.8097, allocations: 0 / 0.9824 GB, free: 15.26 MB / 0.7481 GB Notification: Performance of remove unused functions: time 0.001211/0.8109, allocations: 403.9 kB / 0.9828 GB, free: 14.86 MB / 0.7481 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 (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.002489/0.8134, allocations: 1.924 MB / 0.9847 GB, free: 12.91 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.002272/0.8157, allocations: 2.492 MB / 0.9871 GB, free: 10.41 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 4.028e-06/0.8157, allocations: 0 / 0.9871 GB, free: 10.41 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 0.0003205/0.816, allocations: 347.7 kB / 0.9874 GB, free: 10.07 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003777/0.8164, allocations: 54.34 kB / 0.9875 GB, free: 10.02 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01663/0.8331, allocations: 15.01 MB / 1.002 GB, free: 10.84 MB / 0.7637 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000749/0.8338, allocations: 0.9916 MB / 1.003 GB, free: 9.816 MB / 0.7637 GB Notification: Performance of simCode: alias equations: time 0.0001848/0.834, allocations: 37.42 kB / 1.003 GB, free: 9.781 MB / 0.7637 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003162/0.8344, allocations: 291.3 kB / 1.003 GB, free: 9.496 MB / 0.7637 GB Notification: Performance of SimCode: time 6.51e-07/0.8344, allocations: 3.938 kB / 1.003 GB, free: 9.492 MB / 0.7637 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03496/0.8693, allocations: 19.26 MB / 1.022 GB, free: 6.461 MB / 0.7794 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000226/0.8696, allocations: 305.9 kB / 1.023 GB, free: 6.074 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.425/3.294, allocations: 0 / 1.023 GB, free: 6.074 MB / 0.7794 GB (rm -f Buildings_9_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe ; mkfifo Buildings_9_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe >> ../files/Buildings_9_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation_res.mat --tempDir=temp_Buildings_9_Buildings_Fluid_Geothermal_Borefields_BaseClasses_HeatTransfer_ThermalResponseFactors_Validation_GFunction_SmallScaleValidation_fmu --startTime=0 --stopTime=1.8e+12 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Fluid_Geothermal_Borefields_BaseClasses_HeatTransfer_ThermalResponseFactors_Validation_GFunction_SmallScaleValidation.fmu > Buildings_9_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe 2>&1)