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


Performing analysis on: 4FGL_J0924.0+2816_daily_bin815
RA = 141.005, Dec = 28.2755
tmin = 450576001, tmax = 450835201
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='219625', job_status='RUN', time_executed='2021-08-31 11:21:38.932115', time_epoch_executed='1630434098.93' WHERE source_name='4FGL J0924.0+2816' and cadence='daily' and bin_id='815'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/219625

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/219625/ft1_4FGL_J0924.0+2816_daily_bin815.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/219625/ft2_4FGL_J0924.0+2816_daily_bin815.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/219625/ft1_4FGL_J0924.0+2816_daily_bin815.fits outfile=/scratch/kocevski/219625/ft1_filteredMKT_4FGL_J0924.0+2816_daily_bin815.fits ra=141.005 dec=28.2755 rad=12.0 tmin=450576001.0 tmax=450835201.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.48
user 3.29
sys 0.17

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/219625/ft1_filtered_4FGL_J0924.0+2816_daily_bin815.fits" evtable="EVENTS" scfile=/scratch/kocevski/219625/ft2_4FGL_J0924.0+2816_daily_bin815.fits sctable="SC_DATA" outfile=/scratch/kocevski/219625/ltcube_450576001_450835201_4FGL_J0924.0+2816_daily_bin815.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/219625/ft2_4FGL_J0924.0+2816_daily_bin815.fits
.....................!
real 11.95
user 11.64
sys 0.27

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/219625/ft1_filtered_4FGL_J0924.0+2816_daily_bin815.fits evtable="EVENTS" scfile=/scratch/kocevski/219625/ft2_4FGL_J0924.0+2816_daily_bin815.fits sctable="SC_DATA" expcube=/scratch/kocevski/219625/ltcube_450576001_450835201_4FGL_J0924.0+2816_daily_bin815.fits outfile=/scratch/kocevski/219625/expmap_450576001_450835201_4FGL_J0924.0+2816_daily_bin815.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/219625/ltcube_450576001_450835201_4FGL_J0924.0+2816_daily_bin815.fits
.....................!
real 190.81
user 186.83
sys 3.63

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/219625/ft1_filtered_4FGL_J0924.0+2816_daily_bin815.fits scfile=/scratch/kocevski/219625/ft2_4FGL_J0924.0+2816_daily_bin815.fits outfile=/scratch/kocevski/219625/cmap_450576001_450835201_4FGL_J0924.0+2816_daily_bin815.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.55
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/219625/ft1_filtered_4FGL_J0924.0+2816_daily_bin815.fits scfile=/scratch/kocevski/219625/ft2_4FGL_J0924.0+2816_daily_bin815.fits outfile=/scratch/kocevski/219625/cmap_HighResolution_450576001_450835201_4FGL_J0924.0+2816_daily_bin815.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.53
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .97774       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    15.892       1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    6.7865       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    1.4025       1.0000         .10000E-03   10000.    
     8 'Prefactor '    13.642       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10035E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.5052       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    52.315       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10967E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    21.019       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .96966       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0685       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=   5740.424     FROM MIGRAD    STATUS=CONVERGED    406 CALLS     1977 TOTAL
                     EDM=   .40E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .97790        .72924       -.78417E-08   -.18699E-03
   2  Prefactor     .10000E-03    5.8907       -.69518E-06** at limit **
   3  Prefactor     15.894        22.477        .93357E-06   -.14477E-04
   4  norm          .10000E-03    17.849       -.22136E-05** at limit **
   5  Prefactor     6.7866        4.0359        .14709E-05   -.24372E-05
   6  Prefactor     .10000E-03    12.224        .12536E-06** at limit **
   7  norm          1.4023        1.8225       -.17823E-06   -.55267E-03
   8  Prefactor     13.643        15.381        .30819E-06   -.16274E-04
   9  Prefactor     .10000E-03    32.851       -.11434E-04** at limit **
  10  norm          .10000E-03    3.1544       -.20137E-07** at limit **
  11  Prefactor     4.5044        3.8328       -.29482E-06   -.18910E-03
  12  Prefactor     .10000E-03    29.002        .15028E-04** at limit **
  13  Prefactor     .10000E-03    31.763       -.28676E-05** at limit **
  14  Prefactor     52.314        63.400       -.11070E-05   -.38133E-05
  15  Prefactor     .10000E-03    5.9572        .57258E-06** at limit **
  16  Prefactor     .10000E-03    2.3500        .37496E-08** at limit **
  17  Prefactor     .10000E-03    1.3558        .60658E-07** at limit **
  18  norm          21.019        10.593       -.14773E-07   -.28784E-04
  19  Normalizat    .96974        .18604       -.78576E-06   -.65589E-04
  20  Prefactor     1.0683        .17884        .75986E-08   -.83822E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.977903
  Prefactor  = 0.0001
  Prefactor  = 15.8937
  norm       = 0.0001
  Prefactor  = 6.78658
  Prefactor  = 0.0001
  norm       = 1.40231
  Prefactor  = 13.643
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 4.50437
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 52.3145
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 21.0189
  Normalizat = 0.969744
  Prefactor  = 1.06834
 **********
 **   18 **HESSE 
 **********

 FCN=   5740.424     FROM HESSE     STATUS=OK           291 CALLS     2268 TOTAL
                     EDM=   .79E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .97790        .72183        .53743E-04   -1.5510    
   2  Prefactor     .10000E-03    5.9002        .17954E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     15.894        22.502        .10047E-03   -1.4910    
   4  norm          .10000E-03    17.857        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     6.7866        4.0405        .11330E-03   -1.5187    
   6  Prefactor     .10000E-03    12.225        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          1.4023        1.7960        .11137E-03   -1.5471    
   8  Prefactor     13.643        15.387        .10844E-03   -1.4969    
   9  Prefactor     .10000E-03    32.795        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    3.1639        .13134E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     4.5044        3.8294        .12921E-03   -1.5283    
  12  Prefactor     .10000E-03    29.054        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    31.763        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     52.314        63.501        .55450E-04   -1.4260    
  15  Prefactor     .10000E-03    6.0561        .18049E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    2.3515        .11343E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    2.6362        .17065E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          21.019        10.593        .87365E-04   -1.4791    
  19  Normalizat    .96974        .21591        .25138E-03   -.94051    
  20  Prefactor     1.0683        .20773        .23891E-03   -.90485    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.86592e-11
Minuit parameter uncertainties:
  1  0.721837
  2  3.59261e-06
  3  22.5143
  4  6.68606e-06
  5  4.04063
  6  1.86698e-06
  7  1.79609
  8  15.3918
  9  1.87776e-05
  10  1.42645e-06
  11  3.82965
  12  1.36624e-05
  13  1.2852e-05
  14  63.583
  15  5.94441e-06
  16  6.53028e-07
  17  6.57595e-06
  18  10.5935
  19  0.216107
  20  0.207882
Done.

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

Extracting fit parameters...

4FGL J0924.0+2816
   Spectrum: PowerLaw
276    Prefactor:  4.504e+00  3.830e+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

GAL_V02
   Spectrum: PowerLaw
535    Prefactor:  1.068e+00  2.079e-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:  9.697e-01  2.161e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.60
Ra Dec: 141.005 28.276
Photon Index (Fixed Index): 2.51 +/- 0.00
Photon Flux (Fixed Index): 4.35e-08 +/- 3.69e-08
Energy Flux (Fixed Index): 1.25e-05 +/- 1.07e-05

TS (Fixed Index): 3.60
Ra Dec: 141.005 28.276
Photon Flux Upper Limit: 1.30e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.01e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/219625/likelihoodResults_450576001_450835201_4FGL_J0924.0+2816_daily_bin815.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): 0
logL (Free Index) = 5740.24749618
delta logL = 0.176826177111

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5740.24619159
delta logL = 0.17813076947

Fit tolerance = 1e-08

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

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

 FCN=   5740.246     FROM MIGRAD    STATUS=CONVERGED     46 CALLS      219 TOTAL
                     EDM=   .92E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.4522        200.89        .47710E-02   -.43601E-03
   2  Index         2.0604        5.1449        .25452       -.14740E-04
   3  Normalizat    .98899        .22481        .46029E-01    .64495E-05
   4  Prefactor     1.0587        .17744        .39427E-01    .22898E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.45221
  Index      = 2.06038
  Normalizat = 0.988986
  Prefactor  = 1.05868
 **********
 **   18 **HESSE 
 **********

 FCN=   5740.246     FROM HESSE     STATUS=OK            31 CALLS      250 TOTAL
                     EDM=   .95E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.4522        4.4823        .14361E-03   -1.5286    
   2  Index         2.0604        .77808        .97630E-02   -.62849    
   3  Normalizat    .98899        .20928        .24925E-03   -.93400    
   4  Prefactor     1.0587        .20615        .23990E-03   -.90798    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.48378e-11
Minuit parameter uncertainties:
  1  4.48259
  2  0.782965
  3  0.209453
  4  0.206309
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/219625': 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) = 5740.24619158
delta logL = 0.178130776637

Extracting fit parameters...

4FGL J0924.0+2816
   Spectrum: PowerLaw
276    Prefactor:  4.452e+00  4.483e+00  1.000e-04  1.000e+04 ( 1.000e-12)
277        Index:  2.060e+00  7.830e-01  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.059e+00  2.063e-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:  9.890e-01  2.095e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.95
Ra Dec: 141.005 28.276
Photon Index (Free Index): 2.06 +/- 0.78
Photon Flux (Free Index): 2.52e-08 +/- 3.83e-08
Energy Flux (Free Index): 1.51e-05 +/- 1.65e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/219625/cmap_HighResolution_450576001_450835201_4FGL_J0924.0+2816_daily_bin815.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.01e-02', comment='SUCCESS', photon_flux='4.35e-08', energy_flux2='1.51e-05', photon_flux_error='3.69e-08', dlogl='1.78e-01', energy_flux='1.25e-05', photon_flux2='2.52e-08', job_status='DONE', time_completed='2021-08-31 11:30:51.476716', photon_index_error2='0.78', photon_index2='2.06', ts='3.60', fit_tolerance='1e-08', GAL='1.07', photon_index_error='0.00', photon_flux_upper_limit='1.30e-07', energy_flux_error2='1.65e-05', EG='0.97', time_epoch_completed='1630434651.48', return_code='0', job_id='219625', GAL2='1.06', EG2='0.99', return_code2='0', energy_flux_error='1.07e-05', photon_flux_error2='3.83e-08', ts2='3.95', photon_index='2.51' WHERE bin_id='815' AND source_name='4FGL J0924.0+2816' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 11:30:51 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0044>
Subject: Job 219625: <4FGL_J0924.0+2816_daily_bin815> in cluster <slac> Done

Job <4FGL_J0924.0+2816_daily_bin815> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Aug 31 11:20:56 2021
Job was executed on host(s) <bullet0044>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 31 11:21:08 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:21:08 2021
Terminated at Tue Aug 31 11:30:52 2021
Results reported at Tue Aug 31 11:30:52 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0924.0+2816_daily_bin815 141.005 28.2755 450576001 450835201 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 :                                   548.28 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             347.16 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   583 sec.
    Turnaround time :                            596 sec.

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

