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


Performing analysis on: 4FGL_J0924.0+2816_daily_bin1445
RA = 141.005, Dec = 28.2755
tmin = 613872001, tmax = 614131201
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='223767', job_status='RUN', time_executed='2021-08-31 11:34:34.290890', time_epoch_executed='1630434874.29' WHERE source_name='4FGL J0924.0+2816' and cadence='daily' and bin_id='1445'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/223767

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

Retrieving the FT1 file...

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

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

Retrieving 45 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/223767/ft1_4FGL_J0924.0+2816_daily_bin1445.fits


Retrieving the FT1 file...

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

Retrieving 45 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/223767/ft2_4FGL_J0924.0+2816_daily_bin1445.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/223767/ft1_4FGL_J0924.0+2816_daily_bin1445.fits outfile=/scratch/kocevski/223767/ft1_filteredMKT_4FGL_J0924.0+2816_daily_bin1445.fits ra=141.005 dec=28.2755 rad=12.0 tmin=613872001.0 tmax=614131201.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.79
user 2.07
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/223767/ft1_filtered_4FGL_J0924.0+2816_daily_bin1445.fits" evtable="EVENTS" scfile=/scratch/kocevski/223767/ft2_4FGL_J0924.0+2816_daily_bin1445.fits sctable="SC_DATA" outfile=/scratch/kocevski/223767/ltcube_613872001_614131201_4FGL_J0924.0+2816_daily_bin1445.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/223767/ft2_4FGL_J0924.0+2816_daily_bin1445.fits
.....................!
real 13.95
user 12.75
sys 0.74

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/223767/ft1_filtered_4FGL_J0924.0+2816_daily_bin1445.fits evtable="EVENTS" scfile=/scratch/kocevski/223767/ft2_4FGL_J0924.0+2816_daily_bin1445.fits sctable="SC_DATA" expcube=/scratch/kocevski/223767/ltcube_613872001_614131201_4FGL_J0924.0+2816_daily_bin1445.fits outfile=/scratch/kocevski/223767/expmap_613872001_614131201_4FGL_J0924.0+2816_daily_bin1445.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/223767/ltcube_613872001_614131201_4FGL_J0924.0+2816_daily_bin1445.fits
.....................!
real 197.78
user 187.97
sys 5.81

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/223767/ft1_filtered_4FGL_J0924.0+2816_daily_bin1445.fits scfile=/scratch/kocevski/223767/ft2_4FGL_J0924.0+2816_daily_bin1445.fits outfile=/scratch/kocevski/223767/cmap_613872001_614131201_4FGL_J0924.0+2816_daily_bin1445.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.58
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/223767/ft1_filtered_4FGL_J0924.0+2816_daily_bin1445.fits scfile=/scratch/kocevski/223767/ft2_4FGL_J0924.0+2816_daily_bin1445.fits outfile=/scratch/kocevski/223767/cmap_HighResolution_613872001_614131201_4FGL_J0924.0+2816_daily_bin1445.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.60
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .13703E-01   1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.8016       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10969E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    13.102       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .44041       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .28343E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10393E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .70217E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    12.636       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    15.945       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.0411       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.2180       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=   7420.722     FROM MIGRAD    STATUS=CONVERGED    433 CALLS     2134 TOTAL
                     EDM=   .54E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .14196E-01    .34099       -.25261E-06    .64590E-04
   2  Prefactor     3.8001        7.6531        .59271E-05   -.47485E-03
   3  Prefactor     .10000E-03    24.561        .21760E-05** at limit **
   4  norm          13.098        33.328       -.23257E-05   -.21772E-04
   5  Prefactor     .10000E-03    1.8567        .12817E-06** at limit **
   6  Prefactor     .10000E-03    9.9537       -.20106E-06** at limit **
   7  norm          .43981        1.1177        .68071E-06    .35920E-03
   8  Prefactor     .10000E-03    6.2744        .62559E-07** at limit **
   9  Prefactor     .10000E-03    22.065       -.19629E-05** at limit **
  10  norm          .10000E-03    11.675        .53551E-06** at limit **
  11  Prefactor     .10000E-03    2.0581        .71259E-07** at limit **
  12  Prefactor     .10000E-03    8.8325        .20141E-06** at limit **
  13  Prefactor     .10000E-03    111.53        .16688E-05** at limit **
  14  Prefactor     12.574        46.375       -.12543E-04   -.18615E-03
  15  Prefactor     .10000E-03    1.3699        .15179E-07** at limit **
  16  Prefactor     .10000E-03    14.907        .11460E-05** at limit **
  17  Prefactor     .10000E-03    .70808        .82216E-07** at limit **
  18  norm          15.945        7.4220        .13632E-07   -.16288E-05
  19  Normalizat    1.0411        .15399       -.89743E-07   -.10153E-03
  20  Prefactor     1.2180        .15956        .72099E-08   -.67184E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0141958
  Prefactor  = 3.8001
  Prefactor  = 0.0001
  norm       = 13.0975
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.439811
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 12.5735
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 15.9454
  Normalizat = 1.0411
  Prefactor  = 1.218
 **********
 **   18 **HESSE 
 **********

 FCN=   7420.722     FROM HESSE     STATUS=OK           293 CALLS     2427 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .14196E-01    2.0589        .96070E-03   -1.5684    
   2  Prefactor     3.8001        7.8222        .10351E-02   -1.5318    
   3  Prefactor     .10000E-03    24.980        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          13.098        33.377        .11066E-03   -1.4984    
   5  Prefactor     .10000E-03    1.8874        .11458E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    9.9569        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .43981        .98471        .14133E-02   -1.5575    
   8  Prefactor     .10000E-03    6.2825        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    22.195        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    12.144        .42827E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    4.4856        .23550E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    8.8486        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    113.53        .20978E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     12.574        48.823        .11269E-03   -1.4999    
  15  Prefactor     .10000E-03    1.3775        .98454E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    15.461        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    .72400        .70753E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          15.945        7.4214        .10030E-03   -1.4909    
  19  Normalizat    1.0411        .17938        .24428E-03   -.91666    
  20  Prefactor     1.2180        .18795        .23481E-03   -.85779    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.49554e-09
Minuit parameter uncertainties:
  1  0.340731
  2  7.82427
  3  0.000138928
  4  33.4241
  5  3.10092e-06
  6  2.09643e-05
  7  0.984746
  8  2.49852e-06
  9  0.00025548
  10  2.27922e-05
  11  0.000110516
  12  8.63792e-06
  13  0.00103408
  14  48.9788
  15  4.82934e-07
  16  1.27923e-05
  17  8.00842e-07
  18  7.42184
  19  0.179481
  20  0.188057
Done.

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

Extracting fit parameters...

4FGL J0924.0+2816
   Spectrum: PowerLaw
276    Prefactor:  1.000e-04  1.105e-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.218e+00  1.881e-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.041e+00  1.795e-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.64e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.17e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/223767/likelihoodResults_613872001_614131201_4FGL_J0924.0+2816_daily_bin1445.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) = 7420.72292156
delta logL = -0.00106066168064

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7420.72186097
delta logL = -7.2624970926e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5233       1.0000          .0000       10.000    
     3 'Normalizat'    1.0411       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2180       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=   7420.722     FROM MIGRAD    STATUS=FAILED        93 CALLS      262 TOTAL
                     EDM=   .74E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10320E-03    66.304        .23501E-02** at limit **
   2  Index         2.6899        8.2809        .50000       -.20606E-04
   3  Normalizat    1.0411        .14572E-01    .24428E-03    .30630E-03
   4  Prefactor     1.2180        .15071E-01    .23481E-03    .17603E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   7420.722     FROM SIMPLEX   STATUS=UNCHANGED    131 CALLS      393 TOTAL
                     EDM=   .11E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10320E-03    66.304        .37273E-03** at limit **
   2  Index         2.6899        8.2809        .71846E-03   -.20606E-04
   3  Normalizat    1.0411        .14572E-01    .42767E-05    .30630E-03
   4  Prefactor     1.2180        .15071E-01    .33037E-05    .17603E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7420.722     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      443 TOTAL
                     EDM=   .37E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .38535E-01    .47001E-01** at limit **
   2  Index         2.9097        6.1372        .50000        .32200E-05
   3  Normalizat    1.0411        .78858E-03    .48856E-04   -.13070E-02
   4  Prefactor     1.2180        .81554E-03    .46962E-04   -.14642E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.9097
  Normalizat = 1.0411
  Prefactor  = 1.21799
 **********
 **   18 **HESSE 
 **********

 FCN=   7420.722     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      472 TOTAL
                     EDM=   .13E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    69.210        .16509E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.9097        8.0972        .50000       -.43131    
   3  Normalizat    1.0411        .14491E-01    .97712E-05   -.91666    
   4  Prefactor     1.2180        .14986E-01    .93924E-05   -.85779    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.28143e-07
Minuit parameter uncertainties:
  1  0.000195354
  2  478.828
  3  0.0144912
  4  0.0149862
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/223767': 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) = 7420.72185921
delta logL = 1.68024689629e-06

Extracting fit parameters...

4FGL J0924.0+2816
   Spectrum: PowerLaw
276    Prefactor:  1.000e-04  1.954e-04  1.000e-04  1.000e+04 ( 1.000e-12)
277        Index:  2.910e+00  4.788e+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:  1.218e+00  1.499e-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.041e+00  1.449e-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/223767/cmap_HighResolution_613872001_614131201_4FGL_J0924.0+2816_daily_bin1445.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.17e-03', job_status='DONE', photon_flux_upper_limit='6.64e-08', time_completed='2021-08-31 11:45:43.050760', job_id='223767', GAL2='1.22', fit_tolerance='1e-08', EG2='1.04', EG='1.04', time_epoch_completed='1630435543.05', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.22', dlogl='1.68e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.51' WHERE bin_id='1445' AND source_name='4FGL J0924.0+2816' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 11:45:43 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0295>
Subject: Job 223767: <4FGL_J0924.0+2816_daily_bin1445> in cluster <slac> Done

Job <4FGL_J0924.0+2816_daily_bin1445> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Aug 31 11:31:48 2021
Job was executed on host(s) <bullet0295>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 31 11:31:49 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:31:49 2021
Terminated at Tue Aug 31 11:45:43 2021
Results reported at Tue Aug 31 11:45:43 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0924.0+2816_daily_bin1445 141.005 28.2755 613872001 614131201 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 :                                   655.03 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             295.82 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   834 sec.
    Turnaround time :                            835 sec.

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

