/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 50 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 = 7537
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0924.0+2816_daily_bin1645
RA = 141.005, Dec = 28.2755
tmin = 665712001, tmax = 665971201
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='620408', job_status='RUN', time_executed='2022-02-08 00:14:44.893973', time_epoch_executed='1644308084.89' WHERE source_name='4FGL J0924.0+2816' and cadence='daily' and bin_id='1645'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/620408

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/620408/ft1_4FGL_J0924.0+2816_daily_bin1645.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/620408/ft2_4FGL_J0924.0+2816_daily_bin1645.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/620408/ft1_4FGL_J0924.0+2816_daily_bin1645.fits outfile=/scratch/kocevski/620408/ft1_filteredMKT_4FGL_J0924.0+2816_daily_bin1645.fits ra=141.005 dec=28.2755 rad=12.0 tmin=665712001.0 tmax=665971201.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.03
user 2.73
sys 0.24

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/620408/ft2_4FGL_J0924.0+2816_daily_bin1645.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/620408/ft2_4FGL_J0924.0+2816_daily_bin1645.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/620408/ft1_filteredMKT_4FGL_J0924.0+2816_daily_bin1645.fits evtable="EVENTS" outfile="/scratch/kocevski/620408/ft1_filtered_4FGL_J0924.0+2816_daily_bin1645.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.46
user 0.27
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/620408/ft1_filtered_4FGL_J0924.0+2816_daily_bin1645.fits" evtable="EVENTS" scfile=/scratch/kocevski/620408/ft2_4FGL_J0924.0+2816_daily_bin1645.fits sctable="SC_DATA" outfile=/scratch/kocevski/620408/ltcube_665712001_665971201_4FGL_J0924.0+2816_daily_bin1645.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/620408/ft2_4FGL_J0924.0+2816_daily_bin1645.fits
.....................!
real 14.19
user 13.86
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/620408/ft1_filtered_4FGL_J0924.0+2816_daily_bin1645.fits evtable="EVENTS" scfile=/scratch/kocevski/620408/ft2_4FGL_J0924.0+2816_daily_bin1645.fits sctable="SC_DATA" expcube=/scratch/kocevski/620408/ltcube_665712001_665971201_4FGL_J0924.0+2816_daily_bin1645.fits outfile=/scratch/kocevski/620408/expmap_665712001_665971201_4FGL_J0924.0+2816_daily_bin1645.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/620408/ltcube_665712001_665971201_4FGL_J0924.0+2816_daily_bin1645.fits
.....................!
real 156.89
user 152.24
sys 4.31

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

Setting source of interest to:
4FGL J0924.0+2816 @ 141.005 28.2755

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/620408/ft1_filtered_4FGL_J0924.0+2816_daily_bin1645.fits scfile=/scratch/kocevski/620408/ft2_4FGL_J0924.0+2816_daily_bin1645.fits outfile=/scratch/kocevski/620408/cmap_665712001_665971201_4FGL_J0924.0+2816_daily_bin1645.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=141.005 yref=28.2755 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.47
user 0.31
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/620408/ft1_filtered_4FGL_J0924.0+2816_daily_bin1645.fits scfile=/scratch/kocevski/620408/ft2_4FGL_J0924.0+2816_daily_bin1645.fits outfile=/scratch/kocevski/620408/cmap_HighResolution_665712001_665971201_4FGL_J0924.0+2816_daily_bin1645.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=141.005 yref=28.2755 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.48
user 0.31
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/620408/ft1_filtered_4FGL_J0924.0+2816_daily_bin1645.fits evtable="EVENTS" scfile=/scratch/kocevski/620408/ft2_4FGL_J0924.0+2816_daily_bin1645.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/620408/Model_4FGL_J0924.0+2816_daily_bin1645.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/620408/ft1_filtered_4FGL_J0924.0+2816_daily_bin1645.fits.....................!
real 44.04
user 42.87
sys 1.01

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/620408/ft1_filtered_4FGL_J0924.0+2816_daily_bin1645.fits', '/scratch/kocevski/620408/ft2_4FGL_J0924.0+2816_daily_bin1645.fits', expMap='/scratch/kocevski/620408/expmap_665712001_665971201_4FGL_J0924.0+2816_daily_bin1645.fits', expCube='/scratch/kocevski/620408/ltcube_665712001_665971201_4FGL_J0924.0+2816_daily_bin1645.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/620408/Model_4FGL_J0924.0+2816_daily_bin1645.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0924.0+2816'

4FGL J0924.0+2816
   Spectrum: PowerLaw
276    Prefactor:  1.227e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
277        Index:  2.506e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
278        Scale:  7.290e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/620408/ft1_filtered_4FGL_J0924.0+2816_daily_bin1645.fits
Spacecraft file(s): /scratch/kocevski/620408/ft2_4FGL_J0924.0+2816_daily_bin1645.fits
Exposure map: /scratch/kocevski/620408/expmap_665712001_665971201_4FGL_J0924.0+2816_daily_bin1645.fits
Exposure cube: /scratch/kocevski/620408/ltcube_665712001_665971201_4FGL_J0924.0+2816_daily_bin1645.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/620408/Model_4FGL_J0924.0+2816_daily_bin1645.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) = 5792.65375785

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .70409       1.0000         .10000E-03   10000.    
     2 'Prefactor '    7.7899       1.0000         .10000E-03   10000.    
     3 'Prefactor '    5.3245       1.0000         .10000E-03   10000.    
     4 'norm      '    10.550       1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.0985       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10068E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    3.4863       1.0000         .10000E-03   10000.    
     8 'Prefactor '    10.063       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10284E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .73596       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    11.783       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10155E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.6931       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    5.8684       1.0000         .10000E-03   10000.    
    18 'norm      '    14.183       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.2483       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .76458       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5380E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5792.612     FROM MIGRAD    STATUS=CONVERGED     57 CALLS     1396 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  9.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .70407        .52368       -.76327E-07    .22162E-02
   2  Prefactor     7.7884        1.0348        .74824E-06    .12085E-03
   3  Prefactor     5.3321        1.7854        .51483E-05   -.30583E-02
   4  norm          10.545        1.5107       -.27723E-05    .46991E-02
   5  Prefactor     2.0984        2.1380       -.15357E-05   -.77115E-03
   6  Prefactor     .10112E-03    15.201       -.37850E-04** at limit **
   7  norm          3.4864        1.8691       -.23781E-06   -.70000E-03
   8  Prefactor     10.066        1.1733        .23907E-06   -.64096E-02
   9  Prefactor     .10016E-03    13.338        .49199E-05** at limit **
  10  norm          .71892        12.896       -.55206E-04   -.26532E-02
  11  Prefactor     .10000E-03    2.3646        .74128E-06** at limit **
  12  Prefactor     11.782        1.0206       -.45721E-06    .10337E-02
  13  Prefactor     .10072E-03    7.9484        .20877E-04** at limit **
  14  Prefactor     .10034E-03    7.4026        .46486E-05** at limit **
  15  Prefactor     3.6922        1.0799       -.16250E-05   -.75441E-04
  16  Prefactor     .10000E-03    2.2467       -.53476E-06** at limit **
  17  Prefactor     5.8687        3.0159       -.43391E-05   -.64120E-03
  18  norm          14.179        1.0237        .38250E-06    .12600E-04
  19  Normalizat    1.2483        .19704        .75506E-05   -.48252E-04
  20  Prefactor     .76464        .19033       -.21583E-05   -.10215E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.704071
  Prefactor  = 7.78844
  Prefactor  = 5.33211
  norm       = 10.5447
  Prefactor  = 2.09836
  Prefactor  = 0.000101117
  norm       = 3.48636
  Prefactor  = 10.0657
  Prefactor  = 0.000100165
  norm       = 0.718917
  Prefactor  = 0.0001
  Prefactor  = 11.7824
  Prefactor  = 0.000100719
  Prefactor  = 0.000100336
  Prefactor  = 3.69223
  Prefactor  = 0.0001
  Prefactor  = 5.86869
  norm       = 14.179
  Normalizat = 1.24829
  Prefactor  = 0.764644
 **********
 **   18 **HESSE 
 **********

 FCN=   5792.612     FROM HESSE     STATUS=OK           343 CALLS     1739 TOTAL
                     EDM=   .63E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .70407        .53135        .10455E-01   -1.5540    
   2  Prefactor     7.7884        9.7162        .35917E-02   -1.5150    
   3  Prefactor     5.3321        19.934        .43543E-02   -1.5246    
   4  norm          10.545        34.356        .30839E-02   -1.5058    
   5  Prefactor     2.0984        2.1346        .71225E-02   -1.5418    
   6  Prefactor     .10112E-03    25.386        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          3.4864        1.8769        .54139E-02   -1.5335    
   8  Prefactor     10.066        19.910        .31579E-02   -1.5073    
   9  Prefactor     .10016E-03    14.177        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .71892        5.7572        .85813E-01   -1.5538    
  11  Prefactor     .10000E-03    2.3319        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     11.782        27.427        .29175E-02   -1.5021    
  13  Prefactor     .10072E-03    20.372        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10034E-03    21.787        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     3.6922        6.0383        .52540E-02   -1.5324    
  16  Prefactor     .10000E-03    2.2447        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     5.8687        3.0421        .41444E-02   -1.5223    
  18  norm          14.179        9.5228        .26589E-02   -1.4955    
  19  Normalizat    1.2483        .17796        .49819E-01   -.85124    
  20  Prefactor     .76464        .16589        .43254E-01   -1.0105    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.32684e-07
Minuit parameter uncertainties:
  1  0.531358
  2  9.71819
  3  19.9585
  4  34.4204
  5  2.13464
  6  0.0106543
  7  1.87698
  8  19.9235
  9  0.00305562
  10  4.06913
  11  3.54415e-05
  12  27.456
  13  0.00765491
  14  0.005412
  15  6.03934
  16  8.72765e-06
  17  3.0422
  18  9.52377
  19  0.178045
  20  0.165997
Done.

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

Extracting fit parameters...

4FGL J0924.0+2816
   Spectrum: PowerLaw
276    Prefactor:  1.000e-04  3.544e-05  1.000e-04  1.000e+04 ( 1.000e-12)
277        Index:  2.506e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
278        Scale:  7.290e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
535    Prefactor:  7.646e-01  1.660e-01  0.000e+00  1.000e+01 ( 1.000e+00)
536        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
537        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
534   Normalization:  1.248e+00  1.780e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 141.005 28.276
Photon Flux Upper Limit: 7.62e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.93e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/620408/likelihoodResults_665712001_665971201_4FGL_J0924.0+2816_daily_bin1645.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) = 5792.61392452
delta logL = -0.0020127034486

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5792.61191199
delta logL = -1.75366039912e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5135       1.0000          .0000       10.000    
     3 'Normalizat'    1.2483       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .76471       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5380E+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=   5792.612     FROM MIGRAD    STATUS=FAILED        88 CALLS      239 TOTAL
                     EDM=   .91E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    566.22        .11361E-02** at limit **
   2  Index         2.5216        7.2166        .50000       -.30477E-04
   3  Normalizat    1.2483        .16293        .22025E-03   -.82588E-05
   4  Prefactor     .76464        .15943        .26773E-03    .50957E-06
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5792.612     FROM SIMPLEX   STATUS=UNCHANGED    185 CALLS      424 TOTAL
                     EDM=   .10E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    566.22        .26191E-03** at limit **
   2  Index         2.5216        7.2166        .19440E-05   -.30477E-04
   3  Normalizat    1.2483        .16293        .23727E-06   -.82588E-05
   4  Prefactor     .76464        .15943        .17186E-06    .50957E-06
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5792.612     FROM MIGRAD    STATUS=CONVERGED     34 CALLS      458 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.4962        .22722E-03** at limit **
   2  Index         2.5218        6.2600        .50000       -.30480E-04
   3  Normalizat    1.2483        .19280        .88100E-05   -.19873E-04
   4  Prefactor     .76464        .18906        .10709E-04   -.67942E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100002
  Index      = 2.52183
  Normalizat = 1.24828
  Prefactor  = 0.764645
 **********
 **   18 **HESSE 
 **********

 FCN=   5792.612     FROM HESSE     STATUS=OK            29 CALLS      487 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.3802        .45444E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5218        6.2576        .50000       -.51856    
   3  Normalizat    1.2483        .19307        .17620E-05   -.85124    
   4  Prefactor     .76464        .18930        .21418E-05   -1.0104    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.76068e-09
Minuit parameter uncertainties:
  1  0.000143684
  2  4.34716
  3  0.193176
  4  0.189464
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/620408': 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) = 5792.61191171
delta logL = 1.12376255856e-07

Extracting fit parameters...

4FGL J0924.0+2816
   Spectrum: PowerLaw
276    Prefactor:  1.000e-04  1.437e-04  1.000e-04  1.000e+04 ( 1.000e-12)
277        Index:  2.522e+00  4.347e+00  0.000e+00  1.000e+01 (-1.000e+00)
278        Scale:  7.290e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
535    Prefactor:  7.646e-01  1.895e-01  0.000e+00  1.000e+01 ( 1.000e+00)
536        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
537        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
534   Normalization:  1.248e+00  1.932e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 141.005 28.276

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/620408/cmap_HighResolution_665712001_665971201_4FGL_J0924.0+2816_daily_bin1645.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.93e-03', job_status='DONE', photon_flux_upper_limit='7.62e-08', time_completed='2022-02-08 00:22:11.335208', job_id='620408', GAL2='0.76', fit_tolerance='1e-08', EG2='1.25', EG='1.25', time_epoch_completed='1644308531.34', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.76', dlogl='1.12e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.51' WHERE bin_id='1645' AND source_name='4FGL J0924.0+2816' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Feb  8 00:22:11 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0041>
Subject: Job 620478: <4FGL_J0924.0+2816_daily_bin1645> in cluster <slac> Done

Job <4FGL_J0924.0+2816_daily_bin1645> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Tue Feb  8 00:07:20 2022
Job was executed on host(s) <bullet0041>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Feb  8 00:07:37 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Feb  8 00:07:37 2022
Terminated at Tue Feb  8 00:21:53 2022
Results reported at Tue Feb  8 00:21:53 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0924.0+2816_daily_bin1645 141.005 28.2755 665712001 665971201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0924.0+2816 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   546.51 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             267.16 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   856 sec.
    Turnaround time :                            873 sec.

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


------------------------------------------------------------
Sender: LSF System <scs@bullet0168>
Subject: Job 620408: <4FGL_J0924.0+2816_daily_bin1645> in cluster <slac> Done

Job <4FGL_J0924.0+2816_daily_bin1645> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Feb  8 00:07:16 2022
Job was executed on host(s) <bullet0168>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Feb  8 00:07:30 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Feb  8 00:07:30 2022
Terminated at Tue Feb  8 00:22:12 2022
Results reported at Tue Feb  8 00:22:12 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0924.0+2816_daily_bin1645 141.005 28.2755 665712001 665971201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0924.0+2816 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   446.57 sec.
    Max Memory :                                 1185 MB
    Average Memory :                             222.94 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   881 sec.
    Turnaround time :                            896 sec.

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

