/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 0 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 = 6842
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1749.0+4321_daily_bin391
RA = 267.255, Dec = 43.3616
tmin = 340675201, tmax = 340934401
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='194035', job_status='RUN', time_executed='2021-09-18 15:56:25.356080', time_epoch_executed='1632005785.36' WHERE source_name='4FGL J1749.0+4321' and cadence='daily' and bin_id='391'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/194035

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

Retrieving the FT1 file...

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

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

Retrieving 49 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/194035/ft1_4FGL_J1749.0+4321_daily_bin391.fits


Retrieving the FT1 file...

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

Retrieving 51 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/194035/ft2_4FGL_J1749.0+4321_daily_bin391.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/194035/ft1_4FGL_J1749.0+4321_daily_bin391.fits outfile=/scratch/kocevski/194035/ft1_filteredMKT_4FGL_J1749.0+4321_daily_bin391.fits ra=267.255 dec=43.3616 rad=12.0 tmin=340675201.0 tmax=340934401.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 6.10
user 5.83
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/194035/ft2_4FGL_J1749.0+4321_daily_bin391.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/194035/ft1_filteredMKT_4FGL_J1749.0+4321_daily_bin391.fits evtable="EVENTS" outfile="/scratch/kocevski/194035/ft1_filtered_4FGL_J1749.0+4321_daily_bin391.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.50
user 0.32
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/194035/ft1_filtered_4FGL_J1749.0+4321_daily_bin391.fits" evtable="EVENTS" scfile=/scratch/kocevski/194035/ft2_4FGL_J1749.0+4321_daily_bin391.fits sctable="SC_DATA" outfile=/scratch/kocevski/194035/ltcube_340675201_340934401_4FGL_J1749.0+4321_daily_bin391.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/194035/ft2_4FGL_J1749.0+4321_daily_bin391.fits
.....................!
real 11.25
user 10.86
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/194035/ft1_filtered_4FGL_J1749.0+4321_daily_bin391.fits evtable="EVENTS" scfile=/scratch/kocevski/194035/ft2_4FGL_J1749.0+4321_daily_bin391.fits sctable="SC_DATA" expcube=/scratch/kocevski/194035/ltcube_340675201_340934401_4FGL_J1749.0+4321_daily_bin391.fits outfile=/scratch/kocevski/194035/expmap_340675201_340934401_4FGL_J1749.0+4321_daily_bin391.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/194035/ltcube_340675201_340934401_4FGL_J1749.0+4321_daily_bin391.fits
.....................!
real 191.09
user 185.78
sys 4.96

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/194035/ft1_filtered_4FGL_J1749.0+4321_daily_bin391.fits scfile=/scratch/kocevski/194035/ft2_4FGL_J1749.0+4321_daily_bin391.fits outfile=/scratch/kocevski/194035/cmap_340675201_340934401_4FGL_J1749.0+4321_daily_bin391.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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/194035/ft1_filtered_4FGL_J1749.0+4321_daily_bin391.fits scfile=/scratch/kocevski/194035/ft2_4FGL_J1749.0+4321_daily_bin391.fits outfile=/scratch/kocevski/194035/cmap_HighResolution_340675201_340934401_4FGL_J1749.0+4321_daily_bin391.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.55
user 0.39
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/194035/ft1_filtered_4FGL_J1749.0+4321_daily_bin391.fits', '/scratch/kocevski/194035/ft2_4FGL_J1749.0+4321_daily_bin391.fits', expMap='/scratch/kocevski/194035/expmap_340675201_340934401_4FGL_J1749.0+4321_daily_bin391.fits', expCube='/scratch/kocevski/194035/ltcube_340675201_340934401_4FGL_J1749.0+4321_daily_bin391.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/194035/Model_4FGL_J1749.0+4321_daily_bin391.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/194035/ft1_filtered_4FGL_J1749.0+4321_daily_bin391.fits
Spacecraft file(s): /scratch/kocevski/194035/ft2_4FGL_J1749.0+4321_daily_bin391.fits
Exposure map: /scratch/kocevski/194035/expmap_340675201_340934401_4FGL_J1749.0+4321_daily_bin391.fits
Exposure cube: /scratch/kocevski/194035/ltcube_340675201_340934401_4FGL_J1749.0+4321_daily_bin391.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/194035/Model_4FGL_J1749.0+4321_daily_bin391.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) = 6222.46502788

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    4.1365       1.0000         .10000E-03   10000.    
     3 'norm      '    .82612       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    2.0595       1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    2.3551       1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.6910       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    2.9760       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    22.132       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.2505       1.0000         .10000E-03   10000.    
    19 'Prefactor '    17.227       1.0000         .10000E-03   10000.    
    20 'norm      '    1.0052       1.0000         .10000E-03   10000.    
    21 'norm      '    118.01       1.0000         .10000E-03   10000.    
    22 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .12823E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    9.1172       1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.0560       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .94812       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.

 FCN=   6222.456     FROM MIGRAD    STATUS=CONVERGED    669 CALLS     3439 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .96134        .90712E-02** at limit **
   2  norm          4.1367        1.9885        .49547E-02   -.79714E-04
   3  norm          .82613        .91291        .12537E-01    .74080E-03
   4  Prefactor     .10000E-03    4.8086        .90712E-02** at limit **
   5  norm          2.0595        .92856        .71991E-02    .45660E-04
   6  norm          .10000E-03    2.7443        .90712E-02** at limit **
   7  norm          2.3554        2.0240        .66770E-02    .54995E-03
   8  Prefactor     1.6914        2.7854        .80926E-02    .42548E-03
   9  Prefactor     .10000E-03    13.572        .90712E-02** at limit **
  10  norm          2.9761        5.2822        .58839E-02    .10643E-02
  11  Prefactor     .10016E-03    74.267        .90712E-02** at limit **
  12  Prefactor     .10017E-03    62.318        .90712E-02** at limit **
  13  norm          .10000E-03    1.9480        .90712E-02** at limit **
  14  Prefactor     22.131        26.078        .21285E-02    .15326E-03
  15  Prefactor     .10000E-03    4.4491        .90712E-02** at limit **
  16  Prefactor     .10010E-03    60.681        .90712E-02** at limit **
  17  Prefactor     .10000E-03    13.489        .90712E-02** at limit **
  18  Prefactor     2.2547        20.525        .68475E-02   -.40725E-03
  19  Prefactor     17.228        12.731        .24124E-02   -.41317E-03
  20  norm          1.0052        1.3245        .13448E-02    .21127E-02
  21  norm          118.01        81.459        .92601E-03   -.39741E-03
  22  norm          .10000E-03    5.0669        .90712E-02** at limit **
  23  Prefactor     .10014E-03    53.721        .90712E-02** at limit **
  24  Prefactor     .10001E-03    4.6305        .90712E-02** at limit **
  25  norm          .10000E-03    13.610        .90712E-02** at limit **
  26  norm          9.1162        11.351        .33184E-02    .16291E-03
  27  Normalizat    1.0560        .21766        .67045E-01    .10421E-04
  28  Prefactor     .94805        .13322        .45615E-01    .87542E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 4.13665
  norm       = 0.826127
  Prefactor  = 0.000100002
  norm       = 2.05954
  norm       = 0.0001
  norm       = 2.35541
  Prefactor  = 1.69139
  Prefactor  = 0.0001
  norm       = 2.97613
  Prefactor  = 0.000100164
  Prefactor  = 0.000100169
  norm       = 0.0001
  Prefactor  = 22.1314
  Prefactor  = 0.000100004
  Prefactor  = 0.000100102
  Prefactor  = 0.0001
  Prefactor  = 2.25468
  Prefactor  = 17.2281
  norm       = 1.00523
  norm       = 118.013
  norm       = 0.0001
  Prefactor  = 0.000100141
  Prefactor  = 0.000100009
  norm       = 0.0001
  norm       = 9.11624
  Normalizat = 1.05601
  Prefactor  = 0.94805
 **********
 **   18 **HESSE 
 **********

 FCN=   6222.456     FROM HESSE     STATUS=OK           515 CALLS     3954 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    .96706        .75522E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          4.1367        1.9893        .75149E-04   -1.5301    
   3  norm          .82613        .87148        .76393E-03   -1.5526    
   4  Prefactor     .10000E-03    4.8624        .16878E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          2.0595        .92600        .49170E-04   -1.5421    
   6  norm          .10000E-03    2.7475        .12760E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          2.3554        2.0176        .98101E-04   -1.5401    
   8  Prefactor     1.6914        2.7560        .16423E-03   -1.5448    
   9  Prefactor     .10000E-03    13.574        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          2.9761        5.2680        .23223E-03   -1.5363    
  11  Prefactor     .10016E-03    74.389        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10017E-03    62.389        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    1.9553        .10750E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     22.131        26.078        .85141E-04   -1.4767    
  15  Prefactor     .10000E-03    4.6314        .32470E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10010E-03    60.797        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    13.494        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     2.2547        20.210        .27390E-03   -1.5408    
  19  Prefactor     17.228        12.735        .96498E-04   -1.4878    
  20  norm          1.0052        1.3243        .26896E-03   -1.5507    
  21  norm          118.01        80.853        .37041E-04   -1.3531    
  22  norm          .10000E-03    5.1355        .17335E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10014E-03    55.841        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10001E-03    4.6855        .16569E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    13.842        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          9.1162        11.352        .13274E-03   -1.5104    
  27  Normalizat    1.0560        .26416        .29660E-03   -.91177    
  28  Prefactor     .94805        .16244        .19480E-03   -.94482    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.54235e-08
Minuit parameter uncertainties:
  1  4.8642e-07
  2  1.98932
  3  0.871494
  4  0.000210107
  5  0.926008
  6  1.57762e-06
  7  2.01767
  8  2.75624
  9  0.000107842
  10  5.26886
  11  0.00699481
  12  0.00649796
  13  1.06461e-07
  14  26.0912
  15  0.000267024
  16  0.00497733
  17  3.17234e-05
  18  13.5063
  19  12.7374
  20  1.32436
  21  80.9286
  22  5.33079e-05
  23  0.0056151
  24  0.000411838
  25  2.41865e-05
  26  11.3551
  27  0.264493
  28  0.162528
Done.

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

Extracting fit parameters...

4FGL J1749.0+4321
   Spectrum: PowerLaw
367    Prefactor:  1.723e+01  1.274e+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:  9.480e-01  1.625e-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:  1.056e+00  2.645e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.86
Ra Dec: 267.255 43.362
Photon Index (Fixed Index): 2.09 +/- 0.00
Photon Flux (Fixed Index): 4.92e-08 +/- 3.63e-08
Energy Flux (Fixed Index): 2.77e-05 +/- 2.05e-05

TS (Fixed Index): 3.86
Ra Dec: 267.255 43.362
Photon Flux Upper Limit: 1.30e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.84e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/194035/likelihoodResults_340675201_340934401_4FGL_J1749.0+4321_daily_bin391.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) = 6222.03141168
delta logL = 0.42479320393

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6222.03032668
delta logL = 0.425878206015

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.8259       1.0000         .10000E-03   10000.    
     2 'Index     '    2.7059       1.0000          .0000       10.000    
     3 'Normalizat'    .99747       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97096       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   6222.030     FROM MIGRAD    STATUS=FAILED        99 CALLS      320 TOTAL
                     EDM=   .21E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.8176        17.558        .66283E-03   -.42845E-04
   2  Index         2.7068        1.0670        .41704E-02    .59176E-03
   3  Normalizat    .99725        .27105        .30403E-03   -.13798E-04
   4  Prefactor     .97110        .16564        .19267E-03   -.97948E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6222.030     FROM SIMPLEX   STATUS=UNCHANGED     75 CALLS      395 TOTAL
                     EDM=   .15E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.8176        17.558        .18981E-03   -1.5114    
   2  Index         2.7068        1.0670        .61971E-03   -.47646    
   3  Normalizat    .99725        .27105        .36620E-03   -.93123    
   4  Prefactor     .97110        .16564        .19346E-03   -.93699    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6222.030     FROM MIGRAD    STATUS=CONVERGED     29 CALLS      424 TOTAL
                     EDM=   .11E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.8176        11.964        .26513E-04   -.50597E-04
   2  Index         2.7068        .73001        .83408E-03   -.11340E-04
   3  Normalizat    .99725        .26603        .12161E-04   -.13835E-04
   4  Prefactor     .97110        .16362        .77069E-05   -.97358E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.81762
  Index      = 2.70684
  Normalizat = 0.997246
  Prefactor  = 0.971096
 **********
 **   18 **HESSE 
 **********

 FCN=   6222.030     FROM HESSE     STATUS=OK            23 CALLS      447 TOTAL
                     EDM=   .12E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.8176        11.471        .10605E-05   -1.5114    
   2  Index         2.7068        .69999        .33363E-04   -.47646    
   3  Normalizat    .99725        .26545        .24323E-05   -.93123    
   4  Prefactor     .97110        .16340        .15414E-05   -.93699    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.15437e-12
Minuit parameter uncertainties:
  1  11.474
  2  0.702914
  3  0.265801
  4  0.163485
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/194035': 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) = 6222.03032506
delta logL = 0.425879826941

Extracting fit parameters...

4FGL J1749.0+4321
   Spectrum: PowerLaw
367    Prefactor:  8.818e+00  1.147e+01  1.000e-04  1.000e+04 ( 1.000e-13)
368        Index:  2.707e+00  7.029e-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:  9.711e-01  1.635e-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:  9.972e-01  2.658e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.76
Ra Dec: 267.255 43.362
Photon Index (Free Index): 2.71 +/- 0.70
Photon Flux (Free Index): 8.81e-08 +/- 6.19e-08
Energy Flux (Free Index): 2.11e-05 +/- 1.32e-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/194035/cmap_HighResolution_340675201_340934401_4FGL_J1749.0+4321_daily_bin391.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.84e-03', comment='SUCCESS', photon_flux='4.92e-08', energy_flux2='2.11e-05', photon_flux_error='3.63e-08', dlogl='4.26e-01', energy_flux='2.77e-05', photon_flux2='8.81e-08', job_status='DONE', time_completed='2021-09-18 16:11:21.806855', photon_index_error2='0.70', photon_index2='2.71', ts='3.86', fit_tolerance='1e-08', GAL='0.95', photon_index_error='0.00', photon_flux_upper_limit='1.30e-07', energy_flux_error2='1.32e-05', EG='1.06', time_epoch_completed='1632006681.81', return_code='0', job_id='194035', GAL2='0.97', EG2='1.00', return_code2='0', energy_flux_error='2.05e-05', photon_flux_error2='6.19e-08', ts2='4.76', photon_index='2.09' WHERE bin_id='391' AND source_name='4FGL J1749.0+4321' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 18 16:11:21 PDT 2021




------------------------------------------------------------
Sender: LSF System <lsf@bullet0245>
Subject: Job 191777: <4FGL_J1749.0+4321_daily_bin391> in cluster <slac> Done

Job <4FGL_J1749.0+4321_daily_bin391> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sat Sep 18 15:50:17 2021
Job was executed on host(s) <bullet0245>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 18 15:50:18 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:50:18 2021
Terminated at Sat Sep 18 16:09:11 2021
Results reported at Sat Sep 18 16:09:11 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1749.0+4321_daily_bin391 267.255 43.3616 340675201 340934401 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 :                                   896.37 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             292.41 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   1133 sec.
    Turnaround time :                            1134 sec.

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


------------------------------------------------------------
Sender: LSF System <scs@bullet0141>
Subject: Job 194035: <4FGL_J1749.0+4321_daily_bin391> in cluster <slac> Done

Job <4FGL_J1749.0+4321_daily_bin391> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sat Sep 18 15:56:14 2021
Job was executed on host(s) <bullet0141>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 18 15:56:16 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:56:16 2021
Terminated at Sat Sep 18 16:11:22 2021
Results reported at Sat Sep 18 16:11:22 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1749.0+4321_daily_bin391 267.255 43.3616 340675201 340934401 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 :                                   898.40 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             305.10 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   906 sec.
    Turnaround time :                            908 sec.

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

