/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 7 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 = 7660
number of fields = 29
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0112.8+3208_daily_bin626
RA = 18.2227, Dec = 32.1399
tmin = 401587201, tmax = 401846401
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='422578', job_status='RUN', time_executed='2021-08-13 16:30:59.763266', time_epoch_executed='1628897459.76' WHERE source_name='4FGL J0112.8+3208' and cadence='daily' and bin_id='626'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/422578

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/422578/ft1_4FGL_J0112.8+3208_daily_bin626.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/422578/ft2_4FGL_J0112.8+3208_daily_bin626.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/422578/ft1_4FGL_J0112.8+3208_daily_bin626.fits outfile=/scratch/kocevski/422578/ft1_filteredMKT_4FGL_J0112.8+3208_daily_bin626.fits ra=18.2227 dec=32.1399 rad=12.0 tmin=401587201.0 tmax=401846401.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.36
user 3.19
sys 1.13

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/422578/ft2_4FGL_J0112.8+3208_daily_bin626.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/422578/ft2_4FGL_J0112.8+3208_daily_bin626.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/422578/ft1_filteredMKT_4FGL_J0112.8+3208_daily_bin626.fits evtable="EVENTS" outfile="/scratch/kocevski/422578/ft1_filtered_4FGL_J0112.8+3208_daily_bin626.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.46
user 0.27
sys 1.09

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/422578/ft1_filtered_4FGL_J0112.8+3208_daily_bin626.fits" evtable="EVENTS" scfile=/scratch/kocevski/422578/ft2_4FGL_J0112.8+3208_daily_bin626.fits sctable="SC_DATA" outfile=/scratch/kocevski/422578/ltcube_401587201_401846401_4FGL_J0112.8+3208_daily_bin626.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/422578/ft2_4FGL_J0112.8+3208_daily_bin626.fits
.....................!
real 11.50
user 9.84
sys 1.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/422578/ft1_filtered_4FGL_J0112.8+3208_daily_bin626.fits evtable="EVENTS" scfile=/scratch/kocevski/422578/ft2_4FGL_J0112.8+3208_daily_bin626.fits sctable="SC_DATA" expcube=/scratch/kocevski/422578/ltcube_401587201_401846401_4FGL_J0112.8+3208_daily_bin626.fits outfile=/scratch/kocevski/422578/expmap_401587201_401846401_4FGL_J0112.8+3208_daily_bin626.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/422578/ltcube_401587201_401846401_4FGL_J0112.8+3208_daily_bin626.fits
.....................!
real 152.03
user 146.17
sys 5.14

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.8+3208 @ 18.2227 32.1399

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/422578/ft1_filtered_4FGL_J0112.8+3208_daily_bin626.fits scfile=/scratch/kocevski/422578/ft2_4FGL_J0112.8+3208_daily_bin626.fits outfile=/scratch/kocevski/422578/cmap_401587201_401846401_4FGL_J0112.8+3208_daily_bin626.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.2227 yref=32.1399 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.37
user 0.30
sys 1.04

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/422578/ft1_filtered_4FGL_J0112.8+3208_daily_bin626.fits scfile=/scratch/kocevski/422578/ft2_4FGL_J0112.8+3208_daily_bin626.fits outfile=/scratch/kocevski/422578/cmap_HighResolution_401587201_401846401_4FGL_J0112.8+3208_daily_bin626.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.2227 yref=32.1399 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.42
user 0.30
sys 1.07

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/422578/ft1_filtered_4FGL_J0112.8+3208_daily_bin626.fits evtable="EVENTS" scfile=/scratch/kocevski/422578/ft2_4FGL_J0112.8+3208_daily_bin626.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/422578/Model_4FGL_J0112.8+3208_daily_bin626.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/422578/ft1_filtered_4FGL_J0112.8+3208_daily_bin626.fits.....................!
real 61.23
user 58.82
sys 2.22

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/422578/ft1_filtered_4FGL_J0112.8+3208_daily_bin626.fits', '/scratch/kocevski/422578/ft2_4FGL_J0112.8+3208_daily_bin626.fits', expMap='/scratch/kocevski/422578/expmap_401587201_401846401_4FGL_J0112.8+3208_daily_bin626.fits', expCube='/scratch/kocevski/422578/ltcube_401587201_401846401_4FGL_J0112.8+3208_daily_bin626.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/422578/Model_4FGL_J0112.8+3208_daily_bin626.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0112.8+3208'

4FGL J0112.8+3208
   Spectrum: LogParabola
243         norm:  1.942e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-11)
244        alpha:  2.252e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
245         beta:  6.695e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
246           Eb:  5.002e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/422578/ft1_filtered_4FGL_J0112.8+3208_daily_bin626.fits
Spacecraft file(s): /scratch/kocevski/422578/ft2_4FGL_J0112.8+3208_daily_bin626.fits
Exposure map: /scratch/kocevski/422578/expmap_401587201_401846401_4FGL_J0112.8+3208_daily_bin626.fits
Exposure cube: /scratch/kocevski/422578/ltcube_401587201_401846401_4FGL_J0112.8+3208_daily_bin626.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/422578/Model_4FGL_J0112.8+3208_daily_bin626.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) = 7289.89425283

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    4.7906       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    7.5820       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    73.470       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .25199       1.0000         .10000E-03   10000.    
    11 'norm      '    .10040E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .16785E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.4830       1.0000         .10000E-03   10000.    
    15 'Prefactor '    14.902       1.0000         .10000E-03   10000.    
    16 'norm      '    .63839       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    102.44       1.0000         .10000E-03   10000.    
    19 'norm      '    .35761       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    2.3023       1.0000         .10000E-03   10000.    
    24 'Prefactor '    22.400       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.0981       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .87675       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5360E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7289.870     FROM MIGRAD    STATUS=CONVERGED    596 CALLS     3073 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    12.595       -.10683E-06** at limit **
   2  norm          4.7904        2.5964       -.61680E-07    .54961E-04
   3  Prefactor     .10000E-03    15.418       -.56107E-06** at limit **
   4  Prefactor     7.5815        5.4271       -.85966E-07    .25845E-04
   5  Prefactor     .10000E-03    6.2393       -.33986E-06** at limit **
   6  Prefactor     .10000E-03    3.7649       -.25918E-06** at limit **
   7  Prefactor     .10000E-03    12.819       -.34005E-06** at limit **
   8  Prefactor     73.583        57.343       -.20368E-05   -.19257E-03
   9  Prefactor     .10000E-03    13.396        .98351E-07** at limit **
  10  norm          .25120        .75234        .47120E-06    .86974E-03
  11  norm          .10000E-03    .70914       -.16654E-06** at limit **
  12  Prefactor     .10000E-03    30.608        .63230E-06** at limit **
  13  Prefactor     .10001E-03    9.0189        .80594E-05** at limit **
  14  Prefactor     5.4831        8.5161        .74084E-07    .40727E-03
  15  Prefactor     14.911        14.071        .55836E-06   -.28632E-03
  16  norm          .63835        .70270       -.44700E-07   -.19485E-03
  17  Prefactor     .10000E-03    27.791       -.12235E-05** at limit **
  18  Prefactor     102.41        137.58        .71325E-05    .81440E-04
  19  norm          .35759        .76288       -.87632E-06   -.27081E-02
  20  Prefactor     .10000E-03    8.2091       -.49396E-06** at limit **
  21  Prefactor     .10000E-03    1.1327       -.14863E-06** at limit **
  22  Prefactor     .10000E-03    7.3771        .20958E-06** at limit **
  23  norm          2.3019        4.6961       -.22091E-06    .13992E-03
  24  Prefactor     22.400        10.850        .82713E-07    .20781E-03
  25  Normalizat    1.0979        .20211       -.14059E-05   -.41353E-04
  26  Prefactor     .87689        .11810        .19987E-05    .89480E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 4.79038
  Prefactor  = 0.0001
  Prefactor  = 7.58148
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 73.5833
  Prefactor  = 0.0001
  norm       = 0.251197
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100009
  Prefactor  = 5.4831
  Prefactor  = 14.911
  norm       = 0.638345
  Prefactor  = 0.0001
  Prefactor  = 102.408
  norm       = 0.35759
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.30187
  Prefactor  = 22.4004
  Normalizat = 1.09794
  Prefactor  = 0.876894
 **********
 **   18 **HESSE 
 **********

 FCN=   7289.870     FROM HESSE     STATUS=OK           458 CALLS     3531 TOTAL
                     EDM=   .37E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    12.616        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          4.7904        2.5973        .97859E-04   -1.5270    
   3  Prefactor     .10000E-03    15.558        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     7.5815        5.4284        .14564E-03   -1.5157    
   5  Prefactor     .10000E-03    6.2688        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    3.7950        .16184E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    12.896        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     73.583        58.137        .23420E-03   -1.3990    
   9  Prefactor     .10000E-03    13.395        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .25120        .75250        .10331E-03   -1.5608    
  11  norm          .10000E-03    1.2292        .13627E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    30.639        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10001E-03    9.1415        .31271E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     5.4831        8.5006        .85797E-03   -1.5240    
  15  Prefactor     14.911        13.925        .10375E-03   -1.4935    
  16  norm          .63835        .69886        .73209E-04   -1.5548    
  17  Prefactor     .10000E-03    27.881        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     102.41        135.15        .39725E-04   -1.3681    
  19  norm          .35759        .74527        .94837E-04   -1.5588    
  20  Prefactor     .10000E-03    8.3468        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    1.1430        .88765E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    7.3778        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          2.3019        4.6524        .24012E-03   -1.5405    
  24  Prefactor     22.400        10.792        .84631E-04   -1.4761    
  25  Normalizat    1.0979        .23790        .29826E-03   -.89818    
  26  Prefactor     .87689        .13955        .19939E-03   -.96953    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.69005e-09
Minuit parameter uncertainties:
  1  7.32132e-05
  2  2.59738
  3  1.77876e-05
  4  5.4287
  5  3.51113e-05
  6  2.76473e-05
  7  0.000117529
  8  58.1816
  9  2.40411e-05
  10  0.752527
  11  2.09248e-05
  12  0.000109252
  13  0.000558749
  14  8.50248
  15  13.9284
  16  0.698871
  17  0.000129126
  18  135.559
  19  0.745285
  20  4.29403e-05
  21  8.42129e-06
  22  2.60625e-05
  23  4.65311
  24  10.7929
  25  0.238136
  26  0.139602
Done.

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

Extracting fit parameters...

4FGL J0112.8+3208
   Spectrum: LogParabola
243         norm:  1.000e-04  2.092e-05  1.000e-04  1.000e+04 ( 1.000e-11)
244        alpha:  2.252e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
245         beta:  6.695e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
246           Eb:  5.002e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
533    Prefactor:  8.769e-01  1.396e-01  0.000e+00  1.000e+01 ( 1.000e+00)
534        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
535        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
532   Normalization:  1.098e+00  2.381e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 18.223 32.140
Photon Flux Upper Limit: 7.53e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.70e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/422578/likelihoodResults_401587201_401846401_4FGL_J0112.8+3208_daily_bin626.txt

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) = 7289.87356823
delta logL = -0.00388641103746

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7289.86968159
delta logL = 2.35185325437e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2786       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0980       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87696       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5360E+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=   7289.870     FROM MIGRAD    STATUS=CONVERGED    100 CALLS      259 TOTAL
                     EDM=   .43E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    275.82        .13785E-02** at limit **
   2  alpha         2.6716        2.8858        .16543       -.13889E-06
   3  Normalizat    1.0979        .93345E-01    .29826E-03   -.10614E-02
   4  Prefactor     .87689        .56560E-01    .19939E-03   -.15732E-02
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.67157
  Normalizat = 1.09794
  Prefactor  = 0.876892
 **********
 **   18 **HESSE 
 **********

 FCN=   7289.870     FROM HESSE     STATUS=OK            23 CALLS      282 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.5905        .27570E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.6716        3.6632        .66172E-02    .68683E-01
   3  Normalizat    1.0979        .22589        .59652E-04   -.89818    
   4  Prefactor     .87689        .13743        .39878E-04   -.96953    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.55717e-09
Minuit parameter uncertainties:
  1  5.1503e-06
  2  99.4409
  3  0.226088
  4  0.137487
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/422578': 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) = 7289.86967268
delta logL = 9.13776511879e-06

Extracting fit parameters...

4FGL J0112.8+3208
   Spectrum: LogParabola
243         norm:  1.000e-04  5.150e-06  1.000e-04  1.000e+04 ( 1.000e-11)
244        alpha:  2.672e+00  9.944e+01  0.000e+00  5.000e+00 ( 1.000e+00)
245         beta:  6.695e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
246           Eb:  5.002e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
533    Prefactor:  8.769e-01  1.375e-01  0.000e+00  1.000e+01 ( 1.000e+00)
534        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
535        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
532   Normalization:  1.098e+00  2.261e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 18.223 32.140

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/422578/cmap_HighResolution_401587201_401846401_4FGL_J0112.8+3208_daily_bin626.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.70e-05', job_status='DONE', photon_flux_upper_limit='7.53e-08', time_completed='2021-08-13 16:41:31.891557', job_id='422578', GAL2='0.88', fit_tolerance='1e-08', EG2='1.10', EG='1.10', time_epoch_completed='1628898091.89', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.88', dlogl='9.14e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.25' WHERE bin_id='626' AND source_name='4FGL J0112.8+3208' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 13 16:41:31 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0033>
Subject: Job 422578: <4FGL_J0112.8+3208_daily_bin626> in cluster <slac> Done

Job <4FGL_J0112.8+3208_daily_bin626> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Fri Aug 13 16:25:42 2021
Job was executed on host(s) <bullet0033>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 13 16:30:28 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:30:28 2021
Terminated at Fri Aug 13 16:41:32 2021
Results reported at Fri Aug 13 16:41:32 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0112.8+3208_daily_bin626 18.2227 32.1399 401587201 401846401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0112.8+3208 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   642.40 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             322.33 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   664 sec.
    Turnaround time :                            950 sec.

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

