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


Performing analysis on: 4FGL_J0407.5+0741_daily_bin783
RA = 61.8921, Dec = 7.6998
tmin = 442281601, tmax = 442540801
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='271372', job_status='RUN', time_executed='2021-08-20 05:53:53.796179', time_epoch_executed='1629464033.8' WHERE source_name='4FGL J0407.5+0741' and cadence='daily' and bin_id='783'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/271372

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/271372/ft1_4FGL_J0407.5+0741_daily_bin783.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/271372/ft2_4FGL_J0407.5+0741_daily_bin783.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/271372/ft1_4FGL_J0407.5+0741_daily_bin783.fits outfile=/scratch/kocevski/271372/ft1_filteredMKT_4FGL_J0407.5+0741_daily_bin783.fits ra=61.8921 dec=7.6998 rad=12.0 tmin=442281601.0 tmax=442540801.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.88
user 2.45
sys 0.42

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/271372/ft2_4FGL_J0407.5+0741_daily_bin783.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/271372/ft2_4FGL_J0407.5+0741_daily_bin783.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/271372/ft1_filteredMKT_4FGL_J0407.5+0741_daily_bin783.fits evtable="EVENTS" outfile="/scratch/kocevski/271372/ft1_filtered_4FGL_J0407.5+0741_daily_bin783.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.63
user 0.27
sys 0.35

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/271372/ft1_filtered_4FGL_J0407.5+0741_daily_bin783.fits" evtable="EVENTS" scfile=/scratch/kocevski/271372/ft2_4FGL_J0407.5+0741_daily_bin783.fits sctable="SC_DATA" outfile=/scratch/kocevski/271372/ltcube_442281601_442540801_4FGL_J0407.5+0741_daily_bin783.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/271372/ft2_4FGL_J0407.5+0741_daily_bin783.fits
.....................!
real 9.30
user 8.79
sys 0.49

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/271372/ft1_filtered_4FGL_J0407.5+0741_daily_bin783.fits evtable="EVENTS" scfile=/scratch/kocevski/271372/ft2_4FGL_J0407.5+0741_daily_bin783.fits sctable="SC_DATA" expcube=/scratch/kocevski/271372/ltcube_442281601_442540801_4FGL_J0407.5+0741_daily_bin783.fits outfile=/scratch/kocevski/271372/expmap_442281601_442540801_4FGL_J0407.5+0741_daily_bin783.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/271372/ltcube_442281601_442540801_4FGL_J0407.5+0741_daily_bin783.fits
.....................!
real 147.16
user 142.45
sys 4.47

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 140 point sources and 0 extended sources

Setting source of interest to:
4FGL J0407.5+0741 @ 61.8921 7.6998

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/271372/ft1_filtered_4FGL_J0407.5+0741_daily_bin783.fits scfile=/scratch/kocevski/271372/ft2_4FGL_J0407.5+0741_daily_bin783.fits outfile=/scratch/kocevski/271372/cmap_442281601_442540801_4FGL_J0407.5+0741_daily_bin783.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=61.8921 yref=7.6998 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.68
user 0.29
sys 0.36

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/271372/ft1_filtered_4FGL_J0407.5+0741_daily_bin783.fits scfile=/scratch/kocevski/271372/ft2_4FGL_J0407.5+0741_daily_bin783.fits outfile=/scratch/kocevski/271372/cmap_HighResolution_442281601_442540801_4FGL_J0407.5+0741_daily_bin783.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=61.8921 yref=7.6998 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.68
user 0.30
sys 0.37

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/271372/ft1_filtered_4FGL_J0407.5+0741_daily_bin783.fits evtable="EVENTS" scfile=/scratch/kocevski/271372/ft2_4FGL_J0407.5+0741_daily_bin783.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/271372/Model_4FGL_J0407.5+0741_daily_bin783.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/271372/ft1_filtered_4FGL_J0407.5+0741_daily_bin783.fits.....................!
real 131.38
user 129.85
sys 1.30

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/271372/ft1_filtered_4FGL_J0407.5+0741_daily_bin783.fits', '/scratch/kocevski/271372/ft2_4FGL_J0407.5+0741_daily_bin783.fits', expMap='/scratch/kocevski/271372/expmap_442281601_442540801_4FGL_J0407.5+0741_daily_bin783.fits', expCube='/scratch/kocevski/271372/ltcube_442281601_442540801_4FGL_J0407.5+0741_daily_bin783.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/271372/Model_4FGL_J0407.5+0741_daily_bin783.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0407.5+0741'

4FGL J0407.5+0741
   Spectrum: PowerLaw
217    Prefactor:  5.499e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
218        Index:  2.311e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
219        Scale:  1.332e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/271372/ft1_filtered_4FGL_J0407.5+0741_daily_bin783.fits
Spacecraft file(s): /scratch/kocevski/271372/ft2_4FGL_J0407.5+0741_daily_bin783.fits
Exposure map: /scratch/kocevski/271372/expmap_442281601_442540801_4FGL_J0407.5+0741_daily_bin783.fits
Exposure cube: /scratch/kocevski/271372/ltcube_442281601_442540801_4FGL_J0407.5+0741_daily_bin783.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/271372/Model_4FGL_J0407.5+0741_daily_bin783.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) = 12374.7651005

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    5.0398       1.0000         .10000E-03   10000.    
     3 'norm      '    1.5766       1.0000         .10000E-03   10000.    
     4 'Prefactor '    33.142       1.0000         .10000E-03   10000.    
     5 'Prefactor '    26.717       1.0000         .10000E-03   10000.    
     6 'norm      '    10.753       1.0000         .10000E-03   10000.    
     7 'Prefactor '    15.776       1.0000         .10000E-03   10000.    
     8 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .12404E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10165E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10393E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    38.556       1.0000         .10000E-03   10000.    
    14 'Prefactor '    55.433       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .11093E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    2.9516       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .26225       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .24686E-02   1.0000         .10000E-03   10000.    
    20 'norm      '    2.0921       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.2297       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .89401       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4600E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   12374.73     FROM MIGRAD    STATUS=CONVERGED    501 CALLS     2502 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.6743        .44687E-07** at limit **
   2  norm          5.0387        5.4481       -.23615E-06   -.88797E-04
   3  norm          1.5771        1.3552       -.29364E-07   -.55529E-03
   4  Prefactor     33.088        42.929       -.28585E-04    .33291E-03
   5  Prefactor     26.727        17.881        .23312E-05    .87470E-04
   6  norm          10.754        11.059       -.53535E-07    .32345E-04
   7  Prefactor     15.780        18.506       -.44546E-05    .16972E-03
   8  norm          .10000E-03    1.3213       -.26684E-07** at limit **
   9  Prefactor     .10000E-03    26.280       -.11941E-07** at limit **
  10  norm          .10000E-03    7.4544       -.19365E-06** at limit **
  11  norm          .10000E-03    .28098       -.39956E-06** at limit **
  12  Prefactor     .10000E-03    .42235       -.18420E-06** at limit **
  13  Prefactor     38.507        26.903        .14832E-04   -.54188E-04
  14  Prefactor     55.482        38.394        .11426E-04    .14906E-03
  15  Prefactor     .10000E-03    36.888       -.18198E-05** at limit **
  16  norm          2.9583        3.2350       -.38134E-05   -.92384E-03
  17  Prefactor     .10000E-03    16.090       -.97504E-07** at limit **
  18  norm          .26748        1.0840       -.16398E-05    .14806E-03
  19  Prefactor     .19947E-02    3.3438       -.10597E-05** at limit **
  20  norm          2.0919        1.7810       -.12049E-06   -.40649E-03
  21  Normalizat    1.2291        .23079       -.15844E-05    .59731E-03
  22  Prefactor     .89416        .59818E-01    .66267E-06    .78289E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 5.03867
  norm       = 1.57708
  Prefactor  = 33.0878
  Prefactor  = 26.7268
  norm       = 10.7539
  Prefactor  = 15.78
  norm       = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 38.5072
  Prefactor  = 55.4819
  Prefactor  = 0.0001
  norm       = 2.95827
  Prefactor  = 0.0001
  norm       = 0.267484
  Prefactor  = 0.00199469
  norm       = 2.09195
  Normalizat = 1.22914
  Prefactor  = 0.894159
 **********
 **   18 **HESSE 
 **********

 FCN=   12374.73     FROM HESSE     STATUS=OK           352 CALLS     2854 TOTAL
                     EDM=   .41E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.6819        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          5.0387        5.4500        .17912E-03   -1.5259    
   3  norm          1.5771        1.3510        .11567E-03   -1.5457    
   4  Prefactor     33.088        42.763        .69605E-04   -1.4557    
   5  Prefactor     26.727        17.860        .77504E-04   -1.4674    
   6  norm          10.754        11.061        .12218E-03   -1.5052    
   7  Prefactor     15.780        18.481        .10084E-03   -1.4913    
   8  norm          .10000E-03    1.3314        .12484E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    26.488        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    7.4628        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    .46256        .11297E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    .42794        .70494E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     38.507        26.951        .64549E-04   -1.4466    
  14  Prefactor     55.482        38.175        .53877E-04   -1.4217    
  15  Prefactor     .10000E-03    38.105        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          2.9583        3.2330        .17085E-03   -1.5364    
  17  Prefactor     .10000E-03    16.099        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .26748        4.2258        .21846E-02   -1.5605    
  19  Prefactor     .19947E-02    7.5319        .59357E-01   -1.5699    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          2.0919        1.7717        .13203E-03   -1.5419    
  21  Normalizat    1.2291        .25604        .45033E-03   -.85707    
  22  Prefactor     .89416        .66306E-01    .14527E-03   -.96345    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.07522e-09
Minuit parameter uncertainties:
  1  3.85053e-06
  2  5.45049
  3  1.35105
  4  42.8026
  5  17.8637
  6  11.0629
  7  18.4878
  8  2.30613e-06
  9  0.000272012
  10  5.73413e-05
  11  2.72199e-05
  12  1.26936e-05
  13  26.9595
  14  38.1919
  15  3.13762e-05
  16  3.2332
  17  5.61598e-06
  18  2.12611
  19  0.238948
  20  1.77177
  21  0.256301
  22  0.0663122
Done.

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

Extracting fit parameters...

4FGL J0407.5+0741
   Spectrum: PowerLaw
217    Prefactor:  2.673e+01  1.786e+01  1.000e-04  1.000e+04 ( 1.000e-13)
218        Index:  2.311e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
219        Scale:  1.332e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
457    Prefactor:  8.942e-01  6.631e-02  0.000e+00  1.000e+01 ( 1.000e+00)
458        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
459        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
456   Normalization:  1.229e+00  2.563e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.31
Ra Dec: 61.892 7.700
Photon Index (Fixed Index): 2.31 +/- 0.00
Photon Flux (Fixed Index): 8.10e-08 +/- 5.41e-08
Energy Flux (Fixed Index): 3.01e-05 +/- 2.01e-05

TS (Fixed Index): 3.31
Ra Dec: 61.892 7.700
Photon Flux Upper Limit: 1.86e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.43e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/271372/likelihoodResults_442281601_442540801_4FGL_J0407.5+0741_daily_bin783.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) = 12374.2300037
delta logL = 0.504384799531

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 12374.2202368
delta logL = 0.514151623782

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    12.632       1.0000         .10000E-03   10000.    
     2 'Index     '    2.9309       1.0000          .0000       10.000    
     3 'Normalizat'    1.1817       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90132       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4600E+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=   12374.22     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      314 TOTAL
                     EDM=   .68E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     12.626        27.810        .11271E-03   -.71335E-03
   2  Index         2.9308        1.1527        .55787E-02   -.17259E-03
   3  Normalizat    1.1817        .24075        .45769E-03    .36861E-03
   4  Prefactor     .90130        .66186E-01    .14472E-03    .63152E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 12.6259
  Index      = 2.93077
  Normalizat = 1.18166
  Prefactor  = 0.901303
 **********
 **   18 **HESSE 
 **********

 FCN=   12374.22     FROM HESSE     STATUS=OK            25 CALLS      339 TOTAL
                     EDM=   .69E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     12.626        16.564        .45083E-05   -1.4997    
   2  Index         2.9308        .68994        .22315E-03   -.42667    
   3  Normalizat    1.1817        .23648        .18308E-04   -.87171    
   4  Prefactor     .90130        .65244E-01    .28944E-04   -.96096    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.89865e-10
Minuit parameter uncertainties:
  1  16.5703
  2  0.692608
  3  0.23669
  4  0.0652499
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/271372': 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) = 12374.2202351
delta logL = 0.514153321639

Extracting fit parameters...

4FGL J0407.5+0741
   Spectrum: PowerLaw
217    Prefactor:  1.263e+01  1.657e+01  1.000e-04  1.000e+04 ( 1.000e-13)
218        Index:  2.931e+00  6.926e-01  0.000e+00  1.000e+01 (-1.000e+00)
219        Scale:  1.332e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
457    Prefactor:  9.013e-01  6.525e-02  0.000e+00  1.000e+01 ( 1.000e+00)
458        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
459        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
456   Normalization:  1.182e+00  2.367e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.43
Ra Dec: 61.892 7.700
Photon Index (Free Index): 2.93 +/- 0.69
Photon Flux (Free Index): 1.29e-07 +/- 7.96e-08
Energy Flux (Free Index): 2.68e-05 +/- 1.55e-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/271372/cmap_HighResolution_442281601_442540801_4FGL_J0407.5+0741_daily_bin783.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.43e-02', comment='SUCCESS', photon_flux='8.10e-08', energy_flux2='2.68e-05', photon_flux_error='5.41e-08', dlogl='5.14e-01', energy_flux='3.01e-05', photon_flux2='1.29e-07', job_status='DONE', time_completed='2021-08-20 06:05:47.311534', photon_index_error2='0.69', photon_index2='2.93', ts='3.31', fit_tolerance='1e-08', GAL='0.89', photon_index_error='0.00', photon_flux_upper_limit='1.86e-07', energy_flux_error2='1.55e-05', EG='1.23', time_epoch_completed='1629464747.31', return_code='0', job_id='271372', GAL2='0.90', EG2='1.18', return_code2='0', energy_flux_error='2.01e-05', photon_flux_error2='7.96e-08', ts2='4.43', photon_index='2.31' WHERE bin_id='783' AND source_name='4FGL J0407.5+0741' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 06:05:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0033>
Subject: Job 271372: <4FGL_J0407.5+0741_daily_bin783> in cluster <slac> Done

Job <4FGL_J0407.5+0741_daily_bin783> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Fri Aug 20 05:50:48 2021
Job was executed on host(s) <bullet0033>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 20 05:50:50 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Aug 20 05:50:50 2021
Terminated at Fri Aug 20 06:05:48 2021
Results reported at Fri Aug 20 06:05:48 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0407.5+0741_daily_bin783 61.8921 7.6998 442281601 442540801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0407.5+0741 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   714.26 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             310.87 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   897 sec.
    Turnaround time :                            900 sec.

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

