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


Performing analysis on: 4FGL_J1749.0+4321_daily_bin1009
RA = 267.255, Dec = 43.3616
tmin = 500860801, tmax = 501120001
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='195304', job_status='RUN', time_executed='2021-09-18 16:03:35.928721', time_epoch_executed='1632006215.93' WHERE source_name='4FGL J1749.0+4321' and cadence='daily' and bin_id='1009'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/195304

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/195304/ft1_4FGL_J1749.0+4321_daily_bin1009.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/195304/ft2_4FGL_J1749.0+4321_daily_bin1009.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/195304/ft1_4FGL_J1749.0+4321_daily_bin1009.fits outfile=/scratch/kocevski/195304/ft1_filteredMKT_4FGL_J1749.0+4321_daily_bin1009.fits ra=267.255 dec=43.3616 rad=12.0 tmin=500860801.0 tmax=501120001.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.60
user 3.38
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/195304/ft2_4FGL_J1749.0+4321_daily_bin1009.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/195304/ft1_filteredMKT_4FGL_J1749.0+4321_daily_bin1009.fits evtable="EVENTS" outfile="/scratch/kocevski/195304/ft1_filtered_4FGL_J1749.0+4321_daily_bin1009.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.42
user 0.28
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/195304/ft1_filtered_4FGL_J1749.0+4321_daily_bin1009.fits" evtable="EVENTS" scfile=/scratch/kocevski/195304/ft2_4FGL_J1749.0+4321_daily_bin1009.fits sctable="SC_DATA" outfile=/scratch/kocevski/195304/ltcube_500860801_501120001_4FGL_J1749.0+4321_daily_bin1009.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/195304/ft2_4FGL_J1749.0+4321_daily_bin1009.fits
.....................!
real 9.95
user 9.61
sys 0.28

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/195304/ft1_filtered_4FGL_J1749.0+4321_daily_bin1009.fits evtable="EVENTS" scfile=/scratch/kocevski/195304/ft2_4FGL_J1749.0+4321_daily_bin1009.fits sctable="SC_DATA" expcube=/scratch/kocevski/195304/ltcube_500860801_501120001_4FGL_J1749.0+4321_daily_bin1009.fits outfile=/scratch/kocevski/195304/expmap_500860801_501120001_4FGL_J1749.0+4321_daily_bin1009.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/195304/ltcube_500860801_501120001_4FGL_J1749.0+4321_daily_bin1009.fits
.....................!
real 148.89
user 144.93
sys 3.68

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/195304/ft1_filtered_4FGL_J1749.0+4321_daily_bin1009.fits scfile=/scratch/kocevski/195304/ft2_4FGL_J1749.0+4321_daily_bin1009.fits outfile=/scratch/kocevski/195304/cmap_500860801_501120001_4FGL_J1749.0+4321_daily_bin1009.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.46
user 0.30
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/195304/ft1_filtered_4FGL_J1749.0+4321_daily_bin1009.fits scfile=/scratch/kocevski/195304/ft2_4FGL_J1749.0+4321_daily_bin1009.fits outfile=/scratch/kocevski/195304/cmap_HighResolution_500860801_501120001_4FGL_J1749.0+4321_daily_bin1009.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.45
user 0.30
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .20645       1.0000         .10000E-03   10000.    
     2 'norm      '    5.8484       1.0000         .10000E-03   10000.    
     3 'norm      '    1.0771       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .20850E-02   1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    27.952       1.0000         .10000E-03   10000.    
     7 'norm      '    4.3658       1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.2829       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    2.2508       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    56.155       1.0000         .10000E-03   10000.    
    13 'norm      '    .10050E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    9.3860       1.0000         .10000E-03   10000.    
    16 'Prefactor '    45.976       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10070E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10080E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    2.4653       1.0000         .10000E-03   10000.    
    21 'norm      '    9.8005       1.0000         .10000E-03   10000.    
    22 'norm      '    54.634       1.0000         .10000E-03   10000.    
    23 'Prefactor '    3.2159       1.0000         .10000E-03   10000.    
    24 'Prefactor '    2.1844       1.0000         .10000E-03   10000.    
    25 'norm      '    26.670       1.0000         .10000E-03   10000.    
    26 'norm      '    12.768       1.0000         .10000E-03   10000.    
    27 'Normalizat'    .74028       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.0018       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=   6045.050     FROM MIGRAD    STATUS=CONVERGED    698 CALLS     3523 TOTAL
                     EDM=   .72E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .19903        1.6951        .56042E-06    .31567E-03
   2  norm          5.8486        2.1151       -.20777E-08   -.13638E-04
   3  norm          1.0768        .94379       -.53297E-07   -.14995E-03
   4  Prefactor     .10000E-03    39.217       -.10536E-04** at limit **
   5  norm          .10000E-03    .37583       -.79350E-07** at limit **
   6  norm          27.949        12.781        .16398E-08   -.15294E-04
   7  norm          4.3647        2.6341       -.89066E-07   -.16677E-03
   8  Prefactor     2.2832        4.5681       -.14012E-07   -.26756E-05
   9  Prefactor     .10000E-03    15.400        .14255E-05** at limit **
  10  norm          2.2486        4.2866       -.10295E-07    .42769E-04
  11  Prefactor     .10000E-03    84.154       -.18500E-05** at limit **
  12  Prefactor     56.164        78.516        .80858E-06    .35528E-06
  13  norm          .10000E-03    6.8784       -.33744E-07** at limit **
  14  Prefactor     .10000E-03    40.720        .29373E-05** at limit **
  15  Prefactor     9.3878        7.8158        .36850E-07   -.32041E-04
  16  Prefactor     45.976        60.873        .50461E-07   -.18072E-05
  17  Prefactor     .10000E-03    35.929       -.89854E-06** at limit **
  18  Prefactor     .10000E-03    11.626       -.68270E-06** at limit **
  19  Prefactor     .10000E-03    16.663       -.10955E-05** at limit **
  20  norm          2.4654        1.9510       -.34966E-07   -.20941E-04
  21  norm          9.8115        93.982        .24518E-05    .45955E-05
  22  norm          54.641        19.521        .35561E-06    .18619E-03
  23  Prefactor     3.2169        24.811       -.40669E-05   -.17859E-05
  24  Prefactor     2.1842        5.4130       -.98017E-07   -.61085E-05
  25  norm          26.671        17.063        .60721E-07    .31297E-05
  26  norm          12.768        11.866        .85421E-07    .17347E-05
  27  Normalizat    .74009        .25227       -.15321E-05   -.20223E-04
  28  Prefactor     1.0019        .14459        .52636E-06   -.53443E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.199029
  norm       = 5.84858
  norm       = 1.07675
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 27.9487
  norm       = 4.36466
  Prefactor  = 2.28323
  Prefactor  = 0.0001
  norm       = 2.24864
  Prefactor  = 0.0001
  Prefactor  = 56.1644
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.38777
  Prefactor  = 45.9757
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.46537
  norm       = 9.81146
  norm       = 54.6413
  Prefactor  = 3.21695
  Prefactor  = 2.18422
  norm       = 26.6714
  norm       = 12.7679
  Normalizat = 0.740091
  Prefactor  = 1.00191
 **********
 **   18 **HESSE 
 **********

 FCN=   6045.050     FROM HESSE     STATUS=OK           531 CALLS     4054 TOTAL
                     EDM=   .61E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .19903        6.4316        .18953E-02   -1.5619    
   2  norm          5.8486        2.1143        .66073E-04   -1.5224    
   3  norm          1.0768        .90907        .67322E-03   -1.5500    
   4  Prefactor     .10000E-03    38.931        .37089E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    .54534        .90812E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          27.949        12.760        .75776E-04   -1.4650    
   7  norm          4.3647        2.6107        .90874E-04   -1.5290    
   8  Prefactor     2.2832        4.5349        .22391E-03   -1.5406    
   9  Prefactor     .10000E-03    15.392        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          2.2486        4.2507        .21066E-03   -1.5408    
  11  Prefactor     .10000E-03    84.221        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     56.164        78.536        .53531E-04   -1.4208    
  13  norm          .10000E-03    6.9626        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    40.709        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     9.3878        7.8007        .13081E-03   -1.5095    
  16  Prefactor     45.976        60.861        .59132E-04   -1.4351    
  17  Prefactor     .10000E-03    35.950        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    11.716        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    16.716        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          2.4654        1.9535        .93190E-04   -1.5394    
  21  norm          9.8115        93.840        .12800E-03   -1.5081    
  22  norm          54.641        19.543        .54267E-04   -1.4228    
  23  Prefactor     3.2169        24.924        .11295E-02   -1.5349    
  24  Prefactor     2.1842        5.3930        .27002E-03   -1.5412    
  25  norm          26.671        17.052        .77572E-04   -1.4675    
  26  norm          12.768        11.868        .56051E-03   -1.4993    
  27  Normalizat    .74009        .28760        .36391E-03   -1.0233    
  28  Prefactor     1.0019        .16892        .19544E-03   -.92666    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.09959e-10
Minuit parameter uncertainties:
  1  2.26251
  2  2.1143
  3  0.909082
  4  0.000262572
  5  1.84273e-06
  6  12.7617
  7  2.61079
  8  4.53563
  9  9.01485e-06
  10  4.25128
  11  0.000143971
  12  78.6814
  13  2.81608e-06
  14  3.11579e-05
  15  7.80154
  16  60.9438
  17  2.64209e-05
  18  7.21853e-05
  19  3.32155e-05
  20  1.95351
  21  60.8115
  22  19.5457
  23  17.9185
  24  5.39421
  25  17.0553
  26  11.8698
  27  0.288193
  28  0.169014
Done.

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

Extracting fit parameters...

4FGL J1749.0+4321
   Spectrum: PowerLaw
367    Prefactor:  1.000e-04  3.322e-05  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.002e+00  1.690e-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:  7.401e-01  2.882e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/195304/likelihoodResults_500860801_501120001_4FGL_J1749.0+4321_daily_bin1009.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6045.0506152
delta logL = -0.000285103963506

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6045.05032953
delta logL = 5.64544279769e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .13481E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1803       1.0000          .0000       10.000    
     3 'Normalizat'    .74006       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0019       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=   6044.187     FROM MIGRAD    STATUS=CONVERGED    101 CALLS      259 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .71943        8.7729        .90712E-02    .14267E-02
   2  Index         3.8588        2.0545        .11550        .26464E-03
   3  Normalizat    .64291        .51093E-01    .87387E-01    .39496E-03
   4  Prefactor     1.0337        .31689E-01    .44998E-01    .65397E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.719432
  Index      = 3.85878
  Normalizat = 0.64291
  Prefactor  = 1.03374
 **********
 **   18 **HESSE 
 **********

 FCN=   6044.187     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      290 TOTAL
                     EDM=   .91E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .71943        24.804        .53608E-04   -1.5538    
   2  Index         3.8588        4.0271        .39414E-02   -.23027    
   3  Normalizat    .64291        .24220        .38706E-03   -1.0619    
   4  Prefactor     1.0337        .14868        .19237E-03   -.91613    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 9.13254e-09
Minuit parameter uncertainties:
  1  8.4519
  2  4.7424
  3  0.242603
  4  0.148736
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/195304': 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): 102
logL (Free Index) = 6044.18738647
delta logL = 0.862943625328

Extracting fit parameters...

4FGL J1749.0+4321
   Spectrum: PowerLaw
367    Prefactor:  7.194e-01  8.452e+00  1.000e-04  1.000e+04 ( 1.000e-13)
368        Index:  3.859e+00  4.742e+00  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.034e+00  1.487e-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.429e-01  2.426e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.83
Ra Dec: 267.255 43.362
Photon Index (Free Index): 3.86 +/- 4.74
Photon Flux (Free Index): 1.02e-07 +/- 9.30e-08
Energy Flux (Free Index): 1.57e-05 +/- 2.34e-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/195304/cmap_HighResolution_500860801_501120001_4FGL_J1749.0+4321_daily_bin1009.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.00e-03', comment='SUCCESS', energy_flux2='1.57e-05', dlogl='8.63e-01', photon_flux2='1.02e-07', job_status='DONE', time_completed='2021-09-18 16:14:25.680849', photon_index_error2='4.74', photon_index2='3.86', ts='-0.00', fit_tolerance='1e-08', GAL='1.00', photon_index_error='0.00', photon_flux_upper_limit='1.06e-07', energy_flux_error2='2.34e-05', EG='0.74', time_epoch_completed='1632006865.68', return_code='0', job_id='195304', GAL2='1.03', EG2='0.64', return_code2='102', photon_flux_error2='9.30e-08', ts2='1.83', photon_index='2.09' WHERE bin_id='1009' AND source_name='4FGL J1749.0+4321' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 18 16:14:25 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0033>
Subject: Job 195304: <4FGL_J1749.0+4321_daily_bin1009> in cluster <slac> Done

Job <4FGL_J1749.0+4321_daily_bin1009> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sat Sep 18 16:00:27 2021
Job was executed on host(s) <bullet0033>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 18 16:00:29 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:29 2021
Terminated at Sat Sep 18 16:14:26 2021
Results reported at Sat Sep 18 16:14:26 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1749.0+4321_daily_bin1009 267.255 43.3616 500860801 501120001 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 :                                   643.00 sec.
    Max Memory :                                 1127 MB
    Average Memory :                             265.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   836 sec.
    Turnaround time :                            839 sec.

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

