/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)


Waiting 220 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

number of points = 7387
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0112.1+2245_daily_bin974
RA = 18.0294, Dec = 22.7515
tmin = 491788801, tmax = 492048001
emin = 100.0, emax = 100000.0
irfs = P8R3_SOURCE_V2
ROI = 12
zmax = 90

Fitting strategies:
Fix sources to their catalog values = True
Leave variable source normalizations free = True
Perform pre-fit where ALL sources are frozen to catalog values = False
Perform secondary fit with a free spectral index = True
Remove all catalog sources = False
Remove weak (TS < 2) catalog sources = False
Freeze Galactic component = False

Likelihood fit parameters:
Statistic: UNBINNED
Optimizer: MINUIT

Catalog: 4FGL

Repository Job = True

LAT data Source:
Data catalog

Updating database...

UPDATE lightcurve_data_v2 SET job_id='414499', job_status='RUN', time_executed='2021-08-13 16:05:28.280991', time_epoch_executed='1628895928.28' WHERE source_name='4FGL J0112.1+2245' and cadence='daily' and bin_id='974'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/414499

Creating custom pfile directory:
/scratch/kocevski/414499/pfiles/

Retrieving the FT1 file...

Issuing command:
/afs/slac.stanford.edu/g/glast/ground/bin/datacat find --group FT1 --filter 'nMetStop>=491788801.0 && nMetStart<492048001.0' /Data/Flight/Reprocess/P305

Issuing command:
/afs/slac.stanford.edu/g/glast/ground/bin/datacat find --group FT1 --filter 'nMetStart>564945418 && nMetStop>=491788801.0 && nMetStart<492048001.0' /Data/Flight/Level1/LPA

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/414499/ft1_4FGL_J0112.1+2245_daily_bin974.fits


Retrieving the FT1 file...

Issuing command:
/afs/slac.stanford.edu/g/glast/ground/bin/datacat find --group FT2 --filter 'nMetStop>=491788801.0 && nMetStart<492048001.0' /Data/Flight/Level1/LPA

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/414499/ft2_4FGL_J0112.1+2245_daily_bin974.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/414499/ft1_4FGL_J0112.1+2245_daily_bin974.fits outfile=/scratch/kocevski/414499/ft1_filteredMKT_4FGL_J0112.1+2245_daily_bin974.fits ra=18.0294 dec=22.7515 rad=12.0 tmin=491788801.0 tmax=492048001.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 4.92
user 4.00
sys 0.89

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/414499/ft2_4FGL_J0112.1+2245_daily_bin974.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/414499/ft2_4FGL_J0112.1+2245_daily_bin974.fits sctable="SC_DATA" filter="IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))" roicut=no evfile=/scratch/kocevski/414499/ft1_filteredMKT_4FGL_J0112.1+2245_daily_bin974.fits evtable="EVENTS" outfile="/scratch/kocevski/414499/ft1_filtered_4FGL_J0112.1+2245_daily_bin974.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 1.20
user 0.33
sys 0.82

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/414499/ft1_filtered_4FGL_J0112.1+2245_daily_bin974.fits" evtable="EVENTS" scfile=/scratch/kocevski/414499/ft2_4FGL_J0112.1+2245_daily_bin974.fits sctable="SC_DATA" outfile=/scratch/kocevski/414499/ltcube_491788801_492048001_4FGL_J0112.1+2245_daily_bin974.fits dcostheta=0.025 binsz=1.0 phibins=0 tmin=0.0 tmax=0.0 file_version="1" zmin=0.0 zmax=90.0 chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Working on file /scratch/kocevski/414499/ft2_4FGL_J0112.1+2245_daily_bin974.fits
.....................!
real 12.94
user 11.81
sys 1.09

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/414499/ft1_filtered_4FGL_J0112.1+2245_daily_bin974.fits evtable="EVENTS" scfile=/scratch/kocevski/414499/ft2_4FGL_J0112.1+2245_daily_bin974.fits sctable="SC_DATA" expcube=/scratch/kocevski/414499/ltcube_491788801_492048001_4FGL_J0112.1+2245_daily_bin974.fits outfile=/scratch/kocevski/414499/expmap_491788801_492048001_4FGL_J0112.1+2245_daily_bin974.fits irfs="P8R3_SOURCE_V2" evtype="INDEF" srcrad=30.0 nlong=88 nlat=88 nenergies=10 submap=no nlongmin=0 nlongmax=0 nlatmin=0 nlatmax=0 chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

The exposure maps generated by this tool are meant
to be used for *unbinned* likelihood analysis only.
Do not use them for binned analyses.
Computing the ExposureMap using /scratch/kocevski/414499/ltcube_491788801_492048001_4FGL_J0112.1+2245_daily_bin974.fits
.....................!
real 191.92
user 186.25
sys 5.25

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Added 166 point sources and 0 extended sources

Setting source of interest to:
4FGL J0112.1+2245 @ 18.0294 22.7515

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/414499/ft1_filtered_4FGL_J0112.1+2245_daily_bin974.fits scfile=/scratch/kocevski/414499/ft2_4FGL_J0112.1+2245_daily_bin974.fits outfile=/scratch/kocevski/414499/cmap_491788801_492048001_4FGL_J0112.1+2245_daily_bin974.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=18.0294 yref=22.7515 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 1.22
user 0.37
sys 0.82

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/414499/ft1_filtered_4FGL_J0112.1+2245_daily_bin974.fits scfile=/scratch/kocevski/414499/ft2_4FGL_J0112.1+2245_daily_bin974.fits outfile=/scratch/kocevski/414499/cmap_HighResolution_491788801_492048001_4FGL_J0112.1+2245_daily_bin974.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=18.0294 yref=22.7515 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 1.22
user 0.36
sys 0.83

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/414499/ft1_filtered_4FGL_J0112.1+2245_daily_bin974.fits evtable="EVENTS" scfile=/scratch/kocevski/414499/ft2_4FGL_J0112.1+2245_daily_bin974.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/414499/Model_4FGL_J0112.1+2245_daily_bin974.xml irfs="P8R3_SOURCE_V2" evclsmin=0 evclass="INDEF" evtype="INDEF" convert=yes chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

adding source EG_v02
adding source GAL_V02
Working on...
/scratch/kocevski/414499/ft1_filtered_4FGL_J0112.1+2245_daily_bin974.fits.....................!
real 38.54
user 36.21
sys 2.06

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/414499/ft1_filtered_4FGL_J0112.1+2245_daily_bin974.fits', '/scratch/kocevski/414499/ft2_4FGL_J0112.1+2245_daily_bin974.fits', expMap='/scratch/kocevski/414499/expmap_491788801_492048001_4FGL_J0112.1+2245_daily_bin974.fits', expCube='/scratch/kocevski/414499/ltcube_491788801_492048001_4FGL_J0112.1+2245_daily_bin974.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/414499/Model_4FGL_J0112.1+2245_daily_bin974.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0112.1+2245'

4FGL J0112.1+2245
   Spectrum: LogParabola
248         norm:  1.596e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-11)
249        alpha:  2.006e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
250         beta:  5.709e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
251           Eb:  7.553e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/414499/ft1_filtered_4FGL_J0112.1+2245_daily_bin974.fits
Spacecraft file(s): /scratch/kocevski/414499/ft2_4FGL_J0112.1+2245_daily_bin974.fits
Exposure map: /scratch/kocevski/414499/expmap_491788801_492048001_4FGL_J0112.1+2245_daily_bin974.fits
Exposure cube: /scratch/kocevski/414499/ltcube_491788801_492048001_4FGL_J0112.1+2245_daily_bin974.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/414499/Model_4FGL_J0112.1+2245_daily_bin974.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 0
logL (Fixed Index) = 2486.86549855

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 0
logL (Fixed Index) = 2486.83002022

Fit tolerance = 1e-08

Performing likelihood fit...
 **********
 **   14 **SET NOWARN 
 **********

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    11.860       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10414E-02   1.0000         .10000E-03   10000.    
     5 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10082E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10070E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10511E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10136E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    1.6221       1.0000         .10000E-03   10000.    
    11 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    23.439       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .33308E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.4556       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10058E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .12592E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    1.7409       1.0000         .10000E-03   10000.    
    20 'Prefactor '    59.484       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .70580       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .97136       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5280E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   2486.830     FROM MIGRAD    STATUS=CONVERGED    813 CALLS     2674 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    59.660        .18142E-02** at limit **
   2  Prefactor     .10000E-03    6.4172        .12290E-02** at limit **
   3  norm          11.861        12.979        .11632E-03    .34207E-05
   4  Prefactor     .10000E-03    593.16        .74347E-02** at limit **
   5  norm          .10000E-03    7.5208        .13356E-02** at limit **
   6  Prefactor     .10000E-03    12.010        .16877E-02** at limit **
   7  Prefactor     .10000E-03    28.885        .18142E-02** at limit **
   8  Prefactor     .10000E-03    24.319        .18142E-02** at limit **
   9  Prefactor     .10000E-03    70.879        .18142E-02** at limit **
  10  norm          1.6218        1.2676        .46253E-04    .35726E-03
  11  norm          .10000E-03    2.4016        .75345E-03** at limit **
  12  Prefactor     23.435        19.599        .82737E-04    .61146E-05
  13  Prefactor     .10000E-03    178.33        .21345E-02** at limit **
  14  Prefactor     2.4708        15.561        .26102E-03    .67424E-04
  15  Prefactor     .10000E-03    11.579        .16574E-02** at limit **
  16  Prefactor     .10000E-03    30.550        .18142E-02** at limit **
  17  Prefactor     .10000E-03    41.754        .18142E-02** at limit **
  18  Prefactor     .10000E-03    110.62        .18142E-02** at limit **
  19  norm          1.7415        1.7239        .62183E-04    .77062E-04
  20  Prefactor     59.481        30.146        .52020E-04    .39338E-05
  21  Normalizat    .70587        .38254        .34855E-03    .66017E-04
  22  Prefactor     .97137        .23408        .18927E-03    .15797E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 11.8607
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.62177
  norm       = 0.0001
  Prefactor  = 23.4351
  Prefactor  = 0.000100003
  Prefactor  = 2.47082
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.74152
  Prefactor  = 59.4808
  Normalizat = 0.705873
  Prefactor  = 0.971374
 **********
 **   18 **HESSE 
 **********

 FCN=   2486.830     FROM HESSE     STATUS=OK           320 CALLS     2994 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    59.660        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    6.4181        .24579E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          11.861        12.979        .46529E-05   -1.5019    
   4  Prefactor     .10000E-03    616.78        .29739E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    7.5209        .26712E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    12.011        .33754E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    28.885        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    24.319        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    70.880        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          1.6218        1.2674        .18501E-05   -1.5453    
  11  norm          .10000E-03    2.4016        .15069E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     23.435        19.599        .33095E-05   -1.4739    
  13  Prefactor     .10000E-03    178.36        .42690E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     2.4708        15.552        .10441E-04   -1.5394    
  15  Prefactor     .10000E-03    11.579        .33148E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    30.555        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    41.755        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    110.62        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          1.7415        1.7239        .24873E-05   -1.5444    
  20  Prefactor     59.481        30.144        .20808E-05   -1.4164    
  21  Normalizat    .70587        .38274        .13942E-04   -1.0366    
  22  Prefactor     .97137        .23420        .37854E-04   -.93690    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.27805e-10
Minuit parameter uncertainties:
  1  5.02715e-05
  2  2.81133e-06
  3  12.9819
  4  0.00155608
  5  1.10571e-06
  6  4.53239e-08
  7  5.64388e-05
  8  2.20685e-05
  9  1.23323e-05
  10  1.26743
  11  4.69378e-07
  12  19.6041
  13  0.00143413
  14  12.4024
  15  2.65271e-06
  16  5.90986e-05
  17  0.000145972
  18  0.000185861
  19  1.72393
  20  30.1517
  21  0.384201
  22  0.234449
Done.

MINUIT Return Code (Fixed Index): 0
logL (Fixed Index) = 2486.83001743

Extracting fit parameters...

4FGL J0112.1+2245
   Spectrum: LogParabola
248         norm:  1.622e+00  1.267e+00  1.000e-04  1.000e+04 ( 1.000e-11)
249        alpha:  2.006e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
250         beta:  5.709e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
251           Eb:  7.553e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
525    Prefactor:  9.714e-01  2.344e-01  0.000e+00  1.000e+01 ( 1.000e+00)
526        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
527        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
524   Normalization:  7.059e-01  3.842e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.11
Ra Dec: 18.029 22.752
Photon Index (Fixed Index): 2.01 +/- 0.00
Photon Flux (Fixed Index): 8.32e-08 +/- 6.50e-08
Energy Flux (Fixed Index): 4.80e-05 +/- 3.75e-05

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2486.82628283
delta logL = 0.00373460813125

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2486.8257119
delta logL = 0.00430553421847

Fit tolerance = 1e-08

Performing likelihood fit...
 **********
 **   14 **SET NOWARN 
 **********

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.5855       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9350       1.0000          .0000       5.0000    
     3 'Normalizat'    .71303       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96926       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5280E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   2486.826     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      196 TOTAL
                     EDM=   .19E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.5854        1.5461        .84287E-02    .38322E-03
   2  alpha         1.9350        .78277        .31469        .50040E-04
   3  Normalizat    .71299        .32364        .78356E-01    .49207E-05
   4  Prefactor     .96929        .20172        .45882E-01    .20989E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 1.58544
  alpha      = 1.935
  Normalizat = 0.71299
  Prefactor  = 0.969286
 **********
 **   18 **HESSE 
 **********

 FCN=   2486.826     FROM HESSE     STATUS=OK            33 CALLS      229 TOTAL
                     EDM=   .40E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.5854        1.2971        .46557E-04   -1.5456    
   2  alpha         1.9350        .74047        .12165E-01   -.22797    
   3  Normalizat    .71299        .37231        .34693E-03   -1.0338    
   4  Prefactor     .96929        .23264        .18947E-03   -.93760    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.97043e-10
Minuit parameter uncertainties:
  1  1.29713
  2  0.752381
  3  0.373644
  4  0.232884
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/414499': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2486.82571189
delta logL = 0.00430554140485

Extracting fit parameters...

4FGL J0112.1+2245
   Spectrum: LogParabola
248         norm:  1.585e+00  1.297e+00  1.000e-04  1.000e+04 ( 1.000e-11)
249        alpha:  1.935e+00  7.524e-01  0.000e+00  5.000e+00 ( 1.000e+00)
250         beta:  5.709e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
251           Eb:  7.553e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
525    Prefactor:  9.693e-01  2.329e-01  0.000e+00  1.000e+01 ( 1.000e+00)
526        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
527        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
524   Normalization:  7.130e-01  3.736e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.11
Ra Dec: 18.029 22.752
Photon Index (Free Index): 1.94 +/- 0.75
Photon Flux (Free Index): 7.59e-08 +/- 9.48e-08
Energy Flux (Free Index): 5.04e-05 +/- 4.83e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/414499/cmap_HighResolution_491788801_492048001_4FGL_J0112.1+2245_daily_bin974.png

Cleaning up...

** Nuclear option initiated! **
rmdir /scratch/kocevski/414499

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.32e-08', energy_flux2='5.04e-05', photon_flux_error='6.50e-08', dlogl='4.31e-03', energy_flux='4.80e-05', photon_flux2='7.59e-08', job_status='DONE', time_completed='2021-08-13 16:12:45.321032', photon_index_error2='0.75', photon_index2='1.94', ts='7.11', fit_tolerance='1e-08', GAL='0.97', photon_index_error='0.00', energy_flux_error2='4.83e-05', EG='0.71', time_epoch_completed='1628896365.32', return_code='0', job_id='414499', GAL2='0.97', EG2='0.71', return_code2='0', energy_flux_error='3.75e-05', photon_flux_error2='9.48e-08', ts2='7.11', photon_index='2.01' WHERE bin_id='974' AND source_name='4FGL J0112.1+2245' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 13 16:12:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0172>
Subject: Job 414499: <4FGL_J0112.1+2245_daily_bin974> in cluster <slac> Done

Job <4FGL_J0112.1+2245_daily_bin974> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Fri Aug 13 16:00:31 2021
Job was executed on host(s) <bullet0172>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 13 16:01:26 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Aug 13 16:01:26 2021
Terminated at Fri Aug 13 16:12:46 2021
Results reported at Fri Aug 13 16:12:46 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0112.1+2245_daily_bin974 18.0294 22.7515 491788801 492048001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0112.1+2245 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   443.58 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             278.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   679 sec.
    Turnaround time :                            735 sec.

The output (if any) is above this job summary.

