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


Performing analysis on: 4FGL_J0403.9-3605_daily_bin874
RA = 60.975, Dec = -36.087
tmin = 465868801, tmax = 466128001
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='191948', job_status='RUN', time_executed='2021-08-20 01:05:59.088048', time_epoch_executed='1629446759.09' WHERE source_name='4FGL J0403.9-3605' and cadence='daily' and bin_id='874'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/191948

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/191948/ft1_4FGL_J0403.9-3605_daily_bin874.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/191948/ft2_4FGL_J0403.9-3605_daily_bin874.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/191948/ft1_4FGL_J0403.9-3605_daily_bin874.fits outfile=/scratch/kocevski/191948/ft1_filteredMKT_4FGL_J0403.9-3605_daily_bin874.fits ra=60.975 dec=-36.087 rad=12.0 tmin=465868801.0 tmax=466128001.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 4.83
user 3.70
sys 1.09

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/191948/ft2_4FGL_J0403.9-3605_daily_bin874.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/191948/ft2_4FGL_J0403.9-3605_daily_bin874.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/191948/ft1_filteredMKT_4FGL_J0403.9-3605_daily_bin874.fits evtable="EVENTS" outfile="/scratch/kocevski/191948/ft1_filtered_4FGL_J0403.9-3605_daily_bin874.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.36
user 0.33
sys 1.02

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/191948/ft1_filtered_4FGL_J0403.9-3605_daily_bin874.fits" evtable="EVENTS" scfile=/scratch/kocevski/191948/ft2_4FGL_J0403.9-3605_daily_bin874.fits sctable="SC_DATA" outfile=/scratch/kocevski/191948/ltcube_465868801_466128001_4FGL_J0403.9-3605_daily_bin874.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/191948/ft2_4FGL_J0403.9-3605_daily_bin874.fits
.....................!
real 12.63
user 11.29
sys 1.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/191948/ft1_filtered_4FGL_J0403.9-3605_daily_bin874.fits evtable="EVENTS" scfile=/scratch/kocevski/191948/ft2_4FGL_J0403.9-3605_daily_bin874.fits sctable="SC_DATA" expcube=/scratch/kocevski/191948/ltcube_465868801_466128001_4FGL_J0403.9-3605_daily_bin874.fits outfile=/scratch/kocevski/191948/expmap_465868801_466128001_4FGL_J0403.9-3605_daily_bin874.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/191948/ltcube_465868801_466128001_4FGL_J0403.9-3605_daily_bin874.fits
.....................!
real 192.66
user 186.89
sys 5.44

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
Extended source Fornax A in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/FornaxA.fits is the correct path to the extended template.
Added 178 point sources and 1 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J0403.9-3605 @ 60.975 -36.087

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/191948/ft1_filtered_4FGL_J0403.9-3605_daily_bin874.fits scfile=/scratch/kocevski/191948/ft2_4FGL_J0403.9-3605_daily_bin874.fits outfile=/scratch/kocevski/191948/cmap_465868801_466128001_4FGL_J0403.9-3605_daily_bin874.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=60.975 yref=-36.087 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.39
user 0.35
sys 1.02

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/191948/ft1_filtered_4FGL_J0403.9-3605_daily_bin874.fits scfile=/scratch/kocevski/191948/ft2_4FGL_J0403.9-3605_daily_bin874.fits outfile=/scratch/kocevski/191948/cmap_HighResolution_465868801_466128001_4FGL_J0403.9-3605_daily_bin874.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=60.975 yref=-36.087 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.39
user 0.39
sys 0.99

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/191948/ft1_filtered_4FGL_J0403.9-3605_daily_bin874.fits evtable="EVENTS" scfile=/scratch/kocevski/191948/ft2_4FGL_J0403.9-3605_daily_bin874.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/191948/Model_4FGL_J0403.9-3605_daily_bin874.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 Fornax A
adding source GAL_V02
Working on...
/scratch/kocevski/191948/ft1_filtered_4FGL_J0403.9-3605_daily_bin874.fits.....................!
real 157.24
user 154.61
sys 2.36

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/191948/ft1_filtered_4FGL_J0403.9-3605_daily_bin874.fits', '/scratch/kocevski/191948/ft2_4FGL_J0403.9-3605_daily_bin874.fits', expMap='/scratch/kocevski/191948/expmap_465868801_466128001_4FGL_J0403.9-3605_daily_bin874.fits', expCube='/scratch/kocevski/191948/ltcube_465868801_466128001_4FGL_J0403.9-3605_daily_bin874.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/191948/Model_4FGL_J0403.9-3605_daily_bin874.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0403.9-3605'

4FGL J0403.9-3605
   Spectrum: LogParabola
280         norm:  1.306e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-10)
281        alpha:  2.393e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
282         beta:  1.376e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
283           Eb:  3.485e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/191948/ft1_filtered_4FGL_J0403.9-3605_daily_bin874.fits
Spacecraft file(s): /scratch/kocevski/191948/ft2_4FGL_J0403.9-3605_daily_bin874.fits
Exposure map: /scratch/kocevski/191948/expmap_465868801_466128001_4FGL_J0403.9-3605_daily_bin874.fits
Exposure cube: /scratch/kocevski/191948/ltcube_465868801_466128001_4FGL_J0403.9-3605_daily_bin874.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/191948/Model_4FGL_J0403.9-3605_daily_bin874.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) = 7496.29311518

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.9066       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    8.1136       1.0000         .10000E-03   10000.    
     4 'norm      '    .19182       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    30.893       1.0000         .10000E-03   10000.    
     7 'Prefactor '    12.598       1.0000         .10000E-03   10000.    
     8 'Prefactor '    9.2942       1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    48.878       1.0000         .10000E-03   10000.    
    11 'norm      '    9.2184       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    4.6870       1.0000         .10000E-03   10000.    
    14 'norm      '    24.132       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .12868E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    16.439       1.0000         .10000E-03   10000.    
    18 'norm      '    5.7721       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10393E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    18.499       1.0000         .10000E-03   10000.    
    21 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    59.272       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .47416       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.4015       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5760E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7496.292     FROM MIGRAD    STATUS=CONVERGED     79 CALLS     2386 TOTAL
                     EDM=   .54E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  9.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.9130        1.3479        .14156E-05   -.72471E-03
   2  Prefactor     .10000E-03    14.011        .81999E-05** at limit **
   3  norm          8.1139        3.4944       -.38970E-06    .15797E-03
   4  norm          .19191        .53384       -.24867E-06   -.37317E-04
   5  Prefactor     .10008E-03    8.7717       -.26506E-06** at limit **
   6  Prefactor     30.893        1.0035        .47585E-07    .12353E-05
   7  Prefactor     12.597        5.7611        .50882E-05   -.84115E-04
   8  Prefactor     9.2952        1.0052       -.91490E-08    .47697E-04
   9  norm          .10000E-03    .87540        .13107E-06** at limit **
  10  Prefactor     48.879        1.0227        .14911E-06   -.81494E-03
  11  norm          9.2159        1.0229        .28547E-07   -.87034E-05
  12  Prefactor     .10006E-03    18.603        .26918E-04** at limit **
  13  norm          4.6869        .58887        .51510E-07    .24419E-02
  14  norm          24.130        1.0107       -.12086E-06    .24094E-03
  15  Prefactor     .10000E-03    48.709       -.21634E-04** at limit **
  16  Prefactor     .10002E-03    14.770       -.27355E-04** at limit **
  17  Prefactor     16.434        1.0461        .12616E-06    .69064E-04
  18  norm          5.7717        .96615        .80808E-07    .42275E-02
  19  Prefactor     .10000E-03    2.6099       -.16199E-05** at limit **
  20  norm          18.505        1.0326       -.18659E-07    .10943E-04
  21  norm          .10000E-03    .44104       -.80343E-07** at limit **
  22  Prefactor     59.274        1.2513        .46467E-06   -.31518E-02
  23  Prefactor     .10000E-03    2.6100        .18802E-05** at limit **
  24  Normalizat    .47396        .18874       -.52653E-05    .30807E-03
  25  Prefactor     1.4016        .21652        .18757E-05    .36523E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.91295
  Prefactor  = 0.000100001
  norm       = 8.11391
  norm       = 0.191908
  Prefactor  = 0.000100078
  Prefactor  = 30.8926
  Prefactor  = 12.5967
  Prefactor  = 9.29524
  norm       = 0.0001
  Prefactor  = 48.879
  norm       = 9.21593
  Prefactor  = 0.00010006
  norm       = 4.68695
  norm       = 24.1304
  Prefactor  = 0.000100002
  Prefactor  = 0.000100023
  Prefactor  = 16.4338
  norm       = 5.77175
  Prefactor  = 0.0001
  norm       = 18.5053
  norm       = 0.0001
  Prefactor  = 59.2743
  Prefactor  = 0.0001
  Normalizat = 0.473957
  Prefactor  = 1.40156
 **********
 **   18 **HESSE 
 **********

 FCN=   7496.292     FROM HESSE     STATUS=OK           495 CALLS     2881 TOTAL
                     EDM=   .87E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.9130        21.691        .41308E-02   -1.5222    
   2  Prefactor     .10000E-03    14.042        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          8.1139        3.5510        .35188E-02   -1.5138    
   4  norm          .19191        .55359        .99402E-02   -1.5620    
   5  Prefactor     .10008E-03    20.936        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     30.893        30.289        .18022E-02   -1.4596    
   7  Prefactor     12.597        5.9118        .28214E-02   -1.4998    
   8  Prefactor     9.2952        9.1249        .32865E-02   -1.5098    
   9  norm          .10000E-03    .43591        .20342E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     48.879        73.203        .14339E-02   -1.4309    
  11  norm          9.2159        9.5700        .33000E-02   -1.5101    
  12  Prefactor     .10006E-03    24.516        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          4.6869        .60594        .46470E-02   -1.5275    
  14  norm          24.130        10.070        .20385E-02   -1.4725    
  15  Prefactor     .10000E-03    48.327        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10002E-03    17.237        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     16.434        13.205        .24695E-02   -1.4897    
  18  norm          5.7717        1.1055        .41794E-02   -1.5227    
  19  Prefactor     .10000E-03    1.4824        .38167E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          18.505        10.025        .23280E-02   -1.4847    
  21  norm          .10000E-03    .43767        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     59.274        60.343        .13028E-02   -1.4167    
  23  Prefactor     .10000E-03    2.5926        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .47396        .17343        .82557E-01   -1.1364    
  25  Prefactor     1.4016        .19052        .58662E-01   -.80335    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.69793e-08
Minuit parameter uncertainties:
  1  21.7195
  2  0.000177248
  3  3.55111
  4  0.553602
  5  0.00256031
  6  30.3044
  7  5.91209
  8  9.12631
  9  3.47485e-06
  10  73.3378
  11  9.57154
  12  0.00241712
  13  0.605942
  14  10.0704
  15  0.000607773
  16  0.00125098
  17  13.2074
  18  1.10555
  19  4.55542e-05
  20  10.0258
  21  4.03289e-06
  22  60.4054
  23  4.83855e-05
  24  0.173627
  25  0.190616
Done.

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

Extracting fit parameters...

4FGL J0403.9-3605
   Spectrum: LogParabola
280         norm:  4.687e+00  6.059e-01  1.000e-04  1.000e+04 ( 1.000e-10)
281        alpha:  2.393e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
282         beta:  1.376e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
283           Eb:  3.485e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
573    Prefactor:  1.402e+00  1.906e-01  0.000e+00  1.000e+01 ( 1.000e+00)
574        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
575        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
569   Normalization:  4.740e-01  1.736e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 199.46
Ra Dec: 60.975 -36.087
Photon Index (Fixed Index): 2.39 +/- 0.00
Photon Flux (Fixed Index): 6.03e-07 +/- 7.79e-08
Energy Flux (Fixed Index): 1.67e-04 +/- 2.15e-05

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) = 7496.08398045
delta logL = 0.20769960014

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7496.06637647
delta logL = 0.225303576963

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.7588       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2886       1.0000          .0000       5.0000    
     3 'Normalizat'    .49640       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3819       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5760E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7496.066     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      205 TOTAL
                     EDM=   .22E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.7585        .63891        .46110E-02    .82046E-04
   2  alpha         2.2887        .16050        .11440       -.31957E-04
   3  Normalizat    .49629        .16413        .80890E-01    .41337E-04
   4  Prefactor     1.3820        .18902        .59001E-01   -.15743E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 4.75852
  alpha      = 2.28867
  Normalizat = 0.496288
  Prefactor  = 1.38197
 **********
 **   18 **HESSE 
 **********

 FCN=   7496.066     FROM HESSE     STATUS=OK            31 CALLS      236 TOTAL
                     EDM=   .35E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.7585        .60521        .22725E-04   -1.5272    
   2  alpha         2.2887        .15342        .50219E-03   -.84633E-01
   3  Normalizat    .49629        .18808        .35833E-03   -1.1259    
   4  Prefactor     1.3820        .21678        .26087E-03   -.80901    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.54271e-12
Minuit parameter uncertainties:
  1  0.60521
  2  0.15352
  3  0.18832
  4  0.216923
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/191948': 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) = 7496.06637603
delta logL = 0.225304014526

Extracting fit parameters...

4FGL J0403.9-3605
   Spectrum: LogParabola
280         norm:  4.759e+00  6.052e-01  1.000e-04  1.000e+04 ( 1.000e-10)
281        alpha:  2.289e+00  1.535e-01  0.000e+00  5.000e+00 ( 1.000e+00)
282         beta:  1.376e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
283           Eb:  3.485e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
573    Prefactor:  1.382e+00  2.169e-01  0.000e+00  1.000e+01 ( 1.000e+00)
574        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
575        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
569   Normalization:  4.963e-01  1.883e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 202.30
Ra Dec: 60.975 -36.087
Photon Index (Free Index): 2.29 +/- 0.15
Photon Flux (Free Index): 5.80e-07 +/- 8.12e-08
Energy Flux (Free Index): 1.74e-04 +/- 2.50e-05

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/191948/cmap_HighResolution_465868801_466128001_4FGL_J0403.9-3605_daily_bin874.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.03e-07', energy_flux2='1.74e-04', photon_flux_error='7.79e-08', dlogl='2.25e-01', energy_flux='1.67e-04', photon_flux2='5.80e-07', job_status='DONE', time_completed='2021-08-20 01:18:47.978083', photon_index_error2='0.15', photon_index2='2.29', ts='199.46', fit_tolerance='1e-08', GAL='1.40', photon_index_error='0.00', energy_flux_error2='2.50e-05', EG='0.47', time_epoch_completed='1629447527.98', return_code='0', job_id='191948', GAL2='1.38', EG2='0.50', return_code2='0', energy_flux_error='2.15e-05', photon_flux_error2='8.12e-08', ts2='202.30', photon_index='2.39' WHERE bin_id='874' AND source_name='4FGL J0403.9-3605' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 01:18:48 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0030>
Subject: Job 191948: <4FGL_J0403.9-3605_daily_bin874> in cluster <slac> Done

Job <4FGL_J0403.9-3605_daily_bin874> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Fri Aug 20 01:05:33 2021
Job was executed on host(s) <bullet0030>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 20 01:05:35 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Aug 20 01:05:35 2021
Terminated at Fri Aug 20 01:18:48 2021
Results reported at Fri Aug 20 01:18:48 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0403.9-3605_daily_bin874 60.975 -36.087 465868801 466128001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0403.9-3605 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   779.42 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             353.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   793 sec.
    Turnaround time :                            795 sec.

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

