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


Performing analysis on: 4FGL_J0749.9+1823_daily_bin943
RA = 117.485, Dec = 18.387
tmin = 483753601, tmax = 484012801
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='934846', job_status='RUN', time_executed='2021-08-28 15:47:58.177016', time_epoch_executed='1630190878.18' WHERE source_name='4FGL J0749.9+1823' and cadence='daily' and bin_id='943'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/934846

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/934846/ft1_4FGL_J0749.9+1823_daily_bin943.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/934846/ft2_4FGL_J0749.9+1823_daily_bin943.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/934846/ft1_4FGL_J0749.9+1823_daily_bin943.fits outfile=/scratch/kocevski/934846/ft1_filteredMKT_4FGL_J0749.9+1823_daily_bin943.fits ra=117.485 dec=18.387 rad=12.0 tmin=483753601.0 tmax=484012801.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 6.19
user 5.23
sys 0.89

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/934846/ft2_4FGL_J0749.9+1823_daily_bin943.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/934846/ft1_filteredMKT_4FGL_J0749.9+1823_daily_bin943.fits evtable="EVENTS" outfile="/scratch/kocevski/934846/ft1_filtered_4FGL_J0749.9+1823_daily_bin943.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 1.16
user 0.32
sys 0.82

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/934846/ft1_filtered_4FGL_J0749.9+1823_daily_bin943.fits" evtable="EVENTS" scfile=/scratch/kocevski/934846/ft2_4FGL_J0749.9+1823_daily_bin943.fits sctable="SC_DATA" outfile=/scratch/kocevski/934846/ltcube_483753601_484012801_4FGL_J0749.9+1823_daily_bin943.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/934846/ft2_4FGL_J0749.9+1823_daily_bin943.fits
.....................!
real 12.42
user 11.32
sys 1.06

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/934846/ft1_filtered_4FGL_J0749.9+1823_daily_bin943.fits evtable="EVENTS" scfile=/scratch/kocevski/934846/ft2_4FGL_J0749.9+1823_daily_bin943.fits sctable="SC_DATA" expcube=/scratch/kocevski/934846/ltcube_483753601_484012801_4FGL_J0749.9+1823_daily_bin943.fits outfile=/scratch/kocevski/934846/expmap_483753601_484012801_4FGL_J0749.9+1823_daily_bin943.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/934846/ltcube_483753601_484012801_4FGL_J0749.9+1823_daily_bin943.fits
.....................!
real 192.57
user 186.00
sys 6.17

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/934846/ft1_filtered_4FGL_J0749.9+1823_daily_bin943.fits scfile=/scratch/kocevski/934846/ft2_4FGL_J0749.9+1823_daily_bin943.fits outfile=/scratch/kocevski/934846/cmap_483753601_484012801_4FGL_J0749.9+1823_daily_bin943.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 1.20
user 0.36
sys 0.81

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/934846/ft1_filtered_4FGL_J0749.9+1823_daily_bin943.fits scfile=/scratch/kocevski/934846/ft2_4FGL_J0749.9+1823_daily_bin943.fits outfile=/scratch/kocevski/934846/cmap_HighResolution_483753601_484012801_4FGL_J0749.9+1823_daily_bin943.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 1.19
user 0.36
sys 0.80

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.9919       1.0000         .10000E-03   10000.    
     2 'Prefactor '    22.955       1.0000         .10000E-03   10000.    
     3 'norm      '    .10040E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .39525       1.0000         .10000E-03   10000.    
     5 'norm      '    3.2257       1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.3109       1.0000         .10000E-03   10000.    
     7 'norm      '    2.7802       1.0000         .10000E-03   10000.    
     8 'Prefactor '    55.561       1.0000         .10000E-03   10000.    
     9 'Prefactor '    10.552       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10822E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    6.8394       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10870E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    17.958       1.0000         .10000E-03   10000.    
    15 'Prefactor '    87.005       1.0000         .10000E-03   10000.    
    16 'norm      '    98.262       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10330E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    15.036       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    48.808       1.0000         .10000E-03   10000.    
    21 'norm      '    .60778       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .81006       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.1143       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=   5662.097     FROM MIGRAD    STATUS=CONVERGED    548 CALLS     3618 TOTAL
                     EDM=   .37E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.9900        95.976        .21124E-06   -.50590E-05
   2  Prefactor     22.950        13.608       -.84266E-08   -.38879E-04
   3  norm          .10000E-03    17.004        .22417E-06** at limit **
   4  norm          .39436        1.2208        .83112E-06    .19475E-03
   5  norm          3.2244        2.8162       -.20100E-05    .14733E-02
   6  Prefactor     5.3170        13.622        .11469E-04    .18208E-03
   7  norm          2.7804        4.5015        .56154E-06    .11812E-03
   8  Prefactor     55.562        41.630        .49080E-07    .70941E-05
   9  Prefactor     10.548        16.187       -.93401E-07   -.10508E-04
  10  Prefactor     .10000E-03    33.914       -.48111E-06** at limit **
  11  Prefactor     6.8410        4.3403       -.13600E-06   -.10604E-03
  12  Prefactor     .10000E-03    22.679        .43320E-06** at limit **
  13  norm          .10000E-03    15.155        .35500E-06** at limit **
  14  Prefactor     17.974        15.135        .29616E-06    .62617E-05
  15  Prefactor     86.655        163.99       -.30649E-05   -.11268E-03
  16  norm          98.254        103.13        .22580E-06   -.83527E-05
  17  Prefactor     .10000E-03    15.302        .19752E-06** at limit **
  18  Prefactor     15.038        28.704        .29360E-06    .60259E-05
  19  Prefactor     .10000E-03    22.296        .51860E-06** at limit **
  20  Prefactor     48.800        33.174        .37343E-06   -.37545E-04
  21  norm          .60885        1.6141        .48448E-07    .23695E-04
  22  Prefactor     .10000E-03    7.2074        .19679E-06** at limit **
  23  Prefactor     .10000E-03    2.5142        .58284E-07** at limit **
  24  Normalizat    .80978        .22216       -.13427E-05   -.99853E-04
  25  Prefactor     1.1145        .15129       -.63786E-06   -.21048E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.98995
  Prefactor  = 22.9504
  norm       = 0.0001
  norm       = 0.394362
  norm       = 3.22445
  Prefactor  = 5.31704
  norm       = 2.7804
  Prefactor  = 55.5623
  Prefactor  = 10.5477
  Prefactor  = 0.0001
  Prefactor  = 6.84097
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 17.9739
  Prefactor  = 86.6548
  norm       = 98.2543
  Prefactor  = 0.0001
  Prefactor  = 15.0384
  Prefactor  = 0.0001
  Prefactor  = 48.7999
  norm       = 0.608845
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.809782
  Prefactor  = 1.11451
 **********
 **   18 **HESSE 
 **********

 FCN=   5662.097     FROM HESSE     STATUS=OK           431 CALLS     4049 TOTAL
                     EDM=   .77E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.9900        96.081        .17999E-03   -1.5261    
   2  Prefactor     22.950        13.608        .83603E-04   -1.4749    
   3  norm          .10000E-03    17.221        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .39436        1.2072        .13764E-03   -1.5582    
   5  norm          3.2244        2.8466        .75457E-04   -1.5349    
   6  Prefactor     5.3170        13.663        .87200E-03   -1.5247    
   7  norm          2.7804        4.4544        .17796E-03   -1.5374    
   8  Prefactor     55.562        41.443        .53815E-04   -1.4216    
   9  Prefactor     10.548        16.127        .12334E-03   -1.5058    
  10  Prefactor     .10000E-03    33.989        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     6.8410        4.3440        .11457E-03   -1.5185    
  12  Prefactor     .10000E-03    22.710        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    15.197        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     17.974        15.147        .94512E-04   -1.4860    
  15  Prefactor     86.655        164.16        .21536E-03   -1.3843    
  16  norm          98.254        103.17        .40552E-04   -1.3722    
  17  Prefactor     .10000E-03    15.317        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     15.038        28.697        .10329E-03   -1.4932    
  19  Prefactor     .10000E-03    22.583        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     48.800        30.200        .57398E-04   -1.4310    
  21  norm          .60885        1.3675        .12151E-02   -1.5552    
  22  Prefactor     .10000E-03    7.2555        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    2.5180        .11652E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .80978        .25072        .32800E-03   -.99707    
  25  Prefactor     1.1145        .17190        .20083E-03   -.89004    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.65203e-10
Minuit parameter uncertainties:
  1  43.8733
  2  13.6102
  3  3.53109e-05
  4  1.20729
  5  2.84671
  6  13.6706
  7  4.45492
  8  41.4641
  9  16.1333
  10  0.000162793
  11  4.34417
  12  4.9332e-05
  13  3.82502e-05
  14  15.1498
  15  165.034
  16  103.358
  17  2.02863e-05
  18  28.7228
  19  9.22411e-05
  20  30.209
  21  1.36761
  22  1.25287e-05
  23  2.18998e-06
  24  0.251076
  25  0.171982
Done.

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

Extracting fit parameters...

4FGL J0749.9+1823
   Spectrum: PowerLaw
256    Prefactor:  1.000e-04  1.628e-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.115e+00  1.720e-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:  8.098e-01  2.511e-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: 9.90e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.71e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/934846/likelihoodResults_483753601_484012801_4FGL_J0749.9+1823_daily_bin943.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) = 5662.097538
delta logL = -0.000140117149385

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5662.09739833
delta logL = -4.49000253866e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10073E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6552       1.0000          .0000       10.000    
     3 'Normalizat'    .80978       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1145       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=   5661.925     FROM MIGRAD    STATUS=CONVERGED    173 CALLS      370 TOTAL
                     EDM=   .27E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     12.013        25.416        .18142E-01    .15226E-03
   2  Index         1.3046        .52872        .29431       -.63591E-04
   3  Normalizat    .81083        .23143        .32799E-03   -.33171E-04
   4  Prefactor     1.1104        .16501        .20083E-03    .14718E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 12.0129
  Index      = 1.30457
  Normalizat = 0.810827
  Prefactor  = 1.11037
 **********
 **   18 **HESSE 
 **********

 FCN=   5661.925     FROM HESSE     STATUS=OK            29 CALLS      399 TOTAL
                     EDM=   .45E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     12.013        30.548        .53072E-03   -1.5015    
   2  Index         1.3046        .84959        .11412E-01   -.83171    
   3  Normalizat    .81083        .23157        .13120E-04   -.99668    
   4  Prefactor     1.1104        .16509        .80333E-05   -.89136    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.49204e-09
Minuit parameter uncertainties:
  1  30.5877
  2  0.858864
  3  0.231849
  4  0.165167
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/934846': 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) = 5661.92509714
delta logL = 0.172300744964

Extracting fit parameters...

4FGL J0749.9+1823
   Spectrum: PowerLaw
256    Prefactor:  1.201e+01  3.059e+01  1.000e-04  1.000e+04 ( 1.000e-13)
257        Index:  1.305e+00  8.589e-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.110e+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:  8.108e-01  2.318e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/934846/cmap_HighResolution_483753601_484012801_4FGL_J0749.9+1823_daily_bin943.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.71e-03', job_status='DONE', photon_flux_upper_limit='9.90e-08', time_completed='2021-08-28 16:00:14.037714', job_id='934846', GAL2='1.11', fit_tolerance='1e-08', EG2='0.81', EG='0.81', time_epoch_completed='1630191614.04', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.11', dlogl='1.72e-01', ts2='0.35', photon_index_error='0.00', photon_index='2.52' WHERE bin_id='943' AND source_name='4FGL J0749.9+1823' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 28 16:00:14 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0227>
Subject: Job 934846: <4FGL_J0749.9+1823_daily_bin943> in cluster <slac> Done

Job <4FGL_J0749.9+1823_daily_bin943> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Sat Aug 28 15:45:46 2021
Job was executed on host(s) <bullet0227>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 28 15:45:48 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:45:48 2021
Terminated at Sat Aug 28 16:00:14 2021
Results reported at Sat Aug 28 16:00:14 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0749.9+1823_daily_bin943 117.485 18.387 483753601 484012801 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 :                                   742.24 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             315.33 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   866 sec.
    Turnaround time :                            868 sec.

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

