/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 9 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 = 7403
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1749.0+4321_daily_bin12
RA = 267.255, Dec = 43.3616
tmin = 242438401, tmax = 242697601
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='186183', job_status='RUN', time_executed='2021-09-18 15:35:34.531840', time_epoch_executed='1632004534.53' WHERE source_name='4FGL J1749.0+4321' and cadence='daily' and bin_id='12'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/186183

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/186183/ft1_4FGL_J1749.0+4321_daily_bin12.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/186183/ft2_4FGL_J1749.0+4321_daily_bin12.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/186183/ft1_4FGL_J1749.0+4321_daily_bin12.fits outfile=/scratch/kocevski/186183/ft1_filteredMKT_4FGL_J1749.0+4321_daily_bin12.fits ra=267.255 dec=43.3616 rad=12.0 tmin=242438401.0 tmax=242697601.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 1.43
user 1.27
sys 0.15

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/186183/ft1_filtered_4FGL_J1749.0+4321_daily_bin12.fits" evtable="EVENTS" scfile=/scratch/kocevski/186183/ft2_4FGL_J1749.0+4321_daily_bin12.fits sctable="SC_DATA" outfile=/scratch/kocevski/186183/ltcube_242438401_242697601_4FGL_J1749.0+4321_daily_bin12.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/186183/ft2_4FGL_J1749.0+4321_daily_bin12.fits
.....................!
real 13.42
user 13.01
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/186183/ft1_filtered_4FGL_J1749.0+4321_daily_bin12.fits evtable="EVENTS" scfile=/scratch/kocevski/186183/ft2_4FGL_J1749.0+4321_daily_bin12.fits sctable="SC_DATA" expcube=/scratch/kocevski/186183/ltcube_242438401_242697601_4FGL_J1749.0+4321_daily_bin12.fits outfile=/scratch/kocevski/186183/expmap_242438401_242697601_4FGL_J1749.0+4321_daily_bin12.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/186183/ltcube_242438401_242697601_4FGL_J1749.0+4321_daily_bin12.fits
.....................!
real 190.08
user 186.06
sys 3.61

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/186183/ft1_filtered_4FGL_J1749.0+4321_daily_bin12.fits scfile=/scratch/kocevski/186183/ft2_4FGL_J1749.0+4321_daily_bin12.fits outfile=/scratch/kocevski/186183/cmap_242438401_242697601_4FGL_J1749.0+4321_daily_bin12.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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/186183/ft1_filtered_4FGL_J1749.0+4321_daily_bin12.fits scfile=/scratch/kocevski/186183/ft2_4FGL_J1749.0+4321_daily_bin12.fits outfile=/scratch/kocevski/186183/cmap_HighResolution_242438401_242697601_4FGL_J1749.0+4321_daily_bin12.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.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .31562       1.0000         .10000E-03   10000.    
     2 'norm      '    3.3770       1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.5989       1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10042E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .13359E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .12094E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10066E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .15067E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    43.397       1.0000         .10000E-03   10000.    
    15 'Prefactor '    10.768       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10085E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    6.6364       1.0000         .10000E-03   10000.    
    19 'Prefactor '    18.334       1.0000         .10000E-03   10000.    
    20 'norm      '    2.8284       1.0000         .10000E-03   10000.    
    21 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .45460       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .14955       1.0000         .10000E-03   10000.    
    26 'norm      '    .10277E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.3293       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .80475       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=   8540.168     FROM MIGRAD    STATUS=CONVERGED    728 CALLS     3085 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .30638        2.8104        .63158E-06   -.83525E-03
   2  norm          3.3771        1.5013       -.33967E-07   -.24149E-03
   3  norm          .10000E-03    .21871       -.40719E-07** at limit **
   4  Prefactor     3.6031        7.9717        .16412E-05    .39772E-03
   5  norm          .10000E-03    .28056       -.10636E-06** at limit **
   6  norm          .10000E-03    5.1354       -.26832E-06** at limit **
   7  norm          .10000E-03    .76870       -.49293E-06** at limit **
   8  Prefactor     .10000E-03    1.9613       -.31468E-06** at limit **
   9  Prefactor     .10000E-03    18.472        .82252E-07** at limit **
  10  norm          .10000E-03    1.9758       -.18964E-06** at limit **
  11  Prefactor     .10000E-03    94.470       -.18187E-05** at limit **
  12  Prefactor     .10001E-03    77.978        .46989E-05** at limit **
  13  norm          .10000E-03    6.0944       -.26572E-05** at limit **
  14  Prefactor     43.406        38.824        .31107E-06    .84458E-04
  15  Prefactor     10.767        6.1734       -.26776E-06   -.17819E-04
  16  Prefactor     .10000E-03    36.452       -.39329E-06** at limit **
  17  Prefactor     .10000E-03    20.917        .11946E-05** at limit **
  18  Prefactor     6.6350        7.7800        .19630E-06    .48480E-04
  19  Prefactor     18.333        10.640       -.25155E-08    .72949E-04
  20  norm          2.8281        1.6853        .21379E-07    .42672E-04
  21  norm          .10000E-03    17.724       -.68829E-06** at limit **
  22  norm          .10000E-03    2.4680       -.12177E-06** at limit **
  23  Prefactor     .46375        9.2187        .42169E-06   -.81386E-04
  24  Prefactor     .10000E-03    2.8934       -.25133E-06** at limit **
  25  norm          .94125E-01    148.88       -.72927E-05    .96312E-04
  26  norm          .10000E-03    25.311       -.23347E-05** at limit **
  27  Normalizat    1.3293        .21142        .20156E-05    .37234E-03
  28  Prefactor     .80486        .12183       -.14049E-05   -.22220E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.306384
  norm       = 3.37711
  norm       = 0.0001
  Prefactor  = 3.60312
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.000100001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100006
  norm       = 0.000100002
  Prefactor  = 43.4061
  Prefactor  = 10.7667
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.63499
  Prefactor  = 18.3333
  norm       = 2.82815
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.463753
  Prefactor  = 0.0001
  norm       = 0.0941252
  norm       = 0.0001
  Normalizat = 1.32932
  Prefactor  = 0.80486
 **********
 **   18 **HESSE 
 **********

 FCN=   8540.168     FROM HESSE     STATUS=OK           531 CALLS     3616 TOTAL
                     EDM=   .46E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .30638        10.918        .21278E-02   -1.5597    
   2  norm          3.3771        1.5011        .73231E-04   -1.5340    
   3  norm          .10000E-03    .22449        .42231E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     3.6031        8.0063        .21300E-03   -1.5328    
   5  norm          .10000E-03    .29570        .95674E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    5.3083        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    3.5902        .14575E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    4.0504        .24483E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    18.539        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    2.0002        .12682E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    94.976        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10001E-03    80.010        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    8.9057        .32273E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     43.406        38.712        .60856E-04   -1.4389    
  15  Prefactor     10.767        6.0579        .12210E-03   -1.5052    
  16  Prefactor     .10000E-03    36.527        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    21.029        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     6.6350        7.7800        .15577E-03   -1.5193    
  19  Prefactor     18.333        10.644        .93539E-04   -1.4851    
  20  norm          2.8281        1.6862        .90044E-04   -1.5372    
  21  norm          .10000E-03    17.756        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    2.4764        .14177E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .46375        75.755        .51358E-02   -1.5572    
  24  Prefactor     .10000E-03    2.9605        .15347E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .94125E-01    8.2053        .62704E-01   -1.5647    
  26  norm          .10000E-03    26.020        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    1.3293        .24047        .26995E-03   -.82695    
  28  Prefactor     .80486        .13701        .20688E-03   -.99549    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.59877e-08
Minuit parameter uncertainties:
  1  3.65805
  2  1.50117
  3  1.92446e-06
  4  8.00865
  5  5.75454e-06
  6  2.51744e-06
  7  0.000113654
  8  0.000108042
  9  3.02323e-05
  10  1.31886e-06
  11  0.000283883
  12  0.00143174
  13  0.000298291
  14  38.7349
  15  6.05825
  16  3.36839e-05
  17  0.000190276
  18  7.78114
  19  10.6446
  20  1.6862
  21  8.85983e-05
  22  6.22493e-07
  23  11.8684
  24  3.35458e-06
  25  1.75695
  26  0.000222102
  27  0.240671
  28  0.137069
Done.

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

Extracting fit parameters...

4FGL J1749.0+4321
   Spectrum: PowerLaw
367    Prefactor:  1.833e+01  1.064e+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:  8.049e-01  1.371e-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.329e+00  2.407e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.50
Ra Dec: 267.255 43.362
Photon Index (Fixed Index): 2.09 +/- 0.00
Photon Flux (Fixed Index): 5.23e-08 +/- 3.04e-08
Energy Flux (Fixed Index): 2.95e-05 +/- 1.71e-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) = 8539.79727329
delta logL = 0.370588305388

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8539.79305849
delta logL = 0.374803107206

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.757       1.0000         .10000E-03   10000.    
     2 'Index     '    2.5646       1.0000          .0000       10.000    
     3 'Normalizat'    1.2916       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .81949       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=   8539.793     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      271 TOTAL
                     EDM=   .58E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.762        85.138        .30540E-02    .22551E-03
   2  Index         2.5638        2.3422        .13081        .20659E-03
   3  Normalizat    1.2918        .75914E-01    .61760E-01   -.48683E-04
   4  Prefactor     .81935        .39132E-01    .43970E-01   -.55124E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.7621
  Index      = 2.56376
  Normalizat = 1.29183
  Prefactor  = 0.819351
 **********
 **   18 **HESSE 
 **********

 FCN=   8539.793     FROM HESSE     STATUS=OK            33 CALLS      304 TOTAL
                     EDM=   .42E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.762        13.352        .12216E-03   -1.5052    
   2  Index         2.5638        .71026        .45154E-02   -.50893    
   3  Normalizat    1.2918        .22053        .27317E-03   -.83811    
   4  Prefactor     .81935        .13303        .20518E-03   -.99019    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.22128e-11
Minuit parameter uncertainties:
  1  13.3557
  2  0.713427
  3  0.220686
  4  0.133084
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/186183': 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) = 8539.79305598
delta logL = 0.3748056118

Extracting fit parameters...

4FGL J1749.0+4321
   Spectrum: PowerLaw
367    Prefactor:  1.076e+01  1.336e+01  1.000e-04  1.000e+04 ( 1.000e-13)
368        Index:  2.564e+00  7.134e-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:  8.194e-01  1.331e-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.292e+00  2.207e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.27
Ra Dec: 267.255 43.362
Photon Index (Free Index): 2.56 +/- 0.71
Photon Flux (Free Index): 7.92e-08 +/- 5.03e-08
Energy Flux (Free Index): 2.15e-05 +/- 1.31e-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/186183/cmap_HighResolution_242438401_242697601_4FGL_J1749.0+4321_daily_bin12.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.23e-08', energy_flux2='2.15e-05', photon_flux_error='3.04e-08', dlogl='3.75e-01', energy_flux='2.95e-05', photon_flux2='7.92e-08', job_status='DONE', time_completed='2021-09-18 15:50:15.682525', photon_index_error2='0.71', photon_index2='2.56', ts='6.50', fit_tolerance='1e-08', GAL='0.80', photon_index_error='0.00', energy_flux_error2='1.31e-05', EG='1.33', time_epoch_completed='1632005415.68', return_code='0', job_id='186183', GAL2='0.82', EG2='1.29', return_code2='0', energy_flux_error='1.71e-05', photon_flux_error2='5.03e-08', ts2='7.27', photon_index='2.09' WHERE bin_id='12' AND source_name='4FGL J1749.0+4321' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 18 15:50:15 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0040>
Subject: Job 186183: <4FGL_J1749.0+4321_daily_bin12> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1749.0+4321_daily_bin12 267.255 43.3616 242438401 242697601 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 :                                   878.33 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             348.67 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   898 sec.
    Turnaround time :                            901 sec.

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

