Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001638/0.001638, allocations: 110.5 kB / 19.69 MB, free: 2.254 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002014/0.002014, allocations: 215.3 kB / 23.01 MB, free: 4.566 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.449/1.449, allocations: 230.6 MB / 256.8 MB, free: 8.027 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 master/package.mo): time 0.002563/0.002563, allocations: 282.5 kB / 313.5 MB, free: 2.809 MB / 238.1 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems master/package.mo): time 1.234/1.234, allocations: 180.6 MB / 0.5377 GB, free: 13.11 MB / 382.1 MB " [Timeout remaining time 179] Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation") translateModel(BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation") [Timeout 660] "Notification: NcDataReader2 requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: BuildingSystems requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002899/0.002899, allocations: 110.4 kB / 0.7409 GB, free: 27.63 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1866/0.1895, allocations: 95.37 MB / 0.834 GB, free: 8.113 MB / 0.5762 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation): time 0.003201/0.1927, allocations: 1.807 MB / 0.8358 GB, free: 6.293 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.008225/0.2009, allocations: 5.466 MB / 0.8411 GB, free: 0.8008 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001511/0.2011, allocations: 0 / 0.8411 GB, free: 0.8008 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.001281/0.2024, allocations: 376.1 kB / 0.8415 GB, free: 444 kB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.0001525/0.2025, allocations: 63.67 kB / 0.8415 GB, free: 380 kB / 0.5762 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/Math/Random.mo:1057:5-1146:31:writable] Warning: Pure function 'Modelica.Math.Random.Utilities.initializeImpureRandom' contains a call to impure function 'Modelica.Math.Random.Utilities.initializeImpureRandom.setInternalState'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 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: Performance of NFTyping.typeClassSections: time 0.004233/0.2068, allocations: 1.592 MB / 0.8431 GB, free: 14.78 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.0003005/0.2071, allocations: 165.7 kB / 0.8433 GB, free: 14.62 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 5.477e-05/0.2071, allocations: 9.734 kB / 0.8433 GB, free: 14.61 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 9.458e-05/0.2072, allocations: 67.7 kB / 0.8433 GB, free: 14.54 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002412/0.2075, allocations: 163.5 kB / 0.8435 GB, free: 14.38 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 4.131e-05/0.2075, allocations: 12 kB / 0.8435 GB, free: 14.37 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004091/0.2116, allocations: 2.636 MB / 0.8461 GB, free: 11.73 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.0002533/0.2118, allocations: 279.8 kB / 0.8463 GB, free: 11.45 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.0002976/0.2121, allocations: 306.1 kB / 0.8466 GB, free: 11.15 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.003514/0.2157, allocations: 2.235 MB / 0.8488 GB, free: 8.91 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 4.408e-06/0.2157, allocations: 0 / 0.8488 GB, free: 8.91 MB / 0.5919 GB Notification: Performance of FrontEnd: time 1.593e-06/0.2157, allocations: 0 / 0.8488 GB, free: 8.91 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 9.518e-06/0.2157, allocations: 0 / 0.8488 GB, free: 8.91 MB / 0.5919 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.009166/0.2248, allocations: 1.333 MB / 0.8501 GB, free: 7.543 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 4.47e-05/0.2249, allocations: 9.938 kB / 0.8501 GB, free: 7.535 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004069/0.2253, allocations: 112.1 kB / 0.8502 GB, free: 7.426 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005551/0.2258, allocations: 352.5 kB / 0.8506 GB, free: 7.047 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.048e-05/0.2259, allocations: 4.375 kB / 0.8506 GB, free: 7.043 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.229e-05/0.2259, allocations: 8.375 kB / 0.8506 GB, free: 7.035 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004558/0.2264, allocations: 391.5 kB / 0.851 GB, free: 6.641 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.788e-06/0.2264, allocations: 4 kB / 0.851 GB, free: 6.637 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.223e-05/0.2264, allocations: 0 / 0.851 GB, free: 6.637 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.709e-06/0.2264, allocations: 3.938 kB / 0.851 GB, free: 6.633 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004644/0.2268, allocations: 439.7 kB / 0.8514 GB, free: 6.203 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006745/0.2275, allocations: 0.6416 MB / 0.852 GB, free: 5.52 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005788/0.2281, allocations: 0.5672 MB / 0.8526 GB, free: 4.934 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003349/0.2284, allocations: 329.7 kB / 0.8529 GB, free: 4.605 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006142/0.229, allocations: 131.7 kB / 0.853 GB, free: 4.477 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004382/0.2295, allocations: 408.8 kB / 0.8534 GB, free: 4.059 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=8): time 1.113e-06/0.2295, allocations: 0 / 0.8534 GB, free: 4.059 MB / 0.5919 GB Notification: Performance of matching and sorting (n=8): time 0.001483/0.231, allocations: 1.301 MB / 0.8547 GB, free: 2.75 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.218e-05/0.231, allocations: 85.22 kB / 0.8547 GB, free: 2.648 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001374/0.2324, allocations: 1.302 MB / 0.856 GB, free: 1.336 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 3.974e-05/0.2324, allocations: 29.7 kB / 0.856 GB, free: 1.301 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002324/0.2327, allocations: 289.9 kB / 0.8563 GB, free: 1.012 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 3.489e-05/0.2327, allocations: 23.83 kB / 0.8563 GB, free: 0.9883 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003408/0.2331, allocations: 347.6 kB / 0.8567 GB, free: 0.6445 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 0.0001408/0.2332, allocations: 322 kB / 0.857 GB, free: 332 kB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001339/0.2345, allocations: 1.369 MB / 0.8583 GB, free: 14.95 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00146/0.236, allocations: 1.507 MB / 0.8598 GB, free: 13.44 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007226/0.2432, allocations: 3.56 MB / 0.8633 GB, free: 9.785 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.681e-06/0.2432, allocations: 0 / 0.8633 GB, free: 9.785 MB / 0.6075 GB Notification: Performance of matching and sorting (n=319) (initialization): time 0.004754/0.248, allocations: 4.023 MB / 0.8672 GB, free: 5.727 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 2.227e-05/0.248, allocations: 4 kB / 0.8672 GB, free: 5.723 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.228e-05/0.248, allocations: 4 kB / 0.8672 GB, free: 5.719 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.035e-05/0.248, allocations: 0 / 0.8672 GB, free: 5.719 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001365/0.2482, allocations: 15.98 kB / 0.8672 GB, free: 5.703 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.428e-05/0.2482, allocations: 7.938 kB / 0.8672 GB, free: 5.695 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005454/0.2487, allocations: 241.4 kB / 0.8675 GB, free: 5.457 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.243e-05/0.2488, allocations: 28.02 kB / 0.8675 GB, free: 5.43 MB / 0.6075 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 (cluSiz[1],labels[1],gFun2,$PRE.gFun2,gFun1,$PRE.gFun1,t2,$PRE.t2,t1,$PRE.t1,k,$PRE.k,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (17): * Single equations (assignments): 13 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003678/0.2492, allocations: 250.3 kB / 0.8677 GB, free: 5.176 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.582e-05/0.2492, allocations: 87.19 kB / 0.8678 GB, free: 5.09 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001072/0.2503, allocations: 0.9407 MB / 0.8687 GB, free: 4.137 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.61e-06/0.2503, allocations: 4 kB / 0.8687 GB, free: 4.133 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.59e-06/0.2503, allocations: 0 / 0.8687 GB, free: 4.133 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.889e-06/0.2503, allocations: 4.031 kB / 0.8687 GB, free: 4.129 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004941/0.2508, allocations: 493.5 kB / 0.8692 GB, free: 3.609 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.403e-06/0.2508, allocations: 0 / 0.8692 GB, free: 3.609 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.385e-05/0.2509, allocations: 11.92 kB / 0.8692 GB, free: 3.598 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.679e-06/0.2509, allocations: 7.938 kB / 0.8692 GB, free: 3.59 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.296e-05/0.2509, allocations: 4 kB / 0.8692 GB, free: 3.586 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.934e-06/0.2509, allocations: 0 / 0.8692 GB, free: 3.586 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.503e-06/0.2509, allocations: 0 / 0.8692 GB, free: 3.586 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001019/0.2519, allocations: 1.03 MB / 0.8702 GB, free: 2.535 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001018/0.252, allocations: 87.23 kB / 0.8703 GB, free: 2.449 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.432e-05/0.2521, allocations: 4 kB / 0.8703 GB, free: 2.445 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001418/0.2523, allocations: 7.984 kB / 0.8703 GB, free: 2.438 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.59e-05/0.2523, allocations: 7.984 kB / 0.8703 GB, free: 2.43 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.154e-05/0.2523, allocations: 15.98 kB / 0.8703 GB, free: 2.414 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.0008656/0.2532, allocations: 0.7261 MB / 0.8711 GB, free: 1.684 MB / 0.6075 GB Notification: Performance of sort global known variables: time 8e-08/0.2532, allocations: 0 / 0.8711 GB, free: 1.684 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.001707/0.2549, allocations: 0.5923 MB / 0.8716 GB, free: 1.09 MB / 0.6075 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001944/0.2569, allocations: 0.7009 MB / 0.8723 GB, free: 408 kB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.002202/0.2591, allocations: 1.997 MB / 0.8743 GB, free: 14.39 MB / 0.6231 GB Notification: Performance of simCode: created event and clocks part: time 2.635e-06/0.2591, allocations: 3.938 kB / 0.8743 GB, free: 14.38 MB / 0.6231 GB Notification: Performance of simCode: created simulation system equations: time 0.0003552/0.2594, allocations: 335.8 kB / 0.8746 GB, free: 14.05 MB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000427/0.2598, allocations: 57.16 kB / 0.8747 GB, free: 14 MB / 0.6231 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002451/0.2623, allocations: 1.932 MB / 0.8765 GB, free: 12.02 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00063/0.2629, allocations: 0.9879 MB / 0.8775 GB, free: 11.01 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001074/0.263, allocations: 27.42 kB / 0.8775 GB, free: 10.99 MB / 0.6231 GB Notification: Performance of SimCode: time 4.01e-07/0.263, allocations: 0 / 0.8775 GB, free: 10.99 MB / 0.6231 GB Notification: Performance of Templates: time 0.02431/0.2873, allocations: 14.64 MB / 0.8918 GB, free: 12.37 MB / 0.6387 GB " [Timeout remaining time 660] make -j1 -f BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.makefile [Timeout 660] (rm -f BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.sim & ./BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 13.217532497830689] Failed to read output from testmodel.py, exit status != 0: 0.2952630070503801 0.31019227 0.091358005 Calling exit ...