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


Performing analysis on: 4FGL_J0738.1+1742_daily_bin1102
RA = 114.539, Dec = 17.7066
tmin = 524966401, tmax = 525225601
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='581456', job_status='RUN', time_executed='2021-08-27 19:50:50.192931', time_epoch_executed='1630119050.19' WHERE source_name='4FGL J0738.1+1742' and cadence='daily' and bin_id='1102'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/581456

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/581456/ft1_4FGL_J0738.1+1742_daily_bin1102.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/581456/ft2_4FGL_J0738.1+1742_daily_bin1102.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/581456/ft1_4FGL_J0738.1+1742_daily_bin1102.fits outfile=/scratch/kocevski/581456/ft1_filteredMKT_4FGL_J0738.1+1742_daily_bin1102.fits ra=114.539 dec=17.7066 rad=12.0 tmin=524966401.0 tmax=525225601.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 3.75
user 3.21
sys 0.46

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/581456/ft2_4FGL_J0738.1+1742_daily_bin1102.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/581456/ft1_filteredMKT_4FGL_J0738.1+1742_daily_bin1102.fits evtable="EVENTS" outfile="/scratch/kocevski/581456/ft1_filtered_4FGL_J0738.1+1742_daily_bin1102.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.94
user 0.32
sys 0.42

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/581456/ft1_filtered_4FGL_J0738.1+1742_daily_bin1102.fits" evtable="EVENTS" scfile=/scratch/kocevski/581456/ft2_4FGL_J0738.1+1742_daily_bin1102.fits sctable="SC_DATA" outfile=/scratch/kocevski/581456/ltcube_524966401_525225601_4FGL_J0738.1+1742_daily_bin1102.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/581456/ft2_4FGL_J0738.1+1742_daily_bin1102.fits
.....................!
real 12.44
user 11.75
sys 0.62

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/581456/ft1_filtered_4FGL_J0738.1+1742_daily_bin1102.fits evtable="EVENTS" scfile=/scratch/kocevski/581456/ft2_4FGL_J0738.1+1742_daily_bin1102.fits sctable="SC_DATA" expcube=/scratch/kocevski/581456/ltcube_524966401_525225601_4FGL_J0738.1+1742_daily_bin1102.fits outfile=/scratch/kocevski/581456/expmap_524966401_525225601_4FGL_J0738.1+1742_daily_bin1102.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/581456/ltcube_524966401_525225601_4FGL_J0738.1+1742_daily_bin1102.fits
.....................!
real 191.36
user 185.26
sys 5.70

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/581456/ft1_filtered_4FGL_J0738.1+1742_daily_bin1102.fits scfile=/scratch/kocevski/581456/ft2_4FGL_J0738.1+1742_daily_bin1102.fits outfile=/scratch/kocevski/581456/cmap_524966401_525225601_4FGL_J0738.1+1742_daily_bin1102.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 0.80
user 0.36
sys 0.42

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/581456/ft1_filtered_4FGL_J0738.1+1742_daily_bin1102.fits scfile=/scratch/kocevski/581456/ft2_4FGL_J0738.1+1742_daily_bin1102.fits outfile=/scratch/kocevski/581456/cmap_HighResolution_524966401_525225601_4FGL_J0738.1+1742_daily_bin1102.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 0.81
user 0.37
sys 0.43

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/581456/ft1_filtered_4FGL_J0738.1+1742_daily_bin1102.fits evtable="EVENTS" scfile=/scratch/kocevski/581456/ft2_4FGL_J0738.1+1742_daily_bin1102.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/581456/Model_4FGL_J0738.1+1742_daily_bin1102.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/581456/ft1_filtered_4FGL_J0738.1+1742_daily_bin1102.fits.....................!
real 117.50
user 115.66
sys 1.57

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/581456/ft1_filtered_4FGL_J0738.1+1742_daily_bin1102.fits', '/scratch/kocevski/581456/ft2_4FGL_J0738.1+1742_daily_bin1102.fits', expMap='/scratch/kocevski/581456/expmap_524966401_525225601_4FGL_J0738.1+1742_daily_bin1102.fits', expCube='/scratch/kocevski/581456/ltcube_524966401_525225601_4FGL_J0738.1+1742_daily_bin1102.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/581456/Model_4FGL_J0738.1+1742_daily_bin1102.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/581456/ft1_filtered_4FGL_J0738.1+1742_daily_bin1102.fits
Spacecraft file(s): /scratch/kocevski/581456/ft2_4FGL_J0738.1+1742_daily_bin1102.fits
Exposure map: /scratch/kocevski/581456/expmap_524966401_525225601_4FGL_J0738.1+1742_daily_bin1102.fits
Exposure cube: /scratch/kocevski/581456/ltcube_524966401_525225601_4FGL_J0738.1+1742_daily_bin1102.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/581456/Model_4FGL_J0738.1+1742_daily_bin1102.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) = 8557.14541055

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .37006E-02   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .83575E-01   1.0000         .10000E-03   10000.    
     3 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    8.5202       1.0000         .10000E-03   10000.    
     6 'norm      '    4.2244       1.0000         .10000E-03   10000.    
     7 'Prefactor '    10.752       1.0000         .10000E-03   10000.    
     8 'norm      '    3.0655       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    10.253       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .34960E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    142.11       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .11745E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    24.129       1.0000         .10000E-03   10000.    
    17 'norm      '    54.495       1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.0366       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.0806       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=   8557.072     FROM MIGRAD    STATUS=CONVERGED    401 CALLS     1921 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    60.396       -.24239E-05** at limit **
   2  Prefactor     .13057        4.6704       -.16229E-05    .62558E-03
   3  norm          .10000E-03    5.1785        .39483E-07** at limit **
   4  Prefactor     .10000E-03    5.2211       -.33068E-08** at limit **
   5  norm          8.5203        1.9960        .15547E-07   -.12952E-02
   6  norm          4.2246        2.2494        .23824E-06   -.64750E-03
   7  Prefactor     10.749        12.940       -.17221E-05   -.35684E-03
   8  norm          3.0673        3.7465       -.21226E-06   -.58434E-03
   9  Prefactor     .10000E-03    18.161        .18607E-04** at limit **
  10  Prefactor     10.262        17.270       -.14515E-05   -.57948E-04
  11  Prefactor     .10000E-03    21.046       -.82318E-05** at limit **
  12  Prefactor     .10003E-03    1.7519        .29795E-05** at limit **
  13  Prefactor     .10000E-03    16.956       -.10994E-04** at limit **
  14  norm          142.07        34.411       -.65152E-05   -.62573E-03
  15  Prefactor     .10000E-03    8.9813        .82168E-06** at limit **
  16  Prefactor     24.051        93.779       -.13523E-03   -.73060E-04
  17  norm          54.616        64.647        .12020E-03   -.48523E-05
  18  Normalizat    1.0360        .20710        .91626E-06   -.68343E-03
  19  Prefactor     1.0807        .11826       -.39678E-06   -.50569E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.130572
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 8.52029
  norm       = 4.22464
  Prefactor  = 10.7494
  norm       = 3.06735
  Prefactor  = 0.0001
  Prefactor  = 10.2619
  Prefactor  = 0.0001
  Prefactor  = 0.000100031
  Prefactor  = 0.0001
  norm       = 142.074
  Prefactor  = 0.000100001
  Prefactor  = 24.0512
  norm       = 54.6159
  Normalizat = 1.03603
  Prefactor  = 1.08069
 **********
 **   18 **HESSE 
 **********

 FCN=   8557.072     FROM HESSE     STATUS=OK           272 CALLS     2193 TOTAL
                     EDM=   .82E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    63.319        .39178E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .13057        7.6220        .65249E-01   -1.5636    
   3  norm          .10000E-03    5.2238        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    5.2996        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          8.5203        1.9960        .59967E-04   -1.5124    
   6  norm          4.2246        2.2783        .80168E-04   -1.5297    
   7  Prefactor     10.749        13.176        .12219E-03   -1.5052    
   8  norm          3.0673        3.7199        .17976E-03   -1.5358    
   9  Prefactor     .10000E-03    18.184        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     10.262        17.181        .12514E-03   -1.5067    
  11  Prefactor     .10000E-03    21.072        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10003E-03    9.8689        .22773E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    16.970        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          142.07        34.210        .16898E-03   -1.3318    
  15  Prefactor     .10000E-03    9.0290        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     24.051        93.740        .81547E-04   -1.4727    
  17  norm          54.616        64.493        .27168E-03   -1.4229    
  18  Normalizat    1.0360        .22880        .34952E-03   -.91833    
  19  Prefactor     1.0807        .13279        .20803E-03   -.90086    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.21256e-09
Minuit parameter uncertainties:
  1  0.000123945
  2  1.99471
  3  4.87609e-06
  4  7.45896e-07
  5  1.99599
  6  2.2783
  7  13.18
  8  3.72015
  9  6.0026e-06
  10  17.1893
  11  3.66974e-05
  12  0.00110772
  13  2.07625e-06
  14  34.2144
  15  0.000185085
  16  94.3218
  17  64.5759
  18  0.229022
  19  0.132829
Done.

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

Extracting fit parameters...

4FGL J0738.1+1742
   Spectrum: LogParabola
277         norm:  4.225e+00  2.278e+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.081e+00  1.328e-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:  1.036e+00  2.290e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 16.48
Ra Dec: 114.539 17.707
Photon Index (Fixed Index): 1.98 +/- 0.00
Photon Flux (Fixed Index): 7.69e-08 +/- 4.14e-08
Energy Flux (Fixed Index): 5.51e-05 +/- 2.97e-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) = 8557.02683408
delta logL = 0.0452405299475

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8557.02045097
delta logL = 0.0516236463845

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.4249       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.8404       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0486       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0769       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=   8557.020     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      209 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.4251        41.838        .47860E-02    .11584E-03
   2  alpha         1.8404        3.1342        .24918        .26676E-04
   3  Normalizat    1.0486        .25595        .78581E-01    .22066E-04
   4  Prefactor     1.0769        .74200E-01    .38539E-01    .28980E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 4.42514
  alpha      = 1.84038
  Normalizat = 1.04856
  Prefactor  = 1.0769
 **********
 **   18 **HESSE 
 **********

 FCN=   8557.020     FROM HESSE     STATUS=OK            33 CALLS      242 TOTAL
                     EDM=   .57E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.4251        2.0425        .85002E-04   -1.5287    
   2  alpha         1.8404        .42907        .12843E-01   -.26701    
   3  Normalizat    1.0486        .21771        .34782E-03   -.91421    
   4  Prefactor     1.0769        .13119        .20839E-03   -.90208    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.72794e-13
Minuit parameter uncertainties:
  1  2.04257
  2  0.431365
  3  0.217896
  4  0.131227
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/581456': 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) = 8557.02045093
delta logL = 0.0516236832027

Extracting fit parameters...

4FGL J0738.1+1742
   Spectrum: LogParabola
277         norm:  4.425e+00  2.043e+00  1.000e-04  1.000e+04 ( 1.000e-12)
278        alpha:  1.840e+00  4.314e-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.077e+00  1.312e-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:  1.049e+00  2.179e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 16.68
Ra Dec: 114.539 17.707
Photon Index (Free Index): 1.84 +/- 0.43
Photon Flux (Free Index): 6.49e-08 +/- 4.51e-08
Energy Flux (Free Index): 6.39e-05 +/- 4.37e-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/581456/cmap_HighResolution_524966401_525225601_4FGL_J0738.1+1742_daily_bin1102.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.69e-08', energy_flux2='6.39e-05', photon_flux_error='4.14e-08', dlogl='5.16e-02', energy_flux='5.51e-05', photon_flux2='6.49e-08', job_status='DONE', time_completed='2021-08-27 20:02:11.498252', photon_index_error2='0.43', photon_index2='1.84', ts='16.48', fit_tolerance='1e-08', GAL='1.08', photon_index_error='0.00', energy_flux_error2='4.37e-05', EG='1.04', time_epoch_completed='1630119731.5', return_code='0', job_id='581456', GAL2='1.08', EG2='1.05', return_code2='0', energy_flux_error='2.97e-05', photon_flux_error2='4.51e-08', ts2='16.68', photon_index='1.98' WHERE bin_id='1102' AND source_name='4FGL J0738.1+1742' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 27 20:02:11 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0046>
Subject: Job 581456: <4FGL_J0738.1+1742_daily_bin1102> in cluster <slac> Done

Job <4FGL_J0738.1+1742_daily_bin1102> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Fri Aug 27 19:50:34 2021
Job was executed on host(s) <bullet0046>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 27 19:50:35 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:35 2021
Terminated at Fri Aug 27 20:02:12 2021
Results reported at Fri Aug 27 20:02:12 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0738.1+1742_daily_bin1102 114.539 17.7066 524966401 525225601 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 :                                   681.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             328.18 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   696 sec.
    Turnaround time :                            698 sec.

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

