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


Performing analysis on: 4FGL_J1749.0+4321_daily_bin1151
RA = 267.255, Dec = 43.3616
tmin = 537667201, tmax = 537926401
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='196791', job_status='RUN', time_executed='2021-09-18 16:07:34.289704', time_epoch_executed='1632006454.29' WHERE source_name='4FGL J1749.0+4321' and cadence='daily' and bin_id='1151'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/196791

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/196791/ft1_4FGL_J1749.0+4321_daily_bin1151.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/196791/ft2_4FGL_J1749.0+4321_daily_bin1151.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/196791/ft1_4FGL_J1749.0+4321_daily_bin1151.fits outfile=/scratch/kocevski/196791/ft1_filteredMKT_4FGL_J1749.0+4321_daily_bin1151.fits ra=267.255 dec=43.3616 rad=12.0 tmin=537667201.0 tmax=537926401.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 5.11
user 4.87
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/196791/ft1_filtered_4FGL_J1749.0+4321_daily_bin1151.fits" evtable="EVENTS" scfile=/scratch/kocevski/196791/ft2_4FGL_J1749.0+4321_daily_bin1151.fits sctable="SC_DATA" outfile=/scratch/kocevski/196791/ltcube_537667201_537926401_4FGL_J1749.0+4321_daily_bin1151.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/196791/ft2_4FGL_J1749.0+4321_daily_bin1151.fits
.....................!
real 11.99
user 11.51
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/196791/ft1_filtered_4FGL_J1749.0+4321_daily_bin1151.fits evtable="EVENTS" scfile=/scratch/kocevski/196791/ft2_4FGL_J1749.0+4321_daily_bin1151.fits sctable="SC_DATA" expcube=/scratch/kocevski/196791/ltcube_537667201_537926401_4FGL_J1749.0+4321_daily_bin1151.fits outfile=/scratch/kocevski/196791/expmap_537667201_537926401_4FGL_J1749.0+4321_daily_bin1151.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/196791/ltcube_537667201_537926401_4FGL_J1749.0+4321_daily_bin1151.fits
.....................!
real 190.66
user 185.40
sys 4.84

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/196791/ft1_filtered_4FGL_J1749.0+4321_daily_bin1151.fits scfile=/scratch/kocevski/196791/ft2_4FGL_J1749.0+4321_daily_bin1151.fits outfile=/scratch/kocevski/196791/cmap_537667201_537926401_4FGL_J1749.0+4321_daily_bin1151.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=267.255 yref=43.3616 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/196791/ft1_filtered_4FGL_J1749.0+4321_daily_bin1151.fits scfile=/scratch/kocevski/196791/ft2_4FGL_J1749.0+4321_daily_bin1151.fits outfile=/scratch/kocevski/196791/cmap_HighResolution_537667201_537926401_4FGL_J1749.0+4321_daily_bin1151.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.56
user 0.37
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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      '    3.5812       1.0000         .10000E-03   10000.    
     3 'norm      '    1.3371       1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.1303       1.0000         .10000E-03   10000.    
     5 'norm      '    .76300       1.0000         .10000E-03   10000.    
     6 'norm      '    .10568E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    4.2800       1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.5921       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    35.135       1.0000         .10000E-03   10000.    
    11 'Prefactor '    127.10       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .54994E-01   1.0000         .10000E-03   10000.    
    13 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    109.05       1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.4587       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10670E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10328E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10116E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    5.1841       1.0000         .10000E-03   10000.    
    21 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    17.727       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    2.3943       1.0000         .10000E-03   10000.    
    26 'norm      '    21.399       1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.0536       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .92075       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=   5591.018     FROM MIGRAD    STATUS=CONVERGED    705 CALLS     3524 TOTAL
                     EDM=   .20E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.9063       -.65679E-07** at limit **
   2  norm          3.5817        2.3474        .11608E-06   -.28757E-04
   3  norm          1.3372        1.0944        .21870E-06   -.18916E-03
   4  Prefactor     4.1336        7.6484        .56465E-06   -.16865E-03
   5  norm          .76251        .89730        .17337E-06    .10415E-03
   6  norm          .10000E-03    13.964        .14162E-05** at limit **
   7  norm          4.2793        2.3058        .13330E-06   -.14288E-03
   8  Prefactor     4.5925        4.2709        .11738E-06   -.31316E-04
   9  Prefactor     .10000E-03    23.420       -.14673E-06** at limit **
  10  norm          35.113        12.686       -.57789E-06   -.87008E-04
  11  Prefactor     127.63        131.58        .81742E-05    .42923E-03
  12  Prefactor     .10033E-03    1514.9        .19361E-04** at limit **
  13  norm          .10000E-03    3.0020       -.10558E-06** at limit **
  14  Prefactor     109.06        63.089        .21246E-06   -.67610E-04
  15  Prefactor     4.4599        4.9322        .26019E-06    .40995E-05
  16  Prefactor     .10000E-03    52.661       -.41670E-06** at limit **
  17  Prefactor     .10000E-03    20.769       -.31414E-08** at limit **
  18  Prefactor     .10000E-03    14.249        .67696E-06** at limit **
  19  Prefactor     .10000E-03    4.8859        .57314E-06** at limit **
  20  norm          5.1826        2.9634        .19034E-06   -.54810E-04
  21  norm          .10000E-03    28.222        .38209E-06** at limit **
  22  norm          .10000E-03    5.9876        .22708E-06** at limit **
  23  Prefactor     17.745        19.542       -.88895E-06   -.47942E-03
  24  Prefactor     .10000E-03    4.5985        .16301E-06** at limit **
  25  norm          2.3957        13.649        .26171E-04   -.35473E-03
  26  norm          21.401        14.644       -.25695E-05   -.21423E-03
  27  Normalizat    1.0535        .24577       -.59758E-05   -.96697E-04
  28  Prefactor     .92065        .14082        .86008E-06   -.47643E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 3.58168
  norm       = 1.33718
  Prefactor  = 4.13357
  norm       = 0.762507
  norm       = 0.0001
  norm       = 4.27932
  Prefactor  = 4.59252
  Prefactor  = 0.0001
  norm       = 35.1132
  Prefactor  = 127.631
  Prefactor  = 0.000100333
  norm       = 0.0001
  Prefactor  = 109.058
  Prefactor  = 4.45986
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.18256
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 17.7453
  Prefactor  = 0.0001
  norm       = 2.39572
  norm       = 21.4013
  Normalizat = 1.05353
  Prefactor  = 0.920653
 **********
 **   18 **HESSE 
 **********

 FCN=   5591.018     FROM HESSE     STATUS=OK           515 CALLS     4039 TOTAL
                     EDM=   .42E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.9781        .24880E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          3.5817        2.3478        .90124E-04   -1.5329    
   3  norm          1.3372        1.0949        .18965E-03   -1.5477    
   4  Prefactor     4.1336        7.6138        .19834E-03   -1.5301    
   5  norm          .76251        .84915        .73200E-03   -1.5533    
   6  norm          .10000E-03    14.155        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          4.2793        2.3050        .79287E-04   -1.5294    
   8  Prefactor     4.5925        4.2737        .14415E-03   -1.5279    
   9  Prefactor     .10000E-03    23.428        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          35.113        12.701        .67608E-04   -1.4522    
  11  Prefactor     127.63        132.09        .17854E-03   -1.3444    
  12  Prefactor     .10033E-03    1543.3        .18589E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    3.0098        .12647E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     109.06        63.153        .19258E-03   -1.3616    
  15  Prefactor     4.4599        4.9310        .16749E-03   -1.5286    
  16  Prefactor     .10000E-03    52.894        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    20.777        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    14.308        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    4.9106        .16141E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          5.1826        2.9651        .94608E-04   -1.5253    
  21  norm          .10000E-03    28.227        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    6.1074        .17866E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     17.745        19.578        .95126E-04   -1.4865    
  24  Prefactor     .10000E-03    4.6447        .15655E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          2.3957        13.723        .13233E-02   -1.5398    
  26  norm          21.401        14.659        .86587E-04   -1.4782    
  27  Normalizat    1.0535        .28882        .31667E-03   -.91258    
  28  Prefactor     .92065        .16625        .20419E-03   -.95423    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.21974e-09
Minuit parameter uncertainties:
  1  1.58266e-05
  2  2.34783
  3  1.09495
  4  7.61558
  5  0.849167
  6  0.000101059
  7  2.30503
  8  4.27395
  9  0.000128646
  10  12.7019
  11  132.397
  12  0.0466182
  13  6.01479e-06
  14  63.1924
  15  4.93146
  16  0.000145153
  17  6.16869e-05
  18  0.000117396
  19  4.56155e-06
  20  2.96514
  21  0.000148419
  22  7.39856e-06
  23  19.5848
  24  1.81613e-05
  25  11.4715
  26  14.6617
  27  0.28925
  28  0.166344
Done.

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

Extracting fit parameters...

4FGL J1749.0+4321
   Spectrum: PowerLaw
367    Prefactor:  1.000e-04  4.562e-06  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:  9.207e-01  1.663e-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.054e+00  2.893e-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: 5.77e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.35e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/196791/likelihoodResults_537667201_537926401_4FGL_J1749.0+4321_daily_bin1151.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) = 5591.01910186
delta logL = -0.000967436866631

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5591.01813445
delta logL = -3.15503712045e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10292E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0614       1.0000          .0000       10.000    
     3 'Normalizat'    1.0535       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92068       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=   5591.018     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      242 TOTAL
                     EDM=   .73E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10143E-03    45.431        .16559E-02** at limit **
   2  Index         2.0034        7.8211        .50000        .33205E-04
   3  Normalizat    1.0535        .17427E-01    .31667E-03   -.50260E-05
   4  Prefactor     .92066        .10646E-01    .20419E-03   -.28395E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101426
  Index      = 2.00338
  Normalizat = 1.05352
  Prefactor  = 0.920656
 **********
 **   18 **HESSE 
 **********

 FCN=   5591.018     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      271 TOTAL
                     EDM=   .32E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10143E-03    192.90        .33119E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0034        7.5020        .50000       -.64266    
   3  Normalizat    1.0535        .37145E-01    .12667E-04   -.91258    
   4  Prefactor     .92066        .22690E-01    .81677E-05   -.95423    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.21329e-08
Minuit parameter uncertainties:
  1  0.0332816
  2  388.885
  3  0.0371456
  4  0.02269
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/196791': 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) = 5591.01813376
delta logL = 6.5793756221e-07

Extracting fit parameters...

4FGL J1749.0+4321
   Spectrum: PowerLaw
367    Prefactor:  1.014e-04  3.328e-02  1.000e-04  1.000e+04 ( 1.000e-13)
368        Index:  2.003e+00  3.889e+02  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:  9.207e-01  2.269e-02  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.054e+00  3.715e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 267.255 43.362

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/196791/cmap_HighResolution_537667201_537926401_4FGL_J1749.0+4321_daily_bin1151.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.35e-03', job_status='DONE', photon_flux_upper_limit='5.77e-08', time_completed='2021-09-18 16:21:53.274011', job_id='196791', GAL2='0.92', fit_tolerance='1e-08', EG2='1.05', EG='1.05', time_epoch_completed='1632007313.27', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.92', dlogl='6.58e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.09' WHERE bin_id='1151' AND source_name='4FGL J1749.0+4321' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 18 16:21:53 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0093>
Subject: Job 196791: <4FGL_J1749.0+4321_daily_bin1151> in cluster <slac> Done

Job <4FGL_J1749.0+4321_daily_bin1151> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Sat Sep 18 16:05:33 2021
Job was executed on host(s) <bullet0093>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 18 16:05:34 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:05:34 2021
Terminated at Sat Sep 18 16:21:54 2021
Results reported at Sat Sep 18 16:21:54 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1749.0+4321_daily_bin1151 267.255 43.3616 537667201 537926401 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 :                                   841.14 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             298.58 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   979 sec.
    Turnaround time :                            981 sec.

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

