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


Performing analysis on: 4FGL_J0924.0+2816_daily_bin1211
RA = 141.005, Dec = 28.2755
tmin = 553219201, tmax = 553478401
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='222217', job_status='RUN', time_executed='2021-08-31 11:31:38.548415', time_epoch_executed='1630434698.55' WHERE source_name='4FGL J0924.0+2816' and cadence='daily' and bin_id='1211'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/222217

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/222217/ft1_4FGL_J0924.0+2816_daily_bin1211.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/222217/ft2_4FGL_J0924.0+2816_daily_bin1211.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/222217/ft1_4FGL_J0924.0+2816_daily_bin1211.fits outfile=/scratch/kocevski/222217/ft1_filteredMKT_4FGL_J0924.0+2816_daily_bin1211.fits ra=141.005 dec=28.2755 rad=12.0 tmin=553219201.0 tmax=553478401.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 2.78
user 2.56
sys 0.16

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/222217/ft2_4FGL_J0924.0+2816_daily_bin1211.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/222217/ft1_filteredMKT_4FGL_J0924.0+2816_daily_bin1211.fits evtable="EVENTS" outfile="/scratch/kocevski/222217/ft1_filtered_4FGL_J0924.0+2816_daily_bin1211.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.62
user 0.33
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/222217/ft1_filtered_4FGL_J0924.0+2816_daily_bin1211.fits" evtable="EVENTS" scfile=/scratch/kocevski/222217/ft2_4FGL_J0924.0+2816_daily_bin1211.fits sctable="SC_DATA" outfile=/scratch/kocevski/222217/ltcube_553219201_553478401_4FGL_J0924.0+2816_daily_bin1211.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/222217/ft2_4FGL_J0924.0+2816_daily_bin1211.fits
.....................!
real 13.39
user 12.66
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/222217/ft1_filtered_4FGL_J0924.0+2816_daily_bin1211.fits evtable="EVENTS" scfile=/scratch/kocevski/222217/ft2_4FGL_J0924.0+2816_daily_bin1211.fits sctable="SC_DATA" expcube=/scratch/kocevski/222217/ltcube_553219201_553478401_4FGL_J0924.0+2816_daily_bin1211.fits outfile=/scratch/kocevski/222217/expmap_553219201_553478401_4FGL_J0924.0+2816_daily_bin1211.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/222217/ltcube_553219201_553478401_4FGL_J0924.0+2816_daily_bin1211.fits
.....................!
real 194.70
user 185.67
sys 5.48

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/222217/ft1_filtered_4FGL_J0924.0+2816_daily_bin1211.fits scfile=/scratch/kocevski/222217/ft2_4FGL_J0924.0+2816_daily_bin1211.fits outfile=/scratch/kocevski/222217/cmap_553219201_553478401_4FGL_J0924.0+2816_daily_bin1211.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.40
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/222217/ft1_filtered_4FGL_J0924.0+2816_daily_bin1211.fits scfile=/scratch/kocevski/222217/ft2_4FGL_J0924.0+2816_daily_bin1211.fits outfile=/scratch/kocevski/222217/cmap_HighResolution_553219201_553478401_4FGL_J0924.0+2816_daily_bin1211.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 1.59
user 0.38
sys 0.18

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    30.906       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .62547E-02   1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.4363       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .14172E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.4507       1.0000         .10000E-03   10000.    
     9 'Prefactor '    9.6049       1.0000         .10000E-03   10000.    
    10 'norm      '    .10214E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10216E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10234E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    48.126       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10348E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10071E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    6.2892       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .91751       1.0000         .10000E-03   10000.    
    18 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.1887       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0493       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=   3301.020     FROM MIGRAD    STATUS=CONVERGED    742 CALLS     2635 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1.6471        .11146E-02** at limit **
   2  Prefactor     30.903        27.119        .72072E-04   -.75510E-04
   3  Prefactor     .10000E-03    13.200        .18142E-02** at limit **
   4  norm          .10001E-03    74.676        .14036    ** at limit **
   5  Prefactor     3.4369        4.5548        .13717E-03   -.16203E-03
   6  Prefactor     .10001E-03    165.18        .18142E-02** at limit **
   7  norm          .10000E-03    1.0047        .56105E-03** at limit **
   8  Prefactor     2.4274        49.918        .26130E-03   -.22211E-04
   9  Prefactor     9.5951        138.91        .12930E-03   -.40356E-04
  10  norm          .10000E-03    5.4356        .13030E-02** at limit **
  11  Prefactor     .10000E-03    12.541        .18714E-02** at limit **
  12  Prefactor     .10000E-03    57.051        .18142E-02** at limit **
  13  Prefactor     48.126        66.091        .57802E-04   -.22304E-04
  14  Prefactor     .10000E-03    52.589        .18142E-02** at limit **
  15  Prefactor     .10000E-03    4.8502        .12301E-02** at limit **
  16  Prefactor     6.2902        11.570        .16006E-03   -.12984E-03
  17  Prefactor     .91793        3.0717        .16819E-03   -.54439E-03
  18  norm          .10000E-03    3.0653        .98163E-03** at limit **
  19  Normalizat    1.1888        .28402        .23619E-03   -.60417E-03
  20  Prefactor     1.0491        .28579        .25759E-03   -.49885E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100002
  Prefactor  = 30.9032
  Prefactor  = 0.0001
  norm       = 0.000100013
  Prefactor  = 3.43688
  Prefactor  = 0.000100013
  norm       = 0.0001
  Prefactor  = 2.42739
  Prefactor  = 9.59507
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 48.1258
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.29023
  Prefactor  = 0.917929
  norm       = 0.0001
  Normalizat = 1.18881
  Prefactor  = 1.04909
 **********
 **   18 **HESSE 
 **********

 FCN=   3301.020     FROM HESSE     STATUS=OK           281 CALLS     2916 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.6485        .22292E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     30.903        27.116        .14414E-04   -1.4596    
   3  Prefactor     .10000E-03    13.201        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10001E-03    74.618        .14043       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     3.4369        4.5548        .54867E-05   -1.5337    
   6  Prefactor     .10001E-03    165.20        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    1.0047        .11221E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     2.4274        49.895        .10452E-04   -1.5396    
   9  Prefactor     9.5951        138.98        .51722E-05   -1.5088    
  10  norm          .10000E-03    5.4363        .26059E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    12.644        .37428E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    57.068        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     48.126        66.091        .11560E-04   -1.4319    
  14  Prefactor     .10000E-03    52.591        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    4.8509        .24602E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     6.2902        11.569        .64025E-05   -1.5206    
  17  Prefactor     .91793        3.0706        .67278E-05   -1.5516    
  18  norm          .10000E-03    3.0653        .19633E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.1888        .28419        .47237E-04   -.86949    
  20  Prefactor     1.0491        .28602        .51518E-04   -.91111    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.01845e-09
Minuit parameter uncertainties:
  1  0.000106194
  2  27.1273
  3  3.75931e-05
  4  0.00194021
  5  4.55526
  6  0.00294606
  7  2.66863e-06
  8  22.0309
  9  73.2398
  10  5.6334e-05
  11  0.000217701
  12  0.000293025
  13  66.1916
  14  0.000261859
  15  1.86029e-06
  16  11.5732
  17  3.07113
  18  3.37718e-06
  19  0.28456
  20  0.28644
Done.

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

Extracting fit parameters...

4FGL J0924.0+2816
   Spectrum: PowerLaw
276    Prefactor:  1.000e-04  2.177e-04  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.049e+00  2.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.189e+00  2.846e-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: 1.03e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.04e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/222217/likelihoodResults_553219201_553478401_4FGL_J0924.0+2816_daily_bin1211.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) = 3301.02087777
delta logL = -0.000380217458314

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3301.02047328
delta logL = 2.42698870352e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .14603E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3583       1.0000          .0000       10.000    
     3 'Normalizat'    1.1889       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0490       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   3300.915     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      269 TOTAL
                     EDM=   .15E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.6183        11.860         .0000        .80205E-02
   2  Index         1.6917        1.6887         .0000       -.10866E-04
   3  Normalizat    1.1960        .22963         .0000        .89505E-04
   4  Prefactor     1.0346        .24144         .0000        .23524E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.61829
  Index      = 1.6917
  Normalizat = 1.19601
  Prefactor  = 1.03456
 **********
 **   18 **HESSE 
 **********

 FCN=   3300.915     FROM HESSE     STATUS=OK            29 CALLS      298 TOTAL
                     EDM=   .40E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.6183        4.0775        .90107E-03   -1.5454    
   2  Index         1.6917        .97765        .12287E-01   -.72303    
   3  Normalizat    1.1960        .27167        .23555E-03   -.86726    
   4  Prefactor     1.0346        .28231        .25909E-03   -.91586    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.03043e-10
Minuit parameter uncertainties:
  1  4.07823
  2  0.989086
  3  0.271991
  4  0.282712
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/222217': 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) = 3300.91454515
delta logL = 0.105952406216

Extracting fit parameters...

4FGL J0924.0+2816
   Spectrum: PowerLaw
276    Prefactor:  1.618e+00  4.078e+00  1.000e-04  1.000e+04 ( 1.000e-12)
277        Index:  1.692e+00  9.891e-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.035e+00  2.827e-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.196e+00  2.720e-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/222217/cmap_HighResolution_553219201_553478401_4FGL_J0924.0+2816_daily_bin1211.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.04e-03', job_status='DONE', photon_flux_upper_limit='1.03e-07', time_completed='2021-08-31 11:40:50.590088', job_id='222217', GAL2='1.03', fit_tolerance='1e-08', EG2='1.20', EG='1.19', time_epoch_completed='1630435250.59', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.05', dlogl='1.06e-01', ts2='0.22', photon_index_error='0.00', photon_index='2.51' WHERE bin_id='1211' AND source_name='4FGL J0924.0+2816' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 11:40:50 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0144>
Subject: Job 222217: <4FGL_J0924.0+2816_daily_bin1211> in cluster <slac> Done

Job <4FGL_J0924.0+2816_daily_bin1211> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Tue Aug 31 11:26:36 2021
Job was executed on host(s) <bullet0144>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 31 11:26:55 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:55 2021
Terminated at Tue Aug 31 11:40:51 2021
Results reported at Tue Aug 31 11:40:51 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0924.0+2816_daily_bin1211 141.005 28.2755 553219201 553478401 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 :                                   470.06 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             274.88 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   836 sec.
    Turnaround time :                            855 sec.

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

