Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IBPSA_latest_IBPSA.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_100boreholes.conf.json 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/IBPSA 4.0.0-master/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) 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 IBPSA with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/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) Running command: "" <> buildModelFMU(IBPSA.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_100boreholes,fileNamePrefix="IBPSA_latest_IBPSA_Fluid_Geothermal_Borefields_BaseClasses_HeatTransfer_ThermalResponseFactors_Validation_GFunction_100boreholes",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IBPSA.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_100boreholes,fileNamePrefix="IBPSA_latest_IBPSA_Fluid_Geothermal_Borefields_BaseClasses_HeatTransfer_ThermalResponseFactors_Validation_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/Complex 4.0.0+maint.om/package.mo): time 0.001595/0.001596, allocations: 192 kB / 7.806 MB, free: 2.434 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.4925/0.4925, allocations: 90.85 MB / 99.07 MB, free: 14.93 MB / 90.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.297/1.297, allocations: 221.4 MB / 342.8 MB, free: 5.211 MB / 282.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001052/0.001052, allocations: 94.86 kB / 415.5 MB, free: 6.441 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1858/0.1869, allocations: 78.49 MB / 494 MB, free: 7.953 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3878/0.5747, allocations: 72.31 MB / 0.553 GB, free: 73.3 MB / 442.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1444/0.7191, allocations: 124.2 MB / 0.6743 GB, free: 1.762 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0005047/0.7197, allocations: 120.6 kB / 0.6744 GB, free: 1.645 MB / 490.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/Utilities/Clustering/KMeans.mo:96:7-96:35:writable] Warning: inertia was used before it was defined (given a value). Additional such uses may exist for the variable, but some messages were suppressed. 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.1344/0.8542, allocations: 36.12 MB / 0.7097 GB, free: 13.51 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 5.269e-05/0.8542, allocations: 8 kB / 0.7097 GB, free: 13.5 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000573/0.8548, allocations: 177.6 kB / 0.7099 GB, free: 13.32 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001367/0.8562, allocations: 0.7602 MB / 0.7106 GB, free: 12.5 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.888e-05/0.8562, allocations: 4 kB / 0.7106 GB, free: 12.5 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001351/0.8564, allocations: 20 kB / 0.7106 GB, free: 12.48 MB / 0.5261 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000473/0.8569, allocations: 431 kB / 0.7111 GB, free: 12.06 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004187/0.8573, allocations: 375.2 kB / 0.7114 GB, free: 11.68 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.014e-05/0.8573, allocations: 0.8438 kB / 0.7114 GB, free: 11.68 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.595e-05/0.8573, allocations: 4 kB / 0.7114 GB, free: 11.68 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.478e-06/0.8573, allocations: 7.891 kB / 0.7114 GB, free: 11.67 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00137/0.8587, allocations: 1.118 MB / 0.7125 GB, free: 10.5 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005222/0.8593, allocations: 0.5595 MB / 0.7131 GB, free: 9.926 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003591/0.8596, allocations: 333.5 kB / 0.7134 GB, free: 9.594 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001174/0.8608, allocations: 1.036 MB / 0.7144 GB, free: 8.336 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004012/0.8612, allocations: 396.9 kB / 0.7148 GB, free: 7.93 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=8): time 1.914e-06/0.8612, allocations: 0 / 0.7148 GB, free: 7.93 MB / 0.5261 GB Notification: Performance of matching and sorting (n=8): time 0.001046/0.8623, allocations: 0.8292 MB / 0.7156 GB, free: 7.094 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.824e-05/0.8624, allocations: 81.11 kB / 0.7157 GB, free: 6.996 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002294/0.8647, allocations: 1.85 MB / 0.7175 GB, free: 5.121 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0001154/0.8648, allocations: 29.7 kB / 0.7175 GB, free: 5.086 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003938/0.8652, allocations: 382.4 kB / 0.7179 GB, free: 4.707 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 4.582e-05/0.8652, allocations: 23.73 kB / 0.7179 GB, free: 4.684 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.939e-05/0.8653, allocations: 0 / 0.7179 GB, free: 4.684 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0002808/0.8656, allocations: 444.8 kB / 0.7183 GB, free: 4.242 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002558/0.8682, allocations: 2.097 MB / 0.7203 GB, free: 2.145 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2891/1.157, allocations: 2.268 MB / 0.7226 GB, free: 185 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003377/1.161, allocations: 2.885 MB / 0.7254 GB, free: 184.3 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.312e-06/1.161, allocations: 0 / 0.7254 GB, free: 184.3 MB / 0.5261 GB Notification: Performance of matching and sorting (n=422) (initialization): time 0.01205/1.173, allocations: 12.27 MB / 0.7374 GB, free: 182.7 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 2.796e-05/1.173, allocations: 3.781 kB / 0.7374 GB, free: 182.7 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002101/1.173, allocations: 57.22 kB / 0.7374 GB, free: 182.7 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.487e-05/1.173, allocations: 7.406 kB / 0.7374 GB, free: 182.7 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007738/1.174, allocations: 148.7 kB / 0.7376 GB, free: 182.7 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.918e-06/1.174, allocations: 7.062 kB / 0.7376 GB, free: 182.7 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009985/1.175, allocations: 294.7 kB / 0.7379 GB, free: 182.6 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001937/1.175, allocations: 145.2 kB / 0.738 GB, free: 182.6 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 116 ($whenCondition1,$PRE.k,k,$PRE.t1,t1,$PRE.t2,t2,$PRE.gFun1,gFun1,$PRE.gFun2,gFun2,labels[1],labels[2],labels[3],labels[4],labels[5],labels[6],labels[7],labels[8],labels[9],labels[10],labels[11],labels[12],labels[13],labels[14],labels[15],labels[16],labels[17],labels[18],labels[19],labels[20],labels[21],labels[22],labels[23],labels[24],labels[25],labels[26],labels[27],labels[28],labels[29],labels[30],labels[31],labels[32],labels[33],labels[34],labels[35],labels[36],labels[37],labels[38],labels[39],labels[40],labels[41],labels[42],labels[43],labels[44],labels[45],labels[46],labels[47],labels[48],labels[49],labels[50],labels[51],labels[52],labels[53],labels[54],labels[55],labels[56],labels[57],labels[58],labels[59],labels[60],labels[61],labels[62],labels[63],labels[64],labels[65],labels[66],labels[67],labels[68],labels[69],labels[70],labels[71],labels[72],labels[73],labels[74],labels[75],labels[76],labels[77],labels[78],labels[79],labels[80],labels[81],labels[82],labels[83],labels[84],labels[85],labels[86],labels[87],labels[88],labels[89],labels[90],labels[91],labels[92],labels[93],labels[94],labels[95],labels[96],labels[97],labels[98],labels[99],labels[100],cluSiz[1],cluSiz[2],cluSiz[3],cluSiz[4],cluSiz[5]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (92): * Single equations (assignments): 89 * Array equations: 1 * Algorithm blocks: 0 * Record equations: 2 * 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.0002956/1.176, allocations: 169 kB / 0.7382 GB, free: 182.4 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001552/1.176, allocations: 139 kB / 0.7383 GB, free: 182.3 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001386/1.177, allocations: 0.7919 MB / 0.7391 GB, free: 182.3 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.993e-06/1.177, allocations: 1.438 kB / 0.7391 GB, free: 182.3 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.596e-06/1.177, allocations: 5.062 kB / 0.7391 GB, free: 182.3 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.913e-06/1.177, allocations: 4.875 kB / 0.7391 GB, free: 182.3 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001106/1.178, allocations: 0.7433 MB / 0.7398 GB, free: 182.1 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.148e-06/1.178, allocations: 1.438 kB / 0.7398 GB, free: 182.1 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.303e-05/1.178, allocations: 8.094 kB / 0.7398 GB, free: 182.1 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.51e-06/1.178, allocations: 1.125 kB / 0.7398 GB, free: 182.1 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.839e-05/1.178, allocations: 2.094 kB / 0.7398 GB, free: 182.1 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.797e-06/1.178, allocations: 5.094 kB / 0.7398 GB, free: 182.1 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.839e-06/1.178, allocations: 3.625 kB / 0.7398 GB, free: 182.1 MB / 0.5261 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001088/1.179, allocations: 0.8665 MB / 0.7407 GB, free: 181.9 MB / 0.5261 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001027/1.181, allocations: 1.286 MB / 0.7419 GB, free: 181.3 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002595/1.181, allocations: 225.5 kB / 0.7421 GB, free: 181.1 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001436/1.181, allocations: 7.688 kB / 0.7421 GB, free: 181.1 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002541/1.181, allocations: 6.703 kB / 0.7422 GB, free: 181.1 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.181e-05/1.181, allocations: 9.609 kB / 0.7422 GB, free: 181.1 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.096e-05/1.181, allocations: 13.95 kB / 0.7422 GB, free: 181.1 MB / 0.5261 GB Notification: Performance of sort global known variables: time 0.001772/1.183, allocations: 1.197 MB / 0.7433 GB, free: 181 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.004008/1.187, allocations: 0.7641 MB / 0.7441 GB, free: 181 MB / 0.5261 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.003649/1.191, allocations: 0.8421 MB / 0.7449 GB, free: 180.9 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.004583/1.195, allocations: 3.412 MB / 0.7482 GB, free: 180.8 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 3.677e-06/1.195, allocations: 0 / 0.7482 GB, free: 180.8 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.0004362/1.196, allocations: 330.7 kB / 0.7486 GB, free: 180.8 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007/1.197, allocations: 56.75 kB / 0.7486 GB, free: 180.8 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004179/1.201, allocations: 2.385 MB / 0.7509 GB, free: 180.4 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009891/1.202, allocations: 1.321 MB / 0.7522 GB, free: 179.6 MB / 0.5261 GB Notification: Performance of SimCode: time 1.643e-06/1.202, allocations: 2.844 kB / 0.7522 GB, free: 179.6 MB / 0.5261 GB (rm -f IBPSA_latest_IBPSA.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_100boreholes.pipe ; mkfifo IBPSA_latest_IBPSA.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_100boreholes.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_100boreholes.pipe >> ../files/IBPSA_latest_IBPSA.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_100boreholes.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_IBPSA_latest_IBPSA_Fluid_Geothermal_Borefields_BaseClasses_HeatTransfer_ThermalResponseFactors_Validation_GFunction_100boreholes_fmu --startTime=0 --stopTime=3.7e+11 --timeout=50 --tolerance=1e-06 IBPSA_latest_IBPSA_Fluid_Geothermal_Borefields_BaseClasses_HeatTransfer_ThermalResponseFactors_Validation_GFunction_100boreholes.fmu > IBPSA_latest_IBPSA.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_100boreholes.pipe 2>&1)