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


Performing analysis on: 4FGL_J0924.0+2816_weekly_bin731
RA = 141.005, Dec = 28.2755
tmin = 681091201, tmax = 681696001
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='116038', job_status='RUN', time_executed='2022-08-09 00:10:42.774512', time_epoch_executed='1660029042.77' WHERE source_name='4FGL J0924.0+2816' and cadence='weekly' and bin_id='731'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/116038

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/116038/ft1_4FGL_J0924.0+2816_weekly_bin731.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/116038/ft2_4FGL_J0924.0+2816_weekly_bin731.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/116038/ft1_4FGL_J0924.0+2816_weekly_bin731.fits outfile=/scratch/kocevski/116038/ft1_filteredMKT_4FGL_J0924.0+2816_weekly_bin731.fits ra=141.005 dec=28.2755 rad=12.0 tmin=681091201.0 tmax=681696001.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 16.71
user 5.45
sys 0.27

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/116038/ft2_4FGL_J0924.0+2816_weekly_bin731.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/116038/ft1_filteredMKT_4FGL_J0924.0+2816_weekly_bin731.fits evtable="EVENTS" outfile="/scratch/kocevski/116038/ft1_filtered_4FGL_J0924.0+2816_weekly_bin731.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 5.67
user 0.38
sys 0.19

Number of photons that the gtmktime cut: 157

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/116038/ft1_filtered_4FGL_J0924.0+2816_weekly_bin731.fits" evtable="EVENTS" scfile=/scratch/kocevski/116038/ft2_4FGL_J0924.0+2816_weekly_bin731.fits sctable="SC_DATA" outfile=/scratch/kocevski/116038/ltcube_681091201_681696001_4FGL_J0924.0+2816_weekly_bin731.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/116038/ft2_4FGL_J0924.0+2816_weekly_bin731.fits
.....................!
real 42.83
user 36.75
sys 0.43

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/116038/ft1_filtered_4FGL_J0924.0+2816_weekly_bin731.fits evtable="EVENTS" scfile=/scratch/kocevski/116038/ft2_4FGL_J0924.0+2816_weekly_bin731.fits sctable="SC_DATA" expcube=/scratch/kocevski/116038/ltcube_681091201_681696001_4FGL_J0924.0+2816_weekly_bin731.fits outfile=/scratch/kocevski/116038/expmap_681091201_681696001_4FGL_J0924.0+2816_weekly_bin731.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/116038/ltcube_681091201_681696001_4FGL_J0924.0+2816_weekly_bin731.fits
.....................!
real 193.41
user 187.53
sys 5.17

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/116038/ft1_filtered_4FGL_J0924.0+2816_weekly_bin731.fits scfile=/scratch/kocevski/116038/ft2_4FGL_J0924.0+2816_weekly_bin731.fits outfile=/scratch/kocevski/116038/cmap_681091201_681696001_4FGL_J0924.0+2816_weekly_bin731.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.56
user 0.40
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/116038/ft1_filtered_4FGL_J0924.0+2816_weekly_bin731.fits scfile=/scratch/kocevski/116038/ft2_4FGL_J0924.0+2816_weekly_bin731.fits outfile=/scratch/kocevski/116038/cmap_HighResolution_681091201_681696001_4FGL_J0924.0+2816_weekly_bin731.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.58
user 0.40
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/116038/ft1_filtered_4FGL_J0924.0+2816_weekly_bin731.fits', '/scratch/kocevski/116038/ft2_4FGL_J0924.0+2816_weekly_bin731.fits', expMap='/scratch/kocevski/116038/expmap_681091201_681696001_4FGL_J0924.0+2816_weekly_bin731.fits', expCube='/scratch/kocevski/116038/ltcube_681091201_681696001_4FGL_J0924.0+2816_weekly_bin731.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/116038/Model_4FGL_J0924.0+2816_weekly_bin731.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/116038/ft1_filtered_4FGL_J0924.0+2816_weekly_bin731.fits
Spacecraft file(s): /scratch/kocevski/116038/ft2_4FGL_J0924.0+2816_weekly_bin731.fits
Exposure map: /scratch/kocevski/116038/expmap_681091201_681696001_4FGL_J0924.0+2816_weekly_bin731.fits
Exposure cube: /scratch/kocevski/116038/ltcube_681091201_681696001_4FGL_J0924.0+2816_weekly_bin731.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/116038/Model_4FGL_J0924.0+2816_weekly_bin731.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 1845.15519755

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .11643E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .30304E-02   1.0000         .10000E-03   10000.    
     3 'Prefactor '    329.49       1.0000         .10000E-03   10000.    
     4 'norm      '    147.94       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    12.186       1.0000         .10000E-03   10000.    
     8 'Prefactor '    42.782       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .14845E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    18.740       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    160.39       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    7.1217       1.0000         .10000E-03   10000.    
    16 'Prefactor '    16.885       1.0000         .10000E-03   10000.    
    17 'Prefactor '    4.6457       1.0000         .10000E-03   10000.    
    18 'norm      '    17.571       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .31904       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.1857       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=   1845.093     FROM MIGRAD    STATUS=FAILED       755 CALLS     2656 TOTAL
                     EDM=   .91E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10001E-03    116.01        .18142E-02** at limit **
   2  Prefactor     4.0344        9968.5        .18266E-01    .10081E-03
   3  Prefactor     328.96        251.31        .11204E-03    .55675E-04
   4  norm          144.66        811.41        .16566E-03    .56857E-04
   5  Prefactor     .10000E-03    5.0486        .94211E-03** at limit **
   6  Prefactor     .10000E-03    39.782        .18142E-02** at limit **
   7  norm          12.189        8.2555        .97904E-04   -.22034E-03
   8  Prefactor     42.788        43.805        .61290E-04   -.42654E-04
   9  Prefactor     .10000E-03    385.84        .18142E-02** at limit **
  10  norm          18.748        19.267        .92521E-04   -.75845E-04
  11  Prefactor     .10000E-03    6.1275        .10364E-02** at limit **
  12  Prefactor     160.43        84.370        .31840E-04   -.18488E-03
  13  Prefactor     .10000E-03    67.799        .18142E-02** at limit **
  14  Prefactor     .10000E-03    32.801        .18142E-02** at limit **
  15  Prefactor     7.1244        12.668        .15032E-03   -.14068E-04
  16  Prefactor     16.897        17.324        .97468E-04   -.20234E-03
  17  Prefactor     4.6465        3.3889        .62861E-04   -.27079E-03
  18  norm          17.574        13.229        .95548E-04   -.56250E-04
  19  Normalizat    .31852        .39573        .40030E-03   -.69440E-04
  20  Prefactor     1.1860        .37462        .23447E-03   -.21830E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   1845.093     FROM SIMPLEX   STATUS=UNCHANGED    968 CALLS     3624 TOTAL
                     EDM=   .19E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10001E-03    116.01        .10068E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     4.0344        9968.5        .34112E-05   -1.5306    
   3  Prefactor     328.96        251.31        .79179E-07   -1.2060    
   4  norm          144.66        811.41        .12126E-06   -1.3297    
   5  Prefactor     .10000E-03    5.0486        .25874E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    39.782        .62590E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          12.189        8.2555        .91187E-07   -1.5010    
   8  Prefactor     42.788        43.805        .87325E-07   -1.4399    
   9  Prefactor     .10000E-03    385.84        .24675E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          18.748        19.267        .90653E-07   -1.4842    
  11  Prefactor     .10000E-03    6.1275        .22307E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     160.43        84.370        .83130E-07   -1.3168    
  13  Prefactor     .10000E-03    67.799        .53608E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    32.801        .87781E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     7.1244        12.668        .91926E-07   -1.5174    
  16  Prefactor     16.897        17.324        .90178E-07   -1.4886    
  17  Prefactor     4.6465        3.3889        .92553E-07   -1.5277    
  18  norm          17.574        13.229        .90090E-07   -1.4869    
  19  Normalizat    .31852        .39573        .73780E-07   -1.2175    
  20  Prefactor     1.1860        .37462        .52565E-07   -.86764    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   1845.093     FROM MIGRAD    STATUS=CONVERGED    277 CALLS     3901 TOTAL
                     EDM=   .24E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    115.88        .36285E-03** at limit **
   2  Prefactor     4.0463        8815.0        .36532E-02    .31058E-05
   3  Prefactor     328.96        238.12        .22409E-04    .76861E-05
   4  norm          144.65        445.72        .33132E-04    .15784E-05
   5  Prefactor     .10000E-03    5.0487        .18842E-03** at limit **
   6  Prefactor     .10000E-03    39.782        .36285E-03** at limit **
   7  norm          12.189        8.2476        .19581E-04   -.14425E-03
   8  Prefactor     42.788        43.802        .12258E-04   -.27267E-04
   9  Prefactor     .10000E-03    385.86        .36285E-03** at limit **
  10  norm          18.748        19.234        .37009E-05   -.48229E-04
  11  Prefactor     .10000E-03    6.1278        .20729E-03** at limit **
  12  Prefactor     160.43        84.215        .63681E-05   -.12309E-03
  13  Prefactor     .10000E-03    67.800        .36285E-03** at limit **
  14  Prefactor     .10000E-03    32.801        .36285E-03** at limit **
  15  Prefactor     7.1244        12.660        .60126E-05   -.14086E-04
  16  Prefactor     16.897        17.194        .38987E-05   -.12728E-03
  17  Prefactor     4.6465        3.3859        .25144E-05   -.17407E-03
  18  norm          17.574        13.219        .38219E-05   -.36439E-04
  19  Normalizat    .31852        .38548        .16012E-04   -.63156E-04
  20  Prefactor     1.1860        .37099        .46894E-04   -.16681E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100003
  Prefactor  = 4.04629
  Prefactor  = 328.961
  norm       = 144.646
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 12.1888
  Prefactor  = 42.7885
  Prefactor  = 0.0001
  norm       = 18.7477
  Prefactor  = 0.0001
  Prefactor  = 160.427
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.12438
  Prefactor  = 16.8972
  Prefactor  = 4.64647
  norm       = 17.5741
  Normalizat = 0.318521
  Prefactor  = 1.18599
 **********
 **   18 **HESSE 
 **********

 FCN=   1845.093     FROM HESSE     STATUS=OK           273 CALLS     4174 TOTAL
                     EDM=   .24E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    115.88        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     4.0463        8487.8        .14613E-03   -1.5306    
   3  Prefactor     328.96        236.89        .44817E-05   -1.2060    
   4  norm          144.65        418.75        .66265E-05   -1.3297    
   5  Prefactor     .10000E-03    5.0487        .37685E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    39.782        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          12.189        8.2469        .39162E-05   -1.5010    
   8  Prefactor     42.788        43.797        .24516E-05   -1.4399    
   9  Prefactor     .10000E-03    385.86        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          18.748        19.224        .74017E-06   -1.4842    
  11  Prefactor     .10000E-03    6.1278        .41458E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     160.43        84.135        .12736E-05   -1.3168    
  13  Prefactor     .10000E-03    67.800        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    32.801        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     7.1244        12.653        .12025E-05   -1.5174    
  16  Prefactor     16.897        17.177        .77974E-06   -1.4886    
  17  Prefactor     4.6465        3.3852        .50289E-06   -1.5277    
  18  norm          17.574        13.219        .76438E-06   -1.4869    
  19  Normalizat    .31852        .38436        .32024E-05   -1.2175    
  20  Prefactor     1.1860        .37065        .93789E-05   -.86763    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.36618e-10
Minuit parameter uncertainties:
  1  0.00119702
  2  405.862
  3  237.593
  4  427.845
  5  1.8168e-06
  6  1.86543e-05
  7  8.2477
  8  43.8295
  9  0.000744245
  10  19.2301
  11  2.7803e-05
  12  84.1977
  13  6.59038e-05
  14  1.76304e-06
  15  12.6573
  16  17.1817
  17  3.38537
  18  13.221
  19  0.387605
  20  0.371464
Done.

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

Extracting fit parameters...

4FGL J0924.0+2816
   Spectrum: PowerLaw
276    Prefactor:  1.000e-04  2.780e-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:  1.186e+00  3.715e-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:  3.185e-01  3.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: 2.41e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.87e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/116038/likelihoodResults_681091201_681696001_4FGL_J0924.0+2816_weekly_bin731.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) = 1845.09337402
delta logL = -0.000750190224608

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 1845.09262375
delta logL = 7.93245362729e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10067E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4854       1.0000          .0000       10.000    
     3 'Normalizat'    .31849       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1860       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.

 FCN=   1845.093     FROM MIGRAD    STATUS=CONVERGED    102 CALLS      260 TOTAL
                     EDM=   .32E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    48.307        .10548E-01** at limit **
   2  Index         2.0121        6.8484        .50000        .24228E-06
   3  Normalizat    .31852        .18422E-01    .40062E-03   -.56500E-04
   4  Prefactor     1.1860        .20213E-01    .23445E-03   -.88012E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.01215
  Normalizat = 0.318519
  Prefactor  = 1.18599
 **********
 **   18 **HESSE 
 **********

 FCN=   1845.093     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      289 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    411.49        .11723E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0121        8.9813        .50000       -.64047    
   3  Normalizat    .31852        .57041E-01    .16025E-04   -1.2175    
   4  Prefactor     1.1860        .62595E-01    .46889E-04   -.86763    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.77683e-09
Minuit parameter uncertainties:
  1  0.000145388
  2  1024.32
  3  0.0570515
  4  0.0625986
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/116038': 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) = 1845.09262205
delta logL = 1.78112532012e-06

Extracting fit parameters...

4FGL J0924.0+2816
   Spectrum: PowerLaw
276    Prefactor:  1.000e-04  1.454e-04  1.000e-04  1.000e+04 ( 1.000e-12)
277        Index:  2.012e+00  1.024e+03  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:  1.186e+00  6.260e-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:  3.185e-01  5.705e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/116038/cmap_HighResolution_681091201_681696001_4FGL_J0924.0+2816_weekly_bin731.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.87e-02', job_status='DONE', photon_flux_upper_limit='2.41e-07', time_completed='2022-08-09 00:19:15.286189', job_id='116038', GAL2='1.19', fit_tolerance='1e-08', EG2='0.32', EG='0.32', time_epoch_completed='1660029555.29', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.19', dlogl='1.78e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.51' WHERE bin_id='731' AND source_name='4FGL J0924.0+2816' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Aug  9 00:19:15 PDT 2022

eekly';

Database successfully updated.


Analysis Complete.


Tue Aug  9 00:16:00 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0280>
Subject: Job 116024: <4FGL_J0924.0+2816_weekly_bin731> in cluster <slac> Done

Job <4FGL_J0924.0+2816_weekly_bin731> was submitted from host <rhel6-64n> by user <kocevski> in cluster <slac> at Tue Aug  9 00:06:01 2022
Job was executed on host(s) <bullet0280>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug  9 00:06:21 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Aug  9 00:06:21 2022
Terminated at Tue Aug  9 00:16:01 2022
Results reported at Tue Aug  9 00:16:01 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0924.0+2816_weekly_bin731 141.005 28.2755 681091201 681696001 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 :                                   467.00 sec.
    Max Memory :                                 621 MB
    Average Memory :                             274.57 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   579 sec.
    Turnaround time :                            600 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0139>
Subject: Job 116038: <4FGL_J0924.0+2816_weekly_bin731> in cluster <slac> Done

Job <4FGL_J0924.0+2816_weekly_bin731> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Aug  9 00:06:01 2022
Job was executed on host(s) <bullet0139>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug  9 00:06:21 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Aug  9 00:06:21 2022
Terminated at Tue Aug  9 00:19:15 2022
Results reported at Tue Aug  9 00:19:15 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0924.0+2816_weekly_bin731 141.005 28.2755 681091201 681696001 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 :                                   474.00 sec.
    Max Memory :                                 1096 MB
    Average Memory :                             235.14 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   774 sec.
    Turnaround time :                            794 sec.

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

