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


Performing analysis on: 4FGL_J0738.1+1742_daily_bin1548
RA = 114.539, Dec = 17.7066
tmin = 640569601, tmax = 640828801
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='584495', job_status='RUN', time_executed='2021-08-27 20:00:42.272218', time_epoch_executed='1630119642.27' WHERE source_name='4FGL J0738.1+1742' and cadence='daily' and bin_id='1548'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/584495

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/584495/ft1_4FGL_J0738.1+1742_daily_bin1548.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/584495/ft2_4FGL_J0738.1+1742_daily_bin1548.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/584495/ft1_4FGL_J0738.1+1742_daily_bin1548.fits outfile=/scratch/kocevski/584495/ft1_filteredMKT_4FGL_J0738.1+1742_daily_bin1548.fits ra=114.539 dec=17.7066 rad=12.0 tmin=640569601.0 tmax=640828801.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.05
user 2.77
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/584495/ft1_filtered_4FGL_J0738.1+1742_daily_bin1548.fits" evtable="EVENTS" scfile=/scratch/kocevski/584495/ft2_4FGL_J0738.1+1742_daily_bin1548.fits sctable="SC_DATA" outfile=/scratch/kocevski/584495/ltcube_640569601_640828801_4FGL_J0738.1+1742_daily_bin1548.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/584495/ft2_4FGL_J0738.1+1742_daily_bin1548.fits
.....................!
real 12.73
user 12.38
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/584495/ft1_filtered_4FGL_J0738.1+1742_daily_bin1548.fits evtable="EVENTS" scfile=/scratch/kocevski/584495/ft2_4FGL_J0738.1+1742_daily_bin1548.fits sctable="SC_DATA" expcube=/scratch/kocevski/584495/ltcube_640569601_640828801_4FGL_J0738.1+1742_daily_bin1548.fits outfile=/scratch/kocevski/584495/expmap_640569601_640828801_4FGL_J0738.1+1742_daily_bin1548.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/584495/ltcube_640569601_640828801_4FGL_J0738.1+1742_daily_bin1548.fits
.....................!
real 190.84
user 185.57
sys 4.86

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/584495/ft1_filtered_4FGL_J0738.1+1742_daily_bin1548.fits scfile=/scratch/kocevski/584495/ft2_4FGL_J0738.1+1742_daily_bin1548.fits outfile=/scratch/kocevski/584495/cmap_640569601_640828801_4FGL_J0738.1+1742_daily_bin1548.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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/584495/ft1_filtered_4FGL_J0738.1+1742_daily_bin1548.fits scfile=/scratch/kocevski/584495/ft2_4FGL_J0738.1+1742_daily_bin1548.fits outfile=/scratch/kocevski/584495/cmap_HighResolution_640569601_640828801_4FGL_J0738.1+1742_daily_bin1548.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.54
user 0.37
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10175E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.4142       1.0000         .10000E-03   10000.    
     3 'norm      '    .10517E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .50078       1.0000         .10000E-03   10000.    
     6 'norm      '    .10022E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    11.077       1.0000         .10000E-03   10000.    
     8 'norm      '    3.0969       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10061E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    7.2557       1.0000         .10000E-03   10000.    
    11 'Prefactor '    29.367       1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.7222       1.0000         .10000E-03   10000.    
    13 'Prefactor '    18.268       1.0000         .10000E-03   10000.    
    14 'norm      '    13.208       1.0000         .10000E-03   10000.    
    15 'Prefactor '    8.3212       1.0000         .10000E-03   10000.    
    16 'Prefactor '    71.423       1.0000         .10000E-03   10000.    
    17 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.4567       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .93705       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=   11073.50     FROM MIGRAD    STATUS=CONVERGED    407 CALLS     1935 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    30.307        .18897E-06** at limit **
   2  Prefactor     3.4136        3.5763        .17243E-05   -.27122E-02
   3  norm          .10000E-03    13.445        .23892E-06** at limit **
   4  Prefactor     .10000E-03    2.9889       -.15118E-07** at limit **
   5  norm          .50137        .77568        .12389E-06   -.48419E-03
   6  norm          .10000E-03    .73304       -.10617E-06** at limit **
   7  Prefactor     11.077        8.7444        .10141E-05    .48530E-03
   8  norm          3.0937        4.2174       -.77265E-07   -.36786E-03
   9  Prefactor     .10000E-03    19.420        .47583E-07** at limit **
  10  Prefactor     7.2542        18.418        .34089E-05    .14441E-03
  11  Prefactor     29.276        43.075       -.36608E-05   -.69939E-04
  12  Prefactor     1.7202        2.3420        .22901E-06   -.34133E-03
  13  Prefactor     18.271        20.476       -.46441E-05   -.37901E-03
  14  norm          13.202        17.988        .51864E-05    .32433E-03
  15  Prefactor     8.3202        11.611       -.31563E-05   -.21683E-03
  16  Prefactor     71.411        82.756       -.51778E-05   -.10322E-03
  17  norm          .10000E-03    33.158       -.50920E-06** at limit **
  18  Normalizat    1.4572        .17170        .25247E-07   -.17447E-04
  19  Prefactor     .93672        .98929E-01   -.26527E-06    .31706E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 3.41363
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.501368
  norm       = 0.0001
  Prefactor  = 11.0775
  norm       = 3.09374
  Prefactor  = 0.0001
  Prefactor  = 7.25422
  Prefactor  = 29.2756
  Prefactor  = 1.7202
  Prefactor  = 18.2712
  norm       = 13.2017
  Prefactor  = 8.32021
  Prefactor  = 71.4115
  norm       = 0.0001
  Normalizat = 1.45725
  Prefactor  = 0.936716
 **********
 **   18 **HESSE 
 **********

 FCN=   11073.50     FROM HESSE     STATUS=OK           274 CALLS     2209 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    30.498        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     3.4136        5.1776        .10947E-02   -1.5338    
   3  norm          .10000E-03    13.883        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    3.0329        .17764E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .50137        .67204        .11083E-02   -1.5566    
   6  norm          .10000E-03    1.1586        .15628E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     11.077        7.9181        .12038E-03   -1.5042    
   8  norm          3.0937        4.1473        .20382E-03   -1.5356    
   9  Prefactor     .10000E-03    19.480        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     7.2542        18.186        .14891E-03   -1.5169    
  11  Prefactor     29.276        43.481        .73932E-04   -1.4625    
  12  Prefactor     1.7202        2.3298        .17773E-03   -1.5446    
  13  Prefactor     18.271        20.554        .93708E-04   -1.4853    
  14  norm          13.202        18.120        .11022E-03   -1.4981    
  15  Prefactor     8.3202        11.666        .13898E-03   -1.5131    
  16  Prefactor     71.411        82.881        .47502E-04   -1.4016    
  17  norm          .10000E-03    33.174        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    1.4572        .19782        .29183E-03   -.78987    
  19  Prefactor     .93672        .11321        .21751E-03   -.94870    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.42778e-08
Minuit parameter uncertainties:
  1  1.56335e-05
  2  5.17831
  3  6.13798e-06
  4  3.44726e-07
  5  0.672046
  6  4.72128e-05
  7  7.91889
  8  4.1477
  9  6.80382e-05
  10  18.1997
  11  43.5281
  12  2.32989
  13  20.5621
  14  18.1279
  15  11.6693
  16  83.0152
  17  5.2436e-05
  18  0.197928
  19  0.113234
Done.

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

Extracting fit parameters...

4FGL J0738.1+1742
   Spectrum: LogParabola
277         norm:  1.000e-04  4.721e-05  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.367e-01  1.132e-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.457e+00  1.979e-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: 4.76e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.41e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/584495/likelihoodResults_640569601_640828801_4FGL_J0738.1+1742_daily_bin1548.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): 0
logL (Free Index) = 11073.5086372
delta logL = -0.00412883091121

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 11073.5045079
delta logL = 4.6861350711e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10691E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0269       1.0000          .0000       5.0000    
     3 'Normalizat'    1.4574       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93666       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   11073.50     FROM MIGRAD    STATUS=FAILED       195 CALLS      359 TOTAL
                     EDM=   .16E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .22859E-01    67.299        .75101E-03    .65069E-03
   2  alpha         2.9069        2.7405        .50000        .47974E-04
   3  Normalizat    1.4553        .32392E-01    .29198E-03    .59022E-03
   4  Prefactor     .93705        .19686E-01    .21747E-03   -.16980E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   11073.50     FROM SIMPLEX   STATUS=UNCHANGED     94 CALLS      453 TOTAL
                     EDM=   .86E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .22859E-01    67.299        .13658E-03    .65069E-03
   2  alpha         2.9069        2.7405        .86173E-02    .47974E-04
   3  Normalizat    1.4553        .32392E-01    .85276E-04    .59022E-03
   4  Prefactor     .93705        .19686E-01    .22229E-04   -.16980E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   11073.50     FROM MIGRAD    STATUS=CONVERGED     73 CALLS      526 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .22869E-01    2.2883        .12016E-05    .11635E-03
   2  alpha         2.9068        3.9266        .18442E-01   -.25559E-05
   3  Normalizat    1.4553        .18240        .11679E-04    .67166E-03
   4  Prefactor     .93705        .11104        .17398E-05   -.91484E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.022869
  alpha      = 2.90682
  Normalizat = 1.45526
  Prefactor  = 0.937045
 **********
 **   18 **HESSE 
 **********

 FCN=   11073.50     FROM HESSE     STATUS=OK            25 CALLS      551 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .22869E-01    1.9292        .37523E-06   -1.5738    
   2  alpha         2.9068        3.9521        .73767E-03    .16346    
   3  Normalizat    1.4553        .18279        .23358E-05   -.79043    
   4  Prefactor     .93705        .11164        .34795E-06   -.94858    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.50864e-09
Minuit parameter uncertainties:
  1  0.41918
  2  4.3925
  3  0.182871
  4  0.111667
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/584495': 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) = 11073.5026389
delta logL = 0.00186950561874

Extracting fit parameters...

4FGL J0738.1+1742
   Spectrum: LogParabola
277         norm:  2.287e-02  4.192e-01  1.000e-04  1.000e+04 ( 1.000e-12)
278        alpha:  2.907e+00  4.392e+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.370e-01  1.117e-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.455e+00  1.829e-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/584495/cmap_HighResolution_640569601_640828801_4FGL_J0738.1+1742_daily_bin1548.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.41e-05', job_status='DONE', photon_flux_upper_limit='4.76e-08', time_completed='2021-08-27 20:15:54.301054', job_id='584495', GAL2='0.94', fit_tolerance='1e-08', EG2='1.46', EG='1.46', time_epoch_completed='1630120554.3', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.94', dlogl='1.87e-03', ts2='0.00', photon_index_error='0.00', photon_index='1.98' WHERE bin_id='1548' AND source_name='4FGL J0738.1+1742' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 27 20:15:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0104>
Subject: Job 584495: <4FGL_J0738.1+1742_daily_bin1548> in cluster <slac> Done

Job <4FGL_J0738.1+1742_daily_bin1548> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Fri Aug 27 20:00:22 2021
Job was executed on host(s) <bullet0104>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 27 20:00:24 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Aug 27 20:00:24 2021
Terminated at Fri Aug 27 20:15:54 2021
Results reported at Fri Aug 27 20:15:54 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0738.1+1742_daily_bin1548 114.539 17.7066 640569601 640828801 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 :                                   896.42 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             364.62 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   930 sec.
    Turnaround time :                            932 sec.

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

