/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)


Waiting 7 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

number of points = 7644
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1749.0+4321_daily_bin1399
RA = 267.255, Dec = 43.3616
tmin = 601948801, tmax = 602208001
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='198294', job_status='RUN', time_executed='2021-09-18 16:10:41.896665', time_epoch_executed='1632006641.9' WHERE source_name='4FGL J1749.0+4321' and cadence='daily' and bin_id='1399'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/198294

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/198294/ft1_4FGL_J1749.0+4321_daily_bin1399.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/198294/ft2_4FGL_J1749.0+4321_daily_bin1399.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/198294/ft1_4FGL_J1749.0+4321_daily_bin1399.fits outfile=/scratch/kocevski/198294/ft1_filteredMKT_4FGL_J1749.0+4321_daily_bin1399.fits ra=267.255 dec=43.3616 rad=12.0 tmin=601948801.0 tmax=602208001.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.80
user 3.57
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/198294/ft1_filtered_4FGL_J1749.0+4321_daily_bin1399.fits" evtable="EVENTS" scfile=/scratch/kocevski/198294/ft2_4FGL_J1749.0+4321_daily_bin1399.fits sctable="SC_DATA" outfile=/scratch/kocevski/198294/ltcube_601948801_602208001_4FGL_J1749.0+4321_daily_bin1399.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/198294/ft2_4FGL_J1749.0+4321_daily_bin1399.fits
.....................!
real 11.81
user 11.48
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/198294/ft1_filtered_4FGL_J1749.0+4321_daily_bin1399.fits evtable="EVENTS" scfile=/scratch/kocevski/198294/ft2_4FGL_J1749.0+4321_daily_bin1399.fits sctable="SC_DATA" expcube=/scratch/kocevski/198294/ltcube_601948801_602208001_4FGL_J1749.0+4321_daily_bin1399.fits outfile=/scratch/kocevski/198294/expmap_601948801_602208001_4FGL_J1749.0+4321_daily_bin1399.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/198294/ltcube_601948801_602208001_4FGL_J1749.0+4321_daily_bin1399.fits
.....................!
real 189.75
user 184.84
sys 4.57

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/198294/ft1_filtered_4FGL_J1749.0+4321_daily_bin1399.fits scfile=/scratch/kocevski/198294/ft2_4FGL_J1749.0+4321_daily_bin1399.fits outfile=/scratch/kocevski/198294/cmap_601948801_602208001_4FGL_J1749.0+4321_daily_bin1399.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.53
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/198294/ft1_filtered_4FGL_J1749.0+4321_daily_bin1399.fits scfile=/scratch/kocevski/198294/ft2_4FGL_J1749.0+4321_daily_bin1399.fits outfile=/scratch/kocevski/198294/cmap_HighResolution_601948801_602208001_4FGL_J1749.0+4321_daily_bin1399.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.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.4785       1.0000         .10000E-03   10000.    
     2 'norm      '    1.3462       1.0000         .10000E-03   10000.    
     3 'norm      '    .10031E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .73889       1.0000         .10000E-03   10000.    
     6 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .98694       1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.5511       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    9.1492       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    7.3963       1.0000         .10000E-03   10000.    
    14 'Prefactor '    50.392       1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.4790       1.0000         .10000E-03   10000.    
    16 'Prefactor '    58.172       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    12.660       1.0000         .10000E-03   10000.    
    20 'norm      '    .71427       1.0000         .10000E-03   10000.    
    21 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    24.567       1.0000         .10000E-03   10000.    
    23 'Prefactor '    7.0652       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10745E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .72315       1.0000         .10000E-03   10000.    
    26 'norm      '    6.3060       1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.3217       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .62245       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=   7158.426     FROM MIGRAD    STATUS=CONVERGED    682 CALLS     3506 TOTAL
                     EDM=   .34E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.4779        3.0913        .19208E-06   -.23539E-04
   2  norm          1.3461        1.4221        .91863E-07    .45764E-06
   3  norm          .10000E-03    .55894        .71265E-07** at limit **
   4  Prefactor     .10000E-03    7.3304       -.90043E-06** at limit **
   5  norm          .73891        .70707        .55109E-07   -.31251E-04
   6  norm          .10000E-03    10.340        .10559E-05** at limit **
   7  norm          .98676        1.3379        .96332E-06   -.13666E-03
   8  Prefactor     3.5515        2.9468       -.15695E-06   -.11516E-03
   9  Prefactor     .10000E-03    11.621        .27764E-06** at limit **
  10  norm          9.1477        5.0246        .32315E-06   -.13016E-04
  11  Prefactor     .10000E-03    21.690        .65741E-06** at limit **
  12  Prefactor     .10000E-03    32.504        .13492E-06** at limit **
  13  norm          7.3999        5.6152       -.98121E-06   -.24177E-03
  14  Prefactor     50.389        37.348       -.77409E-06   -.44221E-04
  15  Prefactor     1.4660        6.1890        .43512E-05   -.77852E-04
  16  Prefactor     58.268        67.048        .67531E-05    .17509E-03
  17  Prefactor     .10000E-03    13.600       -.13390E-05** at limit **
  18  Prefactor     .10000E-03    2.7209       -.34880E-08** at limit **
  19  Prefactor     12.659        9.2237        .55134E-07   -.34531E-04
  20  norm          .71416        1.0108       -.17328E-07   -.54726E-04
  21  norm          .10000E-03    11.861        .78322E-07** at limit **
  22  norm          24.565        10.605        .34068E-06   -.87970E-04
  23  Prefactor     7.0537        17.118       -.25806E-05   -.98115E-04
  24  Prefactor     .10000E-03    3.1176        .10937E-05** at limit **
  25  norm          .72365        10.051        .56313E-05   -.30023E-04
  26  norm          6.3062        6.2946       -.13612E-05   -.30739E-04
  27  Normalizat    1.3220        .19814       -.21407E-05   -.31643E-03
  28  Prefactor     .62230        .11213       -.34705E-06   -.51996E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.4779
  norm       = 1.3461
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.738906
  norm       = 0.0001
  norm       = 0.986765
  Prefactor  = 3.5515
  Prefactor  = 0.0001
  norm       = 9.14772
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 7.39985
  Prefactor  = 50.3887
  Prefactor  = 1.466
  Prefactor  = 58.2678
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.6586
  norm       = 0.714159
  norm       = 0.0001
  norm       = 24.5646
  Prefactor  = 7.05368
  Prefactor  = 0.000100001
  norm       = 0.723652
  norm       = 6.30625
  Normalizat = 1.32201
  Prefactor  = 0.622298
 **********
 **   18 **HESSE 
 **********

 FCN=   7158.426     FROM HESSE     STATUS=OK           529 CALLS     4035 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.4779        3.0875        .13510E-03   -1.5335    
   2  norm          1.3461        1.4122        .10062E-03   -1.5476    
   3  norm          .10000E-03    1.0902        .12208E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    7.5251        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .73891        .67165        .66550E-03   -1.5536    
   6  norm          .10000E-03    10.560        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .98676        1.3409        .26239E-03   -1.5509    
   8  Prefactor     3.5515        2.9422        .12820E-03   -1.5331    
   9  Prefactor     .10000E-03    11.624        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          9.1477        5.0246        .13250E-03   -1.5103    
  11  Prefactor     .10000E-03    21.713        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    32.514        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          7.3999        5.5932        .14747E-03   -1.5164    
  14  Prefactor     50.389        37.354        .56493E-04   -1.4287    
  15  Prefactor     1.4660        6.2296        .34733E-03   -1.5466    
  16  Prefactor     58.268        69.106        .26300E-03   -1.4180    
  17  Prefactor     .10000E-03    13.613        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    2.7218        .13630E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     12.659        9.2226        .11258E-03   -1.4996    
  20  norm          .71416        .84552        .98760E-03   -1.5539    
  21  norm          .10000E-03    11.863        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          24.565        10.616        .40409E-03   -1.4716    
  23  Prefactor     7.0537        17.170        .15092E-03   -1.5177    
  24  Prefactor     .10000E-03    6.9951        .28694E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .72365        10.433        .48601E-03   -1.5538    
  26  norm          6.3062        6.3068        .79923E-03   -1.5206    
  27  Normalizat    1.3220        .23454        .25529E-03   -.82912    
  28  Prefactor     .62230        .13318        .21529E-03   -1.0666    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.35429e-09
Minuit parameter uncertainties:
  1  3.08766
  2  1.41225
  3  1.40704e-05
  4  1.36933e-05
  5  0.671656
  6  5.62834e-05
  7  1.34093
  8  2.94228
  9  1.44026e-05
  10  5.02487
  11  4.1569e-05
  12  2.40518e-05
  13  5.59359
  14  37.3716
  15  6.04487
  16  69.2008
  17  5.5414e-05
  18  1.43425e-06
  19  9.22361
  20  0.845529
  21  5.65931e-06
  22  10.6168
  23  17.1823
  24  0.000172581
  25  5.49628
  26  6.30743
  27  0.234731
  28  0.133244
Done.

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

Extracting fit parameters...

4FGL J1749.0+4321
   Spectrum: PowerLaw
367    Prefactor:  1.266e+01  9.224e+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:  6.223e-01  1.332e-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.322e+00  2.347e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.50
Ra Dec: 267.255 43.362
Photon Index (Fixed Index): 2.09 +/- 0.00
Photon Flux (Fixed Index): 3.61e-08 +/- 2.63e-08
Energy Flux (Fixed Index): 2.04e-05 +/- 1.49e-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) = 7158.07079974
delta logL = 0.355005010555

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7158.06702253
delta logL = 0.358782213053

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    13.025       1.0000         .10000E-03   10000.    
     2 'Index     '    1.5647       1.0000          .0000       10.000    
     3 'Normalizat'    1.3417       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .61699       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=   7158.067     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      228 TOTAL
                     EDM=   .55E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     13.025        13.123        .27747E-02    .52409E-03
   2  Index         1.5649        .57845        .20701       -.41664E-04
   3  Normalizat    1.3419        .18544        .57396E-01    .81715E-05
   4  Prefactor     .61704        .11119        .41285E-01    .26482E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 13.025
  Index      = 1.56485
  Normalizat = 1.34195
  Prefactor  = 0.61704
 **********
 **   18 **HESSE 
 **********

 FCN=   7158.067     FROM HESSE     STATUS=OK            31 CALLS      259 TOTAL
                     EDM=   .69E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     13.025        11.878        .11099E-03   -1.4986    
   2  Index         1.5649        .60724        .10744E-01   -.75739    
   3  Normalizat    1.3419        .21708        .25382E-03   -.82323    
   4  Prefactor     .61704        .13081        .21623E-03   -1.0687    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.89195e-10
Minuit parameter uncertainties:
  1  11.8806
  2  0.610107
  3  0.217233
  4  0.13087
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/198294': 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) = 7158.06701824
delta logL = 0.358786508708

Extracting fit parameters...

4FGL J1749.0+4321
   Spectrum: PowerLaw
367    Prefactor:  1.303e+01  1.188e+01  1.000e-04  1.000e+04 ( 1.000e-13)
368        Index:  1.565e+00  6.101e-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:  6.170e-01  1.309e-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.342e+00  2.172e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.22
Ra Dec: 267.255 43.362
Photon Index (Free Index): 1.56 +/- 0.61
Photon Flux (Free Index): 1.67e-08 +/- 2.25e-08
Energy Flux (Free Index): 4.24e-05 +/- 5.45e-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/198294/cmap_HighResolution_601948801_602208001_4FGL_J1749.0+4321_daily_bin1399.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.61e-08', energy_flux2='4.24e-05', photon_flux_error='2.63e-08', dlogl='3.59e-01', energy_flux='2.04e-05', photon_flux2='1.67e-08', job_status='DONE', time_completed='2021-09-18 16:24:47.993888', photon_index_error2='0.61', photon_index2='1.56', ts='8.50', fit_tolerance='1e-08', GAL='0.62', photon_index_error='0.00', energy_flux_error2='5.45e-05', EG='1.32', time_epoch_completed='1632007487.99', return_code='0', job_id='198294', GAL2='0.62', EG2='1.34', return_code2='0', energy_flux_error='1.49e-05', photon_flux_error2='2.25e-08', ts2='9.22', photon_index='2.09' WHERE bin_id='1399' AND source_name='4FGL J1749.0+4321' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 18 16:24:48 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0258>
Subject: Job 198294: <4FGL_J1749.0+4321_daily_bin1399> in cluster <slac> Done

Job <4FGL_J1749.0+4321_daily_bin1399> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sat Sep 18 16:10:24 2021
Job was executed on host(s) <bullet0258>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 18 16:10:26 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:10:26 2021
Terminated at Sat Sep 18 16:24:48 2021
Results reported at Sat Sep 18 16:24:48 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1749.0+4321_daily_bin1399 267.255 43.3616 601948801 602208001 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 :                                   832.23 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             326.11 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   862 sec.
    Turnaround time :                            864 sec.

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

