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


Performing analysis on: 4FGL_J1749.0+4321_daily_bin972
RA = 267.255, Dec = 43.3616
tmin = 491270401, tmax = 491529601
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='195245', job_status='RUN', time_executed='2021-09-18 16:00:33.154266', time_epoch_executed='1632006033.15' WHERE source_name='4FGL J1749.0+4321' and cadence='daily' and bin_id='972'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/195245

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/195245/ft1_4FGL_J1749.0+4321_daily_bin972.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/195245/ft2_4FGL_J1749.0+4321_daily_bin972.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/195245/ft1_4FGL_J1749.0+4321_daily_bin972.fits outfile=/scratch/kocevski/195245/ft1_filteredMKT_4FGL_J1749.0+4321_daily_bin972.fits ra=267.255 dec=43.3616 rad=12.0 tmin=491270401.0 tmax=491529601.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 3.65
user 3.44
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/195245/ft2_4FGL_J1749.0+4321_daily_bin972.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/195245/ft1_filteredMKT_4FGL_J1749.0+4321_daily_bin972.fits evtable="EVENTS" outfile="/scratch/kocevski/195245/ft1_filtered_4FGL_J1749.0+4321_daily_bin972.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.16

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/195245/ft1_filtered_4FGL_J1749.0+4321_daily_bin972.fits evtable="EVENTS" scfile=/scratch/kocevski/195245/ft2_4FGL_J1749.0+4321_daily_bin972.fits sctable="SC_DATA" expcube=/scratch/kocevski/195245/ltcube_491270401_491529601_4FGL_J1749.0+4321_daily_bin972.fits outfile=/scratch/kocevski/195245/expmap_491270401_491529601_4FGL_J1749.0+4321_daily_bin972.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/195245/ltcube_491270401_491529601_4FGL_J1749.0+4321_daily_bin972.fits
.....................!
real 191.07
user 185.61
sys 5.10

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/195245/ft1_filtered_4FGL_J1749.0+4321_daily_bin972.fits scfile=/scratch/kocevski/195245/ft2_4FGL_J1749.0+4321_daily_bin972.fits outfile=/scratch/kocevski/195245/cmap_491270401_491529601_4FGL_J1749.0+4321_daily_bin972.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.54
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/195245/ft1_filtered_4FGL_J1749.0+4321_daily_bin972.fits scfile=/scratch/kocevski/195245/ft2_4FGL_J1749.0+4321_daily_bin972.fits outfile=/scratch/kocevski/195245/cmap_HighResolution_491270401_491529601_4FGL_J1749.0+4321_daily_bin972.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.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.159       1.0000         .10000E-03   10000.    
     2 'norm      '    4.1102       1.0000         .10000E-03   10000.    
     3 'norm      '    .45962       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10061E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    4.1331       1.0000         .10000E-03   10000.    
     7 'norm      '    .51407E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.4987       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .11349E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    65.068       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .12151E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    3.9643       1.0000         .10000E-03   10000.    
    14 'Prefactor '    7.0827       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10216E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    26.093       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10297E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    6.7155       1.0000         .10000E-03   10000.    
    20 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    3.1177       1.0000         .10000E-03   10000.    
    22 'norm      '    7.4617       1.0000         .10000E-03   10000.    
    23 'Prefactor '    14.730       1.0000         .10000E-03   10000.    
    24 'Prefactor '    4.8581       1.0000         .10000E-03   10000.    
    25 'norm      '    9.3635       1.0000         .10000E-03   10000.    
    26 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    .92153       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.1194       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=   8941.698     FROM MIGRAD    STATUS=CONVERGED    720 CALLS     3566 TOTAL
                     EDM=   .63E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.159        3.8323       -.12286E-07   -.58678E-04
   2  norm          4.1101        1.7779       -.75040E-07   -.14297E-04
   3  norm          .45977        .60995        .14032E-06    .66948E-03
   4  Prefactor     .10000E-03    3.9562        .96455E-07** at limit **
   5  norm          .10000E-03    .30111        .39683E-07** at limit **
   6  norm          4.1301        7.4857        .46299E-06   -.15222E-04
   7  norm          .10000E-03    .55863        .41959E-07** at limit **
   8  Prefactor     4.4988        2.9652       -.11362E-07   -.23354E-04
   9  Prefactor     .10000E-03    29.781        .38451E-06** at limit **
  10  norm          .10000E-03    1.7303        .95535E-07** at limit **
  11  Prefactor     65.079        52.139        .24864E-06   -.96159E-05
  12  Prefactor     .10000E-03    76.296       -.21147E-05** at limit **
  13  norm          3.9643        4.4737        .37417E-06   -.93329E-05
  14  Prefactor     7.2328        135.54       -.52890E-05   -.47802E-05
  15  Prefactor     .10000E-03    1.4328       -.53129E-07** at limit **
  16  Prefactor     .10000E-03    22.101       -.94246E-07** at limit **
  17  Prefactor     25.874        61.118        .29650E-05   -.11050E-04
  18  Prefactor     .10000E-03    11.686        .70020E-06** at limit **
  19  Prefactor     6.7144        6.4542       -.11117E-06   -.11103E-04
  20  norm          .10000E-03    .94869        .19597E-06** at limit **
  21  norm          3.0249        57.281        .92736E-05    .12612E-05
  22  norm          7.4608        7.5801       -.77832E-07   -.11670E-04
  23  Prefactor     14.721        15.777       -.23230E-06   -.45043E-05
  24  Prefactor     4.8582        4.3525       -.84715E-07   -.35873E-04
  25  norm          9.3647        7.5380       -.36208E-07   -.58357E-05
  26  norm          .10000E-03    3.9559       -.16746E-07** at limit **
  27  Normalizat    .92145        .19916        .83860E-07   -.10062E-03
  28  Prefactor     1.1194        .12114       -.39726E-06   -.92297E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.1593
  norm       = 4.11008
  norm       = 0.459774
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 4.13007
  norm       = 0.000100001
  Prefactor  = 4.49882
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 65.0788
  Prefactor  = 0.0001
  norm       = 3.96425
  Prefactor  = 7.23277
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 25.874
  Prefactor  = 0.0001
  Prefactor  = 6.71442
  norm       = 0.0001
  norm       = 3.0249
  norm       = 7.46076
  Prefactor  = 14.7209
  Prefactor  = 4.85815
  norm       = 9.36469
  norm       = 0.0001
  Normalizat = 0.921447
  Prefactor  = 1.11943
 **********
 **   18 **HESSE 
 **********

 FCN=   8941.698     FROM HESSE     STATUS=OK           529 CALLS     4095 TOTAL
                     EDM=   .29E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.159        3.8338        .10402E-03   -1.5040    
   2  norm          4.1101        1.7777        .40206E-03   -1.5302    
   3  norm          .45977        .52119        .83335E-03   -1.5572    
   4  Prefactor     .10000E-03    4.0169        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    .72231        .99994E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          4.1301        7.4687        .19827E-03   -1.5301    
   7  norm          .10000E-03    7.1781        .13390E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     4.4988        2.9653        .12782E-03   -1.5284    
   9  Prefactor     .10000E-03    29.924        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    1.7357        .12133E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     65.079        52.155        .49752E-04   -1.4093    
  12  Prefactor     .10000E-03    76.462        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          3.9643        4.4643        .20179E-03   -1.5310    
  14  Prefactor     7.2328        134.00        .15073E-03   -1.5170    
  15  Prefactor     .10000E-03    1.4402        .11048E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    22.122        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     25.874        61.151        .78424E-04   -1.4690    
  18  Prefactor     .10000E-03    11.804        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     6.7144        6.4511        .15484E-03   -1.5190    
  20  norm          .10000E-03    1.9177        .17776E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          3.0249        56.451        .22963E-03   -1.5360    
  22  norm          7.4608        7.5703        .14682E-03   -1.5162    
  23  Prefactor     14.721        15.772        .10436E-03   -1.4940    
  24  Prefactor     4.8582        4.3478        .18058E-03   -1.5267    
  25  norm          9.3647        7.5322        .13097E-03   -1.5096    
  26  norm          .10000E-03    3.9664        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    .92145        .22878        .32684E-03   -.95711    
  28  Prefactor     1.1194        .14144        .19232E-03   -.88848    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.92981e-10
Minuit parameter uncertainties:
  1  3.83393
  2  1.77769
  3  0.5212
  4  3.57918e-06
  5  5.13069e-06
  6  7.47039
  7  0.000161877
  8  2.96538
  9  1.60137e-06
  10  1.46107e-06
  11  52.1915
  12  1.10919e-05
  13  4.46467
  14  62.4259
  15  4.73115e-07
  16  1.86033e-06
  17  61.2992
  18  3.05822e-05
  19  6.45178
  20  3.84301e-05
  21  26.1632
  22  7.57125
  23  15.7761
  24  4.34812
  25  7.53297
  26  1.18798e-06
  27  0.229024
  28  0.141484
Done.

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

Extracting fit parameters...

4FGL J1749.0+4321
   Spectrum: PowerLaw
367    Prefactor:  6.714e+00  6.452e+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

GAL_V02
   Spectrum: PowerLaw
674    Prefactor:  1.119e+00  1.415e-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.214e-01  2.290e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.20
Ra Dec: 267.255 43.362
Photon Index (Fixed Index): 2.09 +/- 0.00
Photon Flux (Fixed Index): 1.92e-08 +/- 1.84e-08
Energy Flux (Fixed Index): 1.08e-05 +/- 1.04e-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) = 8941.24689583
delta logL = 0.451451167119

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8941.2401034
delta logL = 0.458243597339

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.9246       1.0000         .10000E-03   10000.    
     2 'Index     '    1.3779       1.0000          .0000       10.000    
     3 'Normalizat'    .93446       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1165       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=   8941.240     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      214 TOTAL
                     EDM=   .89E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.9273        6.4643        .41245E-02   -.16984E-03
   2  Index         1.3766        .53900        .31374       -.62069E-04
   3  Normalizat    .93455        .18554        .73390E-01    .42970E-04
   4  Prefactor     1.1165        .11928        .36992E-01    .34141E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.92733
  Index      = 1.37662
  Normalizat = 0.934552
  Prefactor  = 1.11653
 **********
 **   18 **HESSE 
 **********

 FCN=   8941.240     FROM HESSE     STATUS=OK            31 CALLS      245 TOTAL
                     EDM=   .11E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.9273        6.9148        .16498E-03   -1.5221    
   2  Index         1.3766        .67394        .13307E-01   -.81056    
   3  Normalizat    .93455        .21633        .32475E-03   -.95256    
   4  Prefactor     1.1165        .13983        .19255E-03   -.88940    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.06008e-11
Minuit parameter uncertainties:
  1  6.91569
  2  0.678313
  3  0.216537
  4  0.139875
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/195245': 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) = 8941.24009877
delta logL = 0.45824822653

Extracting fit parameters...

4FGL J1749.0+4321
   Spectrum: PowerLaw
367    Prefactor:  5.927e+00  6.916e+00  1.000e-04  1.000e+04 ( 1.000e-13)
368        Index:  1.377e+00  6.783e-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.117e+00  1.399e-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.346e-01  2.165e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.11
Ra Dec: 267.255 43.362
Photon Index (Free Index): 1.38 +/- 0.68
Photon Flux (Free Index): 6.41e-09 +/- 9.22e-09
Energy Flux (Free Index): 3.06e-05 +/- 4.82e-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/195245/cmap_HighResolution_491270401_491529601_4FGL_J1749.0+4321_daily_bin972.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.92e-08', energy_flux2='3.06e-05', photon_flux_error='1.84e-08', dlogl='4.58e-01', energy_flux='1.08e-05', photon_flux2='6.41e-09', job_status='DONE', time_completed='2021-09-18 16:16:56.973756', photon_index_error2='0.68', photon_index2='1.38', ts='5.20', fit_tolerance='1e-08', GAL='1.12', photon_index_error='0.00', energy_flux_error2='4.82e-05', EG='0.92', time_epoch_completed='1632007016.97', return_code='0', job_id='195245', GAL2='1.12', EG2='0.93', return_code2='0', energy_flux_error='1.04e-05', photon_flux_error2='9.22e-09', ts2='6.11', photon_index='2.09' WHERE bin_id='972' AND source_name='4FGL J1749.0+4321' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 18 16:16:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0048>
Subject: Job 195245: <4FGL_J1749.0+4321_daily_bin972> in cluster <slac> Done

Job <4FGL_J1749.0+4321_daily_bin972> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sat Sep 18 16:00:22 2021
Job was executed on host(s) <bullet0048>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 18 16:00:23 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep 18 16:00:23 2021
Terminated at Sat Sep 18 16:16:57 2021
Results reported at Sat Sep 18 16:16:57 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1749.0+4321_daily_bin972 267.255 43.3616 491270401 491529601 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 :                                   979.37 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             336.91 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   994 sec.
    Turnaround time :                            995 sec.

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

