Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.ShaGFunction.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo", uses=false) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/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) 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 BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Running command: translateModel(BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.ShaGFunction,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.ShaGFunction") translateModel(BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.ShaGFunction,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.ShaGFunction") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.7785/0.7785, allocations: 143.4 MB / 159.2 MB, free: 4.883 MB / 122.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001127/0.001127, allocations: 184.5 kB / 191.9 MB, free: 5.742 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.312/1.312, allocations: 222.9 MB / 447.3 MB, free: 5.883 MB / 330.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001003/0.001003, allocations: 99.2 kB / 0.517 GB, free: 3.727 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001819/0.001819, allocations: 286.8 kB / 0.5973 GB, free: 49.36 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001448/0.001448, allocations: 87.86 kB / 0.6886 GB, free: 3.793 MB / 458.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.306/0.3075, allocations: 81.3 MB / 0.768 GB, free: 27.66 MB / 458.7 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.ShaGFunction): time 0.001708/0.3092, allocations: 0.6205 MB / 0.7686 GB, free: 27.04 MB / 458.7 MB Notification: Performance of NFInst.instExpressions: time 0.001025/0.3103, allocations: 0.9975 MB / 0.7695 GB, free: 26.02 MB / 458.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.251e-05/0.3103, allocations: 0 / 0.7695 GB, free: 26.02 MB / 458.7 MB Notification: Performance of NFTyping.typeComponents: time 1.342e-05/0.3103, allocations: 0 / 0.7695 GB, free: 26.02 MB / 458.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0006393/0.311, allocations: 79.84 kB / 0.7696 GB, free: 25.95 MB / 458.7 MB Notification: Performance of NFTyping.typeClassSections: time 3.102e-05/0.311, allocations: 11.94 kB / 0.7696 GB, free: 25.93 MB / 458.7 MB Notification: Performance of NFFlatten.flatten: time 4.05e-05/0.3111, allocations: 15.97 kB / 0.7696 GB, free: 25.92 MB / 458.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.676e-05/0.3111, allocations: 0 / 0.7696 GB, free: 25.92 MB / 458.7 MB Notification: Performance of NFEvalConstants.evaluate: time 1.492e-05/0.3111, allocations: 11.88 kB / 0.7696 GB, free: 25.91 MB / 458.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002041/0.3113, allocations: 32.42 kB / 0.7697 GB, free: 25.88 MB / 458.7 MB Notification: Performance of NFPackage.collectConstants: time 8.576e-06/0.3114, allocations: 0 / 0.7697 GB, free: 25.88 MB / 458.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001498/0.3115, allocations: 79.92 kB / 0.7698 GB, free: 25.8 MB / 458.7 MB Notification: Performance of NFScalarize.scalarize: time 9.427e-06/0.3115, allocations: 7.984 kB / 0.7698 GB, free: 25.79 MB / 458.7 MB Notification: Performance of NFVerifyModel.verify: time 2.088e-05/0.3115, allocations: 4 kB / 0.7698 GB, free: 25.79 MB / 458.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001288/0.3117, allocations: 70.52 kB / 0.7698 GB, free: 25.72 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.828e-06/0.3117, allocations: 4 kB / 0.7698 GB, free: 25.72 MB / 458.7 MB Notification: Performance of FrontEnd: time 8.71e-07/0.3117, allocations: 0 / 0.7698 GB, free: 25.72 MB / 458.7 MB Notification: Performance of Transformations before backend: time 2.926e-06/0.3117, allocations: 0 / 0.7698 GB, free: 25.72 MB / 458.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.0002203/0.3119, allocations: 334.5 kB / 0.7702 GB, free: 25.35 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.142e-05/0.312, allocations: 8.031 kB / 0.7702 GB, free: 25.34 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.693e-05/0.312, allocations: 4.938 kB / 0.7702 GB, free: 25.34 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.751e-05/0.3121, allocations: 168.3 kB / 0.7703 GB, free: 25.13 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.498e-06/0.3121, allocations: 384 / 0.7703 GB, free: 25.13 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.872e-06/0.3121, allocations: 384 / 0.7703 GB, free: 25.13 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.316e-05/0.3122, allocations: 37.83 kB / 0.7704 GB, free: 25.09 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.003e-06/0.3122, allocations: 0 / 0.7704 GB, free: 25.09 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.703e-06/0.3122, allocations: 0 / 0.7704 GB, free: 25.09 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.038e-06/0.3122, allocations: 0 / 0.7704 GB, free: 25.09 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.48e-05/0.3122, allocations: 0 / 0.7704 GB, free: 25.09 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002548/0.3125, allocations: 472.5 kB / 0.7708 GB, free: 24.56 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.972e-05/0.3125, allocations: 177.1 kB / 0.771 GB, free: 24.38 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.341e-05/0.3126, allocations: 80.14 kB / 0.7711 GB, free: 24.29 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.107e-06/0.3126, allocations: 79.31 kB / 0.7711 GB, free: 24.21 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.908e-05/0.3126, allocations: 105.8 kB / 0.7712 GB, free: 24.1 MB / 458.7 MB Notification: Performance of pre-optimization done (n=0): time 1.042e-06/0.3126, allocations: 0 / 0.7712 GB, free: 24.1 MB / 458.7 MB Notification: Performance of matching and sorting (n=0): time 5.983e-05/0.3127, allocations: 25.7 kB / 0.7713 GB, free: 24.07 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.514e-05/0.3127, allocations: 134.6 kB / 0.7714 GB, free: 23.93 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.744e-05/0.3128, allocations: 105.8 kB / 0.7715 GB, free: 23.81 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 5.6e-06/0.3128, allocations: 29.64 kB / 0.7715 GB, free: 23.78 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.102e-05/0.3128, allocations: 80.14 kB / 0.7716 GB, free: 23.7 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.645e-06/0.3128, allocations: 0 / 0.7716 GB, free: 23.7 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.402e-05/0.3128, allocations: 13.72 kB / 0.7716 GB, free: 23.68 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 3.938e-05/0.3129, allocations: 318.8 kB / 0.7719 GB, free: 23.36 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.316e-06/0.3129, allocations: 0 / 0.7719 GB, free: 23.36 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.76e-06/0.3129, allocations: 4 kB / 0.7719 GB, free: 23.35 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.074e-05/0.3129, allocations: 12.84 kB / 0.7719 GB, free: 23.34 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.382e-06/0.3129, allocations: 0 / 0.7719 GB, free: 23.34 MB / 458.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.202e-05/0.313, allocations: 33.64 kB / 0.772 GB, free: 23.3 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.236e-05/0.313, allocations: 9.719 kB / 0.772 GB, free: 23.29 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.827e-06/0.3131, allocations: 0 / 0.772 GB, free: 23.29 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.023e-05/0.3131, allocations: 4.125 kB / 0.772 GB, free: 23.29 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.47e-05/0.3131, allocations: 4 kB / 0.772 GB, free: 23.28 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.997e-06/0.3131, allocations: 0 / 0.772 GB, free: 23.28 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.325e-05/0.3131, allocations: 8.031 kB / 0.772 GB, free: 23.27 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.869e-06/0.3131, allocations: 4 kB / 0.772 GB, free: 23.27 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (cmp) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1): * Single equations (assignments): 1 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * 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 4.259e-05/0.3132, allocations: 190.4 kB / 0.7722 GB, free: 23.07 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.819e-05/0.3132, allocations: 109 kB / 0.7723 GB, free: 22.96 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.003e-05/0.3132, allocations: 108 kB / 0.7724 GB, free: 22.85 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.222e-05/0.3133, allocations: 184.3 kB / 0.7726 GB, free: 22.66 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.45e-05/0.3133, allocations: 180.3 kB / 0.7727 GB, free: 22.48 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.031e-05/0.3133, allocations: 184.2 kB / 0.7729 GB, free: 22.29 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001171/0.3135, allocations: 405.2 kB / 0.7733 GB, free: 21.84 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.309e-05/0.3135, allocations: 104.9 kB / 0.7734 GB, free: 21.73 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.237e-05/0.3135, allocations: 105 kB / 0.7735 GB, free: 21.62 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.073e-05/0.3135, allocations: 180.4 kB / 0.7737 GB, free: 21.44 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.438e-05/0.3135, allocations: 192.2 kB / 0.7738 GB, free: 21.24 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.293e-05/0.3136, allocations: 176.3 kB / 0.774 GB, free: 21.06 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.153e-05/0.3136, allocations: 180.2 kB / 0.7742 GB, free: 20.88 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001762/0.3138, allocations: 0.8453 MB / 0.775 GB, free: 19.97 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.072e-05/0.3138, allocations: 186 kB / 0.7752 GB, free: 19.76 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.282e-05/0.3139, allocations: 180.3 kB / 0.7754 GB, free: 19.58 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.932e-05/0.3139, allocations: 105 kB / 0.7755 GB, free: 19.47 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.174e-05/0.314, allocations: 188.1 kB / 0.7756 GB, free: 19.28 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.583e-05/0.314, allocations: 105 kB / 0.7757 GB, free: 19.17 MB / 458.7 MB Notification: Performance of sorting global known variables: time 2.539e-05/0.314, allocations: 87.2 kB / 0.7758 GB, free: 19.08 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.21e-07/0.314, allocations: 0 / 0.7758 GB, free: 19.08 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.0003624/0.3144, allocations: 24 kB / 0.7758 GB, free: 19.06 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (0): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * 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.0003178/0.3147, allocations: 221.8 kB / 0.7761 GB, free: 18.84 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 5.585e-05/0.3148, allocations: 7.938 kB / 0.7761 GB, free: 18.83 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 2.084e-06/0.3148, allocations: 0 / 0.7761 GB, free: 18.83 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 1.593e-06/0.3148, allocations: 0 / 0.7761 GB, free: 18.83 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002483/0.315, allocations: 0.5224 MB / 0.7766 GB, free: 18.3 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002774/0.3153, allocations: 194.1 kB / 0.7768 GB, free: 18.08 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.949e-05/0.3154, allocations: 0.677 MB / 0.7774 GB, free: 17.38 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 2.251e-05/0.3154, allocations: 4 kB / 0.7774 GB, free: 17.38 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.446e-05/0.3155, allocations: 7.438 kB / 0.7774 GB, free: 17.37 MB / 458.7 MB Notification: Performance of SimCode: time 2.2e-07/0.3155, allocations: 0 / 0.7774 GB, free: 17.37 MB / 458.7 MB Notification: Performance of Templates: time 0.002232/0.3177, allocations: 0.6675 MB / 0.7781 GB, free: 16.75 MB / 458.7 MB make -j1 -f BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.ShaGFunction.makefile (rm -f BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.ShaGFunction.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.ShaGFunction.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.ShaGFunction.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.ShaGFunction.sim & ./BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.ShaGFunction -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.ShaGFunction.pipe 2>&1)