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.001221/0.001221, allocations: 113.7 kB / 17.08 MB, free: 5.828 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.001194/0.001194, allocations: 196.7 kB / 18.02 MB, free: 4.938 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.238/1.238, allocations: 222.9 MB / 241.7 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.6989/0.6989, allocations: 115.3 MB / 407.2 MB, free: 6.129 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001224/0.001224, allocations: 71.09 kB / 0.5584 GB, free: 32.17 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1443/0.1456, allocations: 76.18 MB / 0.6328 GB, free: 4.375 MB / 478.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation): time 0.002797/0.1484, allocations: 1.74 MB / 0.6345 GB, free: 2.625 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.007422/0.1559, allocations: 5.39 MB / 0.6398 GB, free: 13.21 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000141/0.156, allocations: 4 kB / 0.6398 GB, free: 13.2 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001329/0.1574, allocations: 370.4 kB / 0.6401 GB, free: 12.84 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001502/0.1576, allocations: 55.67 kB / 0.6402 GB, free: 12.79 MB / 494.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'. [/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: Performance of NFTyping.typeClassSections: time 0.003985/0.1616, allocations: 1.497 MB / 0.6416 GB, free: 11.29 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002766/0.1619, allocations: 163.4 kB / 0.6418 GB, free: 11.12 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.465e-05/0.1619, allocations: 17.53 kB / 0.6418 GB, free: 11.11 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001057/0.162, allocations: 59.72 kB / 0.6419 GB, free: 11.05 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002254/0.1623, allocations: 171.5 kB / 0.642 GB, free: 10.88 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 6.215e-05/0.1623, allocations: 12 kB / 0.642 GB, free: 10.87 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00352/0.1659, allocations: 2.211 MB / 0.6442 GB, free: 8.656 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002567/0.1661, allocations: 279.8 kB / 0.6445 GB, free: 8.379 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003108/0.1665, allocations: 306.1 kB / 0.6448 GB, free: 8.078 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003569/0.17, allocations: 2.182 MB / 0.6469 GB, free: 5.891 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.743e-06/0.1701, allocations: 8 kB / 0.6469 GB, free: 5.883 MB / 494.1 MB Notification: Performance of FrontEnd: time 2.083e-06/0.1701, allocations: 0 / 0.6469 GB, free: 5.883 MB / 494.1 MB Notification: Performance of Transformations before backend: time 2.037e-05/0.1701, allocations: 0 / 0.6469 GB, free: 5.883 MB / 494.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.01003/0.1801, allocations: 1.365 MB / 0.6482 GB, free: 4.469 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.281e-05/0.1802, allocations: 12.03 kB / 0.6482 GB, free: 4.457 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004344/0.1806, allocations: 91.59 kB / 0.6483 GB, free: 4.367 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006598/0.1813, allocations: 406.3 kB / 0.6487 GB, free: 3.922 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.732e-05/0.1814, allocations: 12.31 kB / 0.6487 GB, free: 3.91 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.161e-05/0.1814, allocations: 4.375 kB / 0.6487 GB, free: 3.906 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004402/0.1819, allocations: 391.5 kB / 0.6491 GB, free: 3.512 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.438e-06/0.1819, allocations: 0 / 0.6491 GB, free: 3.512 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.314e-05/0.1819, allocations: 0 / 0.6491 GB, free: 3.512 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.9e-06/0.1819, allocations: 3.938 kB / 0.6491 GB, free: 3.508 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004362/0.1824, allocations: 443.7 kB / 0.6495 GB, free: 3.074 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006868/0.183, allocations: 0.673 MB / 0.6502 GB, free: 2.352 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005037/0.1836, allocations: 0.5594 MB / 0.6507 GB, free: 1.773 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000309/0.1839, allocations: 345.7 kB / 0.6511 GB, free: 1.43 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001003/0.1849, allocations: 1.025 MB / 0.6521 GB, free: 188 kB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004359/0.1853, allocations: 412.8 kB / 0.6525 GB, free: 15.76 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=8): time 1.372e-06/0.1854, allocations: 0 / 0.6525 GB, free: 15.76 MB / 0.4981 GB Notification: Performance of matching and sorting (n=8): time 0.001347/0.1867, allocations: 1.289 MB / 0.6537 GB, free: 14.46 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.177e-05/0.1868, allocations: 89.08 kB / 0.6538 GB, free: 14.36 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001277/0.1881, allocations: 1.286 MB / 0.6551 GB, free: 13.06 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 4.401e-05/0.1881, allocations: 37.69 kB / 0.6551 GB, free: 13.02 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002245/0.1883, allocations: 281.4 kB / 0.6554 GB, free: 12.74 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 4.074e-05/0.1884, allocations: 19.75 kB / 0.6554 GB, free: 12.72 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003434/0.1887, allocations: 351.6 kB / 0.6557 GB, free: 12.37 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001222/0.1889, allocations: 322 kB / 0.656 GB, free: 12.05 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001245/0.1901, allocations: 1.373 MB / 0.6574 GB, free: 10.68 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001314/0.1914, allocations: 1.505 MB / 0.6588 GB, free: 9.16 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006851/0.1983, allocations: 3.556 MB / 0.6623 GB, free: 5.512 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.306e-06/0.1983, allocations: 3.984 kB / 0.6623 GB, free: 5.508 MB / 0.4981 GB Notification: Performance of matching and sorting (n=319) (initialization): time 0.004385/0.2027, allocations: 4.01 MB / 0.6662 GB, free: 1.461 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 2.137e-05/0.2028, allocations: 8 kB / 0.6662 GB, free: 1.453 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.957e-05/0.2028, allocations: 7.984 kB / 0.6662 GB, free: 1.445 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.894e-05/0.2028, allocations: 0 / 0.6662 GB, free: 1.445 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001325/0.203, allocations: 12 kB / 0.6663 GB, free: 1.434 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.384e-06/0.203, allocations: 0 / 0.6663 GB, free: 1.434 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004867/0.2035, allocations: 236.3 kB / 0.6665 GB, free: 1.199 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.376e-05/0.2035, allocations: 23.98 kB / 0.6665 GB, free: 1.176 MB / 0.4981 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.0003382/0.2039, allocations: 256.6 kB / 0.6668 GB, free: 0.918 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.874e-05/0.204, allocations: 78.56 kB / 0.6668 GB, free: 0.8398 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002909/0.2043, allocations: 83.81 kB / 0.6669 GB, free: 0.75 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.587e-06/0.2043, allocations: 0 / 0.6669 GB, free: 0.75 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.561e-06/0.2043, allocations: 0 / 0.6669 GB, free: 0.75 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.747e-06/0.2043, allocations: 0 / 0.6669 GB, free: 0.75 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004761/0.2048, allocations: 0.5179 MB / 0.6674 GB, free: 192 kB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.868e-06/0.2048, allocations: 3.984 kB / 0.6674 GB, free: 188 kB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.192e-05/0.2049, allocations: 19.91 kB / 0.6674 GB, free: 168 kB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.928e-06/0.2049, allocations: 0 / 0.6674 GB, free: 168 kB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.436e-05/0.2049, allocations: 3.984 kB / 0.6674 GB, free: 164 kB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.889e-06/0.2049, allocations: 4.312 kB / 0.6674 GB, free: 160 kB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.533e-06/0.2049, allocations: 0 / 0.6674 GB, free: 160 kB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009904/0.2059, allocations: 1.002 MB / 0.6684 GB, free: 15.13 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001493/0.2061, allocations: 171.6 kB / 0.6686 GB, free: 14.94 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.187e-05/0.2061, allocations: 7.984 kB / 0.6686 GB, free: 14.93 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001375/0.2063, allocations: 0 / 0.6686 GB, free: 14.93 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.535e-05/0.2063, allocations: 11.89 kB / 0.6686 GB, free: 14.93 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.055e-05/0.2064, allocations: 11.98 kB / 0.6686 GB, free: 14.91 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.0007947/0.2072, allocations: 0.7299 MB / 0.6693 GB, free: 14.18 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.1e-07/0.2072, allocations: 0 / 0.6693 GB, free: 14.18 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.001591/0.2088, allocations: 0.5857 MB / 0.6699 GB, free: 13.59 MB / 0.5137 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.002258/0.2111, allocations: 0.6828 MB / 0.6706 GB, free: 12.92 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.002338/0.2134, allocations: 2.548 MB / 0.6731 GB, free: 10.36 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 3.857e-06/0.2134, allocations: 3.938 kB / 0.6731 GB, free: 10.36 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.0003216/0.2138, allocations: 343.9 kB / 0.6734 GB, free: 10.02 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004011/0.2142, allocations: 56.16 kB / 0.6734 GB, free: 9.965 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002302/0.2165, allocations: 1.914 MB / 0.6753 GB, free: 8.008 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005561/0.2171, allocations: 0.9879 MB / 0.6763 GB, free: 6.992 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00011/0.2172, allocations: 27.42 kB / 0.6763 GB, free: 6.965 MB / 0.5137 GB Notification: Performance of SimCode: time 2.885e-06/0.2172, allocations: 4 kB / 0.6763 GB, free: 6.961 MB / 0.5137 GB Notification: Performance of Templates: time 0.02301/0.2402, allocations: 14.63 MB / 0.6906 GB, free: 8.348 MB / 0.5294 GB 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)