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/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/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-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(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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001274/0.001275, allocations: 106.8 kB / 16.41 MB, free: 6.453 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.00159/0.00159, allocations: 192.2 kB / 17.34 MB, free: 5.719 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.487/1.487, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002165/0.002165, allocations: 282 kB / 291.5 MB, free: 14.46 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9644/0.9644, allocations: 169.3 MB / 0.499 GB, free: 4.422 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002101/0.002101, allocations: 95.86 kB / 0.6822 GB, free: 6.879 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4403/0.4425, allocations: 86.97 MB / 0.7671 GB, free: 3.871 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.ShaGFunction): time 0.001774/0.4443, allocations: 0.5621 MB / 0.7676 GB, free: 3.312 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.001327/0.4456, allocations: 1.003 MB / 0.7686 GB, free: 2.293 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.025e-05/0.4457, allocations: 0 / 0.7686 GB, free: 2.293 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 1.2e-05/0.4457, allocations: 0 / 0.7686 GB, free: 2.293 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 0.0007633/0.4465, allocations: 87.78 kB / 0.7687 GB, free: 2.207 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 5.256e-05/0.4465, allocations: 19.92 kB / 0.7687 GB, free: 2.188 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 4.811e-05/0.4466, allocations: 7.938 kB / 0.7687 GB, free: 2.18 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 5.243e-05/0.4467, allocations: 8 kB / 0.7687 GB, free: 2.172 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 1.807e-05/0.4467, allocations: 0 / 0.7687 GB, free: 2.172 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002392/0.4469, allocations: 34.44 kB / 0.7688 GB, free: 2.145 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 1.049e-05/0.4469, allocations: 4 kB / 0.7688 GB, free: 2.141 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001819/0.4471, allocations: 83.84 kB / 0.7689 GB, free: 2.059 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 1.036e-05/0.4472, allocations: 4 kB / 0.7689 GB, free: 2.055 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 1.891e-05/0.4472, allocations: 3.938 kB / 0.7689 GB, free: 2.051 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.000168/0.4473, allocations: 71.91 kB / 0.7689 GB, free: 1.98 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 3.967e-06/0.4474, allocations: 0 / 0.7689 GB, free: 1.98 MB / 0.5294 GB Notification: Performance of FrontEnd: time 2.014e-06/0.4474, allocations: 4 kB / 0.7689 GB, free: 1.977 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 4.549e-06/0.4474, allocations: 4 kB / 0.7689 GB, free: 1.973 MB / 0.5294 GB 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.0003148/0.4477, allocations: 327.6 kB / 0.7693 GB, free: 1.605 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 3.427e-05/0.4477, allocations: 8.031 kB / 0.7693 GB, free: 1.598 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.912e-05/0.4478, allocations: 0.9375 kB / 0.7693 GB, free: 1.598 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001147/0.4479, allocations: 168.3 kB / 0.7694 GB, free: 1.395 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.198e-05/0.4479, allocations: 4.375 kB / 0.7694 GB, free: 1.391 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.689e-06/0.4479, allocations: 384 / 0.7694 GB, free: 1.391 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.676e-05/0.448, allocations: 37.81 kB / 0.7695 GB, free: 1.348 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.203e-06/0.448, allocations: 7.938 kB / 0.7695 GB, free: 1.34 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.256e-06/0.448, allocations: 0 / 0.7695 GB, free: 1.34 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.148e-06/0.4481, allocations: 0 / 0.7695 GB, free: 1.34 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.006e-05/0.4481, allocations: 0 / 0.7695 GB, free: 1.34 MB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003873/0.4485, allocations: 472.5 kB / 0.7699 GB, free: 0.8086 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 7.789e-05/0.4486, allocations: 167 kB / 0.7701 GB, free: 0.6367 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.023e-05/0.4486, allocations: 84.14 kB / 0.7702 GB, free: 0.5508 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 2.848e-05/0.4486, allocations: 79.22 kB / 0.7702 GB, free: 484 kB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.363e-05/0.4487, allocations: 117.8 kB / 0.7704 GB, free: 356 kB / 0.5294 GB Notification: Performance of pre-optimization done (n=0): time 2.635e-06/0.4487, allocations: 3.984 kB / 0.7704 GB, free: 352 kB / 0.5294 GB Notification: Performance of matching and sorting (n=0): time 6.8e-05/0.4488, allocations: 25.7 kB / 0.7704 GB, free: 320 kB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.726e-05/0.4488, allocations: 126.7 kB / 0.7705 GB, free: 180 kB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.812e-05/0.4489, allocations: 105.8 kB / 0.7706 GB, free: 64 kB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 1.419e-05/0.449, allocations: 29.7 kB / 0.7706 GB, free: 28 kB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 5.002e-05/0.449, allocations: 88.06 kB / 0.7707 GB, free: 15.94 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 2.725e-06/0.449, allocations: 0 / 0.7707 GB, free: 15.94 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.698e-05/0.449, allocations: 9.719 kB / 0.7707 GB, free: 15.92 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001018/0.4492, allocations: 318.8 kB / 0.771 GB, free: 15.6 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.798e-06/0.4492, allocations: 0 / 0.771 GB, free: 15.6 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.178e-06/0.4492, allocations: 7.938 kB / 0.771 GB, free: 15.59 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.242e-05/0.4492, allocations: 16.92 kB / 0.7711 GB, free: 15.57 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.014e-06/0.4492, allocations: 0 / 0.7711 GB, free: 15.57 MB / 0.545 GB Notification: Performance of matching and sorting (n=1) (initialization): time 9.809e-05/0.4493, allocations: 33.69 kB / 0.7711 GB, free: 15.54 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.416e-05/0.4493, allocations: 8 kB / 0.7711 GB, free: 15.53 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.118e-06/0.4494, allocations: 0 / 0.7711 GB, free: 15.53 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.188e-05/0.4494, allocations: 0 / 0.7711 GB, free: 15.53 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.628e-05/0.4494, allocations: 0 / 0.7711 GB, free: 15.53 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.509e-06/0.4494, allocations: 0 / 0.7711 GB, free: 15.53 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.435e-05/0.4494, allocations: 0 / 0.7711 GB, free: 15.53 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.999e-06/0.4494, allocations: 4.031 kB / 0.7711 GB, free: 15.52 MB / 0.545 GB 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 9.47e-05/0.4495, allocations: 198.1 kB / 0.7713 GB, free: 15.32 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.595e-05/0.4496, allocations: 101 kB / 0.7714 GB, free: 15.22 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.473e-05/0.4496, allocations: 112.1 kB / 0.7715 GB, free: 15.11 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.098e-05/0.4497, allocations: 184.2 kB / 0.7717 GB, free: 14.92 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.371e-05/0.4498, allocations: 176.3 kB / 0.7718 GB, free: 14.74 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.735e-05/0.4499, allocations: 180.3 kB / 0.772 GB, free: 14.55 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002079/0.4501, allocations: 413.1 kB / 0.7724 GB, free: 14.09 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.329e-05/0.4501, allocations: 101 kB / 0.7725 GB, free: 13.99 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.446e-05/0.4501, allocations: 104.9 kB / 0.7726 GB, free: 13.88 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.829e-05/0.4502, allocations: 176.3 kB / 0.7728 GB, free: 13.7 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.183e-05/0.4503, allocations: 192.1 kB / 0.7729 GB, free: 13.5 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.304e-05/0.4503, allocations: 180.2 kB / 0.7731 GB, free: 13.32 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.653e-05/0.4504, allocations: 180.3 kB / 0.7733 GB, free: 13.14 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001279/0.4505, allocations: 315.9 kB / 0.7736 GB, free: 12.8 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 6.775e-05/0.4506, allocations: 186 kB / 0.7738 GB, free: 12.6 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.737e-05/0.4507, allocations: 184.3 kB / 0.7739 GB, free: 12.41 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.048e-05/0.4507, allocations: 105 kB / 0.774 GB, free: 12.3 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.148e-05/0.4508, allocations: 180.2 kB / 0.7742 GB, free: 12.12 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.088e-05/0.4509, allocations: 101 kB / 0.7743 GB, free: 12.01 MB / 0.545 GB Notification: Performance of sorting global known variables: time 4.598e-05/0.4509, allocations: 83.27 kB / 0.7744 GB, free: 11.93 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.2e-07/0.4509, allocations: 0 / 0.7744 GB, free: 11.93 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0002523/0.4512, allocations: 24 kB / 0.7744 GB, free: 11.91 MB / 0.545 GB 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.0003715/0.4515, allocations: 233.8 kB / 0.7746 GB, free: 11.68 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 6.306e-05/0.4516, allocations: 3.938 kB / 0.7746 GB, free: 11.67 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 5.029e-06/0.4516, allocations: 0 / 0.7746 GB, free: 11.67 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 1.713e-06/0.4516, allocations: 4.062 kB / 0.7746 GB, free: 11.67 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003416/0.452, allocations: 459.6 kB / 0.7751 GB, free: 11.21 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003532/0.4523, allocations: 222 kB / 0.7753 GB, free: 10.96 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002235/0.4526, allocations: 0.6768 MB / 0.776 GB, free: 10.26 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.784e-05/0.4526, allocations: 7.438 kB / 0.776 GB, free: 10.25 MB / 0.545 GB Notification: Performance of SimCode: time 3.41e-07/0.4526, allocations: 4 kB / 0.776 GB, free: 10.25 MB / 0.545 GB Notification: Performance of Templates: time 0.002284/0.4549, allocations: 0.8698 MB / 0.7768 GB, free: 9.391 MB / 0.545 GB 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)