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


Performing analysis on: 4FGL_J0749.9+1823_daily_bin91
RA = 117.485, Dec = 18.387
tmin = 262915201, tmax = 263174401
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='929607', job_status='RUN', time_executed='2021-08-28 15:33:10.606641', time_epoch_executed='1630189990.61' WHERE source_name='4FGL J0749.9+1823' and cadence='daily' and bin_id='91'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/929607

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

Retrieving the FT1 file...

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

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

Retrieving 41 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/929607/ft1_4FGL_J0749.9+1823_daily_bin91.fits


Retrieving the FT1 file...

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

Retrieving 41 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/929607/ft2_4FGL_J0749.9+1823_daily_bin91.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/929607/ft1_4FGL_J0749.9+1823_daily_bin91.fits outfile=/scratch/kocevski/929607/ft1_filteredMKT_4FGL_J0749.9+1823_daily_bin91.fits ra=117.485 dec=18.387 rad=12.0 tmin=262915201.0 tmax=263174401.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.27
user 0.89
sys 0.37

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/929607/ft2_4FGL_J0749.9+1823_daily_bin91.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/929607/ft2_4FGL_J0749.9+1823_daily_bin91.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/929607/ft1_filteredMKT_4FGL_J0749.9+1823_daily_bin91.fits evtable="EVENTS" outfile="/scratch/kocevski/929607/ft1_filtered_4FGL_J0749.9+1823_daily_bin91.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.65
user 0.26
sys 0.38

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/929607/ft1_filtered_4FGL_J0749.9+1823_daily_bin91.fits" evtable="EVENTS" scfile=/scratch/kocevski/929607/ft2_4FGL_J0749.9+1823_daily_bin91.fits sctable="SC_DATA" outfile=/scratch/kocevski/929607/ltcube_262915201_263174401_4FGL_J0749.9+1823_daily_bin91.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/929607/ft2_4FGL_J0749.9+1823_daily_bin91.fits
.....................!
real 8.97
user 8.32
sys 0.58

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/929607/ft1_filtered_4FGL_J0749.9+1823_daily_bin91.fits evtable="EVENTS" scfile=/scratch/kocevski/929607/ft2_4FGL_J0749.9+1823_daily_bin91.fits sctable="SC_DATA" expcube=/scratch/kocevski/929607/ltcube_262915201_263174401_4FGL_J0749.9+1823_daily_bin91.fits outfile=/scratch/kocevski/929607/expmap_262915201_263174401_4FGL_J0749.9+1823_daily_bin91.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/929607/ltcube_262915201_263174401_4FGL_J0749.9+1823_daily_bin91.fits
.....................!
real 148.48
user 143.11
sys 5.08

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
Extended source Monoceros in ROI with RadialGaussian spatial model.
Added 162 point sources and 1 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J0749.9+1823 @ 117.485 18.387

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/929607/ft1_filtered_4FGL_J0749.9+1823_daily_bin91.fits scfile=/scratch/kocevski/929607/ft2_4FGL_J0749.9+1823_daily_bin91.fits outfile=/scratch/kocevski/929607/cmap_262915201_263174401_4FGL_J0749.9+1823_daily_bin91.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=117.485 yref=18.387 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.91
user 0.29
sys 0.34

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/929607/ft1_filtered_4FGL_J0749.9+1823_daily_bin91.fits scfile=/scratch/kocevski/929607/ft2_4FGL_J0749.9+1823_daily_bin91.fits outfile=/scratch/kocevski/929607/cmap_HighResolution_262915201_263174401_4FGL_J0749.9+1823_daily_bin91.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=117.485 yref=18.387 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.78
user 0.31
sys 0.34

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/929607/ft1_filtered_4FGL_J0749.9+1823_daily_bin91.fits evtable="EVENTS" scfile=/scratch/kocevski/929607/ft2_4FGL_J0749.9+1823_daily_bin91.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/929607/Model_4FGL_J0749.9+1823_daily_bin91.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
adding source Monoceros
Working on...
/scratch/kocevski/929607/ft1_filtered_4FGL_J0749.9+1823_daily_bin91.fits.....................!
real 64.17
user 62.54
sys 1.39

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/929607/ft1_filtered_4FGL_J0749.9+1823_daily_bin91.fits', '/scratch/kocevski/929607/ft2_4FGL_J0749.9+1823_daily_bin91.fits', expMap='/scratch/kocevski/929607/expmap_262915201_263174401_4FGL_J0749.9+1823_daily_bin91.fits', expCube='/scratch/kocevski/929607/ltcube_262915201_263174401_4FGL_J0749.9+1823_daily_bin91.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/929607/Model_4FGL_J0749.9+1823_daily_bin91.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0749.9+1823'

4FGL J0749.9+1823
   Spectrum: PowerLaw
256    Prefactor:  7.199e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
257        Index:  2.522e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
258        Scale:  7.475e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/929607/ft1_filtered_4FGL_J0749.9+1823_daily_bin91.fits
Spacecraft file(s): /scratch/kocevski/929607/ft2_4FGL_J0749.9+1823_daily_bin91.fits
Exposure map: /scratch/kocevski/929607/expmap_262915201_263174401_4FGL_J0749.9+1823_daily_bin91.fits
Exposure cube: /scratch/kocevski/929607/ltcube_262915201_263174401_4FGL_J0749.9+1823_daily_bin91.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/929607/Model_4FGL_J0749.9+1823_daily_bin91.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) = 7226.92415136

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 'Prefactor '    6.3021       1.0000         .10000E-03   10000.    
     3 'norm      '    10.462       1.0000         .10000E-03   10000.    
     4 'norm      '    1.3229       1.0000         .10000E-03   10000.    
     5 'norm      '    1.6877       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .48296       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    13.984       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10386E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    12.676       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    15.388       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .24311E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    16.522       1.0000         .10000E-03   10000.    
    21 'norm      '    1.3714       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .65776       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0998       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5360E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7226.901     FROM MIGRAD    STATUS=CONVERGED    586 CALLS     2459 TOTAL
                     EDM=   .83E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    17.386        .90712E-02** at limit **
   2  Prefactor     6.3027        6.8405        .39974E-02   -.56256E-03
   3  norm          10.464        10.297        .30969E-02    .13975E-02
   4  norm          1.3231        1.0615        .95598E-02    .69886E-03
   5  norm          1.6877        .97179        .81025E-02   -.26275E-03
   6  Prefactor     .10000E-03    1.8855        .90712E-02** at limit **
   7  norm          .49002        3.3882        .41632E-01    .10828E-02
   8  Prefactor     .10000E-03    17.424        .90712E-02** at limit **
   9  Prefactor     13.945        18.675        .26777E-02   -.19266E-03
  10  Prefactor     .10000E-03    44.775        .90712E-02** at limit **
  11  Prefactor     12.677        4.0302        .28127E-02    .25971E-02
  12  Prefactor     .10000E-03    12.148        .90712E-02** at limit **
  13  norm          .10000E-03    3.7990        .90712E-02** at limit **
  14  Prefactor     15.391        10.558        .25525E-02    .16391E-02
  15  Prefactor     .10000E-03    63.603        .90712E-02** at limit **
  16  norm          .10000E-03    194.45        .90712E-02** at limit **
  17  Prefactor     .10000E-03    7.8491        .90712E-02** at limit **
  18  Prefactor     .10000E-03    10.582        .90712E-02** at limit **
  19  Prefactor     .10000E-03    4.9410        .90712E-02** at limit **
  20  Prefactor     16.523        21.201        .24634E-02   -.37793E-04
  21  norm          1.3715        1.2334        .93060E-03    .26235E-02
  22  Prefactor     .10000E-03    2.1991        .90712E-02** at limit **
  23  Prefactor     .10000E-03    1.9545        .90712E-02** at limit **
  24  Normalizat    .65757        .17901        .75091E-01    .30013E-04
  25  Prefactor     1.0998        .12107        .37594E-01   -.11948E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100002
  Prefactor  = 6.30268
  norm       = 10.4645
  norm       = 1.32315
  norm       = 1.68773
  Prefactor  = 0.0001
  norm       = 0.490016
  Prefactor  = 0.000100001
  Prefactor  = 13.9454
  Prefactor  = 0.0001
  Prefactor  = 12.6773
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 15.3908
  Prefactor  = 0.0001
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 16.5227
  norm       = 1.37149
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.657573
  Prefactor  = 1.09983
 **********
 **   18 **HESSE 
 **********

 FCN=   7226.901     FROM HESSE     STATUS=OK           425 CALLS     2884 TOTAL
                     EDM=   .46E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    17.410        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     6.3027        6.8358        .15990E-03   -1.5206    
   3  norm          10.464        10.297        .12387E-03   -1.5061    
   4  norm          1.3231        1.0451        .74785E-04   -1.5478    
   5  norm          1.6877        .97887        .61840E-04   -1.5448    
   6  Prefactor     .10000E-03    1.8883        .11397E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .49002        6.2343        .25729E-02   -1.5568    
   8  Prefactor     .10000E-03    17.432        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     13.945        17.898        .10711E-03   -1.4961    
  10  Prefactor     .10000E-03    45.171        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     12.677        4.0344        .44819E-03   -1.4996    
  12  Prefactor     .10000E-03    12.150        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    3.7994        .16182E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     15.391        10.555        .10210E-03   -1.4923    
  15  Prefactor     .10000E-03    63.616        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    195.58        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    7.8503        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    10.584        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    4.9470        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     16.523        21.175        .98534E-04   -1.4895    
  21  norm          1.3715        1.2317        .18612E-03   -1.5474    
  22  Prefactor     .10000E-03    2.2017        .12311E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    1.9557        .11607E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .65757        .19862        .33243E-03   -1.0559    
  25  Prefactor     1.0998        .13640        .18513E-03   -.89472    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.64262e-09
Minuit parameter uncertainties:
  1  0.000331406
  2  6.83663
  3  10.299
  4  1.04514
  5  0.978878
  6  3.5856e-07
  7  3.49575
  8  0.000302295
  9  17.9052
  10  0.00021819
  11  4.03449
  12  8.99101e-06
  13  8.31439e-07
  14  10.5563
  15  0.000194512
  16  0.000774484
  17  8.98544e-07
  18  1.37203e-06
  19  5.67621e-07
  20  21.1847
  21  1.23172
  22  1.33289e-07
  23  3.18653e-07
  24  0.198834
  25  0.136438
Done.

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

Extracting fit parameters...

4FGL J0749.9+1823
   Spectrum: PowerLaw
256    Prefactor:  1.000e-04  2.182e-04  1.000e-04  1.000e+04 ( 1.000e-13)
257        Index:  2.522e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
258        Scale:  7.475e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
529    Prefactor:  1.100e+00  1.364e-01  0.000e+00  1.000e+01 ( 1.000e+00)
530        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
531        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
528   Normalization:  6.576e-01  1.988e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 117.485 18.387
Photon Flux Upper Limit: 7.50e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.84e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/929607/likelihoodResults_262915201_263174401_4FGL_J0749.9+1823_daily_bin91.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) = 7226.90071037
delta logL = -0.000105406662442

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7226.90060532
delta logL = -3.52897586708e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6198       1.0000          .0000       10.000    
     3 'Normalizat'    .65757       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0998       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5360E+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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   7226.896     FROM MIGRAD    STATUS=FAILED       173 CALLS      367 TOTAL
                     EDM=   .16E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.5933        7023.2        .18142E-01    .24656E-03
   2  Index         1.7851        6.6293        .50000       -.22592E-04
   3  Normalizat    .65737        .38927E-01    .33243E-03    .13782E-04
   4  Prefactor     1.0994        .27925E-01    .18513E-03   -.19528E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   7226.896     FROM SIMPLEX   STATUS=UNCHANGED     97 CALLS      464 TOTAL
                     EDM=   .11E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.5933        7023.2        .15139E-02    .24656E-03
   2  Index         1.7851        6.6293        .27328E-02   -.22592E-04
   3  Normalizat    .65737        .38927E-01    .88257E-05    .13782E-04
   4  Prefactor     1.0994        .27925E-01    .31822E-05   -.19528E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7226.896     FROM MIGRAD    STATUS=CONVERGED     41 CALLS      505 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.5932        78.505        .72569E-03    .86163E-06
   2  Index         1.7851        2.1270        .24893E-01   -.85369E-04
   3  Normalizat    .65737        .18899        .13297E-04    .11457E-04
   4  Prefactor     1.0994        .13430        .74052E-05   -.23950E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.59322
  Index      = 1.78508
  Normalizat = 0.657367
  Prefactor  = 1.09943
 **********
 **   18 **HESSE 
 **********

 FCN=   7226.896     FROM HESSE     STATUS=OK            25 CALLS      530 TOTAL
                     EDM=   .34E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.5932        77.346        .29028E-04   -1.5386    
   2  Index         1.7851        2.1172        .49786E-02   -.69839    
   3  Normalizat    .65737        .18906        .26595E-05   -1.0560    
   4  Prefactor     1.0994        .13432        .14810E-05   -.89485    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.42193e-12
Minuit parameter uncertainties:
  1  28.3646
  2  2.24334
  3  0.189249
  4  0.134364
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/929607': 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) = 7226.89617394
delta logL = 0.00443102872032

Extracting fit parameters...

4FGL J0749.9+1823
   Spectrum: PowerLaw
256    Prefactor:  2.593e+00  2.836e+01  1.000e-04  1.000e+04 ( 1.000e-13)
257        Index:  1.785e+00  2.243e+00  0.000e+00  1.000e+01 (-1.000e+00)
258        Scale:  7.475e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
529    Prefactor:  1.099e+00  1.344e-01  0.000e+00  1.000e+01 ( 1.000e+00)
530        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
531        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
528   Normalization:  6.574e-01  1.892e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 117.485 18.387

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/929607/cmap_HighResolution_262915201_263174401_4FGL_J0749.9+1823_daily_bin91.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.84e-03', job_status='DONE', photon_flux_upper_limit='7.50e-08', time_completed='2021-08-28 15:42:30.806144', job_id='929607', GAL2='1.10', fit_tolerance='1e-08', EG2='0.66', EG='0.66', time_epoch_completed='1630190550.81', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.10', dlogl='4.43e-03', ts2='0.01', photon_index_error='0.00', photon_index='2.52' WHERE bin_id='91' AND source_name='4FGL J0749.9+1823' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 28 15:42:30 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0033>
Subject: Job 929607: <4FGL_J0749.9+1823_daily_bin91> in cluster <slac> Done

Job <4FGL_J0749.9+1823_daily_bin91> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sat Aug 28 15:30:26 2021
Job was executed on host(s) <bullet0033>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 28 15:30:27 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Aug 28 15:30:27 2021
Terminated at Sat Aug 28 15:42:32 2021
Results reported at Sat Aug 28 15:42:32 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0749.9+1823_daily_bin91 117.485 18.387 262915201 263174401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0749.9+1823 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   561.52 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             322.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   724 sec.
    Turnaround time :                            726 sec.

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

