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_SmallScaleValidation.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_SmallScaleValidation,fileNamePrefix="IBPSA_latest_IBPSA_Fluid_Geothermal_Borefields_BaseClasses_HeatTransfer_ThermalResponseFactors_Validation_GFunction_SmallScaleValidation",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IBPSA.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation,fileNamePrefix="IBPSA_latest_IBPSA_Fluid_Geothermal_Borefields_BaseClasses_HeatTransfer_ThermalResponseFactors_Validation_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/Complex 4.0.0+maint.om/package.mo): time 0.002061/0.002062, allocations: 185.8 kB / 7.802 MB, free: 2.5 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.4733/0.4733, allocations: 90.85 MB / 99.07 MB, free: 14.86 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.332/1.332, allocations: 221.4 MB / 342.8 MB, free: 5.172 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.001035/0.001035, allocations: 99.67 kB / 415.5 MB, free: 6.398 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1818/0.1829, allocations: 78.49 MB / 494 MB, free: 7.914 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4447/0.6276, allocations: 72.29 MB / 0.553 GB, free: 73.25 MB / 442.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1559/0.7836, allocations: 128.7 MB / 0.6787 GB, free: 13.3 MB / 0.4948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003286/0.784, allocations: 119.9 kB / 0.6788 GB, free: 13.18 MB / 0.4948 GB [/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.1393/0.9233, allocations: 39.35 MB / 0.7173 GB, free: 5.816 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 5.151e-05/0.9234, allocations: 8 kB / 0.7173 GB, free: 5.805 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004418/0.9239, allocations: 110.6 kB / 0.7174 GB, free: 5.695 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000715/0.9246, allocations: 472.9 kB / 0.7178 GB, free: 5.184 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.367e-05/0.9246, allocations: 4 kB / 0.7178 GB, free: 5.18 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.093e-05/0.9247, allocations: 27.89 kB / 0.7179 GB, free: 5.152 MB / 0.5261 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003756/0.9251, allocations: 423.8 kB / 0.7183 GB, free: 4.738 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003379/0.9254, allocations: 386.3 kB / 0.7186 GB, free: 4.352 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.655e-06/0.9254, allocations: 0 / 0.7186 GB, free: 4.352 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.643e-05/0.9255, allocations: 11.19 kB / 0.7186 GB, free: 4.344 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.17e-06/0.9255, allocations: 0 / 0.7186 GB, free: 4.344 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007714/0.9263, allocations: 0.7265 MB / 0.7193 GB, free: 3.578 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005212/0.9268, allocations: 0.5555 MB / 0.7199 GB, free: 3.004 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002835/0.9271, allocations: 325.7 kB / 0.7202 GB, free: 2.68 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001098/0.9282, allocations: 1.044 MB / 0.7212 GB, free: 1.414 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003657/0.9286, allocations: 392.9 kB / 0.7216 GB, free: 1.012 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=8): time 2.054e-06/0.9286, allocations: 4 kB / 0.7216 GB, free: 1.008 MB / 0.5261 GB Notification: Performance of matching and sorting (n=8): time 0.0008465/0.9294, allocations: 0.7539 MB / 0.7223 GB, free: 252 kB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.856e-05/0.9295, allocations: 85.09 kB / 0.7224 GB, free: 148 kB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.2176/1.147, allocations: 1.085 MB / 0.7235 GB, free: 184.2 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0001137/1.147, allocations: 31.42 kB / 0.7235 GB, free: 184.2 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002086/1.147, allocations: 262.2 kB / 0.7238 GB, free: 184.1 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 4.203e-05/1.148, allocations: 24.83 kB / 0.7238 GB, free: 184 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.921e-05/1.148, allocations: 0 / 0.7238 GB, free: 184 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0001114/1.148, allocations: 429.3 kB / 0.7242 GB, free: 183.7 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009768/1.149, allocations: 1.222 MB / 0.7254 GB, free: 183.7 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001053/1.15, allocations: 1.36 MB / 0.7267 GB, free: 183.7 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001367/1.151, allocations: 1.632 MB / 0.7283 GB, free: 183.3 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.9e-06/1.151, allocations: 0 / 0.7283 GB, free: 183.3 MB / 0.5261 GB Notification: Performance of matching and sorting (n=319) (initialization): time 0.004787/1.156, allocations: 7.208 MB / 0.7353 GB, free: 182.6 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 2.035e-05/1.156, allocations: 3.469 kB / 0.7353 GB, free: 182.6 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.632e-05/1.156, allocations: 3.719 kB / 0.7353 GB, free: 182.6 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.351e-05/1.156, allocations: 7.25 kB / 0.7354 GB, free: 182.6 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007045/1.157, allocations: 150.4 kB / 0.7355 GB, free: 182.6 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.062e-05/1.157, allocations: 9.938 kB / 0.7355 GB, free: 182.6 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006812/1.157, allocations: 224.6 kB / 0.7357 GB, free: 182.5 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001061/1.158, allocations: 64.33 kB / 0.7358 GB, free: 182.5 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: 13 ($whenCondition1,$PRE.k,k,$PRE.t1,t1,$PRE.t2,t2,$PRE.gFun1,gFun1,$PRE.gFun2,gFun2,labels[1],cluSiz[1]) * 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.0001498/1.158, allocations: 111.9 kB / 0.7359 GB, free: 182.4 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.867e-05/1.158, allocations: 73.69 kB / 0.736 GB, free: 182.3 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007968/1.159, allocations: 0.7278 MB / 0.7367 GB, free: 182.3 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.813e-06/1.159, allocations: 3.891 kB / 0.7367 GB, free: 182.3 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.553e-06/1.159, allocations: 3.844 kB / 0.7367 GB, free: 182.3 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.398e-06/1.159, allocations: 0 / 0.7367 GB, free: 182.3 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004693/1.159, allocations: 0.4949 MB / 0.7372 GB, free: 182.1 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.994e-06/1.159, allocations: 3.844 kB / 0.7372 GB, free: 182.1 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.236e-05/1.159, allocations: 7.359 kB / 0.7372 GB, free: 182.1 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.11e-06/1.159, allocations: 0 / 0.7372 GB, free: 182.1 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.705e-05/1.159, allocations: 7.844 kB / 0.7372 GB, free: 182.1 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.184e-06/1.159, allocations: 1.859 kB / 0.7372 GB, free: 182.1 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.655e-06/1.159, allocations: 0 / 0.7372 GB, free: 182.1 MB / 0.5261 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0005649/1.16, allocations: 0.7984 MB / 0.738 GB, free: 182 MB / 0.5261 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.000618/1.16, allocations: 1.202 MB / 0.7391 GB, free: 181.4 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 9.921e-05/1.161, allocations: 160.7 kB / 0.7393 GB, free: 181.3 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.166e-05/1.161, allocations: 7.375 kB / 0.7393 GB, free: 181.3 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001696/1.161, allocations: 7.797 kB / 0.7393 GB, free: 181.3 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.128e-05/1.161, allocations: 6.344 kB / 0.7393 GB, free: 181.3 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.178e-05/1.161, allocations: 15 kB / 0.7393 GB, free: 181.3 MB / 0.5261 GB Notification: Performance of sort global known variables: time 0.0007222/1.162, allocations: 0.6582 MB / 0.74 GB, free: 181.2 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.003241/1.165, allocations: 0.741 MB / 0.7407 GB, free: 181.2 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.003342/1.168, allocations: 0.9199 MB / 0.7416 GB, free: 181.1 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.003218/1.172, allocations: 2.405 MB / 0.7439 GB, free: 181 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 4.509e-06/1.172, allocations: 3.938 kB / 0.7439 GB, free: 181 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.0003621/1.172, allocations: 342.1 kB / 0.7443 GB, free: 181 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005142/1.172, allocations: 47.33 kB / 0.7443 GB, free: 181 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002801/1.175, allocations: 1.532 MB / 0.7458 GB, free: 180.7 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007501/1.176, allocations: 1.062 MB / 0.7468 GB, free: 180 MB / 0.5261 GB Notification: Performance of SimCode: time 1.633e-06/1.176, allocations: 1.625 kB / 0.7468 GB, free: 180 MB / 0.5261 GB (rm -f IBPSA_latest_IBPSA.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe ; mkfifo IBPSA_latest_IBPSA.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe >> ../files/IBPSA_latest_IBPSA.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_IBPSA_latest_IBPSA_Fluid_Geothermal_Borefields_BaseClasses_HeatTransfer_ThermalResponseFactors_Validation_GFunction_SmallScaleValidation_fmu --startTime=0 --stopTime=1.8e+12 --timeout=50 --tolerance=1e-06 IBPSA_latest_IBPSA_Fluid_Geothermal_Borefields_BaseClasses_HeatTransfer_ThermalResponseFactors_Validation_GFunction_SmallScaleValidation.fmu > IBPSA_latest_IBPSA.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe 2>&1)