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


Performing analysis on: 4FGL_J1448.0+3608_daily_bin1022
RA = 222.017, Dec = 36.1344
tmin = 504230401, tmax = 504489601
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='788988', job_status='RUN', time_executed='2021-09-10 09:52:10.841940', time_epoch_executed='1631292730.84' WHERE source_name='4FGL J1448.0+3608' and cadence='daily' and bin_id='1022'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/788988

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/788988/ft1_4FGL_J1448.0+3608_daily_bin1022.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/788988/ft2_4FGL_J1448.0+3608_daily_bin1022.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/788988/ft1_4FGL_J1448.0+3608_daily_bin1022.fits outfile=/scratch/kocevski/788988/ft1_filteredMKT_4FGL_J1448.0+3608_daily_bin1022.fits ra=222.017 dec=36.1344 rad=12.0 tmin=504230401.0 tmax=504489601.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 3.63
user 3.35
sys 0.19

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/788988/ft2_4FGL_J1448.0+3608_daily_bin1022.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/788988/ft2_4FGL_J1448.0+3608_daily_bin1022.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/788988/ft1_filteredMKT_4FGL_J1448.0+3608_daily_bin1022.fits evtable="EVENTS" outfile="/scratch/kocevski/788988/ft1_filtered_4FGL_J1448.0+3608_daily_bin1022.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 0.51
user 0.35
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/788988/ft1_filtered_4FGL_J1448.0+3608_daily_bin1022.fits" evtable="EVENTS" scfile=/scratch/kocevski/788988/ft2_4FGL_J1448.0+3608_daily_bin1022.fits sctable="SC_DATA" outfile=/scratch/kocevski/788988/ltcube_504230401_504489601_4FGL_J1448.0+3608_daily_bin1022.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/788988/ft2_4FGL_J1448.0+3608_daily_bin1022.fits
.....................!
real 13.61
user 13.10
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/788988/ft1_filtered_4FGL_J1448.0+3608_daily_bin1022.fits evtable="EVENTS" scfile=/scratch/kocevski/788988/ft2_4FGL_J1448.0+3608_daily_bin1022.fits sctable="SC_DATA" expcube=/scratch/kocevski/788988/ltcube_504230401_504489601_4FGL_J1448.0+3608_daily_bin1022.fits outfile=/scratch/kocevski/788988/expmap_504230401_504489601_4FGL_J1448.0+3608_daily_bin1022.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/788988/ltcube_504230401_504489601_4FGL_J1448.0+3608_daily_bin1022.fits
.....................!
real 192.60
user 186.28
sys 3.77

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 186 point sources and 0 extended sources

Setting source of interest to:
4FGL J1448.0+3608 @ 222.017 36.1344

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/788988/ft1_filtered_4FGL_J1448.0+3608_daily_bin1022.fits scfile=/scratch/kocevski/788988/ft2_4FGL_J1448.0+3608_daily_bin1022.fits outfile=/scratch/kocevski/788988/cmap_504230401_504489601_4FGL_J1448.0+3608_daily_bin1022.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=222.017 yref=36.1344 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 0.53
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/788988/ft1_filtered_4FGL_J1448.0+3608_daily_bin1022.fits scfile=/scratch/kocevski/788988/ft2_4FGL_J1448.0+3608_daily_bin1022.fits outfile=/scratch/kocevski/788988/cmap_HighResolution_504230401_504489601_4FGL_J1448.0+3608_daily_bin1022.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=222.017 yref=36.1344 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 0.54
user 0.40
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/788988/ft1_filtered_4FGL_J1448.0+3608_daily_bin1022.fits evtable="EVENTS" scfile=/scratch/kocevski/788988/ft2_4FGL_J1448.0+3608_daily_bin1022.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/788988/Model_4FGL_J1448.0+3608_daily_bin1022.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/788988/ft1_filtered_4FGL_J1448.0+3608_daily_bin1022.fits.....................!
real 48.59
user 46.88
sys 1.08

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/788988/ft1_filtered_4FGL_J1448.0+3608_daily_bin1022.fits', '/scratch/kocevski/788988/ft2_4FGL_J1448.0+3608_daily_bin1022.fits', expMap='/scratch/kocevski/788988/expmap_504230401_504489601_4FGL_J1448.0+3608_daily_bin1022.fits', expCube='/scratch/kocevski/788988/ltcube_504230401_504489601_4FGL_J1448.0+3608_daily_bin1022.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/788988/Model_4FGL_J1448.0+3608_daily_bin1022.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1448.0+3608'

4FGL J1448.0+3608
   Spectrum: LogParabola
293         norm:  3.776e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
294        alpha:  1.600e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
295         beta:  1.132e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
296           Eb:  2.001e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/788988/ft1_filtered_4FGL_J1448.0+3608_daily_bin1022.fits
Spacecraft file(s): /scratch/kocevski/788988/ft2_4FGL_J1448.0+3608_daily_bin1022.fits
Exposure map: /scratch/kocevski/788988/expmap_504230401_504489601_4FGL_J1448.0+3608_daily_bin1022.fits
Exposure cube: /scratch/kocevski/788988/ltcube_504230401_504489601_4FGL_J1448.0+3608_daily_bin1022.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/788988/Model_4FGL_J1448.0+3608_daily_bin1022.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) = 5920.61619962

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    3.2470       1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.4278       1.0000         .10000E-03   10000.    
     6 'Prefactor '    11.754       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10204E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    43.641       1.0000         .10000E-03   10000.    
    10 'norm      '    .10040E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .81822E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    6.0532       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    8.4312       1.0000         .10000E-03   10000.    
    15 'Prefactor '    24.166       1.0000         .10000E-03   10000.    
    16 'Prefactor '    21.397       1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    2.9180       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .61412       1.0000         .10000E-03   10000.    
    20 'Prefactor '    30.299       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    11.471       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    4.5001       1.0000         .10000E-03   10000.    
    25 'Prefactor '    1.4723       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10068E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    8.6282       1.0000         .10000E-03   10000.    
    28 'norm      '    .10096E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.4680       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .43220       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6000E+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=   5920.603     FROM MIGRAD    STATUS=CONVERGED   1365 CALLS     5063 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    5.0859        .16939E-02** at limit **
   2  Prefactor     .10000E-03    4.9857        .16779E-02** at limit **
   3  Prefactor     .10000E-03    58.182        .18142E-02** at limit **
   4  norm          3.2466        3.3059        .13635E-03   -.18518E-03
   5  Prefactor     2.4368        15.018        .26265E-03    .12795E-03
   6  Prefactor     11.732        21.866        .11685E-03   -.81729E-04
   7  Prefactor     .10000E-03    1.6349        .95654E-03** at limit **
   8  norm          .10000E-03    8.4735        .18142E-02** at limit **
   9  Prefactor     43.632        34.897        .60686E-04   -.30723E-04
  10  norm          .10000E-03    4.4668        .15802E-02** at limit **
  11  Prefactor     .10003E-03    43.265        .15083    ** at limit **
  12  norm          6.0544        4.5813        .13771E-03   -.15851E-04
  13  Prefactor     .10000E-03    11.088        .18142E-02** at limit **
  14  norm          8.4314        8.1567        .69030E-03   -.62616E-04
  15  Prefactor     24.162        17.346        .81485E-04   -.98361E-04
  16  Prefactor     21.397        10.228        .86590E-04   -.16372E-03
  17  norm          .10000E-03    .67189        .60996E-03** at limit **
  18  norm          2.9205        3.9476        .12853E-03   -.46314E-03
  19  Prefactor     .60441        30.698        .36852E-02   -.19035E-03
  20  Prefactor     30.309        35.995        .72789E-04   -.25508E-03
  21  Prefactor     .10000E-03    4.0959        .15166E-02** at limit **
  22  Prefactor     11.471        13.476        .11828E-03   -.15009E-03
  23  Prefactor     .10000E-03    8.0348        .18142E-02** at limit **
  24  norm          4.5000        1.6695        .51158E-04   -.31978E-03
  25  Prefactor     1.4726        12.765        .17704E-02    .14684E-03
  26  Prefactor     .10000E-03    27.348        .18142E-02** at limit **
  27  Prefactor     8.6287        18.565        .13647E-03   -.29158E-04
  28  norm          .10000E-03    13.387        .18142E-02** at limit **
  29  Normalizat    1.4682        .22137        .21063E-03   -.24828E-04
  30  Prefactor     .43196        .20477        .35464E-03   -.41334E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.24657
  Prefactor  = 2.43681
  Prefactor  = 11.7319
  Prefactor  = 0.0001
  norm       = 0.000100001
  Prefactor  = 43.6319
  norm       = 0.0001
  Prefactor  = 0.000100032
  norm       = 6.05442
  Prefactor  = 0.0001
  norm       = 8.43139
  Prefactor  = 24.1623
  Prefactor  = 21.3974
  norm       = 0.0001
  norm       = 2.92048
  Prefactor  = 0.604408
  Prefactor  = 30.3087
  Prefactor  = 0.0001
  Prefactor  = 11.4707
  Prefactor  = 0.0001
  norm       = 4.49998
  Prefactor  = 1.47264
  Prefactor  = 0.0001
  Prefactor  = 8.62872
  norm       = 0.0001
  Normalizat = 1.46817
  Prefactor  = 0.431964
 **********
 **   18 **HESSE 
 **********

 FCN=   5920.603     FROM HESSE     STATUS=OK           570 CALLS     5633 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    5.0861        .33877E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    4.9857        .33557E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    58.207        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          3.2466        3.3057        .54541E-05   -1.5348    
   5  Prefactor     2.4368        14.978        .10506E-04   -1.5396    
   6  Prefactor     11.732        21.839        .46738E-05   -1.5023    
   7  Prefactor     .10000E-03    1.6350        .19131E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    8.4736        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     43.632        34.896        .24274E-05   -1.4386    
  10  norm          .10000E-03    4.4679        .31604E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10003E-03    42.921        .15179       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          6.0544        4.5813        .55084E-05   -1.5216    
  13  Prefactor     .10000E-03    11.088        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          8.4314        8.1559        .27612E-04   -1.5127    
  15  Prefactor     24.162        17.345        .32594E-05   -1.4724    
  16  Prefactor     21.397        10.228        .34636E-05   -1.4782    
  17  norm          .10000E-03    .67193        .12199E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          2.9205        3.7394        .51411E-05   -1.5366    
  19  Prefactor     .60441        27.528        .14741E-03   -1.5552    
  20  Prefactor     30.309        35.995        .14558E-04   -1.4606    
  21  Prefactor     .10000E-03    4.0966        .30331E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     11.471        13.447        .23657E-04   -1.5030    
  23  Prefactor     .10000E-03    8.0370        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          4.5000        1.6575        .20463E-05   -1.5284    
  25  Prefactor     1.4726        12.566        .70817E-04   -1.5465    
  26  Prefactor     .10000E-03    27.352        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     8.6287        18.563        .54586E-05   -1.5120    
  28  norm          .10000E-03    13.388        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    1.4682        .22130        .84252E-05   -.78677    
  30  Prefactor     .43196        .20488        .14186E-04   -1.1521    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.2392e-09
Minuit parameter uncertainties:
  1  5.0739e-05
  2  7.1809e-05
  3  7.0138e-05
  4  3.30593
  5  12.0869
  6  21.8537
  7  1.08386e-05
  8  0.000167545
  9  34.9124
  10  1.07513e-05
  11  0.0023289
  12  4.58153
  13  6.57198e-05
  14  8.15701
  15  17.3489
  16  10.2287
  17  6.51653e-06
  18  3.73973
  19  8.16134
  20  36.0208
  21  1.48974e-06
  22  13.4501
  23  7.38072e-05
  24  1.65753
  25  8.60559
  26  0.000137342
  27  18.5752
  28  1.46594e-05
  29  0.221442
  30  0.205227
Done.

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

Extracting fit parameters...

4FGL J1448.0+3608
   Spectrum: LogParabola
293         norm:  8.431e+00  8.157e+00  1.000e-04  1.000e+04 ( 1.000e-13)
294        alpha:  1.600e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
295         beta:  1.132e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
296           Eb:  2.001e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
597    Prefactor:  4.320e-01  2.052e-01  0.000e+00  1.000e+01 ( 1.000e+00)
598        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
599        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
596   Normalization:  1.468e+00  2.214e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.63
Ra Dec: 222.017 36.134
Photon Index (Fixed Index): 1.60 +/- 0.00
Photon Flux (Fixed Index): 1.11e-08 +/- 1.07e-08
Energy Flux (Fixed Index): 2.11e-05 +/- 2.04e-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) = 5920.17848446
delta logL = 0.424334721288

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5920.16811566
delta logL = 0.434703523586

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5920.168     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      216 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.4485        185.75        .36738E-02    .58068E-03
   2  alpha         2.2361        3.2860        .25650        .47723E-04
   3  Normalizat    1.4569        .10009        .47759E-01   -.16071E-04
   4  Prefactor     .43421        .75304E-01    .79773E-01    .28482E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 7.44852
  alpha      = 2.23607
  Normalizat = 1.45691
  Prefactor  = 0.434209
 **********
 **   18 **HESSE 
 **********

 FCN=   5920.168     FROM HESSE     STATUS=OK            31 CALLS      247 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.4485        7.4920        .14695E-03   -1.5162    
   2  alpha         2.2361        .65062        .13051E-01   -.10577    
   3  Normalizat    1.4569        .20741        .21112E-03   -.78996    
   4  Prefactor     .43421        .19973        .35338E-03   -1.1510    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.31252e-09
Minuit parameter uncertainties:
  1  7.49293
  2  0.658287
  3  0.207528
  4  0.200049
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/788988': 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) = 5920.16811186
delta logL = 0.434707324085

Extracting fit parameters...

4FGL J1448.0+3608
   Spectrum: LogParabola
293         norm:  7.449e+00  7.493e+00  1.000e-04  1.000e+04 ( 1.000e-13)
294        alpha:  2.236e+00  6.583e-01  0.000e+00  5.000e+00 ( 1.000e+00)
295         beta:  1.132e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
296           Eb:  2.001e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
597    Prefactor:  4.342e-01  2.000e-01  0.000e+00  1.000e+01 ( 1.000e+00)
598        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
599        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
596   Normalization:  1.457e+00  2.075e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.50
Ra Dec: 222.017 36.134
Photon Index (Free Index): 2.24 +/- 0.66
Photon Flux (Free Index): 2.76e-08 +/- 2.88e-08
Energy Flux (Free Index): 1.45e-05 +/- 1.24e-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/788988/cmap_HighResolution_504230401_504489601_4FGL_J1448.0+3608_daily_bin1022.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.11e-08', energy_flux2='1.45e-05', photon_flux_error='1.07e-08', dlogl='4.35e-01', energy_flux='2.11e-05', photon_flux2='2.76e-08', job_status='DONE', time_completed='2021-09-10 10:05:35.881378', photon_index_error2='0.66', photon_index2='2.24', ts='4.63', fit_tolerance='1e-08', GAL='0.43', photon_index_error='0.00', energy_flux_error2='1.24e-05', EG='1.47', time_epoch_completed='1631293535.88', return_code='0', job_id='788988', GAL2='0.43', EG2='1.46', return_code2='0', energy_flux_error='2.04e-05', photon_flux_error2='2.88e-08', ts2='5.50', photon_index='1.60' WHERE bin_id='1022' AND source_name='4FGL J1448.0+3608' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 10:05:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0032>
Subject: Job 788988: <4FGL_J1448.0+3608_daily_bin1022> in cluster <slac> Done

Job <4FGL_J1448.0+3608_daily_bin1022> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Fri Sep 10 09:51:52 2021
Job was executed on host(s) <bullet0032>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 10 09:51:54 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep 10 09:51:54 2021
Terminated at Fri Sep 10 10:05:36 2021
Results reported at Fri Sep 10 10:05:36 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1448.0+3608_daily_bin1022 222.017 36.1344 504230401 504489601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1448.0+3608 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   798.17 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             292.54 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   822 sec.
    Turnaround time :                            824 sec.

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

