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


Performing analysis on: 4FGL_J1741.2+5739_daily_bin764
RA = 265.323, Dec = 57.6587
tmin = 437356801, tmax = 437616001
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='6819', job_status='RUN', time_executed='2021-09-18 04:40:35.366451', time_epoch_executed='1631965235.37' WHERE source_name='4FGL J1741.2+5739' and cadence='daily' and bin_id='764'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/6819

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/6819/ft1_4FGL_J1741.2+5739_daily_bin764.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/6819/ft2_4FGL_J1741.2+5739_daily_bin764.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/6819/ft1_4FGL_J1741.2+5739_daily_bin764.fits outfile=/scratch/kocevski/6819/ft1_filteredMKT_4FGL_J1741.2+5739_daily_bin764.fits ra=265.323 dec=57.6587 rad=12.0 tmin=437356801.0 tmax=437616001.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 5.54
user 5.27
sys 0.25

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/6819/ft2_4FGL_J1741.2+5739_daily_bin764.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/6819/ft2_4FGL_J1741.2+5739_daily_bin764.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/6819/ft1_filteredMKT_4FGL_J1741.2+5739_daily_bin764.fits evtable="EVENTS" outfile="/scratch/kocevski/6819/ft1_filtered_4FGL_J1741.2+5739_daily_bin764.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.49
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/6819/ft1_filtered_4FGL_J1741.2+5739_daily_bin764.fits" evtable="EVENTS" scfile=/scratch/kocevski/6819/ft2_4FGL_J1741.2+5739_daily_bin764.fits sctable="SC_DATA" outfile=/scratch/kocevski/6819/ltcube_437356801_437616001_4FGL_J1741.2+5739_daily_bin764.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/6819/ft2_4FGL_J1741.2+5739_daily_bin764.fits
.....................!
real 12.25
user 11.90
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/6819/ft1_filtered_4FGL_J1741.2+5739_daily_bin764.fits evtable="EVENTS" scfile=/scratch/kocevski/6819/ft2_4FGL_J1741.2+5739_daily_bin764.fits sctable="SC_DATA" expcube=/scratch/kocevski/6819/ltcube_437356801_437616001_4FGL_J1741.2+5739_daily_bin764.fits outfile=/scratch/kocevski/6819/expmap_437356801_437616001_4FGL_J1741.2+5739_daily_bin764.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/6819/ltcube_437356801_437616001_4FGL_J1741.2+5739_daily_bin764.fits
.....................!
real 191.05
user 185.31
sys 5.39

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

Setting source of interest to:
4FGL J1741.2+5739 @ 265.323 57.6587

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/6819/ft1_filtered_4FGL_J1741.2+5739_daily_bin764.fits scfile=/scratch/kocevski/6819/ft2_4FGL_J1741.2+5739_daily_bin764.fits outfile=/scratch/kocevski/6819/cmap_437356801_437616001_4FGL_J1741.2+5739_daily_bin764.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=265.323 yref=57.6587 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.53
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/6819/ft1_filtered_4FGL_J1741.2+5739_daily_bin764.fits scfile=/scratch/kocevski/6819/ft2_4FGL_J1741.2+5739_daily_bin764.fits outfile=/scratch/kocevski/6819/cmap_HighResolution_437356801_437616001_4FGL_J1741.2+5739_daily_bin764.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=265.323 yref=57.6587 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.54
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/6819/ft1_filtered_4FGL_J1741.2+5739_daily_bin764.fits evtable="EVENTS" scfile=/scratch/kocevski/6819/ft2_4FGL_J1741.2+5739_daily_bin764.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/6819/Model_4FGL_J1741.2+5739_daily_bin764.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/6819/ft1_filtered_4FGL_J1741.2+5739_daily_bin764.fits.....................!
real 43.04
user 41.68
sys 1.21

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/6819/ft1_filtered_4FGL_J1741.2+5739_daily_bin764.fits', '/scratch/kocevski/6819/ft2_4FGL_J1741.2+5739_daily_bin764.fits', expMap='/scratch/kocevski/6819/expmap_437356801_437616001_4FGL_J1741.2+5739_daily_bin764.fits', expCube='/scratch/kocevski/6819/ltcube_437356801_437616001_4FGL_J1741.2+5739_daily_bin764.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/6819/Model_4FGL_J1741.2+5739_daily_bin764.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1741.2+5739'

4FGL J1741.2+5739
   Spectrum: PowerLaw
364    Prefactor:  8.390e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
365        Index:  2.378e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
366        Scale:  1.396e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/6819/ft1_filtered_4FGL_J1741.2+5739_daily_bin764.fits
Spacecraft file(s): /scratch/kocevski/6819/ft2_4FGL_J1741.2+5739_daily_bin764.fits
Exposure map: /scratch/kocevski/6819/expmap_437356801_437616001_4FGL_J1741.2+5739_daily_bin764.fits
Exposure cube: /scratch/kocevski/6819/ltcube_437356801_437616001_4FGL_J1741.2+5739_daily_bin764.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/6819/Model_4FGL_J1741.2+5739_daily_bin764.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) = 3679.23877924

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .42322E-02   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    45.585       1.0000         .10000E-03   10000.    
     7 'norm      '    .52565       1.0000         .10000E-03   10000.    
     8 'norm      '    1.4186       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .65079       1.0000         .10000E-03   10000.    
    10 'Prefactor '    7.3840       1.0000         .10000E-03   10000.    
    11 'Prefactor '    8.6782       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10049E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .20015E-02   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    62.348       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10226E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    80.021       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    5.3817       1.0000         .10000E-03   10000.    
    24 'Prefactor '    43.769       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10078E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    10.387       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    2.8283       1.0000         .10000E-03   10000.    
    30 'Prefactor '    10.346       1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    32 'norm      '    10.874       1.0000         .10000E-03   10000.    
    33 'Normalizat'    .57513       1.0000         .10000E-01   10.000    
    34 'Prefactor '    1.1453       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6680E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   3679.210     FROM MIGRAD    STATUS=CONVERGED    924 CALLS     4859 TOTAL
                     EDM=   .25E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    37.641       -.59476E-07** at limit **
   2  Prefactor     .10000E-03    17.797       -.34933E-06** at limit **
   3  norm          .10000E-03    73.112        .18381E-04** at limit **
   4  Prefactor     .10000E-03    5.1665        .59102E-07** at limit **
   5  Prefactor     .10000E-03    16.825        .21666E-06** at limit **
   6  Prefactor     45.596        40.678        .22876E-06   -.69367E-04
   7  norm          .52660        2.0189        .16361E-06    .10292E-03
   8  norm          1.4168        1.3482       -.16558E-06   -.10432E-02
   9  Prefactor     .72169        12.570        .39938E-05   -.14710E-03
  10  Prefactor     7.3750        19.542       -.15678E-07   -.11098E-03
  11  Prefactor     8.6791        9.4881       -.73639E-07   -.13174E-03
  12  Prefactor     .10000E-03    15.425        .74213E-06** at limit **
  13  Prefactor     .10000E-03    2.9894       -.57243E-07** at limit **
  14  Prefactor     .10000E-03    39.951       -.64216E-06** at limit **
  15  norm          .10000E-03    12.401       -.42623E-06** at limit **
  16  Prefactor     .10002E-03    252.02       -.26701E-05** at limit **
  17  Prefactor     .10000E-03    4.9151       -.25974E-06** at limit **
  18  Prefactor     62.380        113.77        .23121E-05   -.11119E-04
  19  Prefactor     .10000E-03    212.11        .34308E-05** at limit **
  20  Prefactor     80.067        89.900        .23293E-05   -.26175E-04
  21  Prefactor     .10000E-03    14.181       -.49283E-06** at limit **
  22  Prefactor     .10000E-03    16.345        .79503E-06** at limit **
  23  Prefactor     5.3897        27.018        .15966E-06    .12837E-04
  24  Prefactor     43.773        36.022        .20127E-06   -.23928E-04
  25  Prefactor     .10000E-03    261.93       -.58821E-05** at limit **
  26  Prefactor     .10000E-03    4.2705        .21672E-06** at limit **
  27  norm          10.388        11.663        .14594E-06    .26913E-04
  28  Prefactor     .10000E-03    53.571       -.56111E-06** at limit **
  29  norm          2.8314        26.746       -.30675E-05   -.11943E-05
  30  Prefactor     10.356        24.648        .28974E-06    .67012E-05
  31  Prefactor     .10000E-03    32.452        .10506E-05** at limit **
  32  norm          10.874        4.7421        .60475E-07    .21057E-04
  33  Normalizat    .57464        .35862       -.23294E-05   -.15711E-03
  34  Prefactor     1.1456        .22933        .15238E-06   -.34283E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 45.596
  norm       = 0.526598
  norm       = 1.41676
  Prefactor  = 0.721693
  Prefactor  = 7.37495
  Prefactor  = 8.67906
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100017
  Prefactor  = 0.0001
  Prefactor  = 62.3795
  Prefactor  = 0.0001
  Prefactor  = 80.0673
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.38966
  Prefactor  = 43.7731
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  norm       = 10.3881
  Prefactor  = 0.0001
  norm       = 2.83139
  Prefactor  = 10.3555
  Prefactor  = 0.0001
  norm       = 10.874
  Normalizat = 0.574639
  Prefactor  = 1.14555
 **********
 **   18 **HESSE 
 **********

 FCN=   3679.210     FROM HESSE     STATUS=OK           726 CALLS     5585 TOTAL
                     EDM=   .58E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    37.679        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    17.856        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    75.759        .40044E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    5.1990        .13452E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    16.856        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     45.596        40.562        .59383E-04   -1.4356    
   7  norm          .52660        1.9965        .15833E-03   -1.5563    
   8  norm          1.4168        1.3407        .56966E-04   -1.5470    
   9  Prefactor     .72169        46.177        .31678E-02   -1.5538    
  10  Prefactor     7.3750        19.484        .14760E-03   -1.5165    
  11  Prefactor     8.6791        9.4815        .13607E-03   -1.5119    
  12  Prefactor     .10000E-03    15.578        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    2.9976        .10242E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    39.926        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    12.647        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10002E-03    251.97        .20228E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    4.9285        .13127E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     62.380        113.87        .50818E-04   -1.4127    
  19  Prefactor     .10000E-03    212.26        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     80.067        89.727        .22448E-03   -1.3916    
  21  Prefactor     .10000E-03    14.174        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    16.529        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     5.3897        26.883        .17323E-03   -1.5244    
  24  Prefactor     43.773        36.015        .60598E-04   -1.4384    
  25  Prefactor     .10000E-03    260.41        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    4.3009        .12246E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          10.388        11.652        .12432E-03   -1.5063    
  28  Prefactor     .10000E-03    53.560        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          2.8314        26.863        .12091E-02   -1.5371    
  30  Prefactor     10.356        24.583        .12457E-03   -1.5064    
  31  Prefactor     .10000E-03    32.428        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  norm          10.874        4.7444        .84912E-04   -1.5048    
  33  Normalizat    .57464        .39325        .41246E-03   -1.0907    
  34  Prefactor     1.1456        .25601        .21265E-03   -.88024    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.75887e-10
Minuit parameter uncertainties:
  1  4.03747e-05
  2  0.000117713
  3  0.000177007
  4  1.45285e-05
  5  2.57313e-05
  6  40.5866
  7  1.99672
  8  1.34072
  9  11.5541
  10  19.5005
  11  9.48309
  12  3.96975e-06
  13  1.9729e-06
  14  7.87168e-05
  15  7.86458e-05
  16  0.00419171
  17  2.58226e-05
  18  114.269
  19  0.000349551
  20  89.879
  21  1.95907e-05
  22  8.29552e-05
  23  24.0914
  24  36.0326
  25  0.00148311
  26  2.37919e-05
  27  11.655
  28  0.000248808
  29  17.4525
  30  24.6071
  31  5.29499e-05
  32  4.74459
  33  0.395185
  34  0.256289
Done.

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

Extracting fit parameters...

4FGL J1741.2+5739
   Spectrum: PowerLaw
364    Prefactor:  1.000e-04  3.496e-04  1.000e-04  1.000e+04 ( 1.000e-14)
365        Index:  2.378e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
366        Scale:  1.396e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
665    Prefactor:  1.146e+00  2.563e-01  0.000e+00  1.000e+01 ( 1.000e+00)
666        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
667        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
664   Normalization:  5.746e-01  3.952e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 265.323 57.659
Photon Flux Upper Limit: 1.50e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.16e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/6819/likelihoodResults_437356801_437616001_4FGL_J1741.2+5739_daily_bin764.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) = 3679.21036639
delta logL = -2.11938863686e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3679.21034721
delta logL = -2.01740476768e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .60348E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7095       1.0000          .0000       10.000    
     3 'Normalizat'    .57464       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1456       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6680E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   3679.210     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      247 TOTAL
                     EDM=   .94E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    8059.4        .10530E-01** at limit **
   2  Index         2.7075        5.9374        .50000        .29338E-05
   3  Normalizat    .57464        .61534E-01    .93080E-01    .18881E-04
   4  Prefactor     1.1456        .43864E-01    .36066E-01   -.36611E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.70753
  Normalizat = 0.574638
  Prefactor  = 1.14555
 **********
 **   18 **HESSE 
 **********

 FCN=   3679.210     FROM HESSE     STATUS=OK            31 CALLS      278 TOTAL
                     EDM=   .98E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    127.39        .21061E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.7075        6.3429        .50000       -.47630    
   3  Normalizat    .57464        .34102        .41248E-03   -1.0907    
   4  Prefactor     1.1456        .24455        .21265E-03   -.88024    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.81229e-12
Minuit parameter uncertainties:
  1  0.000245805
  2  4.44899
  3  0.342277
  4  0.244788
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/6819': 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) = 3679.21034533
delta logL = -1.37787083077e-07

Extracting fit parameters...

4FGL J1741.2+5739
   Spectrum: PowerLaw
364    Prefactor:  1.000e-04  2.458e-04  1.000e-04  1.000e+04 ( 1.000e-14)
365        Index:  2.708e+00  4.449e+00  0.000e+00  1.000e+01 (-1.000e+00)
366        Scale:  1.396e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
665    Prefactor:  1.146e+00  2.448e-01  0.000e+00  1.000e+01 ( 1.000e+00)
666        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
667        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
664   Normalization:  5.746e-01  3.423e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 265.323 57.659

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/6819/cmap_HighResolution_437356801_437616001_4FGL_J1741.2+5739_daily_bin764.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.16e-02', job_status='DONE', photon_flux_upper_limit='1.50e-07', time_completed='2021-09-18 04:54:00.563797', job_id='6819', GAL2='1.15', fit_tolerance='1e-08', EG2='0.57', EG='0.57', time_epoch_completed='1631966040.56', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.15', dlogl='-1.38e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.38' WHERE bin_id='764' AND source_name='4FGL J1741.2+5739' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 18 04:54:00 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0265>
Subject: Job 6819: <4FGL_J1741.2+5739_daily_bin764> in cluster <slac> Done

Job <4FGL_J1741.2+5739_daily_bin764> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sat Sep 18 04:40:20 2021
Job was executed on host(s) <bullet0265>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 18 04:40:21 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep 18 04:40:21 2021
Terminated at Sat Sep 18 04:54:01 2021
Results reported at Sat Sep 18 04:54:01 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1741.2+5739_daily_bin764 265.323 57.6587 437356801 437616001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1741.2+5739 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   801.02 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             357.64 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   819 sec.
    Turnaround time :                            821 sec.

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

