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


Performing analysis on: 4FGL_J0112.8+3208_daily_bin1306
RA = 18.2227, Dec = 32.1399
tmin = 577843201, tmax = 578102401
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='428259', job_status='RUN', time_executed='2021-08-13 16:47:42.864593', time_epoch_executed='1628898462.86' WHERE source_name='4FGL J0112.8+3208' and cadence='daily' and bin_id='1306'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/428259

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/428259/ft1_4FGL_J0112.8+3208_daily_bin1306.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/428259/ft2_4FGL_J0112.8+3208_daily_bin1306.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/428259/ft1_4FGL_J0112.8+3208_daily_bin1306.fits outfile=/scratch/kocevski/428259/ft1_filteredMKT_4FGL_J0112.8+3208_daily_bin1306.fits ra=18.2227 dec=32.1399 rad=12.0 tmin=577843201.0 tmax=578102401.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 5.71
user 3.07
sys 2.60

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/428259/ft2_4FGL_J0112.8+3208_daily_bin1306.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/428259/ft1_filteredMKT_4FGL_J0112.8+3208_daily_bin1306.fits evtable="EVENTS" outfile="/scratch/kocevski/428259/ft1_filtered_4FGL_J0112.8+3208_daily_bin1306.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 2.90
user 0.31
sys 2.56

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/428259/ft1_filtered_4FGL_J0112.8+3208_daily_bin1306.fits" evtable="EVENTS" scfile=/scratch/kocevski/428259/ft2_4FGL_J0112.8+3208_daily_bin1306.fits sctable="SC_DATA" outfile=/scratch/kocevski/428259/ltcube_577843201_578102401_4FGL_J0112.8+3208_daily_bin1306.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/428259/ft2_4FGL_J0112.8+3208_daily_bin1306.fits
.....................!
real 15.11
user 11.92
sys 3.07

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/428259/ft1_filtered_4FGL_J0112.8+3208_daily_bin1306.fits evtable="EVENTS" scfile=/scratch/kocevski/428259/ft2_4FGL_J0112.8+3208_daily_bin1306.fits sctable="SC_DATA" expcube=/scratch/kocevski/428259/ltcube_577843201_578102401_4FGL_J0112.8+3208_daily_bin1306.fits outfile=/scratch/kocevski/428259/expmap_577843201_578102401_4FGL_J0112.8+3208_daily_bin1306.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/428259/ltcube_577843201_578102401_4FGL_J0112.8+3208_daily_bin1306.fits
.....................!
real 194.67
user 186.56
sys 7.69

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/428259/ft1_filtered_4FGL_J0112.8+3208_daily_bin1306.fits scfile=/scratch/kocevski/428259/ft2_4FGL_J0112.8+3208_daily_bin1306.fits outfile=/scratch/kocevski/428259/cmap_577843201_578102401_4FGL_J0112.8+3208_daily_bin1306.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 2.95
user 0.37
sys 2.54

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/428259/ft1_filtered_4FGL_J0112.8+3208_daily_bin1306.fits scfile=/scratch/kocevski/428259/ft2_4FGL_J0112.8+3208_daily_bin1306.fits outfile=/scratch/kocevski/428259/cmap_HighResolution_577843201_578102401_4FGL_J0112.8+3208_daily_bin1306.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 2.67
user 0.39
sys 2.28

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/428259/ft1_filtered_4FGL_J0112.8+3208_daily_bin1306.fits', '/scratch/kocevski/428259/ft2_4FGL_J0112.8+3208_daily_bin1306.fits', expMap='/scratch/kocevski/428259/expmap_577843201_578102401_4FGL_J0112.8+3208_daily_bin1306.fits', expCube='/scratch/kocevski/428259/ltcube_577843201_578102401_4FGL_J0112.8+3208_daily_bin1306.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/428259/Model_4FGL_J0112.8+3208_daily_bin1306.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/428259/ft1_filtered_4FGL_J0112.8+3208_daily_bin1306.fits
Spacecraft file(s): /scratch/kocevski/428259/ft2_4FGL_J0112.8+3208_daily_bin1306.fits
Exposure map: /scratch/kocevski/428259/expmap_577843201_578102401_4FGL_J0112.8+3208_daily_bin1306.fits
Exposure cube: /scratch/kocevski/428259/ltcube_577843201_578102401_4FGL_J0112.8+3208_daily_bin1306.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/428259/Model_4FGL_J0112.8+3208_daily_bin1306.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) = 1943.14566349

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    28.134       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10156E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    8.8215       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10117E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    2.0053       1.0000         .10000E-03   10000.    
    11 'norm      '    1.6477       1.0000         .10000E-03   10000.    
    12 'Prefactor '    50.603       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10074E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    9.7184       1.0000         .10000E-03   10000.    
    16 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    75.792       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10096E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    1.4662       1.0000         .10000E-03   10000.    
    20 'Prefactor '    20.892       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    61.439       1.0000         .10000E-03   10000.    
    23 'norm      '    .84274       1.0000         .10000E-03   10000.    
    24 'Prefactor '    10.117       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .12483       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.4526       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=   1943.053     FROM MIGRAD    STATUS=CONVERGED   1093 CALLS     4076 TOTAL
                     EDM=   .47E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    25.190        .18142E-02** at limit **
   2  norm          .10000E-03    3.8290        .83595E-03** at limit **
   3  Prefactor     28.136        39.772        .37765E-03   -.16519E-04
   4  Prefactor     .10000E-03    5.7827        .10341E-02** at limit **
   5  Prefactor     .10000E-03    134.84        .36285E-03** at limit **
   6  Prefactor     .10000E-03    4.8026        .94341E-03** at limit **
   7  Prefactor     8.8224        29.801        .13495E-03   -.77292E-05
   8  Prefactor     .10000E-03    29.405        .18142E-02** at limit **
   9  Prefactor     .10000E-03    332.44        .18142E-02** at limit **
  10  norm          2.0053        1.3423        .40078E-04   -.32834E-04
  11  norm          1.6478        3.0555        .98243E-04   -.40965E-04
  12  Prefactor     50.607        73.491        .56376E-04    .47390E-06
  13  Prefactor     .10000E-03    7.1380        .11491E-02** at limit **
  14  Prefactor     .10000E-03    47.156        .36285E-03** at limit **
  15  Prefactor     9.7190        25.456        .64272E-03   -.22473E-04
  16  norm          .10000E-03    3.0104        .11398E-02** at limit **
  17  Prefactor     75.793        75.348        .23061E-03   -.19842E-05
  18  Prefactor     .10000E-03    215.15        .18142E-02** at limit **
  19  norm          1.4663        1.4226        .50126E-04   -.85675E-04
  20  Prefactor     20.894        29.174        .87630E-04   -.21504E-04
  21  Prefactor     .10000E-03    2.9226        .73456E-03** at limit **
  22  Prefactor     61.429        102.18        .51191E-04   -.22975E-04
  23  norm          .84297        11.392        .28224E-03   -.15568E-04
  24  Prefactor     10.117        28.244        .12597E-03   -.39009E-04
  25  Normalizat    .12476        .48626        .76410E-02    .14388E-03
  26  Prefactor     1.4526        .30342        .16579E-03   -.28320E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 28.1358
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.82236
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  norm       = 2.00529
  norm       = 1.64781
  Prefactor  = 50.6074
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.71898
  norm       = 0.0001
  Prefactor  = 75.7929
  Prefactor  = 0.000100002
  norm       = 1.46627
  Prefactor  = 20.8937
  Prefactor  = 0.0001
  Prefactor  = 61.4288
  norm       = 0.842967
  Prefactor  = 10.117
  Normalizat = 0.12476
  Prefactor  = 1.45262
 **********
 **   18 **HESSE 
 **********

 FCN=   1943.053     FROM HESSE     STATUS=OK           432 CALLS     4508 TOTAL
                     EDM=   .42E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    25.191        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    3.8294        .16719E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     28.136        39.523        .15106E-04   -1.4647    
   4  Prefactor     .10000E-03    5.7829        .20682E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    134.84        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    4.8026        .18868E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     8.8224        29.800        .53981E-05   -1.5114    
   8  Prefactor     .10000E-03    29.405        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    332.50        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          2.0053        1.3422        .16031E-05   -1.5425    
  11  norm          1.6478        3.0494        .39297E-05   -1.5451    
  12  Prefactor     50.607        73.483        .11275E-04   -1.4284    
  13  Prefactor     .10000E-03    7.1381        .22981E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    47.158        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     9.7190        25.399        .25709E-04   -1.5084    
  16  norm          .10000E-03    3.0142        .22796E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     75.793        75.346        .92244E-05   -1.3965    
  18  Prefactor     .10000E-03    215.16        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          1.4663        1.4226        .20050E-05   -1.5466    
  20  Prefactor     20.894        29.094        .35052E-05   -1.4793    
  21  Prefactor     .10000E-03    2.9227        .14691E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     61.429        102.10        .10238E-04   -1.4139    
  23  norm          .84297        11.385        .11290E-04   -1.5524    
  24  Prefactor     10.117        28.222        .50389E-05   -1.5072    
  25  Normalizat    .12476        .44207        .15282E-02   -1.3560    
  26  Prefactor     1.4526        .29050        .66316E-05   -.78875    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.154e-11
Minuit parameter uncertainties:
  1  1.5246e-06
  2  1.91052e-06
  3  39.5603
  4  4.62906e-07
  5  0.000118267
  6  3.77458e-07
  7  29.8507
  8  8.55796e-06
  9  0.0017825
  10  1.34225
  11  3.04974
  12  73.6153
  13  1.19452e-05
  14  1.89911e-06
  15  25.4273
  16  7.31174e-07
  17  75.4414
  18  0.00115412
  19  1.4226
  20  29.1142
  21  3.17911e-07
  22  102.39
  23  6.19692
  24  28.2593
  25  0.45588
  26  0.290826
Done.

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

Extracting fit parameters...

4FGL J0112.8+3208
   Spectrum: LogParabola
243         norm:  1.648e+00  3.050e+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

GAL_V02
   Spectrum: PowerLaw
533    Prefactor:  1.453e+00  2.908e-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.248e-01  4.559e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.38
Ra Dec: 18.223 32.140
Photon Flux Upper Limit: 2.53e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.11e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/428259/likelihoodResults_577843201_578102401_4FGL_J0112.8+3208_daily_bin1306.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) = 1942.99577838
delta logL = 0.0576273311121

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 1942.99158059
delta logL = 0.0618251268245

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.5325       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.7089       1.0000          .0000       5.0000    
     3 'Normalizat'    .98966E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.4623       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=   1942.992     FROM MIGRAD    STATUS=CONVERGED     84 CALLS      241 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.5328        2.8840        .80503E-04   -.34228E-03
   2  alpha         2.7094        1.3463        .17047E-01   -.13462E-04
   3  Normalizat    .99043E-01    .54783        .83416E-02    .28302E-04
   4  Prefactor     1.4624        .30117        .16532E-03    .65448E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.53276
  alpha      = 2.70939
  Normalizat = 0.0990426
  Prefactor  = 1.46237
 **********
 **   18 **HESSE 
 **********

 FCN=   1942.992     FROM HESSE     STATUS=OK            27 CALLS      268 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.5328        2.7760        .32201E-05   -1.5460    
   2  alpha         2.7094        1.2986        .68189E-03    .83855E-01
   3  Normalizat    .99043E-01    .48195        .33366E-03   -1.3817    
   4  Prefactor     1.4624        .28253        .66129E-05   -.78599    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.28306e-10
Minuit parameter uncertainties:
  1  2.77623
  2  1.36599
  3  0.419675
  4  0.282827
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/428259': 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) = 1942.99158019
delta logL = 0.0618255234233

Extracting fit parameters...

4FGL J0112.8+3208
   Spectrum: LogParabola
243         norm:  1.533e+00  2.776e+00  1.000e-04  1.000e+04 ( 1.000e-11)
244        alpha:  2.709e+00  1.366e+00  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:  1.462e+00  2.828e-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:  9.904e-02  4.197e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.38
Ra Dec: 18.223 32.140

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/428259/cmap_HighResolution_577843201_578102401_4FGL_J0112.8+3208_daily_bin1306.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.11e-05', job_status='DONE', photon_flux_upper_limit='2.53e-07', time_completed='2021-08-13 16:56:07.715302', job_id='428259', GAL2='1.46', fit_tolerance='1e-08', EG2='0.10', EG='0.12', time_epoch_completed='1628898967.72', return_code2='0', ts='0.38', comment='SUCCESS', return_code='0', GAL='1.45', dlogl='6.18e-02', ts2='0.51', photon_index_error='0.00', photon_index='2.25' WHERE bin_id='1306' AND source_name='4FGL J0112.8+3208' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 13 16:56:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0304>
Subject: Job 428259: <4FGL_J0112.8+3208_daily_bin1306> in cluster <slac> Done

Job <4FGL_J0112.8+3208_daily_bin1306> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Fri Aug 13 16:45:36 2021
Job was executed on host(s) <bullet0304>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 13 16:46:50 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:46:50 2021
Terminated at Fri Aug 13 16:56:08 2021
Results reported at Fri Aug 13 16:56:08 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0112.8+3208_daily_bin1306 18.2227 32.1399 577843201 578102401 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 :                                   539.38 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             295.65 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   558 sec.
    Turnaround time :                            632 sec.

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

