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


Performing analysis on: 4FGL_J1749.0+4321_daily_bin841
RA = 267.255, Dec = 43.3616
tmin = 457315201, tmax = 457574401
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='193813', job_status='RUN', time_executed='2021-09-18 15:55:55.229402', time_epoch_executed='1632005755.23' WHERE source_name='4FGL J1749.0+4321' and cadence='daily' and bin_id='841'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/193813

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/193813/ft1_4FGL_J1749.0+4321_daily_bin841.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/193813/ft2_4FGL_J1749.0+4321_daily_bin841.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/193813/ft1_4FGL_J1749.0+4321_daily_bin841.fits outfile=/scratch/kocevski/193813/ft1_filteredMKT_4FGL_J1749.0+4321_daily_bin841.fits ra=267.255 dec=43.3616 rad=12.0 tmin=457315201.0 tmax=457574401.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.94
user 4.67
sys 0.24

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/193813/ft2_4FGL_J1749.0+4321_daily_bin841.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/193813/ft2_4FGL_J1749.0+4321_daily_bin841.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/193813/ft1_filteredMKT_4FGL_J1749.0+4321_daily_bin841.fits evtable="EVENTS" outfile="/scratch/kocevski/193813/ft1_filtered_4FGL_J1749.0+4321_daily_bin841.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.51
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/193813/ft1_filtered_4FGL_J1749.0+4321_daily_bin841.fits" evtable="EVENTS" scfile=/scratch/kocevski/193813/ft2_4FGL_J1749.0+4321_daily_bin841.fits sctable="SC_DATA" outfile=/scratch/kocevski/193813/ltcube_457315201_457574401_4FGL_J1749.0+4321_daily_bin841.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/193813/ft2_4FGL_J1749.0+4321_daily_bin841.fits
.....................!
real 11.66
user 11.30
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/193813/ft1_filtered_4FGL_J1749.0+4321_daily_bin841.fits evtable="EVENTS" scfile=/scratch/kocevski/193813/ft2_4FGL_J1749.0+4321_daily_bin841.fits sctable="SC_DATA" expcube=/scratch/kocevski/193813/ltcube_457315201_457574401_4FGL_J1749.0+4321_daily_bin841.fits outfile=/scratch/kocevski/193813/expmap_457315201_457574401_4FGL_J1749.0+4321_daily_bin841.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/193813/ltcube_457315201_457574401_4FGL_J1749.0+4321_daily_bin841.fits
.....................!
real 190.38
user 185.70
sys 4.27

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

Setting source of interest to:
4FGL J1749.0+4321 @ 267.255 43.3616

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/193813/ft1_filtered_4FGL_J1749.0+4321_daily_bin841.fits scfile=/scratch/kocevski/193813/ft2_4FGL_J1749.0+4321_daily_bin841.fits outfile=/scratch/kocevski/193813/cmap_457315201_457574401_4FGL_J1749.0+4321_daily_bin841.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=267.255 yref=43.3616 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.55
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/193813/ft1_filtered_4FGL_J1749.0+4321_daily_bin841.fits scfile=/scratch/kocevski/193813/ft2_4FGL_J1749.0+4321_daily_bin841.fits outfile=/scratch/kocevski/193813/cmap_HighResolution_457315201_457574401_4FGL_J1749.0+4321_daily_bin841.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=267.255 yref=43.3616 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.40
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/193813/ft1_filtered_4FGL_J1749.0+4321_daily_bin841.fits evtable="EVENTS" scfile=/scratch/kocevski/193813/ft2_4FGL_J1749.0+4321_daily_bin841.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/193813/Model_4FGL_J1749.0+4321_daily_bin841.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/193813/ft1_filtered_4FGL_J1749.0+4321_daily_bin841.fits.....................!
real 65.36
user 64.07
sys 1.14

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/193813/ft1_filtered_4FGL_J1749.0+4321_daily_bin841.fits', '/scratch/kocevski/193813/ft2_4FGL_J1749.0+4321_daily_bin841.fits', expMap='/scratch/kocevski/193813/expmap_457315201_457574401_4FGL_J1749.0+4321_daily_bin841.fits', expCube='/scratch/kocevski/193813/ltcube_457315201_457574401_4FGL_J1749.0+4321_daily_bin841.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/193813/Model_4FGL_J1749.0+4321_daily_bin841.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1749.0+4321'

4FGL J1749.0+4321
   Spectrum: PowerLaw
367    Prefactor:  4.281e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
368        Index:  2.087e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
369        Scale:  1.563e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/193813/ft1_filtered_4FGL_J1749.0+4321_daily_bin841.fits
Spacecraft file(s): /scratch/kocevski/193813/ft2_4FGL_J1749.0+4321_daily_bin841.fits
Exposure map: /scratch/kocevski/193813/expmap_457315201_457574401_4FGL_J1749.0+4321_daily_bin841.fits
Exposure cube: /scratch/kocevski/193813/ltcube_457315201_457574401_4FGL_J1749.0+4321_daily_bin841.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/193813/Model_4FGL_J1749.0+4321_daily_bin841.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) = 7198.65985361

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.2503       1.0000         .10000E-03   10000.    
     2 'norm      '    1.1753       1.0000         .10000E-03   10000.    
     3 'norm      '    .61767       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.7951       1.0000         .10000E-03   10000.    
     5 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    7.3903       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .11308E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .11312E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10116E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10126E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    14.529       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .22540E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    14.376       1.0000         .10000E-03   10000.    
    20 'norm      '    3.5234       1.0000         .10000E-03   10000.    
    21 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10130E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10068E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .12611       1.0000         .10000E-03   10000.    
    26 'norm      '    37.311       1.0000         .10000E-03   10000.    
    27 'Normalizat'    .67912       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.1561       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6770E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7198.521     FROM MIGRAD    STATUS=CONVERGED    724 CALLS     3047 TOTAL
                     EDM=   .45E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.2501        3.0201       -.73788E-06    .21807E-03
   2  norm          1.1753        1.3109        .28299E-07    .14396E-03
   3  norm          .61696        .88311        .31545E-06    .19531E-02
   4  Prefactor     1.7963        6.6791       -.21177E-05    .89297E-04
   5  norm          .10000E-03    .39489        .13307E-06** at limit **
   6  norm          .10000E-03    2.3904       -.41063E-08** at limit **
   7  norm          7.3875        2.5618        .83933E-07   -.26433E-03
   8  Prefactor     .10000E-03    2.7216       -.43136E-06** at limit **
   9  Prefactor     .10000E-03    15.739       -.51296E-07** at limit **
  10  norm          .10000E-03    2.9174       -.22460E-07** at limit **
  11  Prefactor     .10000E-03    36.821        .91915E-06** at limit **
  12  Prefactor     .10001E-03    248.63        .99923E-05** at limit **
  13  norm          .10000E-03    4.2637        .20677E-06** at limit **
  14  Prefactor     .10000E-03    52.223        .18529E-05** at limit **
  15  Prefactor     14.528        6.5612       -.26087E-07    .14264E-03
  16  Prefactor     .10000E-03    57.980       -.12973E-05** at limit **
  17  Prefactor     .10000E-03    224.92        .16262E-05** at limit **
  18  Prefactor     .10000E-03    5.2845       -.97811E-08** at limit **
  19  Prefactor     14.374        10.238        .20775E-06   -.21068E-04
  20  norm          3.5234        2.2932        .86657E-08   -.50990E-04
  21  norm          .10000E-03    25.760        .79056E-06** at limit **
  22  norm          .10000E-03    29.829        .96183E-05** at limit **
  23  Prefactor     .10000E-03    7.3903       -.28180E-06** at limit **
  24  Prefactor     .10000E-03    7.4104        .21188E-06** at limit **
  25  norm          .10100E-03    7.3429        .11259E-05** at limit **
  26  norm          37.341        16.556        .20794E-06    .27073E-03
  27  Normalizat    .67927        .24239        .19572E-06   -.60947E-04
  28  Prefactor     1.1560        .13785        .12857E-06   -.17284E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.25009
  norm       = 1.17533
  norm       = 0.616961
  Prefactor  = 1.79632
  norm       = 0.0001
  norm       = 0.0001
  norm       = 7.38747
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100012
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 14.5278
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 14.3744
  norm       = 3.52339
  norm       = 0.0001
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000101003
  norm       = 37.3415
  Normalizat = 0.679269
  Prefactor  = 1.156
 **********
 **   18 **HESSE 
 **********

 FCN=   7198.521     FROM HESSE     STATUS=OK           527 CALLS     3574 TOTAL
                     EDM=   .98E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.2501        2.9682        .21662E-03   -1.5484    
   2  norm          1.1753        1.2973        .99645E-04   -1.5491    
   3  norm          .61696        .81251        .90917E-03   -1.5551    
   4  Prefactor     1.7963        6.6948        .31211E-03   -1.5440    
   5  norm          .10000E-03    .83259        .10222E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    2.3952        .12810E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          7.3875        2.5622        .73468E-04   -1.5164    
   8  Prefactor     .10000E-03    6.4804        .26709E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    15.746        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    2.9768        .14149E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    36.932        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10001E-03    251.86        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    4.3121        .17080E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    52.370        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     14.528        6.5498        .10508E-03   -1.4945    
  16  Prefactor     .10000E-03    58.332        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    228.14        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    5.2923        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     14.374        10.143        .10564E-03   -1.4950    
  20  norm          3.5234        2.2945        .10090E-03   -1.5333    
  21  norm          .10000E-03    25.784        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    29.712        .38292E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    7.4100        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    7.5369        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10100E-03    13.159        .63090E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          37.341        16.773        .65613E-04   -1.4485    
  27  Normalizat    .67927        .27282        .37607E-03   -1.0472    
  28  Prefactor     1.1560        .15909        .18435E-03   -.87696    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.80478e-10
Minuit parameter uncertainties:
  1  2.96853
  2  1.29729
  3  0.812526
  4  6.6976
  5  4.36504e-06
  6  3.39486e-07
  7  2.56223
  8  0.000122855
  9  4.37946e-06
  10  1.41103e-06
  11  0.000139672
  12  0.00352089
  13  1.25879e-05
  14  0.000286718
  15  6.5501
  16  0.000389283
  17  0.000180195
  18  1.21163e-06
  19  10.1446
  20  2.29458
  21  0.000104954
  22  0.000313136
  23  2.3014e-05
  24  9.11738e-06
  25  0.00726847
  26  16.7751
  27  0.273367
  28  0.159158
Done.

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

Extracting fit parameters...

4FGL J1749.0+4321
   Spectrum: PowerLaw
367    Prefactor:  1.437e+01  1.014e+01  1.000e-04  1.000e+04 ( 1.000e-13)
368        Index:  2.087e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
369        Scale:  1.563e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
674    Prefactor:  1.156e+00  1.592e-01  0.000e+00  1.000e+01 ( 1.000e+00)
675        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
676        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
673   Normalization:  6.793e-01  2.734e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.84
Ra Dec: 267.255 43.362
Photon Index (Fixed Index): 2.09 +/- 0.00
Photon Flux (Fixed Index): 4.10e-08 +/- 2.89e-08
Energy Flux (Fixed Index): 2.31e-05 +/- 1.63e-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) = 7198.52093705
delta logL = 2.48762517003e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7198.52093209
delta logL = 2.98423456115e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    14.404       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0824       1.0000          .0000       10.000    
     3 'Normalizat'    .67956       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1559       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6770E+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=   7198.521     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      259 TOTAL
                     EDM=   .42E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     14.406        11.161        .10553E-03   -.13228E-02
   2  Index         2.0826        .59301        .71296E-02   -.41956E-03
   3  Normalizat    .67953        .24636        .37600E-03    .40295E-03
   4  Prefactor     1.1559        .15356        .18436E-03    .90471E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 14.4062
  Index      = 2.08262
  Normalizat = 0.679527
  Prefactor  = 1.15593
 **********
 **   18 **HESSE 
 **********

 FCN=   7198.521     FROM HESSE     STATUS=OK            23 CALLS      282 TOTAL
                     EDM=   .44E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     14.406        10.947        .21107E-04   -1.4949    
   2  Index         2.0826        .58119        .28518E-03   -.62300    
   3  Normalizat    .67953        .24634        .15040E-04   -1.0471    
   4  Prefactor     1.1559        .15362        .36872E-04   -.87699    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.37265e-09
Minuit parameter uncertainties:
  1  10.9488
  2  0.583196
  3  0.246744
  4  0.153682
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/193813': 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) = 7198.52093184
delta logL = 3.00868323393e-05

Extracting fit parameters...

4FGL J1749.0+4321
   Spectrum: PowerLaw
367    Prefactor:  1.441e+01  1.095e+01  1.000e-04  1.000e+04 ( 1.000e-13)
368        Index:  2.083e+00  5.832e-01  0.000e+00  1.000e+01 (-1.000e+00)
369        Scale:  1.563e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
674    Prefactor:  1.156e+00  1.537e-01  0.000e+00  1.000e+01 ( 1.000e+00)
675        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
676        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
673   Normalization:  6.795e-01  2.467e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.84
Ra Dec: 267.255 43.362
Photon Index (Free Index): 2.08 +/- 0.58
Photon Flux (Free Index): 4.08e-08 +/- 4.29e-08
Energy Flux (Free Index): 2.32e-05 +/- 2.01e-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/193813/cmap_HighResolution_457315201_457574401_4FGL_J1749.0+4321_daily_bin841.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.10e-08', energy_flux2='2.32e-05', photon_flux_error='2.89e-08', dlogl='3.01e-05', energy_flux='2.31e-05', photon_flux2='4.08e-08', job_status='DONE', time_completed='2021-09-18 16:09:15.111148', photon_index_error2='0.58', photon_index2='2.08', ts='5.84', fit_tolerance='1e-08', GAL='1.16', photon_index_error='0.00', energy_flux_error2='2.01e-05', EG='0.68', time_epoch_completed='1632006555.11', return_code='0', job_id='193813', GAL2='1.16', EG2='0.68', return_code2='0', energy_flux_error='1.63e-05', photon_flux_error2='4.29e-08', ts2='5.84', photon_index='2.09' WHERE bin_id='841' AND source_name='4FGL J1749.0+4321' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 18 16:09:15 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0083>
Subject: Job 193813: <4FGL_J1749.0+4321_daily_bin841> in cluster <slac> Done

Job <4FGL_J1749.0+4321_daily_bin841> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sat Sep 18 15:55:39 2021
Job was executed on host(s) <bullet0083>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 18 15:55:40 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep 18 15:55:40 2021
Terminated at Sat Sep 18 16:09:15 2021
Results reported at Sat Sep 18 16:09:15 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1749.0+4321_daily_bin841 267.255 43.3616 457315201 457574401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1749.0+4321 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   787.00 sec.
    Max Memory :                                 1149 MB
    Average Memory :                             334.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   815 sec.
    Turnaround time :                            816 sec.

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

