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.001666/0.001667, allocations: 118.2 kB / 17.08 MB, free: 5.992 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.001981/0.001981, allocations: 198.9 kB / 18.02 MB, free: 5.066 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.486/1.486, allocations: 222.9 MB / 241.7 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.7719/0.7719, allocations: 115.3 MB / 407.2 MB, free: 6.109 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001282/0.001282, allocations: 60.98 kB / 0.5584 GB, free: 32.23 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1826/0.1839, allocations: 76.18 MB / 0.6328 GB, free: 4.324 MB / 478.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation): time 0.002954/0.1869, allocations: 1.738 MB / 0.6345 GB, free: 2.574 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.007821/0.1948, allocations: 5.388 MB / 0.6398 GB, free: 13.16 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001708/0.195, allocations: 0 / 0.6398 GB, free: 13.16 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001441/0.1965, allocations: 378.4 kB / 0.6401 GB, free: 12.79 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000149/0.1966, allocations: 59.66 kB / 0.6402 GB, free: 12.73 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.004318/0.201, allocations: 1.5 MB / 0.6416 GB, free: 11.23 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003076/0.2013, allocations: 158.6 kB / 0.6418 GB, free: 11.07 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.127e-05/0.2014, allocations: 17.53 kB / 0.6418 GB, free: 11.06 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.72e-05/0.2014, allocations: 63.66 kB / 0.6419 GB, free: 11 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002384/0.2017, allocations: 163.5 kB / 0.642 GB, free: 10.84 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 4.898e-05/0.2018, allocations: 19.98 kB / 0.6421 GB, free: 10.82 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003291/0.205, allocations: 2.204 MB / 0.6442 GB, free: 8.609 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000226/0.2053, allocations: 279.8 kB / 0.6445 GB, free: 8.332 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002487/0.2055, allocations: 306.1 kB / 0.6448 GB, free: 8.031 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002776/0.2083, allocations: 2.19 MB / 0.6469 GB, free: 5.836 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.859e-06/0.2083, allocations: 0 / 0.6469 GB, free: 5.836 MB / 494.1 MB Notification: Performance of FrontEnd: time 2.004e-06/0.2084, allocations: 0 / 0.6469 GB, free: 5.836 MB / 494.1 MB Notification: Performance of Transformations before backend: time 8.867e-06/0.2084, allocations: 0 / 0.6469 GB, free: 5.836 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.01007/0.2184, allocations: 1.363 MB / 0.6482 GB, free: 4.422 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.728e-05/0.2185, allocations: 12.03 kB / 0.6482 GB, free: 4.41 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003953/0.2189, allocations: 95.59 kB / 0.6483 GB, free: 4.316 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005632/0.2195, allocations: 402.3 kB / 0.6487 GB, free: 3.875 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.512e-05/0.2195, allocations: 8.375 kB / 0.6487 GB, free: 3.867 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.756e-05/0.2195, allocations: 8.375 kB / 0.6487 GB, free: 3.859 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004305/0.22, allocations: 403.4 kB / 0.6491 GB, free: 3.453 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.886e-06/0.22, allocations: 0 / 0.6491 GB, free: 3.453 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.403e-05/0.22, allocations: 0 / 0.6491 GB, free: 3.453 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.591e-06/0.22, allocations: 4 kB / 0.6491 GB, free: 3.449 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004023/0.2204, allocations: 431.7 kB / 0.6495 GB, free: 3.027 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005913/0.221, allocations: 0.677 MB / 0.6502 GB, free: 2.301 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004717/0.2215, allocations: 0.5672 MB / 0.6508 GB, free: 1.715 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002833/0.2218, allocations: 329.7 kB / 0.6511 GB, free: 1.387 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0009511/0.2228, allocations: 1.032 MB / 0.6521 GB, free: 136 kB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003913/0.2232, allocations: 412.8 kB / 0.6525 GB, free: 15.71 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=8): time 1.342e-06/0.2232, allocations: 0 / 0.6525 GB, free: 15.71 MB / 0.4981 GB Notification: Performance of matching and sorting (n=8): time 0.001282/0.2245, allocations: 1.3 MB / 0.6537 GB, free: 14.4 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.172e-05/0.2245, allocations: 77.11 kB / 0.6538 GB, free: 14.31 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001158/0.2257, allocations: 1.289 MB / 0.6551 GB, free: 13.01 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 3.791e-05/0.2257, allocations: 29.7 kB / 0.6551 GB, free: 12.97 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001971/0.2259, allocations: 293.3 kB / 0.6554 GB, free: 12.68 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 4.033e-05/0.226, allocations: 19.75 kB / 0.6554 GB, free: 12.66 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002982/0.2263, allocations: 347.8 kB / 0.6557 GB, free: 12.32 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001301/0.2264, allocations: 322 kB / 0.656 GB, free: 12 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001171/0.2276, allocations: 1.373 MB / 0.6574 GB, free: 10.62 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001256/0.2289, allocations: 1.501 MB / 0.6588 GB, free: 9.109 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006638/0.2355, allocations: 3.564 MB / 0.6623 GB, free: 5.453 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.807e-06/0.2355, allocations: 0 / 0.6623 GB, free: 5.453 MB / 0.4981 GB Notification: Performance of matching and sorting (n=319) (initialization): time 0.003952/0.2395, allocations: 4.01 MB / 0.6662 GB, free: 1.406 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.922e-05/0.2395, allocations: 4 kB / 0.6662 GB, free: 1.402 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.106e-05/0.2396, allocations: 4 kB / 0.6662 GB, free: 1.398 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.069e-05/0.2396, allocations: 0 / 0.6662 GB, free: 1.398 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001323/0.2397, allocations: 19.92 kB / 0.6663 GB, free: 1.379 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.666e-06/0.2397, allocations: 4.031 kB / 0.6663 GB, free: 1.375 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004898/0.2402, allocations: 240.2 kB / 0.6665 GB, free: 1.137 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.097e-05/0.2403, allocations: 23.98 kB / 0.6665 GB, free: 1.113 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.0003128/0.2406, allocations: 245.6 kB / 0.6668 GB, free: 0.8633 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.196e-05/0.2407, allocations: 74.62 kB / 0.6668 GB, free: 0.7891 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002695/0.241, allocations: 87.75 kB / 0.6669 GB, free: 0.6953 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.168e-06/0.241, allocations: 0 / 0.6669 GB, free: 0.6953 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.38e-06/0.241, allocations: 0 / 0.6669 GB, free: 0.6953 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.799e-06/0.241, allocations: 4 kB / 0.6669 GB, free: 0.6914 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004238/0.2414, allocations: 0.514 MB / 0.6674 GB, free: 136 kB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.312e-06/0.2414, allocations: 0 / 0.6674 GB, free: 136 kB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.098e-05/0.2415, allocations: 15.92 kB / 0.6674 GB, free: 120 kB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.043e-06/0.2415, allocations: 0 / 0.6674 GB, free: 120 kB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.305e-05/0.2415, allocations: 4 kB / 0.6674 GB, free: 116 kB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.855e-06/0.2415, allocations: 4 kB / 0.6674 GB, free: 112 kB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.317e-06/0.2415, allocations: 8.016 kB / 0.6674 GB, free: 104 kB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008398/0.2424, allocations: 1.002 MB / 0.6684 GB, free: 15.08 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001109/0.2425, allocations: 163.6 kB / 0.6686 GB, free: 14.9 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.889e-05/0.2426, allocations: 11.98 kB / 0.6686 GB, free: 14.89 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001434/0.2427, allocations: 8 kB / 0.6686 GB, free: 14.88 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.767e-05/0.2428, allocations: 3.984 kB / 0.6686 GB, free: 14.88 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.006e-05/0.2428, allocations: 11.98 kB / 0.6686 GB, free: 14.86 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.0007123/0.2435, allocations: 0.7261 MB / 0.6693 GB, free: 14.13 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.2e-07/0.2435, allocations: 0 / 0.6693 GB, free: 14.13 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.001568/0.2451, allocations: 0.5818 MB / 0.6699 GB, free: 13.55 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.001679/0.2468, allocations: 0.6803 MB / 0.6706 GB, free: 12.88 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.002173/0.249, allocations: 2.552 MB / 0.673 GB, free: 10.31 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 2.374e-06/0.249, allocations: 0 / 0.673 GB, free: 10.31 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.0003091/0.2493, allocations: 351.7 kB / 0.6734 GB, free: 9.969 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003849/0.2497, allocations: 66.72 kB / 0.6734 GB, free: 9.906 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002112/0.2518, allocations: 1.914 MB / 0.6753 GB, free: 7.949 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000509/0.2523, allocations: 0.9801 MB / 0.6763 GB, free: 6.941 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001182/0.2525, allocations: 31.41 kB / 0.6763 GB, free: 6.91 MB / 0.5137 GB Notification: Performance of SimCode: time 2.6e-07/0.2525, allocations: 3.938 kB / 0.6763 GB, free: 6.906 MB / 0.5137 GB Notification: Performance of Templates: time 0.02058/0.2731, allocations: 14.48 MB / 0.6905 GB, free: 8.438 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)