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


Performing analysis on: 4FGL_J0924.0+2816_daily_bin1221
RA = 141.005, Dec = 28.2755
tmin = 555811201, tmax = 556070401
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='222237', job_status='RUN', time_executed='2021-08-31 11:30:12.589393', time_epoch_executed='1630434612.59' WHERE source_name='4FGL J0924.0+2816' and cadence='daily' and bin_id='1221'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/222237

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/222237/ft1_4FGL_J0924.0+2816_daily_bin1221.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/222237/ft2_4FGL_J0924.0+2816_daily_bin1221.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/222237/ft1_4FGL_J0924.0+2816_daily_bin1221.fits outfile=/scratch/kocevski/222237/ft1_filteredMKT_4FGL_J0924.0+2816_daily_bin1221.fits ra=141.005 dec=28.2755 rad=12.0 tmin=555811201.0 tmax=556070401.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.17
user 3.39
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/222237/ft2_4FGL_J0924.0+2816_daily_bin1221.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/222237/ft1_filteredMKT_4FGL_J0924.0+2816_daily_bin1221.fits evtable="EVENTS" outfile="/scratch/kocevski/222237/ft1_filtered_4FGL_J0924.0+2816_daily_bin1221.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.10
user 0.34
sys 0.18

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/222237/ft1_filtered_4FGL_J0924.0+2816_daily_bin1221.fits" evtable="EVENTS" scfile=/scratch/kocevski/222237/ft2_4FGL_J0924.0+2816_daily_bin1221.fits sctable="SC_DATA" outfile=/scratch/kocevski/222237/ltcube_555811201_556070401_4FGL_J0924.0+2816_daily_bin1221.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/222237/ft2_4FGL_J0924.0+2816_daily_bin1221.fits
.....................!
real 14.60
user 11.56
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/222237/ft1_filtered_4FGL_J0924.0+2816_daily_bin1221.fits evtable="EVENTS" scfile=/scratch/kocevski/222237/ft2_4FGL_J0924.0+2816_daily_bin1221.fits sctable="SC_DATA" expcube=/scratch/kocevski/222237/ltcube_555811201_556070401_4FGL_J0924.0+2816_daily_bin1221.fits outfile=/scratch/kocevski/222237/expmap_555811201_556070401_4FGL_J0924.0+2816_daily_bin1221.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/222237/ltcube_555811201_556070401_4FGL_J0924.0+2816_daily_bin1221.fits
.....................!
real 195.24
user 185.65
sys 3.78

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/222237/ft1_filtered_4FGL_J0924.0+2816_daily_bin1221.fits scfile=/scratch/kocevski/222237/ft2_4FGL_J0924.0+2816_daily_bin1221.fits outfile=/scratch/kocevski/222237/cmap_555811201_556070401_4FGL_J0924.0+2816_daily_bin1221.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 1.89
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/222237/ft1_filtered_4FGL_J0924.0+2816_daily_bin1221.fits scfile=/scratch/kocevski/222237/ft2_4FGL_J0924.0+2816_daily_bin1221.fits outfile=/scratch/kocevski/222237/cmap_HighResolution_555811201_556070401_4FGL_J0924.0+2816_daily_bin1221.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 2.21
user 0.40
sys 0.17

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/222237/ft1_filtered_4FGL_J0924.0+2816_daily_bin1221.fits', '/scratch/kocevski/222237/ft2_4FGL_J0924.0+2816_daily_bin1221.fits', expMap='/scratch/kocevski/222237/expmap_555811201_556070401_4FGL_J0924.0+2816_daily_bin1221.fits', expCube='/scratch/kocevski/222237/ltcube_555811201_556070401_4FGL_J0924.0+2816_daily_bin1221.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/222237/Model_4FGL_J0924.0+2816_daily_bin1221.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/222237/ft1_filtered_4FGL_J0924.0+2816_daily_bin1221.fits
Spacecraft file(s): /scratch/kocevski/222237/ft2_4FGL_J0924.0+2816_daily_bin1221.fits
Exposure map: /scratch/kocevski/222237/expmap_555811201_556070401_4FGL_J0924.0+2816_daily_bin1221.fits
Exposure cube: /scratch/kocevski/222237/ltcube_555811201_556070401_4FGL_J0924.0+2816_daily_bin1221.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/222237/Model_4FGL_J0924.0+2816_daily_bin1221.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) = 7913.19830072

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.4074       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    36.175       1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.9915       1.0000         .10000E-03   10000.    
     6 'Prefactor '    13.100       1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    24.702       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10276E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .18895       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .16410E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .12714E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    26.472       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.1510       1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.2071       1.0000         .10000E-03   10000.    
    18 'norm      '    .10092E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.2879       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .94480       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.

 FCN=   7913.192     FROM MIGRAD    STATUS=CONVERGED    474 CALLS     2201 TOTAL
                     EDM=   .20E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.4069        .95415        .56411E-07    .66525E-04
   2  Prefactor     .10000E-03    8.7026       -.37436E-07** at limit **
   3  Prefactor     .10000E-03    19.695       -.78029E-07** at limit **
   4  norm          36.181        34.216        .10453E-06   -.19046E-05
   5  Prefactor     3.9911        3.3168        .15995E-06    .76281E-04
   6  Prefactor     13.090        28.598        .44972E-06    .11435E-03
   7  norm          .10000E-03    .68438       -.21467E-07** at limit **
   8  Prefactor     24.764        17.568        .40919E-06    .21844E-03
   9  Prefactor     .10000E-03    23.718       -.84716E-08** at limit **
  10  norm          .12291        6.7501       -.10993E-05    .40505E-03
  11  Prefactor     .10000E-03    1.4420       -.30777E-07** at limit **
  12  Prefactor     .10000E-03    10.172       -.29318E-07** at limit **
  13  Prefactor     .10000E-03    45.138        .24120E-06** at limit **
  14  Prefactor     26.697        58.403        .52902E-06    .22129E-04
  15  Prefactor     .10000E-03    1.8706       -.80719E-08** at limit **
  16  Prefactor     1.1479        5.0150        .28924E-05    .96565E-04
  17  Prefactor     1.2055        2.0320        .42342E-06    .68929E-04
  18  norm          .10000E-03    6.6885       -.39766E-07** at limit **
  19  Normalizat    1.2882        .15969       -.89228E-07    .10419E-03
  20  Prefactor     .94488        .15801       -.28207E-06    .66635E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.40693
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 36.1805
  Prefactor  = 3.99106
  Prefactor  = 13.0903
  norm       = 0.0001
  Prefactor  = 24.7639
  Prefactor  = 0.0001
  norm       = 0.122906
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 26.6973
  Prefactor  = 0.0001
  Prefactor  = 1.14793
  Prefactor  = 1.20552
  norm       = 0.0001
  Normalizat = 1.28819
  Prefactor  = 0.944879
 **********
 **   18 **HESSE 
 **********

 FCN=   7913.192     FROM HESSE     STATUS=OK           301 CALLS     2502 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.4069        .94246        .68572E-04   -1.5471    
   2  Prefactor     .10000E-03    8.7275        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    19.988        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          36.181        34.232        .66633E-04   -1.4504    
   5  Prefactor     3.9911        3.3153        .14168E-03   -1.5308    
   6  Prefactor     13.090        28.541        .11067E-03   -1.4984    
   7  norm          .10000E-03    1.2160        .14214E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     24.764        17.678        .80598E-04   -1.4712    
   9  Prefactor     .10000E-03    23.743        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .12291        7.2363        .55093E-01   -1.5638    
  11  Prefactor     .10000E-03    5.9645        .20319E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    10.190        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    45.191        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     26.697        58.403        .77862E-04   -1.4674    
  15  Prefactor     .10000E-03    1.8785        .11879E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     1.1479        5.0211        .38621E-03   -1.5494    
  17  Prefactor     1.2055        2.0110        .15573E-03   -1.5488    
  18  norm          .10000E-03    6.7862        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.2882        .18755        .23040E-03   -.83920    
  20  Prefactor     .94488        .18626        .26565E-03   -.94590    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.82812e-09
Minuit parameter uncertainties:
  1  0.942466
  2  1.83485e-06
  3  1.00248e-05
  4  34.2504
  5  3.31549
  6  28.5704
  7  4.24841e-06
  8  17.6817
  9  6.78983e-06
  10  1.88562
  11  4.37409e-05
  12  1.32689e-06
  13  5.1538e-05
  14  58.5286
  15  9.22589e-07
  16  4.80209
  17  2.01109
  18  5.11174e-07
  19  0.187644
  20  0.18639
Done.

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

Extracting fit parameters...

4FGL J0924.0+2816
   Spectrum: PowerLaw
276    Prefactor:  1.000e-04  4.374e-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:  9.449e-01  1.864e-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.288e+00  1.876e-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: 6.63e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.16e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/222237/likelihoodResults_555811201_556070401_4FGL_J0924.0+2816_daily_bin1221.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) = 7913.19276741
delta logL = -0.000798691298769

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7913.19196839
delta logL = 3.26975168718e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11052E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4406       1.0000          .0000       10.000    
     3 'Normalizat'    1.2883       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94478       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=   7913.192     FROM MIGRAD    STATUS=FAILED       108 CALLS      282 TOTAL
                     EDM=   .97E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .12751E-03    417.82        .21341E-02** at limit **
   2  Index         2.0149        5.7276        .50000        .94616E-05
   3  Normalizat    1.2882        .15589E-01    .23040E-03    .61680E-05
   4  Prefactor     .94488        .15756E-01    .26565E-03    .32011E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   7913.192     FROM SIMPLEX   STATUS=PROGRESS     127 CALLS      409 TOTAL
                     EDM=   .46E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10026E-03    417.82        .61807E-03** at limit **
   2  Index         2.0144        5.7276        .20240E-03    .94616E-05
   3  Normalizat    1.2882        .15589E-01    .35095E-05    .61680E-05
   4  Prefactor     .94487        .15756E-01    .28757E-05    .32011E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7913.192     FROM MIGRAD    STATUS=CONVERGED     42 CALLS      451 TOTAL
                     EDM=   .42E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10014E-03    1019.1        .85364E-03** at limit **
   2  Index         2.0016        8.8911        .50000        .41930E-05
   3  Normalizat    1.2882        .24532E-01    .92158E-05    .62297E-03
   4  Prefactor     .94488        .24795E-01    .10626E-04    .66290E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100144
  Index      = 2.00159
  Normalizat = 1.28819
  Prefactor  = 0.944881
 **********
 **   18 **HESSE 
 **********

 FCN=   7913.192     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      480 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10014E-03    6725.5        .17073E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0016        5.3749        .50000       -.64310    
   3  Normalizat    1.2882        .55720E-01    .18432E-05   -.83920    
   4  Prefactor     .94488        .56316E-01    .21252E-05   -.94590    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.94607e-09
Minuit parameter uncertainties:
  1  0.0476738
  2  755.024
  3  0.055723
  4  0.0563198
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/222237': 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): 102
logL (Free Index) = 7913.19196208
delta logL = 6.64384242555e-06

Extracting fit parameters...

4FGL J0924.0+2816
   Spectrum: PowerLaw
276    Prefactor:  1.001e-04  4.767e-02  1.000e-04  1.000e+04 ( 1.000e-12)
277        Index:  2.002e+00  7.550e+02  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:  9.449e-01  5.632e-02  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.288e+00  5.572e-02  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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/222237/cmap_HighResolution_555811201_556070401_4FGL_J0924.0+2816_daily_bin1221.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.16e-03', job_status='DONE', photon_flux_upper_limit='6.63e-08', time_completed='2021-08-31 11:42:32.097038', job_id='222237', GAL2='0.94', fit_tolerance='1e-08', EG2='1.29', EG='1.29', time_epoch_completed='1630435352.1', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.94', dlogl='6.64e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.51' WHERE bin_id='1221' AND source_name='4FGL J0924.0+2816' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 11:42:32 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0167>
Subject: Job 222237: <4FGL_J0924.0+2816_daily_bin1221> in cluster <slac> Done

Job <4FGL_J0924.0+2816_daily_bin1221> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Tue Aug 31 11:26:39 2021
Job was executed on host(s) <bullet0167>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 31 11:26:58 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Aug 31 11:26:58 2021
Terminated at Tue Aug 31 11:42:32 2021
Results reported at Tue Aug 31 11:42:32 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0924.0+2816_daily_bin1221 141.005 28.2755 555811201 556070401 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 :                                   679.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             240.24 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   934 sec.
    Turnaround time :                            953 sec.

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

