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


Performing analysis on: 4FGL_J1749.0+4321_daily_bin202
RA = 267.255, Dec = 43.3616
tmin = 291686401, tmax = 291945601
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='187715', job_status='RUN', time_executed='2021-09-18 15:40:31.509147', time_epoch_executed='1632004831.51' WHERE source_name='4FGL J1749.0+4321' and cadence='daily' and bin_id='202'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/187715

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/187715/ft1_4FGL_J1749.0+4321_daily_bin202.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/187715/ft2_4FGL_J1749.0+4321_daily_bin202.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/187715/ft1_4FGL_J1749.0+4321_daily_bin202.fits outfile=/scratch/kocevski/187715/ft1_filteredMKT_4FGL_J1749.0+4321_daily_bin202.fits ra=267.255 dec=43.3616 rad=12.0 tmin=291686401.0 tmax=291945601.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.50
user 3.31
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/187715/ft1_filtered_4FGL_J1749.0+4321_daily_bin202.fits" evtable="EVENTS" scfile=/scratch/kocevski/187715/ft2_4FGL_J1749.0+4321_daily_bin202.fits sctable="SC_DATA" outfile=/scratch/kocevski/187715/ltcube_291686401_291945601_4FGL_J1749.0+4321_daily_bin202.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/187715/ft2_4FGL_J1749.0+4321_daily_bin202.fits
.....................!
real 12.32
user 11.92
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/187715/ft1_filtered_4FGL_J1749.0+4321_daily_bin202.fits evtable="EVENTS" scfile=/scratch/kocevski/187715/ft2_4FGL_J1749.0+4321_daily_bin202.fits sctable="SC_DATA" expcube=/scratch/kocevski/187715/ltcube_291686401_291945601_4FGL_J1749.0+4321_daily_bin202.fits outfile=/scratch/kocevski/187715/expmap_291686401_291945601_4FGL_J1749.0+4321_daily_bin202.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/187715/ltcube_291686401_291945601_4FGL_J1749.0+4321_daily_bin202.fits
.....................!
real 192.33
user 187.35
sys 4.43

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/187715/ft1_filtered_4FGL_J1749.0+4321_daily_bin202.fits scfile=/scratch/kocevski/187715/ft2_4FGL_J1749.0+4321_daily_bin202.fits outfile=/scratch/kocevski/187715/cmap_291686401_291945601_4FGL_J1749.0+4321_daily_bin202.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.57
user 0.37
sys 0.19

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/187715/ft1_filtered_4FGL_J1749.0+4321_daily_bin202.fits scfile=/scratch/kocevski/187715/ft2_4FGL_J1749.0+4321_daily_bin202.fits outfile=/scratch/kocevski/187715/cmap_HighResolution_291686401_291945601_4FGL_J1749.0+4321_daily_bin202.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.58
user 0.40
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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      '    2.0951       1.0000         .10000E-03   10000.    
     3 'norm      '    4.0633       1.0000         .10000E-03   10000.    
     4 'Prefactor '    6.7278       1.0000         .10000E-03   10000.    
     5 'norm      '    .10046E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    3.6642       1.0000         .10000E-03   10000.    
     7 'norm      '    .12498E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.6311       1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.3416       1.0000         .10000E-03   10000.    
    10 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .13067E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    36.349       1.0000         .10000E-03   10000.    
    13 'norm      '    .10033E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    7.6328       1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.5625       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    61.153       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    23.304       1.0000         .10000E-03   10000.    
    20 'norm      '    2.0808       1.0000         .10000E-03   10000.    
    21 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10361E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .69597E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    10.092       1.0000         .10000E-03   10000.    
    26 'norm      '    8.6890       1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.0706       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.0636       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=   8537.281     FROM MIGRAD    STATUS=CONVERGED    725 CALLS     3566 TOTAL
                     EDM=   .73E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .92596        .59076E-07** at limit **
   2  norm          2.0951        1.3236        .10333E-06    .22719E-04
   3  norm          4.0633        1.1859        .12377E-06   -.49737E-03
   4  Prefactor     6.7278        6.8184        .50020E-06   -.45316E-03
   5  norm          .10000E-03    .29647        .19121E-06** at limit **
   6  norm          3.6682        9.1952       -.11645E-05   -.42582E-03
   7  norm          .10000E-03    .71246        .33923E-06** at limit **
   8  Prefactor     1.6311        1.6021        .14458E-06    .45786E-03
   9  Prefactor     1.3131        264.03        .44364E-04   -.51881E-04
  10  norm          .10000E-03    5.7279       -.38560E-06** at limit **
  11  Prefactor     .10000E-03    366.95        .33519E-04** at limit **
  12  Prefactor     36.489        94.892        .16357E-03   -.50830E-05
  13  norm          .10000E-03    3.4364        .69755E-07** at limit **
  14  Prefactor     7.6028        116.74       -.29252E-04   -.46406E-04
  15  Prefactor     4.5621        3.6278        .30244E-06   -.29125E-03
  16  Prefactor     .10000E-03    54.403        .20090E-05** at limit **
  17  Prefactor     61.160        54.631        .14751E-04   -.21175E-04
  18  Prefactor     .10000E-03    3.7533       -.27198E-06** at limit **
  19  Prefactor     23.303        11.134        .73427E-06   -.15951E-03
  20  norm          2.0807        1.7245       -.37343E-06   -.37981E-03
  21  norm          .10000E-03    71.110       -.26569E-05** at limit **
  22  norm          .10000E-03    2.4724        .28363E-07** at limit **
  23  Prefactor     .10000E-03    23.733        .51692E-07** at limit **
  24  Prefactor     .10000E-03    4.8382        .81800E-06** at limit **
  25  norm          10.089        11.508        .18973E-05   -.10855E-03
  26  norm          8.6864        13.287        .16744E-05   -.51062E-04
  27  Normalizat    1.0705        .21457       -.43280E-05   -.49063E-03
  28  Prefactor     1.0637        .12694       -.26534E-05   -.57889E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 2.09508
  norm       = 4.06326
  Prefactor  = 6.72783
  norm       = 0.0001
  norm       = 3.66818
  norm       = 0.0001
  Prefactor  = 1.63114
  Prefactor  = 1.31311
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 36.4892
  norm       = 0.0001
  Prefactor  = 7.60284
  Prefactor  = 4.56208
  Prefactor  = 0.0001
  Prefactor  = 61.1595
  Prefactor  = 0.0001
  Prefactor  = 23.3031
  norm       = 2.08072
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100002
  norm       = 10.0891
  norm       = 8.68643
  Normalizat = 1.07055
  Prefactor  = 1.06369
 **********
 **   18 **HESSE 
 **********

 FCN=   8537.281     FROM HESSE     STATUS=OK           517 CALLS     4083 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    .93198        .86812E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          2.0951        1.3264        .82324E-04   -1.5418    
   3  norm          4.0633        1.1875        .51775E-04   -1.5305    
   4  Prefactor     6.7278        6.7478        .15470E-03   -1.5189    
   5  norm          .10000E-03    .47100        .96031E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          3.6682        9.1625        .21102E-03   -1.5325    
   7  norm          .10000E-03    2.7099        .14838E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     1.6311        1.6231        .11301E-03   -1.5453    
   9  Prefactor     1.3131        267.42        .37836E-03   -1.5479    
  10  norm          .10000E-03    5.8628        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    371.61        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     36.489        94.742        .66473E-04   -1.4499    
  13  norm          .10000E-03    3.5000        .16709E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     7.6028        113.69        .14515E-03   -1.5156    
  15  Prefactor     4.5621        3.6235        .15138E-03   -1.5281    
  16  Prefactor     .10000E-03    54.670        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     61.160        54.041        .51309E-04   -1.4142    
  18  Prefactor     .10000E-03    3.7557        .17483E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     23.303        11.130        .82976E-04   -1.4742    
  20  norm          2.0807        1.7256        .10749E-03   -1.5419    
  21  norm          .10000E-03    71.544        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    2.4785        .14187E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    24.503        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    18.094        .38727E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          10.089        11.474        .12613E-03   -1.5073    
  26  norm          8.6864        13.288        .13598E-03   -1.5118    
  27  Normalizat    1.0705        .25354        .32872E-03   -.90703    
  28  Prefactor     1.0637        .15120        .20265E-03   -.90636    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.57783e-09
Minuit parameter uncertainties:
  1  4.08739e-06
  2  1.3264
  3  1.18747
  4  6.7486
  5  1.37068e-05
  6  9.166
  7  6.63376e-05
  8  1.62317
  9  37.6482
  10  5.66434e-05
  11  0.000200489
  12  95.1366
  13  1.80762e-05
  14  58.9346
  15  3.62369
  16  0.00018158
  17  54.084
  18  4.97813e-05
  19  11.1311
  20  1.7256
  21  0.000162814
  22  5.85122e-06
  23  0.000228845
  24  0.000341389
  25  11.4762
  26  13.2922
  27  0.253825
  28  0.151259
Done.

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

Extracting fit parameters...

4FGL J1749.0+4321
   Spectrum: PowerLaw
367    Prefactor:  2.330e+01  1.113e+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.064e+00  1.513e-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.071e+00  2.538e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 13.72
Ra Dec: 267.255 43.362
Photon Index (Fixed Index): 2.09 +/- 0.00
Photon Flux (Fixed Index): 6.65e-08 +/- 3.17e-08
Energy Flux (Fixed Index): 3.75e-05 +/- 1.79e-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) = 8536.74857536
delta logL = 0.532477541297

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8536.74796215
delta logL = 0.533090750816

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    29.352       1.0000         .10000E-03   10000.    
     2 'Index     '    1.7268       1.0000          .0000       10.000    
     3 'Normalizat'    1.0943       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0556       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=   8536.748     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      295 TOTAL
                     EDM=   .50E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     29.352        14.604        .73951E-04   -.52429E-03
   2  Index         1.7267        .33451        .65940E-02   -.21195E-03
   3  Normalizat    1.0943        .23926        .32554E-03    .58181E-04
   4  Prefactor     1.0556        .14766        .20333E-03    .10187E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 29.3524
  Index      = 1.72674
  Normalizat = 1.09434
  Prefactor  = 1.05556
 **********
 **   18 **HESSE 
 **********

 FCN=   8536.748     FROM HESSE     STATUS=OK            23 CALLS      318 TOTAL
                     EDM=   .53E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     29.352        14.557        .14790E-04   -1.4624    
   2  Index         1.7267        .33338        .26376E-03   -.71372    
   3  Normalizat    1.0943        .23943        .13022E-04   -.89934    
   4  Prefactor     1.0556        .14778        .40666E-04   -.90900    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.3149e-10
Minuit parameter uncertainties:
  1  14.5583
  2  0.333815
  3  0.23967
  4  0.14784
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/187715': 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) = 8536.74796215
delta logL = 0.53309075291

Extracting fit parameters...

4FGL J1749.0+4321
   Spectrum: PowerLaw
367    Prefactor:  2.935e+01  1.456e+01  1.000e-04  1.000e+04 ( 1.000e-13)
368        Index:  1.727e+00  3.338e-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.056e+00  1.478e-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.094e+00  2.397e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 14.78
Ra Dec: 267.255 43.362
Photon Index (Free Index): 1.73 +/- 0.33
Photon Flux (Free Index): 4.62e-08 +/- 3.00e-08
Energy Flux (Free Index): 6.93e-05 +/- 5.55e-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/187715/cmap_HighResolution_291686401_291945601_4FGL_J1749.0+4321_daily_bin202.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.65e-08', energy_flux2='6.93e-05', photon_flux_error='3.17e-08', dlogl='5.33e-01', energy_flux='3.75e-05', photon_flux2='4.62e-08', job_status='DONE', time_completed='2021-09-18 15:56:16.016838', photon_index_error2='0.33', photon_index2='1.73', ts='13.72', fit_tolerance='1e-08', GAL='1.06', photon_index_error='0.00', energy_flux_error2='5.55e-05', EG='1.07', time_epoch_completed='1632005776.02', return_code='0', job_id='187715', GAL2='1.06', EG2='1.09', return_code2='0', energy_flux_error='1.79e-05', photon_flux_error2='3.00e-08', ts2='14.78', photon_index='2.09' WHERE bin_id='202' AND source_name='4FGL J1749.0+4321' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 18 15:56:16 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0216>
Subject: Job 187715: <4FGL_J1749.0+4321_daily_bin202> in cluster <slac> Done

Job <4FGL_J1749.0+4321_daily_bin202> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sat Sep 18 15:40:17 2021
Job was executed on host(s) <bullet0216>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 18 15:40: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:40:18 2021
Terminated at Sat Sep 18 15:56:17 2021
Results reported at Sat Sep 18 15:56:17 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1749.0+4321_daily_bin202 267.255 43.3616 291686401 291945601 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 :                                   941.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             326.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   958 sec.
    Turnaround time :                            960 sec.

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

