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: "" <> buildModelFMU(BuildSysPro.IBPSA.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Examples.GFunction_SmallScaleValidation,fileNamePrefix="BuildSysPro_BuildSysPro_IBPSA_Fluid_Geothermal_Borefields_BaseClasses_HeatTransfer_ThermalResponseFactors_Examples_GFunction_SmallScaleValidation",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildSysPro.IBPSA.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Examples.GFunction_SmallScaleValidation,fileNamePrefix="BuildSysPro_BuildSysPro_IBPSA_Fluid_Geothermal_Borefields_BaseClasses_HeatTransfer_ThermalResponseFactors_Examples_GFunction_SmallScaleValidation",fmuType="me",version="2.0",platforms={"static"}) [: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.7323/0.7323, allocations: 127.4 MB / 134.6 MB, free: 4.094 MB / 106.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001251/0.001251, allocations: 193.2 kB / 164.4 MB, free: 6.891 MB / 138.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.708/1.708, allocations: 205.1 MB / 399.1 MB, free: 6.156 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001082/0.001081, allocations: 75.3 kB / 476.3 MB, free: 8.914 MB / 378.7 MB Notification: Performance of FrontEnd - loaded program: time 0.3749/0.3761, allocations: 82.94 MB / 0.5461 GB, free: 42.62 MB / 378.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1822/0.5583, allocations: 76.74 MB / 0.6211 GB, free: 13.81 MB / 426.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5189/1.077, allocations: 122.5 MB / 0.7407 GB, free: 5.742 MB / 0.4948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002955/1.078, allocations: 119.9 kB / 0.7408 GB, free: 5.625 MB / 0.4948 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: 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.117/1.195, allocations: 31.72 MB / 0.7718 GB, free: 5.82 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 5.045e-05/1.195, allocations: 8 kB / 0.7718 GB, free: 5.812 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005303/1.195, allocations: 118.6 kB / 0.7719 GB, free: 5.695 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009417/1.196, allocations: 464.8 kB / 0.7724 GB, free: 5.191 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.608e-05/1.196, allocations: 0 / 0.7724 GB, free: 5.191 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.891e-05/1.196, allocations: 23.91 kB / 0.7724 GB, free: 5.168 MB / 0.5261 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004883/1.197, allocations: 427.8 kB / 0.7728 GB, free: 4.75 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004047/1.197, allocations: 375.2 kB / 0.7731 GB, free: 4.371 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.276e-05/1.197, allocations: 0 / 0.7731 GB, free: 4.371 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.676e-05/1.197, allocations: 15.86 kB / 0.7732 GB, free: 4.355 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.011e-06/1.197, allocations: 0 / 0.7732 GB, free: 4.355 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009733/1.198, allocations: 0.7225 MB / 0.7739 GB, free: 3.594 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004873/1.199, allocations: 0.5556 MB / 0.7744 GB, free: 3.02 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002847/1.199, allocations: 325.7 kB / 0.7747 GB, free: 2.695 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00109/1.2, allocations: 1.04 MB / 0.7757 GB, free: 1.434 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003601/1.201, allocations: 396.9 kB / 0.7761 GB, free: 1.027 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=8): time 1.643e-06/1.201, allocations: 0 / 0.7761 GB, free: 1.027 MB / 0.5261 GB Notification: Performance of matching and sorting (n=8): time 0.0009003/1.201, allocations: 0.7617 MB / 0.7769 GB, free: 264 kB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.874e-05/1.202, allocations: 81.05 kB / 0.7769 GB, free: 164 kB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001186/1.203, allocations: 1.084 MB / 0.778 GB, free: 15.07 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 6.172e-05/1.203, allocations: 25.7 kB / 0.778 GB, free: 15.04 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002028/1.203, allocations: 270 kB / 0.7783 GB, free: 14.77 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 3.894e-05/1.203, allocations: 19.8 kB / 0.7783 GB, free: 14.75 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.411e-05/1.203, allocations: 0 / 0.7783 GB, free: 14.75 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0002124/1.203, allocations: 419.8 kB / 0.7787 GB, free: 14.33 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00133/1.205, allocations: 1.218 MB / 0.7799 GB, free: 13.11 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001415/1.206, allocations: 1.351 MB / 0.7812 GB, free: 11.75 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001928/1.208, allocations: 1.61 MB / 0.7828 GB, free: 10.12 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.642e-06/1.208, allocations: 0 / 0.7828 GB, free: 10.12 MB / 0.5417 GB Notification: Performance of matching and sorting (n=317) (initialization): time 0.008141/1.216, allocations: 7.136 MB / 0.7897 GB, free: 2.945 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 2.791e-05/1.216, allocations: 8 kB / 0.7897 GB, free: 2.938 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.996e-05/1.216, allocations: 3.984 kB / 0.7898 GB, free: 2.934 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.397e-05/1.216, allocations: 8 kB / 0.7898 GB, free: 2.926 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007844/1.217, allocations: 143.8 kB / 0.7899 GB, free: 2.785 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.708e-05/1.217, allocations: 4 kB / 0.7899 GB, free: 2.781 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007536/1.218, allocations: 228.3 kB / 0.7901 GB, free: 2.555 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001255/1.218, allocations: 55.98 kB / 0.7902 GB, free: 2.5 MB / 0.5417 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.000171/1.218, allocations: 120.8 kB / 0.7903 GB, free: 2.375 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001211/1.218, allocations: 82.52 kB / 0.7904 GB, free: 2.293 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009788/1.219, allocations: 0.7259 MB / 0.7911 GB, free: 1.555 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.681e-06/1.219, allocations: 0 / 0.7911 GB, free: 1.555 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.484e-06/1.219, allocations: 0 / 0.7911 GB, free: 1.555 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.834e-06/1.219, allocations: 3.984 kB / 0.7911 GB, free: 1.551 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006396/1.22, allocations: 0.4932 MB / 0.7916 GB, free: 1.023 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.677e-06/1.22, allocations: 0 / 0.7916 GB, free: 1.023 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.626e-05/1.22, allocations: 7.984 kB / 0.7916 GB, free: 1.016 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.449e-06/1.22, allocations: 0 / 0.7916 GB, free: 1.016 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.766e-05/1.22, allocations: 4 kB / 0.7916 GB, free: 1.012 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.214e-06/1.22, allocations: 0 / 0.7916 GB, free: 1.012 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.21e-06/1.22, allocations: 4.031 kB / 0.7916 GB, free: 1.008 MB / 0.5417 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0007714/1.221, allocations: 0.7942 MB / 0.7924 GB, free: 192 kB / 0.5417 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001008/1.222, allocations: 1.197 MB / 0.7935 GB, free: 14.96 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001992/1.222, allocations: 159.7 kB / 0.7937 GB, free: 14.79 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001021/1.222, allocations: 7.922 kB / 0.7937 GB, free: 14.78 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001846/1.223, allocations: 4 kB / 0.7937 GB, free: 14.77 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.685e-05/1.223, allocations: 11.98 kB / 0.7937 GB, free: 14.76 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.841e-05/1.223, allocations: 15.92 kB / 0.7937 GB, free: 14.75 MB / 0.5573 GB Notification: Performance of sort global known variables: time 0.0009199/1.224, allocations: 0.6556 MB / 0.7943 GB, free: 14.09 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.003112/1.227, allocations: 0.515 MB / 0.7949 GB, free: 13.57 MB / 0.5573 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.002989/1.23, allocations: 0.6884 MB / 0.7955 GB, free: 12.87 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.002531/1.232, allocations: 2.341 MB / 0.7978 GB, free: 10.52 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 3.547e-06/1.232, allocations: 64 / 0.7978 GB, free: 10.52 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.0003034/1.233, allocations: 343.8 kB / 0.7981 GB, free: 10.18 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004617/1.233, allocations: 52.56 kB / 0.7982 GB, free: 10.13 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002184/1.235, allocations: 1.534 MB / 0.7997 GB, free: 8.559 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000754/1.236, allocations: 1.055 MB / 0.8007 GB, free: 7.477 MB / 0.5573 GB Notification: Performance of SimCode: time 9.32e-07/1.236, allocations: 3.938 kB / 0.8007 GB, free: 7.473 MB / 0.5573 GB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildSysPro_BuildSysPro_IBPSA_Fluid_Geothermal_Borefields_BaseClasses_HeatTransfer_ThermalResponseFactors_Examples_GFunction_SmallScaleValidation_fmu --startTime=0 --stopTime=1.8e+12 --timeout=50 --tolerance=1e-06 BuildSysPro_BuildSysPro_IBPSA_Fluid_Geothermal_Borefields_BaseClasses_HeatTransfer_ThermalResponseFactors_Examples_GFunction_SmallScaleValidation.fmu > BuildSysPro_BuildSysPro.IBPSA.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Examples.GFunction_SmallScaleValidation.pipe 2>&1)