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


Performing analysis on: 4FGL_J0738.1+1742_daily_bin1444
RA = 114.539, Dec = 17.7066
tmin = 613612801, tmax = 613872001
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='583199', job_status='RUN', time_executed='2021-08-27 19:59:38.382995', time_epoch_executed='1630119578.38' WHERE source_name='4FGL J0738.1+1742' and cadence='daily' and bin_id='1444'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/583199

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/583199/ft1_4FGL_J0738.1+1742_daily_bin1444.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/583199/ft2_4FGL_J0738.1+1742_daily_bin1444.fits


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

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

Done.
real 4.18
user 2.35
sys 1.77

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/583199/ft2_4FGL_J0738.1+1742_daily_bin1444.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/583199/ft1_filteredMKT_4FGL_J0738.1+1742_daily_bin1444.fits evtable="EVENTS" outfile="/scratch/kocevski/583199/ft1_filtered_4FGL_J0738.1+1742_daily_bin1444.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 2.05
user 0.34
sys 1.71

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/583199/ft1_filtered_4FGL_J0738.1+1742_daily_bin1444.fits" evtable="EVENTS" scfile=/scratch/kocevski/583199/ft2_4FGL_J0738.1+1742_daily_bin1444.fits sctable="SC_DATA" outfile=/scratch/kocevski/583199/ltcube_613612801_613872001_4FGL_J0738.1+1742_daily_bin1444.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/583199/ft2_4FGL_J0738.1+1742_daily_bin1444.fits
.....................!
real 14.77
user 12.62
sys 2.11

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/583199/ft1_filtered_4FGL_J0738.1+1742_daily_bin1444.fits evtable="EVENTS" scfile=/scratch/kocevski/583199/ft2_4FGL_J0738.1+1742_daily_bin1444.fits sctable="SC_DATA" expcube=/scratch/kocevski/583199/ltcube_613612801_613872001_4FGL_J0738.1+1742_daily_bin1444.fits outfile=/scratch/kocevski/583199/expmap_613612801_613872001_4FGL_J0738.1+1742_daily_bin1444.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/583199/ltcube_613612801_613872001_4FGL_J0738.1+1742_daily_bin1444.fits
.....................!
real 193.11
user 185.71
sys 6.99

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/583199/ft1_filtered_4FGL_J0738.1+1742_daily_bin1444.fits scfile=/scratch/kocevski/583199/ft2_4FGL_J0738.1+1742_daily_bin1444.fits outfile=/scratch/kocevski/583199/cmap_613612801_613872001_4FGL_J0738.1+1742_daily_bin1444.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 2.08
user 0.37
sys 1.69

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/583199/ft1_filtered_4FGL_J0738.1+1742_daily_bin1444.fits scfile=/scratch/kocevski/583199/ft2_4FGL_J0738.1+1742_daily_bin1444.fits outfile=/scratch/kocevski/583199/cmap_HighResolution_613612801_613872001_4FGL_J0738.1+1742_daily_bin1444.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 2.06
user 0.39
sys 1.66

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    175.35       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    12.052       1.0000         .10000E-03   10000.    
     4 'Prefactor '    12.244       1.0000         .10000E-03   10000.    
     5 'norm      '    2.2063       1.0000         .10000E-03   10000.    
     6 'norm      '    2.4952       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10133E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    3.9019       1.0000         .10000E-03   10000.    
     9 'Prefactor '    45.851       1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.9258       1.0000         .10000E-03   10000.    
    11 'Prefactor '    36.864       1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.6698       1.0000         .10000E-03   10000.    
    13 'Prefactor '    46.430       1.0000         .10000E-03   10000.    
    14 'norm      '    15.223       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10092E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    6.3973       1.0000         .10000E-03   10000.    
    17 'norm      '    23.553       1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.4640       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .80558       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=   6307.430     FROM MIGRAD    STATUS=CONVERGED    368 CALLS     1891 TOTAL
                     EDM=   .20E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     175.35        94.138        .58860E-06    .59610E-04
   2  Prefactor     .10002E-03    38.109        .55936E-05** at limit **
   3  norm          12.051        13.375       -.40479E-05    .44996E-04
   4  Prefactor     12.241        15.652       -.67064E-05    .77455E-04
   5  norm          2.2061        1.4870       -.13789E-05   -.56821E-04
   6  norm          2.4961        1.8514       -.84458E-06    .50553E-03
   7  Prefactor     .10000E-03    28.007       -.15305E-05** at limit **
   8  norm          3.8997        5.6649       -.53921E-05   -.37086E-03
   9  Prefactor     45.862        59.291        .12898E-04    .99808E-04
  10  Prefactor     1.9263        19.746       -.29949E-05   -.10653E-03
  11  Prefactor     36.860        38.527       -.30040E-05    .17156E-03
  12  Prefactor     2.6698        3.2875        .20618E-05    .93336E-03
  13  Prefactor     46.433        45.001        .26479E-05    .68848E-04
  14  norm          15.228        16.021       -.80738E-06    .11348E-03
  15  Prefactor     .10000E-03    9.7807        .56935E-06** at limit **
  16  Prefactor     6.1989        502.52       -.76609E-03    .83742E-04
  17  norm          23.207        161.56       -.69718E-03    .12036E-03
  18  Normalizat    1.4641        .23495        .19626E-04    .12911E-03
  19  Prefactor     .80563        .13943        .13839E-04    .59343E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 175.355
  Prefactor  = 0.00010002
  norm       = 12.0506
  Prefactor  = 12.2409
  norm       = 2.20612
  norm       = 2.49606
  Prefactor  = 0.000100001
  norm       = 3.89971
  Prefactor  = 45.862
  Prefactor  = 1.92635
  Prefactor  = 36.8599
  Prefactor  = 2.66978
  Prefactor  = 46.4334
  norm       = 15.2284
  Prefactor  = 0.0001
  Prefactor  = 6.19886
  norm       = 23.2067
  Normalizat = 1.46407
  Prefactor  = 0.805633
 **********
 **   18 **HESSE 
 **********

 FCN=   6307.430     FROM HESSE     STATUS=OK           268 CALLS     2159 TOTAL
                     EDM=   .43E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     175.35        94.203        .15238E-03   -1.3052    
   2  Prefactor     .10002E-03    39.115        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          12.051        13.370        .11539E-03   -1.5014    
   4  Prefactor     12.241        15.664        .11448E-03   -1.5008    
   5  norm          2.2061        1.4809        .76225E-04   -1.5411    
   6  norm          2.4961        1.8263        .88398E-04   -1.5392    
   7  Prefactor     .10000E-03    28.400        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          3.8997        5.6130        .20066E-03   -1.5313    
   9  Prefactor     45.862        59.192        .59212E-04   -1.4352    
  10  Prefactor     1.9263        19.541        .29936E-03   -1.5430    
  11  Prefactor     36.860        38.609        .66009E-04   -1.4493    
  12  Prefactor     2.6698        3.2836        .14917E-03   -1.5381    
  13  Prefactor     46.433        44.980        .58843E-04   -1.4344    
  14  norm          15.228        16.007        .10265E-03   -1.4927    
  15  Prefactor     .10000E-03    9.9059        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     6.1989        519.02        .15869E-03   -1.5210    
  17  norm          23.207        164.01        .41268E-03   -1.4744    
  18  Normalizat    1.4641        .26934        .30037E-03   -.78793    
  19  Prefactor     .80563        .15899        .23846E-03   -.99521    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.30173e-09
Minuit parameter uncertainties:
  1  94.2844
  2  0.00178012
  3  13.3731
  4  15.6696
  5  1.48092
  6  1.8263
  7  0.000343101
  8  5.6138
  9  59.2683
  10  12.2757
  11  38.6348
  12  3.28379
  13  45.0129
  14  16.0119
  15  3.65198e-05
  16  114.484
  17  123.872
  18  0.269599
  19  0.159079
Done.

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

Extracting fit parameters...

4FGL J0738.1+1742
   Spectrum: LogParabola
277         norm:  2.496e+00  1.826e+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:  8.056e-01  1.591e-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.464e+00  2.696e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.01
Ra Dec: 114.539 17.707
Photon Index (Fixed Index): 1.98 +/- 0.00
Photon Flux (Fixed Index): 4.54e-08 +/- 3.32e-08
Energy Flux (Fixed Index): 3.26e-05 +/- 2.38e-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) = 6307.38623899
delta logL = 0.043794141232

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6307.38545815
delta logL = 0.0445749737119

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.1497       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1739       1.0000          .0000       5.0000    
     3 'Normalizat'    1.4544       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .80919       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=   6307.385     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      263 TOTAL
                     EDM=   .47E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.1503        37.523        .70258E-02    .29662E-03
   2  alpha         2.1742        3.3867        .26320        .52073E-04
   3  Normalizat    1.4545        .12309        .68077E-01    .14146E-04
   4  Prefactor     .80910        .55863E-01    .43837E-01    .13057E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.15027
  alpha      = 2.1742
  Normalizat = 1.45447
  Prefactor  = 0.8091
 **********
 **   18 **HESSE 
 **********

 FCN=   6307.385     FROM HESSE     STATUS=OK            33 CALLS      296 TOTAL
                     EDM=   .98E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.1503        2.1918        .80742E-04   -1.5415    
   2  alpha         2.1742        .71460        .13200E-01   -.13069    
   3  Normalizat    1.4545        .25496        .30115E-03   -.79066    
   4  Prefactor     .80910        .15532        .23798E-03   -.99394    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.76133e-12
Minuit parameter uncertainties:
  1  2.19189
  2  0.72489
  3  0.255181
  4  0.155408
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/583199': 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) = 6307.38545761
delta logL = 0.0445755215533

Extracting fit parameters...

4FGL J0738.1+1742
   Spectrum: LogParabola
277         norm:  2.150e+00  2.192e+00  1.000e-04  1.000e+04 ( 1.000e-12)
278        alpha:  2.174e+00  7.249e-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:  8.091e-01  1.554e-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.454e+00  2.552e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.09
Ra Dec: 114.539 17.707
Photon Index (Free Index): 2.17 +/- 0.72
Photon Flux (Free Index): 5.45e-08 +/- 5.00e-08
Energy Flux (Free Index): 2.70e-05 +/- 2.61e-05

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/583199/cmap_HighResolution_613612801_613872001_4FGL_J0738.1+1742_daily_bin1444.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.54e-08', energy_flux2='2.70e-05', photon_flux_error='3.32e-08', dlogl='4.46e-02', energy_flux='3.26e-05', photon_flux2='5.45e-08', job_status='DONE', time_completed='2021-08-27 20:10:51.719977', photon_index_error2='0.72', photon_index2='2.17', ts='4.01', fit_tolerance='1e-08', GAL='0.81', photon_index_error='0.00', energy_flux_error2='2.61e-05', EG='1.46', time_epoch_completed='1630120251.72', return_code='0', job_id='583199', GAL2='0.81', EG2='1.45', return_code2='0', energy_flux_error='2.38e-05', photon_flux_error2='5.00e-08', ts2='4.09', photon_index='1.98' WHERE bin_id='1444' AND source_name='4FGL J0738.1+1742' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 27 20:10:51 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0066>
Subject: Job 583199: <4FGL_J0738.1+1742_daily_bin1444> in cluster <slac> Done

Job <4FGL_J0738.1+1742_daily_bin1444> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Fri Aug 27 19:55:39 2021
Job was executed on host(s) <bullet0066>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 27 19:55:44 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:55:44 2021
Terminated at Fri Aug 27 20:10:52 2021
Results reported at Fri Aug 27 20:10:52 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0738.1+1742_daily_bin1444 114.539 17.7066 613612801 613872001 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 :                                   616.04 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             285.47 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   908 sec.
    Turnaround time :                            913 sec.

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

