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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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/Modelica 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) Using package IBPSA with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/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 Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(IBPSA.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IBPSA_latest_IBPSA.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation") translateModel(IBPSA.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IBPSA_latest_IBPSA.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009931/0.0009935, allocations: 91.16 kB / 16.67 MB, free: 5.742 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001162/0.001163, allocations: 178.5 kB / 17.58 MB, free: 5.477 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.427/1.427, allocations: 223.3 MB / 241.6 MB, free: 204 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.7283/0.7283, allocations: 115.5 MB / 408.2 MB, free: 7.094 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003447/0.0003448, allocations: 12 kB / 496.6 MB, free: 15.64 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4922/0.4926, allocations: 77.53 MB / 0.5606 GB, free: 36.27 MB / 446.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation): time 0.002022/0.4947, allocations: 1.452 MB / 0.562 GB, free: 35.21 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.007934/0.5026, allocations: 5.544 MB / 0.5675 GB, free: 31.49 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001434/0.5028, allocations: 0.5 kB / 0.5675 GB, free: 31.49 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001355/0.5041, allocations: 354.3 kB / 0.5678 GB, free: 31.34 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001709/0.5043, allocations: 54.55 kB / 0.5678 GB, free: 31.31 MB / 446.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.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‘. Notification: Performance of NFTyping.typeClassSections: time 0.004487/0.5088, allocations: 1.177 MB / 0.569 GB, free: 30.84 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003869/0.5092, allocations: 204 kB / 0.5692 GB, free: 30.77 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.447e-05/0.5093, allocations: 13.66 kB / 0.5692 GB, free: 30.77 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.6e-05/0.5094, allocations: 59 kB / 0.5693 GB, free: 30.75 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002925/0.5097, allocations: 179.6 kB / 0.5694 GB, free: 30.7 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 4.612e-05/0.5098, allocations: 14.53 kB / 0.5694 GB, free: 30.7 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005316/0.5151, allocations: 2.184 MB / 0.5716 GB, free: 30.05 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003906/0.5155, allocations: 277 kB / 0.5718 GB, free: 29.97 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003395/0.5158, allocations: 337.8 kB / 0.5722 GB, free: 29.74 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003976/0.5198, allocations: 1.55 MB / 0.5737 GB, free: 29.43 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.809e-06/0.5199, allocations: 1.406 kB / 0.5737 GB, free: 29.43 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.555e-06/0.5199, allocations: 1.625 kB / 0.5737 GB, free: 29.43 MB / 446.1 MB Notification: Performance of Transformations before backend: time 9.067e-06/0.5199, allocations: 0 / 0.5737 GB, free: 29.43 MB / 446.1 MB 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.01143/0.5313, allocations: 1.308 MB / 0.575 GB, free: 28.47 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.156e-05/0.5314, allocations: 12.19 kB / 0.575 GB, free: 28.47 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004332/0.5318, allocations: 101.2 kB / 0.5751 GB, free: 28.41 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005044/0.5323, allocations: 402.9 kB / 0.5755 GB, free: 28.09 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.091e-05/0.5324, allocations: 11.62 kB / 0.5755 GB, free: 28.09 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.653e-05/0.5324, allocations: 5.156 kB / 0.5755 GB, free: 28.09 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005549/0.533, allocations: 394.3 kB / 0.5758 GB, free: 28.02 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.207e-05/0.533, allocations: 9.516 kB / 0.5759 GB, free: 28.02 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.684e-05/0.533, allocations: 1.094 kB / 0.5759 GB, free: 28.02 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.114e-05/0.533, allocations: 3 kB / 0.5759 GB, free: 28.02 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006048/0.5337, allocations: 432.6 kB / 0.5763 GB, free: 28.01 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000842/0.5345, allocations: 0.664 MB / 0.5769 GB, free: 27.62 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006348/0.5352, allocations: 0.5646 MB / 0.5775 GB, free: 27.56 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004007/0.5356, allocations: 340.1 kB / 0.5778 GB, free: 27.54 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0009505/0.5365, allocations: 1.032 MB / 0.5788 GB, free: 26.41 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004904/0.537, allocations: 411.1 kB / 0.5792 GB, free: 26.33 MB / 446.1 MB Notification: Performance of pre-optimization done (n=8): time 1.463e-06/0.537, allocations: 0 / 0.5792 GB, free: 26.33 MB / 446.1 MB Notification: Performance of matching and sorting (n=8): time 0.001838/0.5389, allocations: 1.299 MB / 0.5805 GB, free: 26.21 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.319e-05/0.5389, allocations: 80.89 kB / 0.5805 GB, free: 26.12 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00168/0.5406, allocations: 1.294 MB / 0.5818 GB, free: 25.61 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 5.113e-05/0.5407, allocations: 32.3 kB / 0.5818 GB, free: 25.57 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002117/0.5409, allocations: 284.9 kB / 0.5821 GB, free: 25.36 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.006e-05/0.5409, allocations: 21 kB / 0.5821 GB, free: 25.34 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003128/0.5413, allocations: 293.2 kB / 0.5824 GB, free: 25.24 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 7.035e-05/0.5413, allocations: 321.6 kB / 0.5827 GB, free: 24.93 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001468/0.5428, allocations: 1.369 MB / 0.584 GB, free: 24.48 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001498/0.5443, allocations: 1.503 MB / 0.5855 GB, free: 23.88 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006982/0.5513, allocations: 3.567 MB / 0.589 GB, free: 21.73 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.37e-06/0.5513, allocations: 0 / 0.589 GB, free: 21.73 MB / 446.1 MB Notification: Performance of matching and sorting (n=319) (initialization): time 0.003527/0.5549, allocations: 4.008 MB / 0.5929 GB, free: 17.69 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.207e-05/0.5549, allocations: 7.984 kB / 0.5929 GB, free: 17.68 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.07e-05/0.5549, allocations: 4 kB / 0.5929 GB, free: 17.68 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.25e-05/0.555, allocations: 0 / 0.5929 GB, free: 17.68 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001314/0.5551, allocations: 16.62 kB / 0.5929 GB, free: 17.66 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.574e-06/0.5551, allocations: 3.984 kB / 0.5929 GB, free: 17.66 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006623/0.5558, allocations: 236.9 kB / 0.5932 GB, free: 17.43 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.681e-05/0.5558, allocations: 26.05 kB / 0.5932 GB, free: 17.4 MB / 446.1 MB 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.0003509/0.5562, allocations: 241.7 kB / 0.5934 GB, free: 17.16 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.198e-05/0.5563, allocations: 78.62 kB / 0.5935 GB, free: 17.08 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002719/0.5565, allocations: 85.03 kB / 0.5936 GB, free: 16.99 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.055e-06/0.5566, allocations: 0.5625 kB / 0.5936 GB, free: 16.99 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.931e-06/0.5566, allocations: 1.156 kB / 0.5936 GB, free: 16.99 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.698e-06/0.5566, allocations: 7.984 kB / 0.5936 GB, free: 16.98 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004501/0.557, allocations: 0.5101 MB / 0.5941 GB, free: 16.43 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.823e-06/0.557, allocations: 4.562 kB / 0.5941 GB, free: 16.43 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.3e-05/0.5571, allocations: 8.906 kB / 0.5941 GB, free: 16.42 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.675e-06/0.5571, allocations: 0 / 0.5941 GB, free: 16.42 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.329e-05/0.5571, allocations: 7.984 kB / 0.5941 GB, free: 16.41 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.603e-06/0.5571, allocations: 1 kB / 0.5941 GB, free: 16.41 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.543e-06/0.5572, allocations: 0 / 0.5941 GB, free: 16.41 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006463/0.5578, allocations: 1.016 MB / 0.5951 GB, free: 15.38 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.272e-05/0.5579, allocations: 163.7 kB / 0.5953 GB, free: 15.2 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.161e-05/0.558, allocations: 9 kB / 0.5953 GB, free: 15.19 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001419/0.5581, allocations: 4 kB / 0.5953 GB, free: 15.18 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.109e-05/0.5582, allocations: 9.172 kB / 0.5953 GB, free: 15.18 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.159e-05/0.5582, allocations: 7.984 kB / 0.5953 GB, free: 15.17 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0006351/0.5588, allocations: 0.7268 MB / 0.596 GB, free: 14.44 MB / 446.1 MB Notification: Performance of sort global known variables: time 1e-07/0.5589, allocations: 0.9688 kB / 0.596 GB, free: 14.44 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002405/0.5613, allocations: 0.5935 MB / 0.5966 GB, free: 13.84 MB / 446.1 MB 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.001831/0.5631, allocations: 0.6806 MB / 0.5972 GB, free: 13.19 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.001748/0.5649, allocations: 2.557 MB / 0.5997 GB, free: 10.62 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.454e-06/0.5649, allocations: 0 / 0.5997 GB, free: 10.62 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002375/0.5651, allocations: 347.2 kB / 0.6001 GB, free: 10.28 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000432/0.5656, allocations: 65.41 kB / 0.6001 GB, free: 10.22 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002045/0.5676, allocations: 2.136 MB / 0.6022 GB, free: 8.062 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003634/0.568, allocations: 0.9881 MB / 0.6032 GB, free: 7.051 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.93e-05/0.5681, allocations: 23.42 kB / 0.6032 GB, free: 7.027 MB / 446.1 MB Notification: Performance of SimCode: time 5.11e-07/0.5681, allocations: 4 kB / 0.6032 GB, free: 7.023 MB / 446.1 MB Notification: Performance of Templates: time 0.02284/0.5909, allocations: 14.42 MB / 0.6173 GB, free: 8.613 MB / 462.1 MB make -j1 -f IBPSA_latest_IBPSA.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.makefile (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 & ./IBPSA_latest_IBPSA.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation -abortSlowSimulation -alarm=480 -lv LOG_STATS > IBPSA_latest_IBPSA.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe 2>&1)