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.001662/0.001662, allocations: 81.03 kB / 19.18 MB, free: 2.527 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.002067/0.002067, allocations: 163.1 kB / 22.46 MB, free: 5.359 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.465/1.465, allocations: 177.1 MB / 202.8 MB, free: 9.188 MB / 190.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.003811/0.003811, allocations: 241.5 kB / 259.4 MB, free: 484 kB / 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.103/1.103, allocations: 138.4 MB / 454.3 MB, free: 1.973 MB / 366.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: Performance of FrontEnd - loaded program: time 1.263e-06/1.263e-06, allocations: 0 / 0.6469 GB, free: 4.93 MB / 0.5606 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.306e-05/2.433e-05, allocations: 9.734 kB / 0.6469 GB, free: 4.922 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation): time 0.002804/0.002828, allocations: 1.73 MB / 0.6486 GB, free: 3.18 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.3144/0.3172, allocations: 4.868 MB / 0.6533 GB, free: 53.1 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001046/0.3173, allocations: 4.938 kB / 0.6533 GB, free: 53.1 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.001139/0.3185, allocations: 337.9 kB / 0.6537 GB, free: 53.07 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.0001087/0.3186, allocations: 60.33 kB / 0.6537 GB, free: 53.07 MB / 0.5606 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.003131/0.3217, allocations: 1.597 MB / 0.6553 GB, free: 52.91 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.0001977/0.3219, allocations: 166.1 kB / 0.6554 GB, free: 52.87 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 4.097e-05/0.3219, allocations: 16.12 kB / 0.6554 GB, free: 52.86 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 9.691e-05/0.322, allocations: 77.69 kB / 0.6555 GB, free: 52.86 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001789/0.3222, allocations: 152.6 kB / 0.6557 GB, free: 52.85 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 4.318e-05/0.3223, allocations: 19.56 kB / 0.6557 GB, free: 52.84 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00266/0.3249, allocations: 2.371 MB / 0.658 GB, free: 52.57 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.0001511/0.3251, allocations: 289.5 kB / 0.6583 GB, free: 52.46 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.0001507/0.3252, allocations: 162.2 kB / 0.6584 GB, free: 52.41 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.00226/0.3275, allocations: 2.515 MB / 0.6609 GB, free: 51.8 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 3.757e-06/0.3275, allocations: 3.031 kB / 0.6609 GB, free: 51.8 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.162e-06/0.3275, allocations: 0 / 0.6609 GB, free: 51.8 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 8.657e-06/0.3275, allocations: 0 / 0.6609 GB, free: 51.8 MB / 0.5606 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.01087/0.3384, allocations: 1.335 MB / 0.6622 GB, free: 50.89 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.244e-05/0.3384, allocations: 11.09 kB / 0.6622 GB, free: 50.89 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003735/0.3388, allocations: 102.9 kB / 0.6623 GB, free: 50.82 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004293/0.3392, allocations: 352.8 kB / 0.6626 GB, free: 50.6 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.252e-05/0.3392, allocations: 3.703 kB / 0.6626 GB, free: 50.6 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.907e-05/0.3393, allocations: 7.125 kB / 0.6627 GB, free: 50.6 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003287/0.3396, allocations: 389.7 kB / 0.663 GB, free: 50.54 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.097e-06/0.3396, allocations: 7 kB / 0.663 GB, free: 50.54 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.343e-05/0.3396, allocations: 1.922 kB / 0.663 GB, free: 50.54 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.759e-06/0.3396, allocations: 3.938 kB / 0.663 GB, free: 50.54 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003346/0.3399, allocations: 442.8 kB / 0.6635 GB, free: 50.52 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004617/0.3404, allocations: 0.5925 MB / 0.664 GB, free: 50.2 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004184/0.3408, allocations: 0.5579 MB / 0.6646 GB, free: 50.14 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002559/0.3411, allocations: 336.3 kB / 0.6649 GB, free: 50.12 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005829/0.3417, allocations: 131.1 kB / 0.665 GB, free: 50.11 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003456/0.342, allocations: 404.6 kB / 0.6654 GB, free: 50.03 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=8): time 1.312e-06/0.342, allocations: 3.938 kB / 0.6654 GB, free: 50.03 MB / 0.5606 GB Notification: Performance of matching and sorting (n=8): time 0.001134/0.3431, allocations: 1.3 MB / 0.6667 GB, free: 49.91 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.534e-05/0.3432, allocations: 85.39 kB / 0.6668 GB, free: 49.81 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001063/0.3442, allocations: 1.296 MB / 0.668 GB, free: 49.3 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 3.661e-05/0.3443, allocations: 28.33 kB / 0.6681 GB, free: 49.27 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001574/0.3444, allocations: 295.8 kB / 0.6683 GB, free: 49.06 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 2.915e-05/0.3445, allocations: 25.38 kB / 0.6684 GB, free: 49.04 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002714/0.3447, allocations: 346.2 kB / 0.6687 GB, free: 48.94 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 4.268e-05/0.3448, allocations: 317.5 kB / 0.669 GB, free: 48.63 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009846/0.3458, allocations: 1.373 MB / 0.6703 GB, free: 48.18 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00125/0.347, allocations: 1.504 MB / 0.6718 GB, free: 47.66 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006922/0.3539, allocations: 3.561 MB / 0.6753 GB, free: 45.81 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.966e-06/0.3539, allocations: 0 / 0.6753 GB, free: 45.81 MB / 0.5606 GB Notification: Performance of matching and sorting (n=319) (initialization): time 0.003839/0.3578, allocations: 4.01 MB / 0.6792 GB, free: 43.83 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.699e-05/0.3578, allocations: 5.594 kB / 0.6792 GB, free: 43.83 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.658e-05/0.3578, allocations: 2.531 kB / 0.6792 GB, free: 43.83 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.9e-05/0.3578, allocations: 3.188 kB / 0.6792 GB, free: 43.83 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001279/0.358, allocations: 14.36 kB / 0.6792 GB, free: 43.83 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.822e-06/0.358, allocations: 9.906 kB / 0.6792 GB, free: 43.82 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004914/0.3585, allocations: 245.4 kB / 0.6795 GB, free: 43.62 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.454e-05/0.3585, allocations: 25.36 kB / 0.6795 GB, free: 43.62 MB / 0.5606 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.0002973/0.3588, allocations: 248.9 kB / 0.6797 GB, free: 43.5 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.425e-05/0.3589, allocations: 81.86 kB / 0.6798 GB, free: 43.43 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001001/0.3599, allocations: 0.9463 MB / 0.6807 GB, free: 43.35 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.078e-06/0.3599, allocations: 5.344 kB / 0.6807 GB, free: 43.35 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.129e-06/0.3599, allocations: 5.375 kB / 0.6807 GB, free: 43.34 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.888e-06/0.3599, allocations: 0.6562 kB / 0.6807 GB, free: 43.34 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004339/0.3603, allocations: 475.5 kB / 0.6812 GB, free: 43.13 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.583e-06/0.3603, allocations: 0 / 0.6812 GB, free: 43.13 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.223e-05/0.3604, allocations: 11.31 kB / 0.6812 GB, free: 43.12 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.417e-06/0.3604, allocations: 2.266 kB / 0.6812 GB, free: 43.12 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.258e-05/0.3604, allocations: 2.672 kB / 0.6812 GB, free: 43.12 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.244e-06/0.3604, allocations: 1.125 kB / 0.6812 GB, free: 43.12 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.805e-06/0.3604, allocations: 1.703 kB / 0.6812 GB, free: 43.12 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009061/0.3613, allocations: 1.019 MB / 0.6822 GB, free: 42.96 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 8.501e-05/0.3614, allocations: 88.8 kB / 0.6823 GB, free: 42.9 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.029e-05/0.3615, allocations: 3.156 kB / 0.6823 GB, free: 42.9 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001562/0.3616, allocations: 4.781 kB / 0.6823 GB, free: 42.9 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.968e-05/0.3617, allocations: 10.95 kB / 0.6823 GB, free: 42.89 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.264e-05/0.3617, allocations: 11.81 kB / 0.6823 GB, free: 42.89 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.000802/0.3625, allocations: 0.7241 MB / 0.683 GB, free: 42.65 MB / 0.5606 GB Notification: Performance of sort global known variables: time 9e-08/0.3625, allocations: 0 / 0.683 GB, free: 42.65 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.001435/0.3639, allocations: 0.5979 MB / 0.6836 GB, free: 42.54 MB / 0.5606 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.001828/0.3658, allocations: 0.7841 MB / 0.6844 GB, free: 42.29 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.001907/0.3677, allocations: 1.997 MB / 0.6863 GB, free: 41.75 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.3677, allocations: 0 / 0.6863 GB, free: 41.75 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.0003031/0.368, allocations: 339.1 kB / 0.6867 GB, free: 41.73 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004086/0.3684, allocations: 59.25 kB / 0.6867 GB, free: 41.7 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002051/0.3704, allocations: 1.885 MB / 0.6886 GB, free: 41.06 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003696/0.3708, allocations: 392.5 kB / 0.6889 GB, free: 40.96 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.0001517/0.371, allocations: 44.33 kB / 0.689 GB, free: 40.96 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001178/0.3711, allocations: 28.36 kB / 0.689 GB, free: 40.95 MB / 0.5606 GB Notification: Performance of SimCode: time 5.81e-07/0.3711, allocations: 0 / 0.689 GB, free: 40.95 MB / 0.5606 GB Notification: Performance of Templates: time 0.02416/0.3952, allocations: 14.67 MB / 0.7033 GB, free: 36.13 MB / 0.5606 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: 7.180130731314421] Failed to read output from testmodel.py, exit status != 0: 0.40286075696349144 0.412112556 0.08243088100000001 Calling exit ...