Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildSysPro_BuildSysPro.IBPSA.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Examples.GFunction_SmallScaleValidation.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.5.0/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package BuildSysPro with version 3.4.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.5.0/package.mo) Running command: translateModel(BuildSysPro.IBPSA.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Examples.GFunction_SmallScaleValidation,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildSysPro_BuildSysPro.IBPSA.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Examples.GFunction_SmallScaleValidation") translateModel(BuildSysPro.IBPSA.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Examples.GFunction_SmallScaleValidation,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildSysPro_BuildSysPro.IBPSA.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Examples.GFunction_SmallScaleValidation") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.5.0/package.mo): time 0.6945/0.6945, allocations: 127.4 MB / 134.6 MB, free: 9.781 MB / 114.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00116/0.00116, allocations: 187 kB / 164.4 MB, free: 5.457 MB / 130.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.668/1.668, allocations: 205.1 MB / 399.1 MB, free: 2.98 MB / 306.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009353/0.0009353, allocations: 84.92 kB / 476.3 MB, free: 2.645 MB / 354.8 MB Notification: Performance of FrontEnd - loaded program: time 1.344e-05/1.358e-05, allocations: 4 kB / 0.546 GB, free: 15.74 MB / 450.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5225/0.5225, allocations: 76.74 MB / 0.621 GB, free: 86.5 MB / 498.8 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1599/0.6825, allocations: 122.5 MB / 0.7406 GB, free: 2.621 MB / 0.5027 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003746/0.6829, allocations: 117.6 kB / 0.7407 GB, free: 2.508 MB / 0.5027 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.5.0/IBPSA/Fluid/Geothermal/Borefields/BaseClasses/HeatTransfer/ThermalResponseFactors/Examples/GFunction_SmallScaleValidation.mo:23:38-23:49:writable] Warning: Non-array modification 'false' for array component, possibly due to missing 'each'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.5.0/IBPSA/Fluid/Geothermal/Borefields/BaseClasses/HeatTransfer/ThermalResponseFactors/Examples/GFunction_SmallScaleValidation.mo:24:39-24:50:writable] Warning: Non-array modification 'false' for array component, possibly due to missing 'each'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.5.0/IBPSA/Fluid/Geothermal/Borefields/BaseClasses/HeatTransfer/ThermalResponseFactors/Examples/GFunction_SmallScaleValidation.mo:25:56-25:67:writable] Warning: Non-array modification 'false' for array component, possibly due to missing 'each'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.5.0/IBPSA/Fluid/Geothermal/Borefields/BaseClasses/HeatTransfer/ThermalResponseFactors/Examples/GFunction_SmallScaleValidation.mo:26:41-26:52:writable] Warning: Non-array modification 'false' for array component, possibly due to missing 'each'. Notification: Performance of FrontEnd: time 0.1139/0.7969, allocations: 30.66 MB / 0.7707 GB, free: 3.988 MB / 0.5339 GB Notification: Performance of Transformations before backend: time 6.648e-05/0.797, allocations: 16 kB / 0.7707 GB, free: 3.973 MB / 0.5339 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.003164/0.8002, allocations: 1.048 MB / 0.7717 GB, free: 2.883 MB / 0.5339 GB Notification: Performance of prepare preOptimizeDAE: time 5.026e-05/0.8002, allocations: 8.031 kB / 0.7717 GB, free: 2.875 MB / 0.5339 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005281/0.8007, allocations: 102.6 kB / 0.7718 GB, free: 2.773 MB / 0.5339 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009672/0.8017, allocations: 465.8 kB / 0.7723 GB, free: 2.27 MB / 0.5339 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.831e-05/0.8018, allocations: 1.031 kB / 0.7723 GB, free: 2.27 MB / 0.5339 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001023/0.8019, allocations: 31.91 kB / 0.7723 GB, free: 2.238 MB / 0.5339 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005344/0.8024, allocations: 419.8 kB / 0.7727 GB, free: 1.828 MB / 0.5339 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004127/0.8028, allocations: 395.1 kB / 0.7731 GB, free: 1.43 MB / 0.5339 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.947e-06/0.8029, allocations: 0 / 0.7731 GB, free: 1.43 MB / 0.5339 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.481e-05/0.8029, allocations: 0 / 0.7731 GB, free: 1.43 MB / 0.5339 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.756e-06/0.8029, allocations: 3.984 kB / 0.7731 GB, free: 1.426 MB / 0.5339 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001034/0.8039, allocations: 0.7186 MB / 0.7738 GB, free: 0.668 MB / 0.5339 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005153/0.8045, allocations: 0.5516 MB / 0.7743 GB, free: 100 kB / 0.5339 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002914/0.8048, allocations: 339.9 kB / 0.7746 GB, free: 15.76 MB / 0.5496 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001152/0.8059, allocations: 1.04 MB / 0.7756 GB, free: 14.5 MB / 0.5496 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004097/0.8064, allocations: 393.3 kB / 0.776 GB, free: 14.1 MB / 0.5496 GB Notification: Performance of pre-optimization done (n=8): time 1.813e-06/0.8064, allocations: 0 / 0.776 GB, free: 14.1 MB / 0.5496 GB Notification: Performance of matching and sorting (n=8): time 0.0009952/0.8074, allocations: 0.7578 MB / 0.7768 GB, free: 13.34 MB / 0.5496 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.251e-05/0.8075, allocations: 85.09 kB / 0.7768 GB, free: 13.23 MB / 0.5496 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001507/0.809, allocations: 1.08 MB / 0.7779 GB, free: 12.14 MB / 0.5496 GB Notification: Performance of collectPreVariables (initialization): time 6.82e-05/0.809, allocations: 29.7 kB / 0.7779 GB, free: 12.11 MB / 0.5496 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003164/0.8094, allocations: 266.1 kB / 0.7782 GB, free: 11.84 MB / 0.5496 GB Notification: Performance of collectInitialBindings (initialization): time 6.581e-05/0.8094, allocations: 19.8 kB / 0.7782 GB, free: 11.82 MB / 0.5496 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.518e-05/0.8095, allocations: 0 / 0.7782 GB, free: 11.82 MB / 0.5496 GB Notification: Performance of setup shared object (initialization): time 0.0003193/0.8098, allocations: 419.8 kB / 0.7786 GB, free: 11.41 MB / 0.5496 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001514/0.8113, allocations: 1.214 MB / 0.7798 GB, free: 10.19 MB / 0.5496 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001599/0.813, allocations: 1.355 MB / 0.7811 GB, free: 8.824 MB / 0.5496 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002088/0.8151, allocations: 1.607 MB / 0.7827 GB, free: 7.203 MB / 0.5496 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.21e-06/0.8151, allocations: 4 kB / 0.7827 GB, free: 7.199 MB / 0.5496 GB Notification: Performance of matching and sorting (n=317) (initialization): time 0.008892/0.824, allocations: 7.14 MB / 0.7896 GB, free: 24 kB / 0.5496 GB Notification: Performance of prepare postOptimizeDAE: time 2.527e-05/0.824, allocations: 4 kB / 0.7897 GB, free: 20 kB / 0.5496 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.41e-05/0.8241, allocations: 0 / 0.7897 GB, free: 20 kB / 0.5496 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.984e-05/0.8241, allocations: 4 kB / 0.7897 GB, free: 16 kB / 0.5496 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008396/0.8249, allocations: 151.8 kB / 0.7898 GB, free: 15.87 MB / 0.5652 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.634e-05/0.825, allocations: 4 kB / 0.7898 GB, free: 15.86 MB / 0.5652 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008371/0.8258, allocations: 224.3 kB / 0.79 GB, free: 15.64 MB / 0.5652 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001198/0.826, allocations: 59.92 kB / 0.7901 GB, free: 15.58 MB / 0.5652 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 ($whenCondition1,$PRE.k,k,$PRE.t1,t1,$PRE.t2,t2,$PRE.gFun1,gFun1,$PRE.gFun2,gFun2) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (91): * Single equations (assignments): 89 * Array equations: 1 * Algorithm blocks: 0 * Record equations: 1 * 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.0002161/0.8262, allocations: 124.8 kB / 0.7902 GB, free: 15.45 MB / 0.5652 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001476/0.8263, allocations: 78.59 kB / 0.7903 GB, free: 15.38 MB / 0.5652 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00106/0.8274, allocations: 0.7166 MB / 0.791 GB, free: 14.65 MB / 0.5652 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.107e-06/0.8274, allocations: 3.984 kB / 0.791 GB, free: 14.64 MB / 0.5652 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.474e-06/0.8274, allocations: 4 kB / 0.791 GB, free: 14.64 MB / 0.5652 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.33e-06/0.8275, allocations: 0 / 0.791 GB, free: 14.64 MB / 0.5652 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000726/0.8282, allocations: 0.4932 MB / 0.7915 GB, free: 14.11 MB / 0.5652 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.228e-06/0.8282, allocations: 4.031 kB / 0.7915 GB, free: 14.11 MB / 0.5652 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001152/0.8283, allocations: 15.92 kB / 0.7915 GB, free: 14.09 MB / 0.5652 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.5e-06/0.8283, allocations: 0 / 0.7915 GB, free: 14.09 MB / 0.5652 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.931e-05/0.8284, allocations: 0.9375 kB / 0.7915 GB, free: 14.09 MB / 0.5652 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.098e-06/0.8284, allocations: 4 kB / 0.7915 GB, free: 14.09 MB / 0.5652 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.417e-06/0.8284, allocations: 0 / 0.7915 GB, free: 14.09 MB / 0.5652 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0008785/0.8293, allocations: 0.791 MB / 0.7923 GB, free: 13.27 MB / 0.5652 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002424/0.8295, allocations: 159.8 kB / 0.7924 GB, free: 13.1 MB / 0.5652 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.774e-05/0.8296, allocations: 7.984 kB / 0.7924 GB, free: 13.09 MB / 0.5652 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001843/0.8298, allocations: 4 kB / 0.7924 GB, free: 13.09 MB / 0.5652 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.46e-05/0.8299, allocations: 5.422 kB / 0.7924 GB, free: 13.08 MB / 0.5652 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.32e-05/0.8299, allocations: 11.98 kB / 0.7924 GB, free: 13.07 MB / 0.5652 GB Notification: Performance of sort global known variables: time 0.001027/0.831, allocations: 0.6595 MB / 0.7931 GB, free: 12.41 MB / 0.5652 GB Notification: Performance of remove unused functions: time 0.002314/0.8333, allocations: 491.2 kB / 0.7935 GB, free: 11.93 MB / 0.5652 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.003423/0.8367, allocations: 0.6981 MB / 0.7942 GB, free: 11.22 MB / 0.5652 GB Notification: Performance of simCode: created initialization part: time 0.002694/0.8394, allocations: 2.341 MB / 0.7965 GB, free: 8.867 MB / 0.5652 GB Notification: Performance of simCode: created event and clocks part: time 3.777e-06/0.8395, allocations: 0 / 0.7965 GB, free: 8.867 MB / 0.5652 GB Notification: Performance of simCode: created simulation system equations: time 0.0003868/0.8398, allocations: 342.1 kB / 0.7968 GB, free: 8.535 MB / 0.5652 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003892/0.8402, allocations: 56.83 kB / 0.7969 GB, free: 8.477 MB / 0.5652 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002296/0.8426, allocations: 1.519 MB / 0.7984 GB, free: 6.922 MB / 0.5652 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008335/0.8434, allocations: 1.067 MB / 0.7994 GB, free: 5.828 MB / 0.5652 GB Notification: Performance of SimCode: time 6.21e-07/0.8434, allocations: 0 / 0.7994 GB, free: 5.828 MB / 0.5652 GB Notification: Performance of Templates: time 0.02354/0.867, allocations: 10.66 MB / 0.8098 GB, free: 11.29 MB / 0.5808 GB make -j1 -f BuildSysPro_BuildSysPro.IBPSA.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Examples.GFunction_SmallScaleValidation.makefile (rm -f BuildSysPro_BuildSysPro.IBPSA.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Examples.GFunction_SmallScaleValidation.pipe ; mkfifo BuildSysPro_BuildSysPro.IBPSA.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Examples.GFunction_SmallScaleValidation.pipe ; head -c 1048576 < BuildSysPro_BuildSysPro.IBPSA.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Examples.GFunction_SmallScaleValidation.pipe >> ../files/BuildSysPro_BuildSysPro.IBPSA.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Examples.GFunction_SmallScaleValidation.sim & ./BuildSysPro_BuildSysPro.IBPSA.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Examples.GFunction_SmallScaleValidation -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildSysPro_BuildSysPro.IBPSA.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Examples.GFunction_SmallScaleValidation.pipe 2>&1)