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


Performing analysis on: 4FGL_J0738.1+1742_daily_bin1032
RA = 114.539, Dec = 17.7066
tmin = 506822401, tmax = 507081601
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='581339', job_status='RUN', time_executed='2021-08-27 19:53:17.854599', time_epoch_executed='1630119197.85' WHERE source_name='4FGL J0738.1+1742' and cadence='daily' and bin_id='1032'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/581339

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/581339/ft1_4FGL_J0738.1+1742_daily_bin1032.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/581339/ft2_4FGL_J0738.1+1742_daily_bin1032.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/581339/ft1_4FGL_J0738.1+1742_daily_bin1032.fits outfile=/scratch/kocevski/581339/ft1_filteredMKT_4FGL_J0738.1+1742_daily_bin1032.fits ra=114.539 dec=17.7066 rad=12.0 tmin=506822401.0 tmax=507081601.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.51
user 3.29
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/581339/ft1_filtered_4FGL_J0738.1+1742_daily_bin1032.fits evtable="EVENTS" scfile=/scratch/kocevski/581339/ft2_4FGL_J0738.1+1742_daily_bin1032.fits sctable="SC_DATA" expcube=/scratch/kocevski/581339/ltcube_506822401_507081601_4FGL_J0738.1+1742_daily_bin1032.fits outfile=/scratch/kocevski/581339/expmap_506822401_507081601_4FGL_J0738.1+1742_daily_bin1032.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/581339/ltcube_506822401_507081601_4FGL_J0738.1+1742_daily_bin1032.fits
.....................!
real 190.78
user 185.97
sys 4.44

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/581339/ft1_filtered_4FGL_J0738.1+1742_daily_bin1032.fits scfile=/scratch/kocevski/581339/ft2_4FGL_J0738.1+1742_daily_bin1032.fits outfile=/scratch/kocevski/581339/cmap_506822401_507081601_4FGL_J0738.1+1742_daily_bin1032.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.54
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/581339/ft1_filtered_4FGL_J0738.1+1742_daily_bin1032.fits scfile=/scratch/kocevski/581339/ft2_4FGL_J0738.1+1742_daily_bin1032.fits outfile=/scratch/kocevski/581339/cmap_HighResolution_506822401_507081601_4FGL_J0738.1+1742_daily_bin1032.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.57
user 0.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10057E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .34338E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    12.561       1.0000         .10000E-03   10000.    
     4 'Prefactor '    7.4658       1.0000         .10000E-03   10000.    
     5 'norm      '    .10069E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10636E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .16611E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    8.0030       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    22.853       1.0000         .10000E-03   10000.    
    11 'Prefactor '    12.051       1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.6926       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10124E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    38.183       1.0000         .10000E-03   10000.    
    15 'Prefactor '    33.151       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    .98012       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .97265       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=   6878.625     FROM MIGRAD    STATUS=CONVERGED    419 CALLS     1945 TOTAL
                     EDM=   .61E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    22.166        .34298E-06** at limit **
   2  Prefactor     .10000E-03    4.9798       -.27344E-06** at limit **
   3  norm          12.563        11.104        .24028E-07    .71618E-04
   4  Prefactor     7.4634        6.8090       -.19510E-06    .40792E-04
   5  norm          .10000E-03    .55704        .75604E-07** at limit **
   6  norm          .10000E-03    1.0849       -.13376E-05** at limit **
   7  Prefactor     .10000E-03    20.509       -.90868E-05** at limit **
   8  norm          8.0004        5.5454       -.11749E-06    .16681E-03
   9  Prefactor     .10000E-03    14.423        .11886E-06** at limit **
  10  Prefactor     22.815        29.326       -.11660E-05    .67078E-04
  11  Prefactor     11.920        43.787       -.77552E-06    .86463E-04
  12  Prefactor     2.6913        2.6723       -.22874E-07    .22303E-03
  13  Prefactor     .10000E-03    28.959        .30897E-06** at limit **
  14  norm          38.180        28.320       -.93571E-07    .33277E-05
  15  Prefactor     33.142        19.352       -.30053E-06    .18278E-04
  16  Prefactor     .10000E-03    103.56        .13922E-05** at limit **
  17  norm          .10000E-03    67.380       -.76176E-06** at limit **
  18  Normalizat    .98117        .21602        .69985E-05    .45508E-03
  19  Prefactor     .97216        .12655       -.32576E-05    .82210E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 12.5626
  Prefactor  = 7.46339
  norm       = 0.0001
  norm       = 0.000100002
  Prefactor  = 0.000100004
  norm       = 8.00039
  Prefactor  = 0.0001
  Prefactor  = 22.8149
  Prefactor  = 11.9196
  Prefactor  = 2.69126
  Prefactor  = 0.0001
  norm       = 38.1803
  Prefactor  = 33.1417
  Prefactor  = 0.000100004
  norm       = 0.000100001
  Normalizat = 0.981174
  Prefactor  = 0.972163
 **********
 **   18 **HESSE 
 **********

 FCN=   6878.625     FROM HESSE     STATUS=OK           272 CALLS     2217 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    22.231        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    16.672        .35858E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          12.563        11.103        .11302E-03   -1.4999    
   4  Prefactor     7.4634        6.8120        .14678E-03   -1.5162    
   5  norm          .10000E-03    1.3986        .11977E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    1.6590        .15134E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    21.890        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          8.0004        5.5326        .13659E-03   -1.5142    
   9  Prefactor     .10000E-03    14.432        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     22.815        29.293        .83790E-04   -1.4752    
  11  Prefactor     11.920        43.964        .11540E-03   -1.5017    
  12  Prefactor     2.6913        2.6621        .12931E-03   -1.5380    
  13  Prefactor     .10000E-03    29.030        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          38.180        28.364        .64862E-04   -1.4471    
  15  Prefactor     33.142        19.386        .69596E-04   -1.4556    
  16  Prefactor     .10000E-03    103.81        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    67.513        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    .98117        .23350        .31562E-03   -.93664    
  19  Prefactor     .97216        .13451        .19533E-03   -.93663    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.69325e-09
Minuit parameter uncertainties:
  1  3.27067e-05
  2  6.86221e-05
  3  11.1049
  4  6.81271
  5  1.42698e-05
  6  0.000104369
  7  0.000573538
  8  5.5329
  9  1.25974e-06
  10  29.3119
  11  44.084
  12  2.66221
  13  4.74254e-05
  14  28.3743
  15  19.3901
  16  0.00129415
  17  0.000537051
  18  0.233744
  19  0.134561
Done.

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

Extracting fit parameters...

4FGL J0738.1+1742
   Spectrum: LogParabola
277         norm:  1.000e-04  1.044e-04  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:  9.722e-01  1.346e-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.812e-01  2.337e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 114.539 17.707
Photon Flux Upper Limit: 6.33e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.54e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/581339/likelihoodResults_506822401_507081601_4FGL_J0738.1+1742_daily_bin1032.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) = 6878.62782761
delta logL = -0.00287767896316

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6878.62494521
delta logL = 4.72244573757e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10405E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0625       1.0000          .0000       5.0000    
     3 'Normalizat'    .98087       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97239       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=   6878.396     FROM MIGRAD    STATUS=CONVERGED    128 CALLS      324 TOTAL
                     EDM=   .41E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .34092E-01    1.1663        .49285E-02   -.62164E-02
   2  alpha         3.9594        4.4762        .41977        .61043E-04
   3  Normalizat    .93084        .50294        .73056E-01    .10817E-04
   4  Prefactor     .98759        .17165        .45921E-01   -.11625E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0340919
  alpha      = 3.95937
  Normalizat = 0.930838
  Prefactor  = 0.987592
 **********
 **   18 **HESSE 
 **********

 FCN=   6878.396     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      355 TOTAL
                     EDM=   .14E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .34092E-01    3.5533        .21467E-04   -1.5745    
   2  alpha         3.9594        2.5241        .19142E-01    .62334    
   3  Normalizat    .93084        .19187        .32326E-03   -.95385    
   4  Prefactor     .98759        .11380        .19398E-03   -.93144    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.37126e-06
Minuit parameter uncertainties:
  1  0.695123
  2  8.85958
  3  0.19201
  4  0.113831
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/581339': 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): 102
logL (Free Index) = 6878.39625733
delta logL = 0.228692601973

Extracting fit parameters...

4FGL J0738.1+1742
   Spectrum: LogParabola
277         norm:  3.409e-02  6.951e-01  1.000e-04  1.000e+04 ( 1.000e-12)
278        alpha:  3.959e+00  8.860e+00  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:  9.876e-01  1.138e-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.308e-01  1.920e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 114.539 17.707

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/581339/cmap_HighResolution_506822401_507081601_4FGL_J0738.1+1742_daily_bin1032.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.54e-05', job_status='DONE', photon_flux_upper_limit='6.33e-08', time_completed='2021-08-27 20:04:37.195181', job_id='581339', GAL2='0.99', fit_tolerance='1e-08', EG2='0.93', EG='0.98', time_epoch_completed='1630119877.2', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.97', dlogl='2.29e-01', ts2='0.51', photon_index_error='0.00', photon_index='1.98' WHERE bin_id='1032' AND source_name='4FGL J0738.1+1742' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 27 20:04:37 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0084>
Subject: Job 581339: <4FGL_J0738.1+1742_daily_bin1032> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0738.1+1742_daily_bin1032 114.539 17.7066 506822401 507081601 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 :                                   661.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             323.62 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   851 sec.
    Turnaround time :                            853 sec.

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

