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


Performing analysis on: 4FGL_J0742.6+5443_daily_bin689
RA = 115.672, Dec = 54.727
tmin = 417916801, tmax = 418176001
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='696512', job_status='RUN', time_executed='2021-08-28 02:40:51.218113', time_epoch_executed='1630143651.22' WHERE source_name='4FGL J0742.6+5443' and cadence='daily' and bin_id='689'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/696512

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/696512/ft1_4FGL_J0742.6+5443_daily_bin689.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/696512/ft2_4FGL_J0742.6+5443_daily_bin689.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/696512/ft1_4FGL_J0742.6+5443_daily_bin689.fits outfile=/scratch/kocevski/696512/ft1_filteredMKT_4FGL_J0742.6+5443_daily_bin689.fits ra=115.672 dec=54.727 rad=12.0 tmin=417916801.0 tmax=418176001.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 7.55
user 7.02
sys 0.48

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/696512/ft2_4FGL_J0742.6+5443_daily_bin689.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/696512/ft2_4FGL_J0742.6+5443_daily_bin689.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/696512/ft1_filteredMKT_4FGL_J0742.6+5443_daily_bin689.fits evtable="EVENTS" outfile="/scratch/kocevski/696512/ft1_filtered_4FGL_J0742.6+5443_daily_bin689.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.72
user 0.33
sys 0.37

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/696512/ft1_filtered_4FGL_J0742.6+5443_daily_bin689.fits" evtable="EVENTS" scfile=/scratch/kocevski/696512/ft2_4FGL_J0742.6+5443_daily_bin689.fits sctable="SC_DATA" outfile=/scratch/kocevski/696512/ltcube_417916801_418176001_4FGL_J0742.6+5443_daily_bin689.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/696512/ft2_4FGL_J0742.6+5443_daily_bin689.fits
.....................!
real 12.47
user 11.82
sys 0.58

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/696512/ft1_filtered_4FGL_J0742.6+5443_daily_bin689.fits evtable="EVENTS" scfile=/scratch/kocevski/696512/ft2_4FGL_J0742.6+5443_daily_bin689.fits sctable="SC_DATA" expcube=/scratch/kocevski/696512/ltcube_417916801_418176001_4FGL_J0742.6+5443_daily_bin689.fits outfile=/scratch/kocevski/696512/expmap_417916801_418176001_4FGL_J0742.6+5443_daily_bin689.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/696512/ltcube_417916801_418176001_4FGL_J0742.6+5443_daily_bin689.fits
.....................!
real 191.80
user 185.79
sys 5.20

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

Setting source of interest to:
4FGL J0742.6+5443 @ 115.672 54.727

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/696512/ft1_filtered_4FGL_J0742.6+5443_daily_bin689.fits scfile=/scratch/kocevski/696512/ft2_4FGL_J0742.6+5443_daily_bin689.fits outfile=/scratch/kocevski/696512/cmap_417916801_418176001_4FGL_J0742.6+5443_daily_bin689.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=115.672 yref=54.727 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.74
user 0.37
sys 0.36

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/696512/ft1_filtered_4FGL_J0742.6+5443_daily_bin689.fits scfile=/scratch/kocevski/696512/ft2_4FGL_J0742.6+5443_daily_bin689.fits outfile=/scratch/kocevski/696512/cmap_HighResolution_417916801_418176001_4FGL_J0742.6+5443_daily_bin689.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=115.672 yref=54.727 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.76
user 0.38
sys 0.37

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/696512/ft1_filtered_4FGL_J0742.6+5443_daily_bin689.fits evtable="EVENTS" scfile=/scratch/kocevski/696512/ft2_4FGL_J0742.6+5443_daily_bin689.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/696512/Model_4FGL_J0742.6+5443_daily_bin689.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/696512/ft1_filtered_4FGL_J0742.6+5443_daily_bin689.fits.....................!
real 54.48
user 52.76
sys 1.51

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/696512/ft1_filtered_4FGL_J0742.6+5443_daily_bin689.fits', '/scratch/kocevski/696512/ft2_4FGL_J0742.6+5443_daily_bin689.fits', expMap='/scratch/kocevski/696512/expmap_417916801_418176001_4FGL_J0742.6+5443_daily_bin689.fits', expCube='/scratch/kocevski/696512/ltcube_417916801_418176001_4FGL_J0742.6+5443_daily_bin689.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/696512/Model_4FGL_J0742.6+5443_daily_bin689.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0742.6+5443'

4FGL J0742.6+5443
   Spectrum: LogParabola
285         norm:  1.016e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-11)
286        alpha:  2.224e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
287         beta:  8.463e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
288           Eb:  6.024e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/696512/ft1_filtered_4FGL_J0742.6+5443_daily_bin689.fits
Spacecraft file(s): /scratch/kocevski/696512/ft2_4FGL_J0742.6+5443_daily_bin689.fits
Exposure map: /scratch/kocevski/696512/expmap_417916801_418176001_4FGL_J0742.6+5443_daily_bin689.fits
Exposure cube: /scratch/kocevski/696512/ltcube_417916801_418176001_4FGL_J0742.6+5443_daily_bin689.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/696512/Model_4FGL_J0742.6+5443_daily_bin689.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) = 4647.50325782

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    59.980       1.0000         .10000E-03   10000.    
     2 'Prefactor '    47.491       1.0000         .10000E-03   10000.    
     3 'norm      '    4.6911       1.0000         .10000E-03   10000.    
     4 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10118E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.5870       1.0000         .10000E-03   10000.    
     7 'Prefactor '    15.718       1.0000         .10000E-03   10000.    
     8 'Prefactor '    31.945       1.0000         .10000E-03   10000.    
     9 'norm      '    4.5640       1.0000         .10000E-03   10000.    
    10 'Prefactor '    8.4963       1.0000         .10000E-03   10000.    
    11 'Prefactor '    13.000       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .24067E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .94721       1.0000         .10000E-03   10000.    
    14 'Prefactor '    13.238       1.0000         .10000E-03   10000.    
    15 'Prefactor '    28.113       1.0000         .10000E-03   10000.    
    16 'norm      '    .10258E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    4.4137       1.0000         .10000E-03   10000.    
    20 'Prefactor '    4.8233       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    10.065       1.0000         .10000E-03   10000.    
    23 'norm      '    2.1020       1.0000         .10000E-03   10000.    
    24 'Prefactor '    6.1062       1.0000         .10000E-03   10000.    
    25 'Prefactor '    11.385       1.0000         .10000E-03   10000.    
    26 'Prefactor '    3.0230       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    14.779       1.0000         .10000E-03   10000.    
    29 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    18.316       1.0000         .10000E-03   10000.    
    31 'Normalizat'    .47627       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .97273       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6880E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4647.474     FROM MIGRAD    STATUS=CONVERGED    828 CALLS     4375 TOTAL
                     EDM=   .53E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     59.975        50.071       -.36237E-05   -.28870E-05
   2  Prefactor     47.488        40.511       -.19835E-05    .25710E-05
   3  norm          4.6910        5.8610        .12345E-05   -.11995E-04
   4  norm          .10000E-03    5.2379       -.10626E-07** at limit **
   5  Prefactor     .10000E-03    27.008       -.10761E-04** at limit **
   6  Prefactor     1.5777        2.1024        .71400E-06   -.18713E-02
   7  Prefactor     15.724        22.043       -.85648E-05   -.28905E-04
   8  Prefactor     31.947        28.655       -.21875E-05    .56033E-04
   9  norm          4.5682        9.3945       -.41000E-05   -.52021E-04
  10  Prefactor     8.4990        26.305       -.56923E-05    .24923E-05
  11  Prefactor     13.006        37.413        .15166E-05    .66862E-05
  12  Prefactor     .10000E-03    208.59       -.78836E-06** at limit **
  13  norm          .94669        1.1095       -.14784E-06   -.12032E-03
  14  Prefactor     13.232        16.974        .34322E-05    .31222E-04
  15  Prefactor     28.115        22.566        .12589E-05    .30453E-04
  16  norm          .10000E-03    1.3484       -.84313E-07** at limit **
  17  Prefactor     .10000E-03    4.0484        .37048E-06** at limit **
  18  Prefactor     .10000E-03    28.564        .79718E-05** at limit **
  19  norm          4.4124        4.0247       -.48709E-06   -.84721E-03
  20  Prefactor     4.7841        81.064       -.43379E-04   -.14876E-04
  21  Prefactor     .10000E-03    24.369        .21246E-05** at limit **
  22  norm          10.065        5.0698       -.56830E-06   -.14964E-05
  23  norm          2.1019        1.8762       -.87833E-07   -.26661E-04
  24  Prefactor     6.1053        2.6806       -.15230E-06   -.13369E-03
  25  Prefactor     11.386        10.733       -.18415E-06    .38827E-05
  26  Prefactor     3.0234        5.3226       -.80671E-06   -.41088E-04
  27  Prefactor     .10000E-03    3.2692        .77001E-07** at limit **
  28  norm          14.780        10.520       -.35481E-06    .16863E-05
  29  norm          .10000E-03    2.2350       -.37537E-07** at limit **
  30  Prefactor     18.319        16.462       -.39695E-05   -.54464E-05
  31  Normalizat    .47617        .24986        .89078E-05    .68595E-04
  32  Prefactor     .97280        .14668       -.35311E-06    .11571E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 59.9753
  Prefactor  = 47.4875
  norm       = 4.69104
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.57774
  Prefactor  = 15.7241
  Prefactor  = 31.9468
  norm       = 4.5682
  Prefactor  = 8.49903
  Prefactor  = 13.0058
  Prefactor  = 0.0001
  norm       = 0.94669
  Prefactor  = 13.2321
  Prefactor  = 28.1149
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.41238
  Prefactor  = 4.78413
  Prefactor  = 0.0001
  norm       = 10.0652
  norm       = 2.10187
  Prefactor  = 6.10527
  Prefactor  = 11.386
  Prefactor  = 3.02344
  Prefactor  = 0.0001
  norm       = 14.7797
  norm       = 0.0001
  Prefactor  = 18.3186
  Normalizat = 0.476166
  Prefactor  = 0.972799
 **********
 **   18 **HESSE 
 **********

 FCN=   4647.474     FROM HESSE     STATUS=OK           667 CALLS     5042 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     59.975        50.113        .51806E-04   -1.4158    
   2  Prefactor     47.488        40.518        .58185E-04   -1.4329    
   3  norm          4.6910        5.8593        .17433E-03   -1.5275    
   4  norm          .10000E-03    5.3537        .30411E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    27.216        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     1.5777        8.9584        .16847E-02   -1.5457    
   7  Prefactor     15.724        22.348        .10102E-03   -1.4915    
   8  Prefactor     31.947        28.604        .70894E-04   -1.4577    
   9  norm          4.5682        9.6930        .18843E-03   -1.5280    
  10  Prefactor     8.4990        26.193        .13753E-03   -1.5125    
  11  Prefactor     13.006        37.309        .11110E-03   -1.4987    
  12  Prefactor     .10000E-03    208.72        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .94669        1.0652        .72498E-03   -1.5513    
  14  Prefactor     13.232        16.913        .11009E-03   -1.4980    
  15  Prefactor     28.115        22.543        .75560E-04   -1.4647    
  16  norm          .10000E-03    1.3555        .77253E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    4.0585        .13397E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    28.576        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          4.4124        4.0758        .60329E-03   -1.5288    
  20  Prefactor     4.7841        81.652        .18318E-03   -1.5270    
  21  Prefactor     .10000E-03    24.424        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          10.065        5.0641        .10378E-03   -1.5073    
  23  norm          2.1019        1.8831        .84445E-04   -1.5418    
  24  Prefactor     6.1053        2.6775        .69836E-04   -1.5214    
  25  Prefactor     11.386        10.723        .11873E-03   -1.5033    
  26  Prefactor     3.0234        5.2976        .19818E-03   -1.5360    
  27  Prefactor     .10000E-03    3.2851        .12036E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          14.780        10.521        .10418E-03   -1.4939    
  29  norm          .10000E-03    2.2397        .99524E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     18.319        16.511        .93586E-04   -1.4852    
  31  Normalizat    .47617        .27167        .38106E-03   -1.1353    
  32  Prefactor     .97280        .16187        .18138E-03   -.93642    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.30863e-08
Minuit parameter uncertainties:
  1  50.1483
  2  40.5413
  3  5.86003
  4  4.89417e-05
  5  4.18823e-05
  6  7.52051
  7  22.3596
  8  28.6167
  9  9.69628
  10  26.2286
  11  37.376
  12  0.000302749
  13  1.06521
  14  16.9187
  15  22.5501
  16  9.1709e-06
  17  7.44212e-05
  18  1.45133e-05
  19  4.07605
  20  39.5921
  21  1.99103e-05
  22  5.06435
  23  1.88311
  24  2.67751
  25  10.7244
  26  5.29842
  27  7.88106e-07
  28  10.522
  29  2.15453e-06
  30  16.515
  31  0.272426
  32  0.161955
Done.

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

Extracting fit parameters...

4FGL J0742.6+5443
   Spectrum: LogParabola
285         norm:  9.467e-01  1.065e+00  1.000e-04  1.000e+04 ( 1.000e-11)
286        alpha:  2.224e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
287         beta:  8.463e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
288           Eb:  6.024e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
685    Prefactor:  9.728e-01  1.620e-01  0.000e+00  1.000e+01 ( 1.000e+00)
686        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
687        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
684   Normalization:  4.762e-01  2.724e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.35
Ra Dec: 115.672 54.727
Photon Index (Fixed Index): 2.22 +/- 0.00
Photon Flux (Fixed Index): 3.68e-08 +/- 4.14e-08
Energy Flux (Fixed Index): 1.39e-05 +/- 1.56e-05

TS (Fixed Index): 1.35
Ra Dec: 115.672 54.727
Photon Flux Upper Limit: 1.35e-07 ph cm-2 s-1
Energy Flux Upper Limit: 5.09e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/696512/likelihoodResults_417916801_418176001_4FGL_J0742.6+5443_daily_bin689.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) = 4646.95899507
delta logL = 0.514551141359

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4646.9566698
delta logL = 0.516876412327

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4646.957     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      239 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .70215        10.601        .98105E-02    .61728E-03
   2  alpha         3.1298        4.0077        .36794        .34624E-04
   3  Normalizat    .43152        .60887E-01    .90128E-01    .36572E-04
   4  Prefactor     .98904        .40551E-01    .46129E-01   -.69751E-06
                               ERR DEF=  .500    
Final values: 
  norm       = 0.70215
  alpha      = 3.12977
  Normalizat = 0.431523
  Prefactor  = 0.989041
 **********
 **   18 **HESSE 
 **********

 FCN=   4646.957     FROM HESSE     STATUS=OK            33 CALLS      272 TOTAL
                     EDM=   .54E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .70215        .93483        .44328E-04   -1.5540    
   2  alpha         3.1298        .98730        .14485E-01    .25465    
   3  Normalizat    .43152        .24197        .39927E-03   -1.1570    
   4  Prefactor     .98904        .15944        .17994E-03   -.93096    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.36549e-12
Minuit parameter uncertainties:
  1  0.934853
  2  1.01699
  3  0.242561
  4  0.159518
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/696512': 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) = 4646.95666969
delta logL = 0.516876524041

Extracting fit parameters...

4FGL J0742.6+5443
   Spectrum: LogParabola
285         norm:  7.022e-01  9.349e-01  1.000e-04  1.000e+04 ( 1.000e-11)
286        alpha:  3.130e+00  1.017e+00  0.000e+00  5.000e+00 ( 1.000e+00)
287         beta:  8.463e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
288           Eb:  6.024e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
685    Prefactor:  9.890e-01  1.595e-01  0.000e+00  1.000e+01 ( 1.000e+00)
686        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
687        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
684   Normalization:  4.315e-01  2.426e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.44
Ra Dec: 115.672 54.727
Photon Index (Free Index): 3.13 +/- 1.02
Photon Flux (Free Index): 7.73e-08 +/- 6.54e-08
Energy Flux (Free Index): 1.51e-05 +/- 1.24e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/696512/cmap_HighResolution_417916801_418176001_4FGL_J0742.6+5443_daily_bin689.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.09e-05', comment='SUCCESS', photon_flux='3.68e-08', energy_flux2='1.51e-05', photon_flux_error='4.14e-08', dlogl='5.17e-01', energy_flux='1.39e-05', photon_flux2='7.73e-08', job_status='DONE', time_completed='2021-08-28 02:55:46.721962', photon_index_error2='1.02', photon_index2='3.13', ts='1.35', fit_tolerance='1e-08', GAL='0.97', photon_index_error='0.00', photon_flux_upper_limit='1.35e-07', energy_flux_error2='1.24e-05', EG='0.48', time_epoch_completed='1630144546.72', return_code='0', job_id='696512', GAL2='0.99', EG2='0.43', return_code2='0', energy_flux_error='1.56e-05', photon_flux_error2='6.54e-08', ts2='2.44', photon_index='2.22' WHERE bin_id='689' AND source_name='4FGL J0742.6+5443' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 28 02:55:46 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0173>
Subject: Job 696512: <4FGL_J0742.6+5443_daily_bin689> in cluster <slac> Done

Job <4FGL_J0742.6+5443_daily_bin689> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sat Aug 28 02:40:30 2021
Job was executed on host(s) <bullet0173>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 28 02:40:31 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Aug 28 02:40:31 2021
Terminated at Sat Aug 28 02:55:47 2021
Results reported at Sat Aug 28 02:55:47 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0742.6+5443_daily_bin689 115.672 54.727 417916801 418176001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0742.6+5443 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   893.18 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             324.64 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   916 sec.
    Turnaround time :                            917 sec.

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

