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


Performing analysis on: 4FGL_J0849.1+6607_daily_bin1385
RA = 132.275, Dec = 66.1204
tmin = 598320001, tmax = 598579201
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='719067', job_status='RUN', time_executed='2021-08-30 08:53:02.091273', time_epoch_executed='1630338782.09' WHERE source_name='4FGL J0849.1+6607' and cadence='daily' and bin_id='1385'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/719067

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/719067/ft1_4FGL_J0849.1+6607_daily_bin1385.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/719067/ft2_4FGL_J0849.1+6607_daily_bin1385.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/719067/ft1_4FGL_J0849.1+6607_daily_bin1385.fits outfile=/scratch/kocevski/719067/ft1_filteredMKT_4FGL_J0849.1+6607_daily_bin1385.fits ra=132.275 dec=66.1204 rad=12.0 tmin=598320001.0 tmax=598579201.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.50
user 3.10
sys 0.38

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/719067/ft2_4FGL_J0849.1+6607_daily_bin1385.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/719067/ft2_4FGL_J0849.1+6607_daily_bin1385.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/719067/ft1_filteredMKT_4FGL_J0849.1+6607_daily_bin1385.fits evtable="EVENTS" outfile="/scratch/kocevski/719067/ft1_filtered_4FGL_J0849.1+6607_daily_bin1385.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.69
user 0.31
sys 0.35

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/719067/ft1_filtered_4FGL_J0849.1+6607_daily_bin1385.fits" evtable="EVENTS" scfile=/scratch/kocevski/719067/ft2_4FGL_J0849.1+6607_daily_bin1385.fits sctable="SC_DATA" outfile=/scratch/kocevski/719067/ltcube_598320001_598579201_4FGL_J0849.1+6607_daily_bin1385.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/719067/ft2_4FGL_J0849.1+6607_daily_bin1385.fits
.....................!
real 12.40
user 11.83
sys 0.54

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/719067/ft1_filtered_4FGL_J0849.1+6607_daily_bin1385.fits evtable="EVENTS" scfile=/scratch/kocevski/719067/ft2_4FGL_J0849.1+6607_daily_bin1385.fits sctable="SC_DATA" expcube=/scratch/kocevski/719067/ltcube_598320001_598579201_4FGL_J0849.1+6607_daily_bin1385.fits outfile=/scratch/kocevski/719067/expmap_598320001_598579201_4FGL_J0849.1+6607_daily_bin1385.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/719067/ltcube_598320001_598579201_4FGL_J0849.1+6607_daily_bin1385.fits
.....................!
real 190.60
user 185.34
sys 4.73

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 236 point sources and 0 extended sources

Setting source of interest to:
4FGL J0849.1+6607 @ 132.275 66.1204

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/719067/ft1_filtered_4FGL_J0849.1+6607_daily_bin1385.fits scfile=/scratch/kocevski/719067/ft2_4FGL_J0849.1+6607_daily_bin1385.fits outfile=/scratch/kocevski/719067/cmap_598320001_598579201_4FGL_J0849.1+6607_daily_bin1385.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=132.275 yref=66.1204 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.71
user 0.36
sys 0.34

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/719067/ft1_filtered_4FGL_J0849.1+6607_daily_bin1385.fits scfile=/scratch/kocevski/719067/ft2_4FGL_J0849.1+6607_daily_bin1385.fits outfile=/scratch/kocevski/719067/cmap_HighResolution_598320001_598579201_4FGL_J0849.1+6607_daily_bin1385.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=132.275 yref=66.1204 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.75
user 0.37
sys 0.34

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/719067/ft1_filtered_4FGL_J0849.1+6607_daily_bin1385.fits evtable="EVENTS" scfile=/scratch/kocevski/719067/ft2_4FGL_J0849.1+6607_daily_bin1385.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/719067/Model_4FGL_J0849.1+6607_daily_bin1385.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/719067/ft1_filtered_4FGL_J0849.1+6607_daily_bin1385.fits......................!
real 44.58
user 43.01
sys 1.44

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/719067/ft1_filtered_4FGL_J0849.1+6607_daily_bin1385.fits', '/scratch/kocevski/719067/ft2_4FGL_J0849.1+6607_daily_bin1385.fits', expMap='/scratch/kocevski/719067/expmap_598320001_598579201_4FGL_J0849.1+6607_daily_bin1385.fits', expCube='/scratch/kocevski/719067/ltcube_598320001_598579201_4FGL_J0849.1+6607_daily_bin1385.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/719067/Model_4FGL_J0849.1+6607_daily_bin1385.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0849.1+6607'

4FGL J0849.1+6607
   Spectrum: PowerLaw
320    Prefactor:  7.311e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
321        Index:  1.974e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
322        Scale:  2.593e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/719067/ft1_filtered_4FGL_J0849.1+6607_daily_bin1385.fits
Spacecraft file(s): /scratch/kocevski/719067/ft2_4FGL_J0849.1+6607_daily_bin1385.fits
Exposure map: /scratch/kocevski/719067/expmap_598320001_598579201_4FGL_J0849.1+6607_daily_bin1385.fits
Exposure cube: /scratch/kocevski/719067/ltcube_598320001_598579201_4FGL_J0849.1+6607_daily_bin1385.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/719067/Model_4FGL_J0849.1+6607_daily_bin1385.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) = 3128.06758004

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.9305       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    34.616       1.0000         .10000E-03   10000.    
     4 'Prefactor '    43.070       1.0000         .10000E-03   10000.    
     5 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    224.54       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .27919E-01   1.0000         .10000E-03   10000.    
    14 'Prefactor '    47.861       1.0000         .10000E-03   10000.    
    15 'Prefactor '    8.6920       1.0000         .10000E-03   10000.    
    16 'norm      '    1.2602       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10082E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .88401E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    59.409       1.0000         .10000E-03   10000.    
    20 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10062E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    3.9354       1.0000         .10000E-03   10000.    
    23 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    29.994       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    12.468       1.0000         .10000E-03   10000.    
    29 'Normalizat'    .41342       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.2217       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7610E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   3128.060     FROM MIGRAD    STATUS=CONVERGED    160 CALLS     3501 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 10.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.9314        1.5850       -.54860E-06   -.31378E-04
   2  Prefactor     .10488E-03    94.429       -.14304E-03** at limit **
   3  Prefactor     34.648        13.351        .29799E-04   -.11199E-01
   4  Prefactor     43.077        3.7884        .74674E-05   -.33679E-02
   5  norm          .10000E-03    4.8504       -.19774E-06** at limit **
   6  Prefactor     .10000E-03    2.3878        .22458E-07** at limit **
   7  Prefactor     224.53        1.1763       -.24582E-06   -.18269E-03
   8  Prefactor     .10000E-03    2.5740        .37513E-09** at limit **
   9  Prefactor     .10000E-03    12.372        .52448E-05** at limit **
  10  Prefactor     .10000E-03    12.839       -.24272E-05** at limit **
  11  norm          .10000E-03    2.9439        .33822E-06** at limit **
  12  Prefactor     .10038E-03    49.770       -.40189E-04** at limit **
  13  Prefactor     .83659        321.72       -.81334E-04   -.11683E-04
  14  Prefactor     47.912        16.801        .27297E-04   -.75674E-02
  15  Prefactor     8.6960        2.2547       -.79741E-05   -.14313E-03
  16  norm          1.2600        1.5910       -.41292E-07   -.10986E-03
  17  Prefactor     .10000E-03    20.593        .36847E-05** at limit **
  18  Prefactor     .10045E-03    23.881       -.10054E-03** at limit **
  19  Prefactor     59.312        33.914        .20196E-04    .72716E-02
  20  norm          .10000E-03    10.688       -.84186E-06** at limit **
  21  Prefactor     .10074E-03    21.237       -.17334E-04** at limit **
  22  norm          3.9381        2.6026       -.29603E-06   -.50397E-04
  23  norm          .10340E-03    35.383        .88776E-04** at limit **
  24  Prefactor     30.024        5.3947       -.97080E-05   -.33285E-02
  25  Prefactor     .10139E-03    20.955       -.40125E-04** at limit **
  26  Prefactor     .10079E-03    89.535        .16639E-03** at limit **
  27  Prefactor     .10102E-03    52.030       -.33790E-04** at limit **
  28  norm          12.469        1.9218        .24835E-06    .46038E-03
  29  Normalizat    .41158        .35931       -.28939E-04   -.52706E-04
  30  Prefactor     1.2226        .28544        .59608E-05   -.37695E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 4.93143
  Prefactor  = 0.000104885
  Prefactor  = 34.6482
  Prefactor  = 43.0765
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 224.532
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100383
  Prefactor  = 0.836587
  Prefactor  = 47.9121
  Prefactor  = 8.69599
  norm       = 1.26001
  Prefactor  = 0.0001
  Prefactor  = 0.000100454
  Prefactor  = 59.3121
  norm       = 0.0001
  Prefactor  = 0.00010074
  norm       = 3.93805
  norm       = 0.000103397
  Prefactor  = 30.024
  Prefactor  = 0.000101391
  Prefactor  = 0.000100787
  Prefactor  = 0.000101016
  norm       = 12.4689
  Normalizat = 0.411583
  Prefactor  = 1.22257
 **********
 **   18 **HESSE 
 **********

 FCN=   3128.060     FROM HESSE     STATUS=OK           644 CALLS     4145 TOTAL
                     EDM=   .23E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.9314        1.6649        .45283E-02   -1.5264    
   2  Prefactor     .10488E-03    120.71        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     34.648        69.450        .17028E-02   -1.4530    
   4  Prefactor     43.077        54.838        .15271E-02   -1.4394    
   5  norm          .10000E-03    4.8235        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    2.3835        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     224.53        121.56        .67498E-03   -1.2700    
   8  Prefactor     .10000E-03    2.5329        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    12.364        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    12.729        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    2.9295        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10038E-03    51.384        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .83659        319.86        .91618E-02   -1.5525    
  14  Prefactor     47.912        43.082        .14490E-02   -1.4322    
  15  Prefactor     8.6960        29.844        .33990E-02   -1.5118    
  16  norm          1.2600        1.6412        .99341E-02   -1.5483    
  17  Prefactor     .10000E-03    20.392        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10045E-03    187.11        .10421E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     59.312        35.933        .13013E-02   -1.4166    
  20  norm          .10000E-03    10.687        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10074E-03    58.485        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          3.9381        2.6250        .50838E-02   -1.5311    
  23  norm          .10340E-03    54.384        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     30.024        21.338        .18289E-02   -1.4612    
  25  Prefactor     .10139E-03    59.508        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10079E-03    104.05        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10102E-03    65.178        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          12.469        1.9512        .28362E-02   -1.5002    
  29  Normalizat    .41158        .38909        .10780       -1.1671    
  30  Prefactor     1.2226        .27618        .54336E-01   -.85639    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.30262e-06
Minuit parameter uncertainties:
  1  1.66488
  2  0.0486631
  3  69.6122
  4  54.9021
  5  5.62033e-06
  6  4.12736e-07
  7  121.692
  8  4.41452e-07
  9  0.000188973
  10  0.000107983
  11  6.85707e-06
  12  0.00888534
  13  32.8927
  14  43.1097
  15  29.8951
  16  1.64122
  17  0.000176927
  18  0.0184851
  19  35.9459
  20  2.79033e-05
  21  0.0131739
  22  2.62512
  23  0.0272095
  24  21.3431
  25  0.0182147
  26  0.0181319
  27  0.016293
  28  1.9512
  29  0.391686
  30  0.276508
Done.

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

Extracting fit parameters...

4FGL J0849.1+6607
   Spectrum: PowerLaw
320    Prefactor:  1.004e-04  8.885e-03  1.000e-04  1.000e+04 ( 1.000e-14)
321        Index:  1.974e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
322        Scale:  2.593e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
758    Prefactor:  1.223e+00  2.765e-01  0.000e+00  1.000e+01 ( 1.000e+00)
759        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
760        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
757   Normalization:  4.116e-01  3.917e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 132.275 66.120
Photon Flux Upper Limit: 1.58e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.19e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/719067/likelihoodResults_598320001_598579201_4FGL_J0849.1+6607_daily_bin1385.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) = 3128.06050881
delta logL = -9.18243085835e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3128.06041752
delta logL = -5.31785644853e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11659E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1079       1.0000          .0000       10.000    
     3 'Normalizat'    .41161       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2226       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7610E+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=   3128.060     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      279 TOTAL
                     EDM=   .84E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10188E-03    161.89        .18142E-02** at limit **
   2  Index         2.0352        8.6888        .50000        .96639E-05
   3  Normalizat    .41158        .14536E-01    .47788E-03   -.24801E-03
   4  Prefactor     1.2226        .12235E-01    .24021E-03   -.54192E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00010188
  Index      = 2.03522
  Normalizat = 0.411584
  Prefactor  = 1.22257
 **********
 **   18 **HESSE 
 **********

 FCN=   3128.060     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      308 TOTAL
                     EDM=   .37E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10188E-03    694.72        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0352        5.6646        .50000       -.63473    
   3  Normalizat    .41158        .30776E-01    .19115E-04   -1.1671    
   4  Prefactor     1.2226        .25905E-01    .48042E-04   -.85640    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.70631e-09
Minuit parameter uncertainties:
  1  0.0731376
  2  355.764
  3  0.0307773
  4  0.0259052
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/719067': 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) = 3128.06041713
delta logL = -1.48706931213e-07

Extracting fit parameters...

4FGL J0849.1+6607
   Spectrum: PowerLaw
320    Prefactor:  1.019e-04  7.314e-02  1.000e-04  1.000e+04 ( 1.000e-14)
321        Index:  2.035e+00  3.558e+02  0.000e+00  1.000e+01 (-1.000e+00)
322        Scale:  2.593e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
758    Prefactor:  1.223e+00  2.591e-02  0.000e+00  1.000e+01 ( 1.000e+00)
759        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
760        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
757   Normalization:  4.116e-01  3.078e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 132.275 66.120

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/719067/cmap_HighResolution_598320001_598579201_4FGL_J0849.1+6607_daily_bin1385.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.19e-02', job_status='DONE', photon_flux_upper_limit='1.58e-07', time_completed='2021-08-30 09:04:49.406766', job_id='719067', GAL2='1.22', fit_tolerance='1e-08', EG2='0.41', EG='0.41', time_epoch_completed='1630339489.41', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.22', dlogl='-1.49e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.97' WHERE bin_id='1385' AND source_name='4FGL J0849.1+6607' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 30 09:04:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0234>
Subject: Job 719067: <4FGL_J0849.1+6607_daily_bin1385> in cluster <slac> Done

Job <4FGL_J0849.1+6607_daily_bin1385> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Mon Aug 30 08:50:37 2021
Job was executed on host(s) <bullet0234>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Aug 30 08:50:38 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Aug 30 08:50:38 2021
Terminated at Mon Aug 30 09:04:50 2021
Results reported at Mon Aug 30 09:04:50 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0849.1+6607_daily_bin1385 132.275 66.1204 598320001 598579201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0849.1+6607 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   685.21 sec.
    Max Memory :                                 1259 MB
    Average Memory :                             297.54 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   851 sec.
    Turnaround time :                            853 sec.

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

