/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 144 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 = 7399
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0804.5+0414_daily_bin155
RA = 121.133, Dec = 4.2393
tmin = 279504001, tmax = 279763201
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='93846', job_status='RUN', time_executed='2021-08-29 00:13:11.275387', time_epoch_executed='1630221191.28' WHERE source_name='4FGL J0804.5+0414' and cadence='daily' and bin_id='155'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/93846

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/93846/ft1_4FGL_J0804.5+0414_daily_bin155.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/93846/ft2_4FGL_J0804.5+0414_daily_bin155.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/93846/ft1_4FGL_J0804.5+0414_daily_bin155.fits outfile=/scratch/kocevski/93846/ft1_filteredMKT_4FGL_J0804.5+0414_daily_bin155.fits ra=121.133 dec=4.2393 rad=12.0 tmin=279504001.0 tmax=279763201.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.14
user 3.33
sys 0.79

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/93846/ft2_4FGL_J0804.5+0414_daily_bin155.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/93846/ft2_4FGL_J0804.5+0414_daily_bin155.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/93846/ft1_filteredMKT_4FGL_J0804.5+0414_daily_bin155.fits evtable="EVENTS" outfile="/scratch/kocevski/93846/ft1_filtered_4FGL_J0804.5+0414_daily_bin155.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.08
user 0.33
sys 0.73

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/93846/ft1_filtered_4FGL_J0804.5+0414_daily_bin155.fits" evtable="EVENTS" scfile=/scratch/kocevski/93846/ft2_4FGL_J0804.5+0414_daily_bin155.fits sctable="SC_DATA" outfile=/scratch/kocevski/93846/ltcube_279504001_279763201_4FGL_J0804.5+0414_daily_bin155.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/93846/ft2_4FGL_J0804.5+0414_daily_bin155.fits
.....................!
real 12.63
user 11.63
sys 0.96

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/93846/ft1_filtered_4FGL_J0804.5+0414_daily_bin155.fits evtable="EVENTS" scfile=/scratch/kocevski/93846/ft2_4FGL_J0804.5+0414_daily_bin155.fits sctable="SC_DATA" expcube=/scratch/kocevski/93846/ltcube_279504001_279763201_4FGL_J0804.5+0414_daily_bin155.fits outfile=/scratch/kocevski/93846/expmap_279504001_279763201_4FGL_J0804.5+0414_daily_bin155.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/93846/ltcube_279504001_279763201_4FGL_J0804.5+0414_daily_bin155.fits
.....................!
real 191.14
user 185.33
sys 5.36

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
Extended source Monoceros in ROI with RadialGaussian spatial model.
Added 167 point sources and 1 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J0804.5+0414 @ 121.133 4.2393

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/93846/ft1_filtered_4FGL_J0804.5+0414_daily_bin155.fits scfile=/scratch/kocevski/93846/ft2_4FGL_J0804.5+0414_daily_bin155.fits outfile=/scratch/kocevski/93846/cmap_279504001_279763201_4FGL_J0804.5+0414_daily_bin155.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=121.133 yref=4.2393 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.14
user 0.37
sys 0.73

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/93846/ft1_filtered_4FGL_J0804.5+0414_daily_bin155.fits scfile=/scratch/kocevski/93846/ft2_4FGL_J0804.5+0414_daily_bin155.fits outfile=/scratch/kocevski/93846/cmap_HighResolution_279504001_279763201_4FGL_J0804.5+0414_daily_bin155.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=121.133 yref=4.2393 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.11
user 0.38
sys 0.72

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/93846/ft1_filtered_4FGL_J0804.5+0414_daily_bin155.fits evtable="EVENTS" scfile=/scratch/kocevski/93846/ft2_4FGL_J0804.5+0414_daily_bin155.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/93846/Model_4FGL_J0804.5+0414_daily_bin155.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
adding source Monoceros
Working on...
/scratch/kocevski/93846/ft1_filtered_4FGL_J0804.5+0414_daily_bin155.fits.....................!
real 94.06
user 91.75
sys 1.94

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/93846/ft1_filtered_4FGL_J0804.5+0414_daily_bin155.fits', '/scratch/kocevski/93846/ft2_4FGL_J0804.5+0414_daily_bin155.fits', expMap='/scratch/kocevski/93846/expmap_279504001_279763201_4FGL_J0804.5+0414_daily_bin155.fits', expCube='/scratch/kocevski/93846/ltcube_279504001_279763201_4FGL_J0804.5+0414_daily_bin155.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/93846/Model_4FGL_J0804.5+0414_daily_bin155.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0804.5+0414'

4FGL J0804.5+0414
   Spectrum: PowerLaw
281    Prefactor:  7.193e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
282        Index:  2.491e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
283        Scale:  8.390e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/93846/ft1_filtered_4FGL_J0804.5+0414_daily_bin155.fits
Spacecraft file(s): /scratch/kocevski/93846/ft2_4FGL_J0804.5+0414_daily_bin155.fits
Exposure map: /scratch/kocevski/93846/expmap_279504001_279763201_4FGL_J0804.5+0414_daily_bin155.fits
Exposure cube: /scratch/kocevski/93846/ltcube_279504001_279763201_4FGL_J0804.5+0414_daily_bin155.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/93846/Model_4FGL_J0804.5+0414_daily_bin155.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) = 7417.50372323

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .17824E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    40.920       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .17564E-02   1.0000         .10000E-03   10000.    
     5 'norm      '    2.3550       1.0000         .10000E-03   10000.    
     6 'Prefactor '    12.209       1.0000         .10000E-03   10000.    
     7 'Prefactor '    6.7961       1.0000         .10000E-03   10000.    
     8 'norm      '    11.539       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .11359E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    76.653       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10118E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    4.4605       1.0000         .10000E-03   10000.    
    14 'norm      '    .12614       1.0000         .10000E-03   10000.    
    15 'norm      '    .10384E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10070E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    1.1253       1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.0541       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0275       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5570E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7417.312     FROM MIGRAD    STATUS=CONVERGED    499 CALLS     2138 TOTAL
                     EDM=   .70E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .89725        .54861E-07** at limit **
   2  Prefactor     40.922        38.508        .10117E-05   -.10686E-03
   3  Prefactor     .10000E-03    7.4630       -.20025E-06** at limit **
   4  Prefactor     .10002E-03    172.62        .87784E-04** at limit **
   5  norm          2.3546        1.4547        .38972E-09   -.87307E-03
   6  Prefactor     12.188        21.557        .12574E-04   -.11818E-04
   7  Prefactor     6.7940        4.1415       -.23757E-05   -.40915E-04
   8  norm          11.555        16.728       -.54832E-05    .27386E-03
   9  Prefactor     .10000E-03    24.458       -.18491E-04** at limit **
  10  Prefactor     76.849        74.956        .16893E-03    .83887E-05
  11  Prefactor     .10000E-03    2.8991       -.14245E-06** at limit **
  12  Prefactor     .10000E-03    16.130       -.81460E-05** at limit **
  13  norm          4.4717        9.5297       -.37420E-06   -.12246E-03
  14  norm          .11847        1.0797       -.92844E-06    .13282E-02
  15  norm          .10000E-03    10.892        .12969E-05** at limit **
  16  norm          .10000E-03    1.0910        .82110E-07** at limit **
  17  Prefactor     .10000E-03    20.808        .23384E-04** at limit **
  18  Prefactor     .10000E-03    4.3927       -.53141E-07** at limit **
  19  norm          1.1252        1.0858        .55473E-07   -.95637E-03
  20  norm          .10000E-03    2.2941        .30560E-07** at limit **
  21  Normalizat    1.0541        .18819       -.15543E-05   -.16776E-03
  22  Prefactor     1.0275        .11811       -.96622E-06   -.36292E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 40.9223
  Prefactor  = 0.0001
  Prefactor  = 0.000100017
  norm       = 2.35463
  Prefactor  = 12.1882
  Prefactor  = 6.79396
  norm       = 11.5553
  Prefactor  = 0.000100001
  Prefactor  = 76.8494
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.47174
  norm       = 0.118469
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.12521
  norm       = 0.0001
  Normalizat = 1.05412
  Prefactor  = 1.02749
 **********
 **   18 **HESSE 
 **********

 FCN=   7417.312     FROM HESSE     STATUS=OK           342 CALLS     2480 TOTAL
                     EDM=   .59E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    5.4286        .15360E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     40.922        38.128        .31332E-03   -1.4428    
   3  Prefactor     .10000E-03    7.6366        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10002E-03    178.90        .40684E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          2.3546        1.4520        .78500E-04   -1.5401    
   6  Prefactor     12.188        21.586        .11465E-03   -1.5010    
   7  Prefactor     6.7940        4.1553        .12804E-03   -1.5187    
   8  norm          11.555        16.660        .11793E-03   -1.5028    
   9  Prefactor     .10000E-03    24.786        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     76.849        75.053        .22932E-03   -1.3952    
  11  Prefactor     .10000E-03    2.9136        .14317E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    16.220        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          4.4717        9.5142        .19066E-03   -1.5285    
  14  norm          .11847        5.9534        .17176E-02   -1.5639    
  15  norm          .10000E-03    10.956        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    1.0946        .87834E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    20.858        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    4.3967        .17628E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          1.1252        1.0640        .82583E-04   -1.5496    
  20  norm          .10000E-03    2.2997        .12738E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.0541        .21441        .30350E-03   -.91239    
  22  Prefactor     1.0275        .13420        .19563E-03   -.91819    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.93334e-09
Minuit parameter uncertainties:
  1  9.81977e-05
  2  38.1509
  3  1.81695e-05
  4  0.00353775
  5  1.45204
  6  21.5994
  7  4.15545
  8  16.6664
  9  0.000376397
  10  75.146
  11  8.70402e-06
  12  4.20587e-05
  13  9.51738
  14  1.6791
  15  1.66332e-05
  16  2.82077e-06
  17  4.16105e-07
  18  2.49554e-06
  19  1.06406
  20  4.02465e-06
  21  0.214582
  22  0.134241
Done.

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

Extracting fit parameters...

4FGL J0804.5+0414
   Spectrum: PowerLaw
281    Prefactor:  1.000e-04  4.206e-05  1.000e-04  1.000e+04 ( 1.000e-13)
282        Index:  2.491e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
283        Scale:  8.390e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
550    Prefactor:  1.027e+00  1.342e-01  0.000e+00  1.000e+01 ( 1.000e+00)
551        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
552        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
549   Normalization:  1.054e+00  2.146e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 121.133 4.239
Photon Flux Upper Limit: 6.27e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.88e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/93846/likelihoodResults_279504001_279763201_4FGL_J0804.5+0414_daily_bin155.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): 102
logL (Free Index) = 7417.31257849
delta logL = -0.0002937799145

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7417.31228577
delta logL = -1.06092738861e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6463       1.0000          .0000       10.000    
     3 'Normalizat'    1.0541       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0275       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5570E+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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   7417.312     FROM MIGRAD    STATUS=FAILED        99 CALLS      297 TOTAL
                     EDM=   .64E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .33247E-03    15.581        .12701    ** at limit **
   2  Index         1.5470        8.2488        .50000       -.54039E-05
   3  Normalizat    1.0541        .50813E-02    .30350E-03   -.44817E-03
   4  Prefactor     1.0275        .32577E-02    .19563E-03   -.36031E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   7417.311     FROM SIMPLEX   STATUS=PROGRESS      72 CALLS      369 TOTAL
                     EDM=   .98E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .74135        15.581        .12883E-02   -.48265E-02
   2  Index         1.5914        8.2488        .52239E-02   -.54039E-05
   3  Normalizat    1.0540        .50813E-02    .57326E-04   -.44817E-03
   4  Prefactor     1.0273        .32577E-02    .60202E-04   -.36031E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7417.311     FROM MIGRAD    STATUS=CONVERGED     97 CALLS      466 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .73430        94.797        .25752E-03   -.72312E-04
   2  Index         1.5902        2.8991        .41940E-01   -.31108E-04
   3  Normalizat    1.0542        .20203        .12140E-04   -.17231E-03
   4  Prefactor     1.0272        .12974        .15650E-05    .37048E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.734302
  Index      = 1.59024
  Normalizat = 1.05422
  Prefactor  = 1.02719
 **********
 **   18 **HESSE 
 **********

 FCN=   7417.311     FROM HESSE     STATUS=OK            25 CALLS      491 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .73430        81.871        .10301E-04   -1.5537    
   2  Index         1.5902        2.7611        .16776E-02   -.75043    
   3  Normalizat    1.0542        .20013        .24280E-05   -.91236    
   4  Prefactor     1.0272        .12827        .31300E-06   -.91828    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.40222e-09
Minuit parameter uncertainties:
  1  15.5279
  2  3.12926
  3  0.200271
  4  0.128304
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/93846': 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) = 7417.31111987
delta logL = 0.00116484292175

Extracting fit parameters...

4FGL J0804.5+0414
   Spectrum: PowerLaw
281    Prefactor:  7.343e-01  1.553e+01  1.000e-04  1.000e+04 ( 1.000e-13)
282        Index:  1.590e+00  3.129e+00  0.000e+00  1.000e+01 (-1.000e+00)
283        Scale:  8.390e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
550    Prefactor:  1.027e+00  1.283e-01  0.000e+00  1.000e+01 ( 1.000e+00)
551        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
552        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
549   Normalization:  1.054e+00  2.003e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 121.133 4.239

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/93846/cmap_HighResolution_279504001_279763201_4FGL_J0804.5+0414_daily_bin155.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.88e-03', job_status='DONE', photon_flux_upper_limit='6.27e-08', time_completed='2021-08-29 00:25:07.733947', job_id='93846', GAL2='1.03', fit_tolerance='1e-08', EG2='1.05', EG='1.05', time_epoch_completed='1630221907.73', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.03', dlogl='1.16e-03', ts2='0.00', photon_index_error='0.00', photon_index='2.49' WHERE bin_id='155' AND source_name='4FGL J0804.5+0414' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 00:25:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0031>
Subject: Job 93846: <4FGL_J0804.5+0414_daily_bin155> in cluster <slac> Done

Job <4FGL_J0804.5+0414_daily_bin155> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sun Aug 29 00:10:25 2021
Job was executed on host(s) <bullet0031>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 29 00:10:27 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Aug 29 00:10:27 2021
Terminated at Sun Aug 29 00:25:08 2021
Results reported at Sun Aug 29 00:25:08 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0804.5+0414_daily_bin155 121.133 4.2393 279504001 279763201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0804.5+0414 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   723.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             309.43 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   881 sec.
    Turnaround time :                            883 sec.

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

