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_100boreholes.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_100boreholes,fileNamePrefix="BuildSysPro_BuildSysPro_IBPSA_Fluid_Geothermal_Borefields_BaseClasses_HeatTransfer_ThermalResponseFactors_Examples_GFunction_100boreholes",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildSysPro.IBPSA.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Examples.GFunction_100boreholes,fileNamePrefix="BuildSysPro_BuildSysPro_IBPSA_Fluid_Geothermal_Borefields_BaseClasses_HeatTransfer_ThermalResponseFactors_Examples_GFunction_100boreholes",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.6936/0.6936, allocations: 127.4 MB / 134.6 MB, free: 4.102 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.001127/0.001127, allocations: 185.2 kB / 164.4 MB, free: 6.887 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.962/1.962, allocations: 205.1 MB / 399.1 MB, free: 6.152 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.0009839/0.0009838, allocations: 81.86 kB / 476.3 MB, free: 8.914 MB / 378.7 MB Notification: Performance of FrontEnd - loaded program: time 0.3316/0.3326, allocations: 82.94 MB / 0.5461 GB, free: 42.62 MB / 378.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2098/0.5424, allocations: 76.75 MB / 0.6211 GB, free: 13.8 MB / 426.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5445/1.087, allocations: 117.7 MB / 0.736 GB, free: 10.51 MB / 0.4948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000331/1.087, allocations: 115.9 kB / 0.7361 GB, free: 10.39 MB / 0.4948 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.5.0/IBPSA/Fluid/Geothermal/Borefields/BaseClasses/HeatTransfer/ThermalResponseFactors/Examples/GFunction_100boreholes.mo:19:38-19: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_100boreholes.mo:20:39-20: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_100boreholes.mo:21:56-21: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_100boreholes.mo:22:41-22: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.1213/1.209, allocations: 27.32 MB / 0.7628 GB, free: 15 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 5.08e-05/1.209, allocations: 8 kB / 0.7628 GB, free: 14.99 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006885/1.209, allocations: 158 kB / 0.763 GB, free: 14.84 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001445/1.211, allocations: 0.622 MB / 0.7636 GB, free: 14.15 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.925e-05/1.211, allocations: 0 / 0.7636 GB, free: 14.15 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001547/1.211, allocations: 24 kB / 0.7636 GB, free: 14.12 MB / 0.5261 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004215/1.212, allocations: 423.8 kB / 0.764 GB, free: 13.71 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004274/1.212, allocations: 379.2 kB / 0.7644 GB, free: 13.33 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.863e-05/1.212, allocations: 4 kB / 0.7644 GB, free: 13.32 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.892e-05/1.212, allocations: 7.938 kB / 0.7644 GB, free: 13.32 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.013e-06/1.212, allocations: 0 / 0.7644 GB, free: 13.32 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001605/1.214, allocations: 0.9239 MB / 0.7653 GB, free: 12.34 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005405/1.214, allocations: 0.5555 MB / 0.7658 GB, free: 11.77 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002823/1.214, allocations: 333.7 kB / 0.7661 GB, free: 11.44 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001237/1.216, allocations: 1.036 MB / 0.7672 GB, free: 10.18 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004297/1.216, allocations: 397 kB / 0.7675 GB, free: 9.773 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=8): time 2.044e-06/1.216, allocations: 4 kB / 0.7675 GB, free: 9.77 MB / 0.5261 GB Notification: Performance of matching and sorting (n=8): time 0.00116/1.217, allocations: 0.8001 MB / 0.7683 GB, free: 8.961 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.241e-05/1.217, allocations: 81.11 kB / 0.7684 GB, free: 8.863 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002493/1.22, allocations: 1.54 MB / 0.7699 GB, free: 7.281 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0001283/1.22, allocations: 25.7 kB / 0.7699 GB, free: 7.25 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004732/1.221, allocations: 330 kB / 0.7702 GB, free: 6.922 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 5.417e-05/1.221, allocations: 15.81 kB / 0.7703 GB, free: 6.906 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.597e-05/1.221, allocations: 4.031 kB / 0.7703 GB, free: 6.902 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0002574/1.221, allocations: 418.8 kB / 0.7707 GB, free: 6.488 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00182/1.223, allocations: 1.467 MB / 0.7721 GB, free: 5.016 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001948/1.225, allocations: 1.613 MB / 0.7737 GB, free: 3.395 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002232/1.227, allocations: 1.86 MB / 0.7755 GB, free: 1.52 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.568e-06/1.227, allocations: 0 / 0.7755 GB, free: 1.52 MB / 0.5261 GB Notification: Performance of matching and sorting (n=317) (initialization): time 0.009626/1.237, allocations: 7.717 MB / 0.783 GB, free: 9.766 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 2.828e-05/1.237, allocations: 4.031 kB / 0.783 GB, free: 9.762 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.749e-05/1.237, allocations: 24 kB / 0.7831 GB, free: 9.738 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.945e-05/1.237, allocations: 4 kB / 0.7831 GB, free: 9.734 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008195/1.238, allocations: 147.7 kB / 0.7832 GB, free: 9.59 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.691e-05/1.238, allocations: 4 kB / 0.7832 GB, free: 9.586 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009238/1.239, allocations: 236.2 kB / 0.7834 GB, free: 9.352 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001385/1.239, allocations: 87.98 kB / 0.7835 GB, free: 9.266 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.0001733/1.239, allocations: 112.9 kB / 0.7836 GB, free: 9.148 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001425/1.239, allocations: 133.9 kB / 0.7837 GB, free: 9.016 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001221/1.24, allocations: 0.7935 MB / 0.7845 GB, free: 8.215 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.65e-06/1.24, allocations: 4 kB / 0.7845 GB, free: 8.211 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.891e-06/1.24, allocations: 0 / 0.7845 GB, free: 8.211 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.38e-06/1.24, allocations: 0 / 0.7845 GB, free: 8.211 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008195/1.241, allocations: 0.644 MB / 0.7852 GB, free: 7.523 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.262e-06/1.241, allocations: 7.906 kB / 0.7852 GB, free: 7.516 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.558e-05/1.241, allocations: 7.984 kB / 0.7852 GB, free: 7.508 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.839e-06/1.241, allocations: 4.031 kB / 0.7852 GB, free: 7.504 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.857e-05/1.241, allocations: 4 kB / 0.7852 GB, free: 7.5 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.054e-06/1.241, allocations: 0 / 0.7852 GB, free: 7.5 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.376e-06/1.241, allocations: 0 / 0.7852 GB, free: 7.5 MB / 0.5417 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0007783/1.242, allocations: 0.8466 MB / 0.786 GB, free: 6.617 MB / 0.5417 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0009834/1.243, allocations: 1.253 MB / 0.7872 GB, free: 5.324 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002594/1.243, allocations: 195.1 kB / 0.7874 GB, free: 5.113 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001497/1.244, allocations: 0 / 0.7874 GB, free: 5.113 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002483/1.244, allocations: 7.984 kB / 0.7874 GB, free: 5.105 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.218e-05/1.244, allocations: 15.97 kB / 0.7874 GB, free: 5.09 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.283e-05/1.244, allocations: 19.98 kB / 0.7875 GB, free: 5.07 MB / 0.5417 GB Notification: Performance of sort global known variables: time 0.001803/1.246, allocations: 1.011 MB / 0.7884 GB, free: 4.035 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.003492/1.249, allocations: 0.5344 MB / 0.789 GB, free: 3.5 MB / 0.5417 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.003173/1.252, allocations: 0.5928 MB / 0.7895 GB, free: 2.895 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.002832/1.255, allocations: 2.501 MB / 0.792 GB, free: 392 kB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 3.857e-06/1.255, allocations: 0 / 0.792 GB, free: 392 kB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.0002903/1.256, allocations: 335.8 kB / 0.7923 GB, free: 56 kB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005159/1.256, allocations: 50.47 kB / 0.7924 GB, free: 0 / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003251/1.259, allocations: 2.128 MB / 0.7944 GB, free: 13.82 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001026/1.26, allocations: 1.228 MB / 0.7956 GB, free: 12.56 MB / 0.5573 GB Notification: Performance of SimCode: time 2.645e-06/1.261, allocations: 4 kB / 0.7956 GB, free: 12.55 MB / 0.5573 GB (rm -f BuildSysPro_BuildSysPro.IBPSA.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Examples.GFunction_100boreholes.pipe ; mkfifo BuildSysPro_BuildSysPro.IBPSA.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Examples.GFunction_100boreholes.pipe ; head -c 1048576 < BuildSysPro_BuildSysPro.IBPSA.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Examples.GFunction_100boreholes.pipe >> ../files/BuildSysPro_BuildSysPro.IBPSA.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Examples.GFunction_100boreholes.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildSysPro_BuildSysPro_IBPSA_Fluid_Geothermal_Borefields_BaseClasses_HeatTransfer_ThermalResponseFactors_Examples_GFunction_100boreholes_fmu --startTime=0 --stopTime=3.7e+11 --timeout=50 --tolerance=1e-06 BuildSysPro_BuildSysPro_IBPSA_Fluid_Geothermal_Borefields_BaseClasses_HeatTransfer_ThermalResponseFactors_Examples_GFunction_100boreholes.fmu > BuildSysPro_BuildSysPro.IBPSA.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Examples.GFunction_100boreholes.pipe 2>&1)