/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 15 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 = 7371
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0738.1+1742_daily_bin1233
RA = 114.539, Dec = 17.7066
tmin = 558921601, tmax = 559180801
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='581676', job_status='RUN', time_executed='2021-08-27 19:51:39.799166', time_epoch_executed='1630119099.8' WHERE source_name='4FGL J0738.1+1742' and cadence='daily' and bin_id='1233'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/581676

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/581676/ft1_4FGL_J0738.1+1742_daily_bin1233.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/581676/ft2_4FGL_J0738.1+1742_daily_bin1233.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/581676/ft1_4FGL_J0738.1+1742_daily_bin1233.fits outfile=/scratch/kocevski/581676/ft1_filteredMKT_4FGL_J0738.1+1742_daily_bin1233.fits ra=114.539 dec=17.7066 rad=12.0 tmin=558921601.0 tmax=559180801.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.57
user 3.30
sys 1.04

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/581676/ft2_4FGL_J0738.1+1742_daily_bin1233.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/581676/ft2_4FGL_J0738.1+1742_daily_bin1233.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/581676/ft1_filteredMKT_4FGL_J0738.1+1742_daily_bin1233.fits evtable="EVENTS" outfile="/scratch/kocevski/581676/ft1_filtered_4FGL_J0738.1+1742_daily_bin1233.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.43
user 0.33
sys 0.93

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/581676/ft1_filtered_4FGL_J0738.1+1742_daily_bin1233.fits" evtable="EVENTS" scfile=/scratch/kocevski/581676/ft2_4FGL_J0738.1+1742_daily_bin1233.fits sctable="SC_DATA" outfile=/scratch/kocevski/581676/ltcube_558921601_559180801_4FGL_J0738.1+1742_daily_bin1233.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/581676/ft2_4FGL_J0738.1+1742_daily_bin1233.fits
.....................!
real 13.04
user 11.44
sys 1.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/581676/ft1_filtered_4FGL_J0738.1+1742_daily_bin1233.fits evtable="EVENTS" scfile=/scratch/kocevski/581676/ft2_4FGL_J0738.1+1742_daily_bin1233.fits sctable="SC_DATA" expcube=/scratch/kocevski/581676/ltcube_558921601_559180801_4FGL_J0738.1+1742_daily_bin1233.fits outfile=/scratch/kocevski/581676/expmap_558921601_559180801_4FGL_J0738.1+1742_daily_bin1233.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/581676/ltcube_558921601_559180801_4FGL_J0738.1+1742_daily_bin1233.fits
.....................!
real 191.46
user 185.44
sys 5.45

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 IC 443 in ROI with RadialGaussian spatial model.
Extended source Rosette in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/Rosette.fits is the correct path to the extended template.
Extended source Monoceros in ROI with RadialGaussian spatial model.
Added 174 point sources and 3 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 J0738.1+1742 @ 114.539 17.7066

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/581676/ft1_filtered_4FGL_J0738.1+1742_daily_bin1233.fits scfile=/scratch/kocevski/581676/ft2_4FGL_J0738.1+1742_daily_bin1233.fits outfile=/scratch/kocevski/581676/cmap_558921601_559180801_4FGL_J0738.1+1742_daily_bin1233.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=114.539 yref=17.7066 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.37
user 0.39
sys 0.95

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/581676/ft1_filtered_4FGL_J0738.1+1742_daily_bin1233.fits scfile=/scratch/kocevski/581676/ft2_4FGL_J0738.1+1742_daily_bin1233.fits outfile=/scratch/kocevski/581676/cmap_HighResolution_558921601_559180801_4FGL_J0738.1+1742_daily_bin1233.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=114.539 yref=17.7066 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.33
user 0.38
sys 0.94

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/581676/ft1_filtered_4FGL_J0738.1+1742_daily_bin1233.fits evtable="EVENTS" scfile=/scratch/kocevski/581676/ft2_4FGL_J0738.1+1742_daily_bin1233.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/581676/Model_4FGL_J0738.1+1742_daily_bin1233.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 IC 443
adding source Monoceros
adding source Rosette
Working on...
/scratch/kocevski/581676/ft1_filtered_4FGL_J0738.1+1742_daily_bin1233.fits.....................!
real 168.49
user 165.69
sys 2.27

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/581676/ft1_filtered_4FGL_J0738.1+1742_daily_bin1233.fits', '/scratch/kocevski/581676/ft2_4FGL_J0738.1+1742_daily_bin1233.fits', expMap='/scratch/kocevski/581676/expmap_558921601_559180801_4FGL_J0738.1+1742_daily_bin1233.fits', expCube='/scratch/kocevski/581676/ltcube_558921601_559180801_4FGL_J0738.1+1742_daily_bin1233.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/581676/Model_4FGL_J0738.1+1742_daily_bin1233.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0738.1+1742'

4FGL J0738.1+1742
   Spectrum: LogParabola
277         norm:  2.808e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
278        alpha:  1.980e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
279         beta:  6.041e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
280           Eb:  1.540e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/581676/ft1_filtered_4FGL_J0738.1+1742_daily_bin1233.fits
Spacecraft file(s): /scratch/kocevski/581676/ft2_4FGL_J0738.1+1742_daily_bin1233.fits
Exposure map: /scratch/kocevski/581676/expmap_558921601_559180801_4FGL_J0738.1+1742_daily_bin1233.fits
Exposure cube: /scratch/kocevski/581676/ltcube_558921601_559180801_4FGL_J0738.1+1742_daily_bin1233.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/581676/Model_4FGL_J0738.1+1742_daily_bin1233.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) = 12680.7357251

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    17.141       1.0000         .10000E-03   10000.    
     2 'Prefactor '    4.6142       1.0000         .10000E-03   10000.    
     3 'norm      '    8.3533       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    1.3225       1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.4508       1.0000         .10000E-03   10000.    
     8 'norm      '    .10030E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    29.065       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.5168       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .38401E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    .95785       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.1401       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5880E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   12680.66     FROM MIGRAD    STATUS=CONVERGED    384 CALLS     1668 TOTAL
                     EDM=   .41E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  8.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     17.142        20.359       -.38244E-07    .49307E-06
   2  Prefactor     4.6140        6.1986        .12104E-06   -.15688E-05
   3  norm          8.3531        8.0047        .28717E-07   -.18924E-05
   4  Prefactor     .10000E-03    3.0703       -.78654E-07** at limit **
   5  norm          .10000E-03    .25025       -.32185E-07** at limit **
   6  norm          1.3225        1.0812       -.35220E-06   -.44519E-05
   7  Prefactor     4.4503        7.3186        .27954E-05    .37344E-05
   8  norm          .10000E-03    1.3081        .53774E-06** at limit **
   9  Prefactor     .10000E-03    8.0339        .92701E-06** at limit **
  10  Prefactor     29.077        14.319       -.59115E-06   -.23057E-03
  11  Prefactor     .10000E-03    9.1465       -.63407E-06** at limit **
  12  Prefactor     1.5166        2.7556        .60116E-07   -.14961E-03
  13  Prefactor     .10000E-03    6.5962        .18083E-06** at limit **
  14  norm          .10000E-03    6.2794       -.48025E-06** at limit **
  15  Prefactor     .10000E-03    4.0361        .35153E-07** at limit **
  16  Prefactor     .10000E-03    447.51        .28078E-04** at limit **
  17  norm          .10000E-03    23.214       -.57993E-07** at limit **
  18  Normalizat    .95788        .15926       -.11993E-05   -.15444E-03
  19  Prefactor     1.1401        .94226E-01    .33452E-06   -.25812E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 17.1418
  Prefactor  = 4.61399
  norm       = 8.35312
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 1.32252
  Prefactor  = 4.45034
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 29.0766
  Prefactor  = 0.0001
  Prefactor  = 1.51656
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  norm       = 0.0001
  Normalizat = 0.957877
  Prefactor  = 1.14007
 **********
 **   18 **HESSE 
 **********

 FCN=   12680.66     FROM HESSE     STATUS=OK           268 CALLS     1936 TOTAL
                     EDM=   .77E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     17.142        20.363        .96739E-04   -1.4880    
   2  Prefactor     4.6140        6.1886        .18738E-03   -1.5278    
   3  norm          8.3531        7.9955        .13871E-03   -1.5130    
   4  Prefactor     .10000E-03    3.1535        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    .42348        .10904E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          1.3225        1.0816        .89337E-04   -1.5478    
   7  Prefactor     4.4503        7.3408        .95434E-03   -1.5286    
   8  norm          .10000E-03    2.9364        .23945E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    8.0509        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     29.077        14.086        .74314E-04   -1.4629    
  11  Prefactor     .10000E-03    9.1626        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     1.5166        2.7435        .23551E-03   -1.5462    
  13  Prefactor     .10000E-03    6.6001        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    6.2892        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    4.0468        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    445.15        .21282E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    23.230        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    .95788        .17698        .33715E-03   -.94455    
  19  Prefactor     1.1401        .10592        .19299E-03   -.88196    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.73284e-11
Minuit parameter uncertainties:
  1  20.3708
  2  6.18943
  3  7.99657
  4  2.82045e-07
  5  4.9913e-07
  6  1.08162
  7  7.34229
  8  2.17211e-05
  9  2.2727e-06
  10  14.0881
  11  1.25286e-06
  12  2.74377
  13  8.68432e-07
  14  1.19952e-06
  15  3.12406e-09
  16  0.00249172
  17  1.02988e-07
  18  0.177092
  19  0.10594
Done.

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

Extracting fit parameters...

4FGL J0738.1+1742
   Spectrum: LogParabola
277         norm:  1.323e+00  1.082e+00  1.000e-04  1.000e+04 ( 1.000e-12)
278        alpha:  1.980e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
279         beta:  6.041e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
280           Eb:  1.540e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
573    Prefactor:  1.140e+00  1.059e-01  0.000e+00  1.000e+01 ( 1.000e+00)
574        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
575        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
572   Normalization:  9.579e-01  1.771e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.43
Ra Dec: 114.539 17.707
Photon Index (Fixed Index): 1.98 +/- 0.00
Photon Flux (Fixed Index): 2.41e-08 +/- 1.97e-08
Energy Flux (Fixed Index): 1.72e-05 +/- 1.41e-05

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) = 12680.636101
delta logL = 0.0231610133505

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 12680.6351935
delta logL = 0.0240685728895

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.3612       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.8546       1.0000          .0000       5.0000    
     3 'Normalizat'    .96149       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1393       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5880E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   12680.64     FROM MIGRAD    STATUS=CONVERGED     75 CALLS      231 TOTAL
                     EDM=   .20E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.3612        .99565        .92695E-04   -.12289E-03
   2  alpha         1.8546        .56707        .17166E-01   -.13647E-04
   3  Normalizat    .96149        .16793        .33661E-03    .19994E-04
   4  Prefactor     1.1393        .10411        .19306E-03   -.55613E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.36116
  alpha      = 1.85464
  Normalizat = 0.961492
  Prefactor  = 1.13927
 **********
 **   18 **HESSE 
 **********

 FCN=   12680.64     FROM HESSE     STATUS=OK            25 CALLS      256 TOTAL
                     EDM=   .26E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.3612        .99195        .37078E-05   -1.5475    
   2  alpha         1.8546        .56496        .68662E-03   -.26110    
   3  Normalizat    .96149        .16799        .13464E-04   -.94332    
   4  Prefactor     1.1393        .10417        .38612E-04   -.88221    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.57237e-11
Minuit parameter uncertainties:
  1  0.991958
  2  0.570238
  3  0.168077
  4  0.104188
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/581676': 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) = 12680.6351935
delta logL = 0.0240685728968

Extracting fit parameters...

4FGL J0738.1+1742
   Spectrum: LogParabola
277         norm:  1.361e+00  9.920e-01  1.000e-04  1.000e+04 ( 1.000e-12)
278        alpha:  1.855e+00  5.702e-01  0.000e+00  5.000e+00 ( 1.000e+00)
279         beta:  6.041e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
280           Eb:  1.540e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
573    Prefactor:  1.139e+00  1.042e-01  0.000e+00  1.000e+01 ( 1.000e+00)
574        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
575        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
572   Normalization:  9.615e-01  1.681e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.49
Ra Dec: 114.539 17.707
Photon Index (Free Index): 1.85 +/- 0.57
Photon Flux (Free Index): 2.04e-08 +/- 2.20e-08
Energy Flux (Free Index): 1.94e-05 +/- 1.79e-05

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/581676/cmap_HighResolution_558921601_559180801_4FGL_J0738.1+1742_daily_bin1233.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.41e-08', energy_flux2='1.94e-05', photon_flux_error='1.97e-08', dlogl='2.41e-02', energy_flux='1.72e-05', photon_flux2='2.04e-08', job_status='DONE', time_completed='2021-08-27 20:05:28.236613', photon_index_error2='0.57', photon_index2='1.85', ts='5.43', fit_tolerance='1e-08', GAL='1.14', photon_index_error='0.00', energy_flux_error2='1.79e-05', EG='0.96', time_epoch_completed='1630119928.24', return_code='0', job_id='581676', GAL2='1.14', EG2='0.96', return_code2='0', energy_flux_error='1.41e-05', photon_flux_error2='2.20e-08', ts2='5.49', photon_index='1.98' WHERE bin_id='1233' AND source_name='4FGL J0738.1+1742' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 27 20:05:28 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0047>
Subject: Job 581676: <4FGL_J0738.1+1742_daily_bin1233> in cluster <slac> Done

Job <4FGL_J0738.1+1742_daily_bin1233> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Fri Aug 27 19:50:51 2021
Job was executed on host(s) <bullet0047>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 27 19:50:57 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Aug 27 19:50:57 2021
Terminated at Fri Aug 27 20:05:31 2021
Results reported at Fri Aug 27 20:05:31 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0738.1+1742_daily_bin1233 114.539 17.7066 558921601 559180801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0738.1+1742 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   832.17 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             359.81 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   872 sec.
    Turnaround time :                            880 sec.

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

