Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo", uses=false) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/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) 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 BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Running command: "" <> buildModelFMU(BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Geothermal_Borefields_BaseClasses_HeatTransfer_ThermalResponseFactors_Validation_GFunction_1borehole_5meters",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Geothermal_Borefields_BaseClasses_HeatTransfer_ThermalResponseFactors_Validation_GFunction_1borehole_5meters",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/BuildingSystems 2.0.0-master/package.mo): time 0.7588/0.7588, allocations: 141.8 MB / 149.1 MB, free: 1.504 MB / 122.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001131/0.001131, allocations: 169.4 kB / 181.9 MB, free: 0.8828 MB / 154.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.372/1.372, allocations: 221.4 MB / 436 MB, free: 5.586 MB / 330.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009763/0.0009763, allocations: 92.59 kB / 0.507 GB, free: 2.281 MB / 410.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001695/0.001695, allocations: 286.6 kB / 0.5885 GB, free: 47.32 MB / 410.9 MB Notification: Performance of FrontEnd - loaded program: time 0.4173/0.419, allocations: 89.66 MB / 0.676 GB, free: 59.53 MB / 442.9 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1715/0.5906, allocations: 82.78 MB / 0.7569 GB, free: 0.6445 MB / 442.9 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4581/1.049, allocations: 122.8 MB / 0.8768 GB, free: 26.62 MB / 0.5419 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003006/1.049, allocations: 112.1 kB / 0.8769 GB, free: 26.62 MB / 0.5419 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.07895/1.128, allocations: 22.79 MB / 0.8991 GB, free: 24.43 MB / 0.5419 GB Notification: Performance of prepare preOptimizeDAE: time 4.329e-05/1.128, allocations: 7.875 kB / 0.8991 GB, free: 24.43 MB / 0.5419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005672/1.129, allocations: 97.12 kB / 0.8992 GB, free: 24.38 MB / 0.5419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009216/1.13, allocations: 427.2 kB / 0.8996 GB, free: 24.11 MB / 0.5419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.777e-05/1.13, allocations: 0 / 0.8996 GB, free: 24.11 MB / 0.5419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001053/1.13, allocations: 24.36 kB / 0.8997 GB, free: 24.11 MB / 0.5419 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004106/1.13, allocations: 424.5 kB / 0.9001 GB, free: 24.11 MB / 0.5419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003604/1.131, allocations: 395.5 kB / 0.9005 GB, free: 24.05 MB / 0.5419 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.098e-05/1.131, allocations: 0.9375 kB / 0.9005 GB, free: 24.05 MB / 0.5419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.483e-05/1.131, allocations: 0 / 0.9005 GB, free: 24.05 MB / 0.5419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.971e-06/1.131, allocations: 0 / 0.9005 GB, free: 24.05 MB / 0.5419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009993/1.132, allocations: 0.6891 MB / 0.9011 GB, free: 23.79 MB / 0.5419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004675/1.132, allocations: 0.5619 MB / 0.9017 GB, free: 23.74 MB / 0.5419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002292/1.132, allocations: 329.8 kB / 0.902 GB, free: 23.72 MB / 0.5419 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008491/1.133, allocations: 1.047 MB / 0.903 GB, free: 22.58 MB / 0.5419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003394/1.134, allocations: 398.6 kB / 0.9034 GB, free: 22.51 MB / 0.5419 GB Notification: Performance of pre-optimization done (n=8): time 2.264e-06/1.134, allocations: 0 / 0.9034 GB, free: 22.51 MB / 0.5419 GB Notification: Performance of matching and sorting (n=8): time 0.000766/1.134, allocations: 0.7435 MB / 0.9041 GB, free: 22.42 MB / 0.5419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.645e-05/1.134, allocations: 82.39 kB / 0.9042 GB, free: 22.33 MB / 0.5419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00102/1.135, allocations: 1.017 MB / 0.9052 GB, free: 22.1 MB / 0.5419 GB Notification: Performance of collectPreVariables (initialization): time 7.314e-05/1.136, allocations: 33.38 kB / 0.9052 GB, free: 22.07 MB / 0.5419 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002139/1.136, allocations: 256.8 kB / 0.9055 GB, free: 21.93 MB / 0.5419 GB Notification: Performance of collectInitialBindings (initialization): time 4.085e-05/1.136, allocations: 21.58 kB / 0.9055 GB, free: 21.92 MB / 0.5419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.78e-05/1.136, allocations: 0 / 0.9055 GB, free: 21.92 MB / 0.5419 GB Notification: Performance of setup shared object (initialization): time 0.000127/1.136, allocations: 415.8 kB / 0.9059 GB, free: 21.61 MB / 0.5419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001046/1.137, allocations: 1.213 MB / 0.9071 GB, free: 21.6 MB / 0.5419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001167/1.138, allocations: 1.349 MB / 0.9084 GB, free: 21.57 MB / 0.5419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001703/1.14, allocations: 1.617 MB / 0.91 GB, free: 21.22 MB / 0.5419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.729e-06/1.14, allocations: 0 / 0.91 GB, free: 21.22 MB / 0.5419 GB Notification: Performance of matching and sorting (n=317) (initialization): time 0.005345/1.145, allocations: 7.132 MB / 0.9169 GB, free: 20.47 MB / 0.5419 GB Notification: Performance of prepare postOptimizeDAE: time 1.903e-05/1.145, allocations: 6.406 kB / 0.9169 GB, free: 20.47 MB / 0.5419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.01e-05/1.145, allocations: 4.469 kB / 0.9169 GB, free: 20.47 MB / 0.5419 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.119e-05/1.145, allocations: 0 / 0.9169 GB, free: 20.47 MB / 0.5419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007116/1.146, allocations: 143.1 kB / 0.9171 GB, free: 20.46 MB / 0.5419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.309e-05/1.146, allocations: 4.547 kB / 0.9171 GB, free: 20.46 MB / 0.5419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000596/1.147, allocations: 231.3 kB / 0.9173 GB, free: 20.27 MB / 0.5419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001068/1.147, allocations: 68.86 kB / 0.9174 GB, free: 20.27 MB / 0.5419 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.0001335/1.147, allocations: 113.2 kB / 0.9175 GB, free: 20.15 MB / 0.5419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.32e-05/1.147, allocations: 66.67 kB / 0.9175 GB, free: 20.1 MB / 0.5419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008027/1.148, allocations: 0.7175 MB / 0.9182 GB, free: 20.04 MB / 0.5419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.309e-06/1.148, allocations: 0 / 0.9182 GB, free: 20.04 MB / 0.5419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.213e-06/1.148, allocations: 11.75 kB / 0.9183 GB, free: 20.04 MB / 0.5419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.982e-06/1.148, allocations: 4.547 kB / 0.9183 GB, free: 20.03 MB / 0.5419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004861/1.148, allocations: 465.9 kB / 0.9187 GB, free: 19.88 MB / 0.5419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.924e-06/1.148, allocations: 0 / 0.9187 GB, free: 19.88 MB / 0.5419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.084e-05/1.149, allocations: 14.17 kB / 0.9187 GB, free: 19.87 MB / 0.5419 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.398e-06/1.149, allocations: 3.938 kB / 0.9187 GB, free: 19.87 MB / 0.5419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.527e-05/1.149, allocations: 5.234 kB / 0.9187 GB, free: 19.87 MB / 0.5419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.985e-06/1.149, allocations: 4.516 kB / 0.9187 GB, free: 19.86 MB / 0.5419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.826e-06/1.149, allocations: 0 / 0.9187 GB, free: 19.86 MB / 0.5419 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0005911/1.149, allocations: 0.7875 MB / 0.9195 GB, free: 19.72 MB / 0.5419 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0006686/1.15, allocations: 1.178 MB / 0.9206 GB, free: 19.21 MB / 0.5419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001043/1.15, allocations: 156.1 kB / 0.9208 GB, free: 19.06 MB / 0.5419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.424e-05/1.15, allocations: 0.8438 kB / 0.9208 GB, free: 19.06 MB / 0.5419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001629/1.15, allocations: 5.656 kB / 0.9208 GB, free: 19.06 MB / 0.5419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.849e-05/1.15, allocations: 6.734 kB / 0.9208 GB, free: 19.06 MB / 0.5419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.372e-05/1.15, allocations: 16.2 kB / 0.9208 GB, free: 19.06 MB / 0.5419 GB Notification: Performance of sort global known variables: time 0.0006822/1.151, allocations: 0.6091 MB / 0.9214 GB, free: 18.95 MB / 0.5419 GB Notification: Performance of remove unused functions: time 0.002822/1.154, allocations: 0.5024 MB / 0.9219 GB, free: 18.83 MB / 0.5419 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.00256/1.156, allocations: 0.5922 MB / 0.9225 GB, free: 18.57 MB / 0.5419 GB Notification: Performance of simCode: created initialization part: time 0.001945/1.158, allocations: 2.35 MB / 0.9248 GB, free: 18.33 MB / 0.5419 GB Notification: Performance of simCode: created event and clocks part: time 3.827e-06/1.158, allocations: 0 / 0.9248 GB, free: 18.33 MB / 0.5419 GB Notification: Performance of simCode: created simulation system equations: time 0.0002157/1.159, allocations: 339.1 kB / 0.9251 GB, free: 18.28 MB / 0.5419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002738/1.159, allocations: 32.62 kB / 0.9251 GB, free: 18.28 MB / 0.5419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001688/1.161, allocations: 1.471 MB / 0.9266 GB, free: 17.77 MB / 0.5419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004792/1.161, allocations: 1.027 MB / 0.9276 GB, free: 16.91 MB / 0.5419 GB Notification: Performance of SimCode: time 1.021e-06/1.161, allocations: 0 / 0.9276 GB, free: 16.91 MB / 0.5419 GB (rm -f BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Fluid_Geothermal_Borefields_BaseClasses_HeatTransfer_ThermalResponseFactors_Validation_GFunction_1borehole_5meters_fmu --startTime=0 --stopTime=4.12e+08 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Fluid_Geothermal_Borefields_BaseClasses_HeatTransfer_ThermalResponseFactors_Validation_GFunction_1borehole_5meters.fmu > BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.pipe 2>&1)