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


Performing analysis on: 4FGL_J1749.0+4321_daily_bin1339
RA = 267.255, Dec = 43.3616
tmin = 586396801, tmax = 586656001
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='198207', job_status='RUN', time_executed='2021-09-18 16:10:29.644006', time_epoch_executed='1632006629.64' WHERE source_name='4FGL J1749.0+4321' and cadence='daily' and bin_id='1339'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/198207

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

Retrieving the FT1 file...

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

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

Retrieving 31 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/198207/ft1_4FGL_J1749.0+4321_daily_bin1339.fits


Retrieving the FT1 file...

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

Retrieving 31 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/198207/ft2_4FGL_J1749.0+4321_daily_bin1339.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/198207/ft1_4FGL_J1749.0+4321_daily_bin1339.fits outfile=/scratch/kocevski/198207/ft1_filteredMKT_4FGL_J1749.0+4321_daily_bin1339.fits ra=267.255 dec=43.3616 rad=12.0 tmin=586396801.0 tmax=586656001.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 2.58
user 2.37
sys 0.19

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/198207/ft1_filtered_4FGL_J1749.0+4321_daily_bin1339.fits evtable="EVENTS" scfile=/scratch/kocevski/198207/ft2_4FGL_J1749.0+4321_daily_bin1339.fits sctable="SC_DATA" expcube=/scratch/kocevski/198207/ltcube_586396801_586656001_4FGL_J1749.0+4321_daily_bin1339.fits outfile=/scratch/kocevski/198207/expmap_586396801_586656001_4FGL_J1749.0+4321_daily_bin1339.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/198207/ltcube_586396801_586656001_4FGL_J1749.0+4321_daily_bin1339.fits
.....................!
real 191.13
user 185.71
sys 5.05

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/198207/ft1_filtered_4FGL_J1749.0+4321_daily_bin1339.fits scfile=/scratch/kocevski/198207/ft2_4FGL_J1749.0+4321_daily_bin1339.fits outfile=/scratch/kocevski/198207/cmap_586396801_586656001_4FGL_J1749.0+4321_daily_bin1339.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.37
sys 0.14

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    6.9279       1.0000         .10000E-03   10000.    
     3 'norm      '    1.1403       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    1.7256       1.0000         .10000E-03   10000.    
     6 'norm      '    11.377       1.0000         .10000E-03   10000.    
     7 'norm      '    1.4722       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    88.815       1.0000         .10000E-03   10000.    
    10 'norm      '    7.1263       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    119.43       1.0000         .10000E-03   10000.    
    13 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10802E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    54.637       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .13623E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    8.5094       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    1.5761       1.0000         .10000E-03   10000.    
    21 'norm      '    .10021E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    2.4895       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .22177       1.0000         .10000E-03   10000.    
    26 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    .97954       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.0327       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=   5734.831     FROM MIGRAD    STATUS=CONVERGED    692 CALLS     3477 TOTAL
                     EDM=   .18E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.7665       -.38739E-07** at limit **
   2  norm          6.9276        2.9611       -.23340E-08    .51650E-05
   3  norm          1.1400        1.0025       -.71159E-08   -.31476E-04
   4  Prefactor     .10000E-03    4.4258       -.37321E-07** at limit **
   5  norm          1.7255        1.0050        .30816E-09    .18034E-05
   6  norm          11.375        12.271       -.40655E-07    .18489E-05
   7  norm          1.4710        2.1419        .53836E-08   -.13587E-04
   8  Prefactor     .10000E-03    1.0374       -.72697E-08** at limit **
   9  Prefactor     88.815        67.466       -.12860E-06    .39226E-05
  10  norm          7.1256        7.2491       -.14671E-07    .22403E-05
  11  Prefactor     .10000E-03    54.334        .46144E-06** at limit **
  12  Prefactor     118.80        167.74        .91623E-05    .45254E-04
  13  norm          .10000E-03    2.1863       -.85957E-08** at limit **
  14  Prefactor     .10000E-03    24.199       -.39248E-07** at limit **
  15  Prefactor     .10001E-03    4.7294        .11709E-05** at limit **
  16  Prefactor     54.657        45.841        .38109E-06   -.69155E-04
  17  Prefactor     .10000E-03    121.30       -.14072E-06** at limit **
  18  Prefactor     8.5158        14.774       -.45495E-06   -.39708E-05
  19  Prefactor     .10000E-03    4.7058        .10997E-06** at limit **
  20  norm          1.5779        3.4689       -.16584E-06   -.43543E-04
  21  norm          .10000E-03    62.870       -.77585E-06** at limit **
  22  norm          2.4881        6.4180        .10304E-05    .13329E-03
  23  Prefactor     .10000E-03    18.173       -.98921E-07** at limit **
  24  Prefactor     .10000E-03    5.1540       -.16292E-06** at limit **
  25  norm          .19770        7.6890        .16418E-07   -.28737E-04
  26  norm          .10000E-03    2.8703       -.23613E-08** at limit **
  27  Normalizat    .97949        .24443        .11632E-05   -.34437E-04
  28  Prefactor     1.0328        .14933       -.58736E-06    .12643E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 6.92763
  norm       = 1.14005
  Prefactor  = 0.0001
  norm       = 1.7255
  norm       = 11.3752
  norm       = 1.47104
  Prefactor  = 0.0001
  Prefactor  = 88.8153
  norm       = 7.12557
  Prefactor  = 0.0001
  Prefactor  = 118.798
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100006
  Prefactor  = 54.6573
  Prefactor  = 0.0001
  Prefactor  = 8.51578
  Prefactor  = 0.0001
  norm       = 1.57794
  norm       = 0.0001
  norm       = 2.48808
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.197696
  norm       = 0.0001
  Normalizat = 0.979486
  Prefactor  = 1.03282
 **********
 **   18 **HESSE 
 **********

 FCN=   5734.831     FROM HESSE     STATUS=OK           519 CALLS     3996 TOTAL
                     EDM=   .34E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.7813        .98279E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          6.9276        2.9603        .82714E-04   -1.5181    
   3  norm          1.1400        .98430        .68284E-04   -1.5494    
   4  Prefactor     .10000E-03    4.4574        .15548E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          1.7255        1.0047        .55510E-04   -1.5445    
   6  norm          11.375        12.258        .11877E-03   -1.5033    
   7  norm          1.4710        2.1246        .12444E-03   -1.5465    
   8  Prefactor     .10000E-03    1.0382        .75325E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     88.815        67.424        .42634E-04   -1.3820    
  10  norm          7.1256        7.2334        .15027E-03   -1.5174    
  11  Prefactor     .10000E-03    54.370        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     118.80        170.82        .18412E-03   -1.3524    
  13  norm          .10000E-03    2.1969        .10934E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    24.207        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10001E-03    9.1084        .28048E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     54.657        45.049        .27133E-03   -1.4228    
  17  Prefactor     .10000E-03    122.30        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     8.5158        14.741        .13742E-03   -1.5124    
  19  Prefactor     .10000E-03    4.7137        .16041E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          1.5779        3.4610        .19786E-03   -1.5457    
  21  norm          .10000E-03    62.962        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          2.4881        6.4806        .12953E-02   -1.5392    
  23  Prefactor     .10000E-03    18.589        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    5.2051        .16793E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .19770        93.881        .39907E-02   -1.5619    
  26  norm          .10000E-03    2.8704        .12530E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    .97949        .28695        .31857E-03   -.93721    
  28  Prefactor     1.0328        .17725        .19584E-03   -.91643    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.3847e-08
Minuit parameter uncertainties:
  1  1.45729e-06
  2  2.96037
  3  0.98431
  4  4.26245e-06
  5  1.00468
  6  12.2608
  7  2.12473
  8  7.02235e-07
  9  67.4818
  10  7.23427
  11  2.46413e-05
  12  171.54
  13  2.42535e-06
  14  7.56318e-06
  15  0.000469666
  16  45.0767
  17  0.000102761
  18  14.7469
  19  7.65829e-07
  20  3.46144
  21  9.57429e-05
  22  6.48244
  23  1.41731e-05
  24  7.84291e-06
  25  8.6277
  26  1.47525e-07
  27  0.287404
  28  0.177351
Done.

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

Extracting fit parameters...

4FGL J1749.0+4321
   Spectrum: PowerLaw
367    Prefactor:  1.000e-04  7.658e-07  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.033e+00  1.774e-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:  9.795e-01  2.874e-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: 6.23e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.70e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/198207/likelihoodResults_586396801_586656001_4FGL_J1749.0+4321_daily_bin1339.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) = 5734.83249175
delta logL = -0.00100875516637

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5734.83148332
delta logL = -3.24432221532e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0750       1.0000          .0000       10.000    
     3 'Normalizat'    .97972       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0327       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=   5734.831     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      237 TOTAL
                     EDM=   .45E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10056E-03    56.918        .16134E-02** at limit **
   2  Index         2.0361        5.7417        .50000        .17430E-04
   3  Normalizat    .97949        .19770E-01    .31856E-03    .89578E-05
   4  Prefactor     1.0328        .12526E-01    .19584E-03    .13584E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100562
  Index      = 2.03605
  Normalizat = 0.979488
  Prefactor  = 1.03282
 **********
 **   18 **HESSE 
 **********

 FCN=   5734.831     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      266 TOTAL
                     EDM=   .21E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10056E-03    246.03        .32267E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0361        5.8767        .50000       -.63452    
   3  Normalizat    .97949        .43228E-01    .12742E-04   -.93721    
   4  Prefactor     1.0328        .27386E-01    .78336E-05   -.91643    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.0518e-08
Minuit parameter uncertainties:
  1  0.0236185
  2  584.334
  3  0.0432295
  4  0.0273861
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/198207': 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) = 5734.83148281
delta logL = 1.85362296179e-07

Extracting fit parameters...

4FGL J1749.0+4321
   Spectrum: PowerLaw
367    Prefactor:  1.006e-04  2.362e-02  1.000e-04  1.000e+04 ( 1.000e-13)
368        Index:  2.036e+00  5.843e+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:  1.033e+00  2.739e-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:  9.795e-01  4.323e-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/198207/cmap_HighResolution_586396801_586656001_4FGL_J1749.0+4321_daily_bin1339.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.70e-03', job_status='DONE', photon_flux_upper_limit='6.23e-08', time_completed='2021-09-18 16:24:08.739124', job_id='198207', GAL2='1.03', fit_tolerance='1e-08', EG2='0.98', EG='0.98', time_epoch_completed='1632007448.74', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.03', dlogl='1.85e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.09' WHERE bin_id='1339' AND source_name='4FGL J1749.0+4321' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 18 16:24:08 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0209>
Subject: Job 198207: <4FGL_J1749.0+4321_daily_bin1339> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1749.0+4321_daily_bin1339 267.255 43.3616 586396801 586656001 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 :                                   815.39 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             377.69 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   830 sec.
    Turnaround time :                            832 sec.

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

