/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 174 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 = 7413
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0749.9+1823_daily_bin139
RA = 117.485, Dec = 18.387
tmin = 275356801, tmax = 275616001
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='929676', job_status='RUN', time_executed='2021-08-28 15:33:41.883044', time_epoch_executed='1630190021.88' WHERE source_name='4FGL J0749.9+1823' and cadence='daily' and bin_id='139'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/929676

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/929676/ft1_4FGL_J0749.9+1823_daily_bin139.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/929676/ft2_4FGL_J0749.9+1823_daily_bin139.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/929676/ft1_4FGL_J0749.9+1823_daily_bin139.fits outfile=/scratch/kocevski/929676/ft1_filteredMKT_4FGL_J0749.9+1823_daily_bin139.fits ra=117.485 dec=18.387 rad=12.0 tmin=275356801.0 tmax=275616001.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 4.85
user 4.31
sys 0.51

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/929676/ft2_4FGL_J0749.9+1823_daily_bin139.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/929676/ft1_filteredMKT_4FGL_J0749.9+1823_daily_bin139.fits evtable="EVENTS" outfile="/scratch/kocevski/929676/ft1_filtered_4FGL_J0749.9+1823_daily_bin139.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.80
user 0.36
sys 0.42

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/929676/ft1_filtered_4FGL_J0749.9+1823_daily_bin139.fits" evtable="EVENTS" scfile=/scratch/kocevski/929676/ft2_4FGL_J0749.9+1823_daily_bin139.fits sctable="SC_DATA" outfile=/scratch/kocevski/929676/ltcube_275356801_275616001_4FGL_J0749.9+1823_daily_bin139.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/929676/ft2_4FGL_J0749.9+1823_daily_bin139.fits
.....................!
real 11.94
user 11.27
sys 0.63

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/929676/ft1_filtered_4FGL_J0749.9+1823_daily_bin139.fits evtable="EVENTS" scfile=/scratch/kocevski/929676/ft2_4FGL_J0749.9+1823_daily_bin139.fits sctable="SC_DATA" expcube=/scratch/kocevski/929676/ltcube_275356801_275616001_4FGL_J0749.9+1823_daily_bin139.fits outfile=/scratch/kocevski/929676/expmap_275356801_275616001_4FGL_J0749.9+1823_daily_bin139.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/929676/ltcube_275356801_275616001_4FGL_J0749.9+1823_daily_bin139.fits
.....................!
real 192.02
user 187.16
sys 4.49

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/929676/ft1_filtered_4FGL_J0749.9+1823_daily_bin139.fits scfile=/scratch/kocevski/929676/ft2_4FGL_J0749.9+1823_daily_bin139.fits outfile=/scratch/kocevski/929676/cmap_275356801_275616001_4FGL_J0749.9+1823_daily_bin139.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.83
user 0.39
sys 0.42

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/929676/ft1_filtered_4FGL_J0749.9+1823_daily_bin139.fits scfile=/scratch/kocevski/929676/ft2_4FGL_J0749.9+1823_daily_bin139.fits outfile=/scratch/kocevski/929676/cmap_HighResolution_275356801_275616001_4FGL_J0749.9+1823_daily_bin139.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.83
user 0.37
sys 0.45

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/929676/ft1_filtered_4FGL_J0749.9+1823_daily_bin139.fits evtable="EVENTS" scfile=/scratch/kocevski/929676/ft2_4FGL_J0749.9+1823_daily_bin139.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/929676/Model_4FGL_J0749.9+1823_daily_bin139.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/929676/ft1_filtered_4FGL_J0749.9+1823_daily_bin139.fits.....................!
real 92.45
user 90.70
sys 1.53

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/929676/ft1_filtered_4FGL_J0749.9+1823_daily_bin139.fits', '/scratch/kocevski/929676/ft2_4FGL_J0749.9+1823_daily_bin139.fits', expMap='/scratch/kocevski/929676/expmap_275356801_275616001_4FGL_J0749.9+1823_daily_bin139.fits', expCube='/scratch/kocevski/929676/ltcube_275356801_275616001_4FGL_J0749.9+1823_daily_bin139.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/929676/Model_4FGL_J0749.9+1823_daily_bin139.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/929676/ft1_filtered_4FGL_J0749.9+1823_daily_bin139.fits
Spacecraft file(s): /scratch/kocevski/929676/ft2_4FGL_J0749.9+1823_daily_bin139.fits
Exposure map: /scratch/kocevski/929676/expmap_275356801_275616001_4FGL_J0749.9+1823_daily_bin139.fits
Exposure cube: /scratch/kocevski/929676/ltcube_275356801_275616001_4FGL_J0749.9+1823_daily_bin139.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/929676/Model_4FGL_J0749.9+1823_daily_bin139.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) = 7782.32079747

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.2729       1.0000         .10000E-03   10000.    
     3 'norm      '    168.48       1.0000         .10000E-03   10000.    
     4 'norm      '    .58177       1.0000         .10000E-03   10000.    
     5 'norm      '    1.3890       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10164E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .15609E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    34.138       1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.6755       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10071E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .82020E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    16.878       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10079E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .29590       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .65874E-02   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.2448       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0223       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.

 FCN=   7782.318     FROM MIGRAD    STATUS=CONVERGED    584 CALLS     2932 TOTAL
                     EDM=   .27E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    16.381        .43908E-06** at limit **
   2  Prefactor     1.2717        16.813        .40559E-05    .10918E-06
   3  norm          168.48        24.535       -.88466E-07   -.12542E-03
   4  norm          .58178        1.4107        .96404E-06    .85384E-04
   5  norm          1.3890        1.1820        .87575E-08   -.11631E-03
   6  Prefactor     .10000E-03    6.8435       -.12950E-06** at limit **
   7  norm          .10000E-03    5.4487        .11054E-06** at limit **
   8  Prefactor     .10000E-03    26.884        .50426E-06** at limit **
   9  Prefactor     .10000E-03    10.725       -.11988E-06** at limit **
  10  Prefactor     34.137        43.019        .39061E-06   -.19417E-04
  11  Prefactor     1.6759        3.2848        .94698E-06   -.30538E-04
  12  Prefactor     .10000E-03    36.868        .25310E-06** at limit **
  13  norm          .10000E-03    20.269       -.63243E-06** at limit **
  14  Prefactor     .10000E-03    6.8576        .12898E-06** at limit **
  15  Prefactor     .10000E-03    35.844        .45976E-06** at limit **
  16  norm          .10000E-03    73.982       -.78274E-06** at limit **
  17  Prefactor     .10001E-03    273.56       -.11851E-04** at limit **
  18  Prefactor     16.838        59.575       -.11451E-05   -.34667E-04
  19  Prefactor     .10000E-03    8.7393        .17328E-06** at limit **
  20  Prefactor     .10000E-03    7.8531       -.20837E-06** at limit **
  21  norm          .10000E-03    .41865       -.98029E-07** at limit **
  22  Prefactor     .31886        5.5111        .25927E-06   -.77005E-04
  23  Prefactor     .10033E-03    6.8151        .13526E-05** at limit **
  24  Normalizat    1.2447        .20906       -.53686E-06   -.27425E-03
  25  Prefactor     1.0223        .14106       -.10546E-05   -.27464E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 1.27167
  norm       = 168.482
  norm       = 0.581784
  norm       = 1.38898
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 34.1371
  Prefactor  = 1.67585
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100009
  Prefactor  = 16.8377
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.318858
  Prefactor  = 0.000100331
  Normalizat = 1.24468
  Prefactor  = 1.02233
 **********
 **   18 **HESSE 
 **********

 FCN=   7782.318     FROM HESSE     STATUS=OK           423 CALLS     3355 TOTAL
                     EDM=   .54E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    16.380        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     1.2717        17.044        .39413E-03   -1.5482    
   3  norm          168.48        24.527        .31080E-04   -1.3105    
   4  norm          .58178        1.4122        .15371E-03   -1.5555    
   5  norm          1.3890        1.1891        .85439E-04   -1.5472    
   6  Prefactor     .10000E-03    6.9004        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    5.6848        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    26.926        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    10.750        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     34.137        43.047        .68585E-04   -1.4539    
  11  Prefactor     1.6759        3.2849        .21096E-03   -1.5449    
  12  Prefactor     .10000E-03    36.962        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    20.615        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    6.8775        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    35.836        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    73.979        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10001E-03    265.44        .41774E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     16.838        58.072        .97489E-04   -1.4887    
  19  Prefactor     .10000E-03    8.7642        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    7.8635        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    .67466        .11052E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .31886        33.459        .39832E-02   -1.5595    
  23  Prefactor     .10033E-03    74.427        .42711E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.2447        .24508        .31066E-03   -.85233    
  25  Prefactor     1.0223        .16516        .22860E-03   -.91989    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.44189e-08
Minuit parameter uncertainties:
  1  2.74328e-05
  2  9.31391
  3  24.529
  4  1.41229
  5  1.1891
  6  6.21609e-06
  7  3.13975e-05
  8  1.57049e-05
  9  2.66802e-05
  10  43.086
  11  3.28521
  12  1.6042e-05
  13  0.000101419
  14  3.5995e-06
  15  5.33288e-05
  16  0.000179579
  17  0.00308997
  18  58.2677
  19  4.10298e-06
  20  1.06147e-05
  21  9.93159e-06
  22  6.53533
  23  0.00993955
  24  0.245312
  25  0.165243
Done.

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

Extracting fit parameters...

4FGL J0749.9+1823
   Spectrum: PowerLaw
256    Prefactor:  3.414e+01  4.309e+01  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.022e+00  1.652e-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:  1.245e+00  2.453e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.80
Ra Dec: 117.485 18.387
Photon Flux Upper Limit: 1.36e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.06e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/929676/likelihoodResults_275356801_275616001_4FGL_J0749.9+1823_daily_bin139.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): 0
logL (Free Index) = 7782.22352404
delta logL = 0.0948306330047

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7782.22330639
delta logL = 0.0950482869994

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    44.708       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1751       1.0000          .0000       10.000    
     3 'Normalizat'    1.2539       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0171       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.

 FCN=   7782.223     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      304 TOTAL
                     EDM=   .44E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     44.776        53.177        .29980E-03    .43153E-04
   2  Index         2.1763        .72465        .11171E-01   -.60083E-05
   3  Normalizat    1.2539        .23750        .30965E-03    .19040E-03
   4  Prefactor     1.0171        .16041        .22907E-03   -.14467E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 44.7765
  Index      = 2.17634
  Normalizat = 1.25387
  Prefactor  = 1.01714
 **********
 **   18 **HESSE 
 **********

 FCN=   7782.223     FROM HESSE     STATUS=OK            25 CALLS      329 TOTAL
                     EDM=   .45E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     44.776        52.633        .11992E-04   -1.4369    
   2  Index         2.1763        .71730        .44686E-03   -.60011    
   3  Normalizat    1.2539        .23771        .12386E-04   -.84954    
   4  Prefactor     1.0171        .16053        .91627E-05   -.92160    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.46509e-10
Minuit parameter uncertainties:
  1  52.6878
  2  0.720963
  3  0.237915
  4  0.160609
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/929676': 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) = 7782.22330362
delta logL = 0.0950510519051

Extracting fit parameters...

4FGL J0749.9+1823
   Spectrum: PowerLaw
256    Prefactor:  4.478e+01  5.269e+01  1.000e-04  1.000e+04 ( 1.000e-13)
257        Index:  2.176e+00  7.210e-01  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.017e+00  1.606e-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:  1.254e+00  2.379e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.80
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/929676/cmap_HighResolution_275356801_275616001_4FGL_J0749.9+1823_daily_bin139.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.06e-02', job_status='DONE', photon_flux_upper_limit='1.36e-07', time_completed='2021-08-28 15:46:55.218246', job_id='929676', GAL2='1.02', fit_tolerance='1e-08', EG2='1.25', EG='1.24', time_epoch_completed='1630190815.22', return_code2='0', ts='0.80', comment='SUCCESS', return_code='0', GAL='1.02', dlogl='9.51e-02', ts2='0.98', photon_index_error='0.00', photon_index='2.52' WHERE bin_id='139' AND source_name='4FGL J0749.9+1823' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 28 15:46:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0276>
Subject: Job 929676: <4FGL_J0749.9+1823_daily_bin139> in cluster <slac> Done

Job <4FGL_J0749.9+1823_daily_bin139> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sat Aug 28 15:30:31 2021
Job was executed on host(s) <bullet0276>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 28 15:30:32 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:32 2021
Terminated at Sat Aug 28 15:46:56 2021
Results reported at Sat Aug 28 15:46:56 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0749.9+1823_daily_bin139 117.485 18.387 275356801 275616001 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 :                                   795.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             265.65 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   983 sec.
    Turnaround time :                            985 sec.

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

