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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.5.0/package.mo): time 0.7443/0.7443, allocations: 128.7 MB / 143.7 MB, free: 2.34 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.001518/0.001518, allocations: 178.3 kB / 173.7 MB, free: 6.125 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.743/1.743, allocations: 205.4 MB / 409 MB, free: 10.49 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.0009241/0.0009243, allocations: 96.36 kB / 486.6 MB, free: 13 MB / 378.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000361/0.0003612, allocations: 9.938 kB / 0.5605 GB, free: 97.47 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.155/0.1553, allocations: 76.77 MB / 0.6355 GB, free: 30.39 MB / 442.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5632/0.7186, allocations: 123.3 MB / 0.7559 GB, free: 30.39 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003157/0.7189, allocations: 119.8 kB / 0.756 GB, free: 30.39 MB / 0.5105 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 - DAE generated: time 0.0997/0.8186, allocations: 31.12 MB / 0.7864 GB, free: 25.66 MB / 0.5105 GB Notification: Performance of FrontEnd: time 2.084e-06/0.8187, allocations: 0 / 0.7864 GB, free: 25.66 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 6.549e-05/0.8188, allocations: 15.53 kB / 0.7864 GB, free: 25.66 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.003732/0.8225, allocations: 1.203 MB / 0.7876 GB, free: 24.74 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 6.263e-05/0.8226, allocations: 11.75 kB / 0.7876 GB, free: 24.73 MB / 0.5105 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.484e-05/0.8227, allocations: 38 kB / 0.7876 GB, free: 24.69 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005112/0.8232, allocations: 101.5 kB / 0.7877 GB, free: 24.63 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009448/0.8241, allocations: 468.2 kB / 0.7882 GB, free: 24.3 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.548e-05/0.8242, allocations: 22.03 kB / 0.7882 GB, free: 24.3 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.723e-05/0.8243, allocations: 34.25 kB / 0.7882 GB, free: 24.3 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004052/0.8247, allocations: 394.1 kB / 0.7886 GB, free: 24.19 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.321e-05/0.8247, allocations: 7.891 kB / 0.7886 GB, free: 24.18 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.389e-05/0.8247, allocations: 0 / 0.7886 GB, free: 24.18 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.69e-06/0.8247, allocations: 3.906 kB / 0.7886 GB, free: 24.18 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003901/0.8251, allocations: 435.9 kB / 0.789 GB, free: 24.11 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000963/0.8261, allocations: 0.7671 MB / 0.7898 GB, free: 23.66 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004133/0.8265, allocations: 0.563 MB / 0.7903 GB, free: 23.52 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008292/0.8274, allocations: 1.037 MB / 0.7914 GB, free: 22.36 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003248/0.8277, allocations: 406 kB / 0.7917 GB, free: 22.23 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=8): time 1.663e-06/0.8277, allocations: 0 / 0.7917 GB, free: 22.23 MB / 0.5105 GB Notification: Performance of matching and sorting (n=8): time 0.001108/0.8288, allocations: 1.305 MB / 0.793 GB, free: 21.96 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.477e-05/0.8289, allocations: 85.11 kB / 0.7931 GB, free: 21.86 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001071/0.83, allocations: 1.127 MB / 0.7942 GB, free: 21.44 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 7.661e-05/0.8301, allocations: 44.28 kB / 0.7942 GB, free: 21.4 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002152/0.8303, allocations: 300.1 kB / 0.7945 GB, free: 21.23 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 4.267e-05/0.8303, allocations: 19.19 kB / 0.7945 GB, free: 21.23 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.343e-05/0.8304, allocations: 14.75 kB / 0.7946 GB, free: 21.23 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0001244/0.8305, allocations: 427.4 kB / 0.795 GB, free: 20.88 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001074/0.8316, allocations: 1.216 MB / 0.7962 GB, free: 20.73 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001185/0.8328, allocations: 1.36 MB / 0.7975 GB, free: 20.52 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001438/0.8342, allocations: 1.608 MB / 0.7991 GB, free: 20.07 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.749e-06/0.8342, allocations: 0 / 0.7991 GB, free: 20.07 MB / 0.5105 GB Notification: Performance of matching and sorting (n=317) (initialization): time 0.00374/0.838, allocations: 3.454 MB / 0.8024 GB, free: 19.03 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 2.537e-05/0.838, allocations: 9.844 kB / 0.8024 GB, free: 19.03 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.969e-05/0.8381, allocations: 7.578 kB / 0.8024 GB, free: 19.02 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.166e-05/0.8381, allocations: 3.594 kB / 0.8024 GB, free: 19.02 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005797/0.8387, allocations: 141.1 kB / 0.8026 GB, free: 19 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.772e-05/0.8387, allocations: 7.734 kB / 0.8026 GB, free: 18.99 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006034/0.8393, allocations: 238.4 kB / 0.8028 GB, free: 18.81 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.98e-05/0.8394, allocations: 62.33 kB / 0.8029 GB, free: 18.8 MB / 0.5105 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 () * Number of clocked 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.0003121/0.8397, allocations: 273 kB / 0.8031 GB, free: 18.62 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.881e-05/0.8398, allocations: 74.09 kB / 0.8032 GB, free: 18.57 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007977/0.8406, allocations: 0.9473 MB / 0.8041 GB, free: 18.36 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.868e-06/0.8406, allocations: 0 / 0.8041 GB, free: 18.36 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.672e-06/0.8406, allocations: 3.875 kB / 0.8041 GB, free: 18.36 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.24e-06/0.8407, allocations: 3.953 kB / 0.8041 GB, free: 18.36 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004482/0.8411, allocations: 0.5119 MB / 0.8046 GB, free: 18.09 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.094e-06/0.8411, allocations: 7.969 kB / 0.8046 GB, free: 18.08 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.924e-05/0.8412, allocations: 7.797 kB / 0.8047 GB, free: 18.08 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.737e-06/0.8412, allocations: 0 / 0.8047 GB, free: 18.08 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.509e-05/0.8412, allocations: 7.375 kB / 0.8047 GB, free: 18.08 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.924e-06/0.8412, allocations: 0 / 0.8047 GB, free: 18.08 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.663e-06/0.8412, allocations: 0 / 0.8047 GB, free: 18.08 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006986/0.8419, allocations: 1.02 MB / 0.8057 GB, free: 17.8 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001529/0.8421, allocations: 162.4 kB / 0.8058 GB, free: 17.64 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.463e-05/0.8422, allocations: 4 kB / 0.8058 GB, free: 17.64 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000153/0.8423, allocations: 7.797 kB / 0.8058 GB, free: 17.64 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.035e-05/0.8424, allocations: 7.828 kB / 0.8058 GB, free: 17.63 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.649e-05/0.8424, allocations: 19.22 kB / 0.8059 GB, free: 17.62 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.0007131/0.8431, allocations: 0.7091 MB / 0.8065 GB, free: 17.38 MB / 0.5105 GB Notification: Performance of sort global known variables: time 1.3e-07/0.8432, allocations: 0 / 0.8065 GB, free: 17.38 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.002171/0.8453, allocations: 0.4973 MB / 0.807 GB, free: 17.25 MB / 0.5105 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.003856/0.8492, allocations: 2.193 MB / 0.8092 GB, free: 16.16 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.001906/0.8511, allocations: 2.362 MB / 0.8115 GB, free: 15.89 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 3.006e-06/0.8511, allocations: 0 / 0.8115 GB, free: 15.89 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.0002417/0.8514, allocations: 346.2 kB / 0.8118 GB, free: 15.83 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002959/0.8517, allocations: 50.39 kB / 0.8119 GB, free: 15.82 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00358/0.8553, allocations: 2.833 MB / 0.8146 GB, free: 14.28 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004285/0.8557, allocations: 1.003 MB / 0.8156 GB, free: 13.43 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.0002118/0.8559, allocations: 62.14 kB / 0.8157 GB, free: 13.4 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002812/0.8562, allocations: 298.1 kB / 0.8159 GB, free: 13.37 MB / 0.5105 GB Notification: Performance of SimCode: time 4.97e-06/0.8562, allocations: 0 / 0.8159 GB, free: 13.37 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04219/0.8984, allocations: 19.5 MB / 0.835 GB, free: 3.816 MB / 0.5105 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003054/0.8988, allocations: 271.4 kB / 0.8352 GB, free: 3.461 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.013/3.912, allocations: 0 / 0.8352 GB, free: 3.461 MB / 0.5105 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)