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


Performing analysis on: 4FGL_J0738.1+1742_daily_bin1322
RA = 114.539, Dec = 17.7066
tmin = 581990401, tmax = 582249601
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='583002', job_status='RUN', time_executed='2021-08-27 19:57:42.936086', time_epoch_executed='1630119462.94' WHERE source_name='4FGL J0738.1+1742' and cadence='daily' and bin_id='1322'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/583002

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/583002/ft1_4FGL_J0738.1+1742_daily_bin1322.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/583002/ft2_4FGL_J0738.1+1742_daily_bin1322.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/583002/ft1_4FGL_J0738.1+1742_daily_bin1322.fits outfile=/scratch/kocevski/583002/ft1_filteredMKT_4FGL_J0738.1+1742_daily_bin1322.fits ra=114.539 dec=17.7066 rad=12.0 tmin=581990401.0 tmax=582249601.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.04
user 2.21
sys 0.78

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/583002/ft2_4FGL_J0738.1+1742_daily_bin1322.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/583002/ft1_filteredMKT_4FGL_J0738.1+1742_daily_bin1322.fits evtable="EVENTS" outfile="/scratch/kocevski/583002/ft1_filtered_4FGL_J0738.1+1742_daily_bin1322.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 1.26
user 0.32
sys 0.85

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/583002/ft1_filtered_4FGL_J0738.1+1742_daily_bin1322.fits" evtable="EVENTS" scfile=/scratch/kocevski/583002/ft2_4FGL_J0738.1+1742_daily_bin1322.fits sctable="SC_DATA" outfile=/scratch/kocevski/583002/ltcube_581990401_582249601_4FGL_J0738.1+1742_daily_bin1322.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/583002/ft2_4FGL_J0738.1+1742_daily_bin1322.fits
.....................!
real 13.07
user 11.94
sys 1.10

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/583002/ft1_filtered_4FGL_J0738.1+1742_daily_bin1322.fits evtable="EVENTS" scfile=/scratch/kocevski/583002/ft2_4FGL_J0738.1+1742_daily_bin1322.fits sctable="SC_DATA" expcube=/scratch/kocevski/583002/ltcube_581990401_582249601_4FGL_J0738.1+1742_daily_bin1322.fits outfile=/scratch/kocevski/583002/expmap_581990401_582249601_4FGL_J0738.1+1742_daily_bin1322.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/583002/ltcube_581990401_582249601_4FGL_J0738.1+1742_daily_bin1322.fits
.....................!
real 192.86
user 187.29
sys 5.25

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/583002/ft1_filtered_4FGL_J0738.1+1742_daily_bin1322.fits scfile=/scratch/kocevski/583002/ft2_4FGL_J0738.1+1742_daily_bin1322.fits outfile=/scratch/kocevski/583002/cmap_581990401_582249601_4FGL_J0738.1+1742_daily_bin1322.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=114.539 yref=17.7066 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 1.26
user 0.35
sys 0.83

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/583002/ft1_filtered_4FGL_J0738.1+1742_daily_bin1322.fits scfile=/scratch/kocevski/583002/ft2_4FGL_J0738.1+1742_daily_bin1322.fits outfile=/scratch/kocevski/583002/cmap_HighResolution_581990401_582249601_4FGL_J0738.1+1742_daily_bin1322.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=114.539 yref=17.7066 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 1.24
user 0.36
sys 0.84

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    18.540       1.0000         .10000E-03   10000.    
     2 'Prefactor '    10.256       1.0000         .10000E-03   10000.    
     3 'norm      '    8.4901       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    1.6704       1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    1.1155       1.0000         .10000E-03   10000.    
     9 'Prefactor '    26.556       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    53.496       1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.4366       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10327E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.4432       1.0000         .10000E-03   10000.    
    16 'Prefactor '    50.262       1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.2659       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .93875       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=   8391.258     FROM MIGRAD    STATUS=CONVERGED    379 CALLS     1886 TOTAL
                     EDM=   .43E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     18.537        36.482        .60834E-06    .15042E-05
   2  Prefactor     10.255        12.497       -.88916E-06   -.98980E-05
   3  norm          8.4895        9.4648       -.14930E-06    .38134E-06
   4  Prefactor     .10000E-03    7.9933        .20858E-07** at limit **
   5  norm          1.6704        1.2568        .38328E-07    .60397E-06
   6  norm          .10000E-03    .53320        .12685E-07** at limit **
   7  Prefactor     .10000E-03    4.2217        .31016E-07** at limit **
   8  norm          1.1158        2.6273        .35000E-06    .25183E-04
   9  Prefactor     26.556        27.347        .55121E-07   -.94769E-07
  10  Prefactor     .10000E-03    5.8242        .91914E-08** at limit **
  11  Prefactor     53.496        39.538        .36357E-07   -.71960E-05
  12  Prefactor     4.4369        3.4671        .11218E-05   -.89201E-04
  13  Prefactor     .10000E-03    11.105       -.43912E-06** at limit **
  14  norm          .10000E-03    10.982       -.74233E-06** at limit **
  15  Prefactor     4.4446        9.1078        .20899E-05    .14447E-04
  16  Prefactor     50.251        70.982        .11721E-05    .25350E-07
  17  norm          .10000E-03    198.11        .13240E-05** at limit **
  18  Normalizat    1.2658        .19349       -.11045E-05    .21510E-04
  19  Prefactor     .93879        .11401        .82831E-07   -.86539E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 18.5373
  Prefactor  = 10.2551
  norm       = 8.48946
  Prefactor  = 0.0001
  norm       = 1.67044
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.11584
  Prefactor  = 26.5558
  Prefactor  = 0.0001
  Prefactor  = 53.496
  Prefactor  = 4.4369
  Prefactor  = 0.0001
  norm       = 0.000100001
  Prefactor  = 4.4446
  Prefactor  = 50.2509
  norm       = 0.0001
  Normalizat = 1.26584
  Prefactor  = 0.93879
 **********
 **   18 **HESSE 
 **********

 FCN=   8391.258     FROM HESSE     STATUS=OK           268 CALLS     2154 TOTAL
                     EDM=   .91E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     18.537        36.503        .93017E-04   -1.4847    
   2  Prefactor     10.255        12.492        .12511E-03   -1.5067    
   3  norm          8.4895        9.4612        .13758E-03   -1.5125    
   4  Prefactor     .10000E-03    8.0606        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          1.6704        1.2550        .84637E-04   -1.5449    
   6  norm          .10000E-03    .54284        .65267E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    4.2512        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.1158        2.5774        .21894E-03   -1.5497    
   9  Prefactor     26.556        27.308        .77738E-04   -1.4677    
  10  Prefactor     .10000E-03    5.8331        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     53.496        39.658        .54838E-04   -1.4244    
  12  Prefactor     4.4369        3.4753        .69187E-03   -1.5287    
  13  Prefactor     .10000E-03    11.112        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    11.067        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     4.4446        9.1030        .19104E-03   -1.5286    
  16  Prefactor     50.251        70.983        .56566E-04   -1.4289    
  17  norm          .10000E-03    199.33        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    1.2658        .22130        .30472E-03   -.84592    
  19  Prefactor     .93879        .13102        .21209E-03   -.94799    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.06216e-11
Minuit parameter uncertainties:
  1  36.5472
  2  12.495
  3  9.46287
  4  7.49796e-06
  5  1.25498
  6  3.976e-07
  7  2.68787e-06
  8  2.57769
  9  27.3204
  10  1.63557e-06
  11  39.6774
  12  3.47548
  13  1.24754e-06
  14  0.000171285
  15  9.10584
  16  71.1025
  17  4.98552e-05
  18  0.221466
  19  0.131064
Done.

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

Extracting fit parameters...

4FGL J0738.1+1742
   Spectrum: LogParabola
277         norm:  1.000e-04  3.976e-07  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.388e-01  1.311e-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.266e+00  2.215e-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.55e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.26e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/583002/likelihoodResults_581990401_582249601_4FGL_J0738.1+1742_daily_bin1322.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) = 8391.26652902
delta logL = -0.0086409344658

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8391.25788821
delta logL = -1.26814484247e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10019E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9864       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2659       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93874       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8391.258     FROM MIGRAD    STATUS=CONVERGED     94 CALLS      237 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    3.0040        .65363E-02** at limit **
   2  alpha         2.3963        3.6516        .50000       -.12569E-06
   3  Normalizat    1.2658        .11797E-01    .30472E-03   -.10252E-02
   4  Prefactor     .93879        .72367E-02    .21210E-03   -.15658E-02
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.39628
  Normalizat = 1.26584
  Prefactor  = 0.938789
 **********
 **   18 **HESSE 
 **********

 FCN=   8391.258     FROM HESSE     STATUS=OK            29 CALLS      266 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    .82479        .13306E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.3963        3.5872        .50000       -.41499E-01
   3  Normalizat    1.2658        .20860        .60943E-04   -.84592    
   4  Prefactor     .93879        .12799        .42419E-04   -.94799    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.44733e-09
Minuit parameter uncertainties:
  1  1.03862e-06
  2  99.047
  3  0.208742
  4  0.128033
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/583002': 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) = 8391.25788283
delta logL = 5.26169606019e-06

Extracting fit parameters...

4FGL J0738.1+1742
   Spectrum: LogParabola
277         norm:  1.000e-04  1.039e-06  1.000e-04  1.000e+04 ( 1.000e-12)
278        alpha:  2.396e+00  9.905e+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:  9.388e-01  1.280e-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.266e+00  2.087e-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/583002/cmap_HighResolution_581990401_582249601_4FGL_J0738.1+1742_daily_bin1322.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.26e-05', job_status='DONE', photon_flux_upper_limit='4.55e-08', time_completed='2021-08-27 20:10:16.061218', job_id='583002', GAL2='0.94', fit_tolerance='1e-08', EG2='1.27', EG='1.27', time_epoch_completed='1630120216.06', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.94', dlogl='5.26e-06', ts2='-0.00', photon_index_error='0.00', photon_index='1.98' WHERE bin_id='1322' AND source_name='4FGL J0738.1+1742' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 27 20:10:16 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0088>
Subject: Job 583002: <4FGL_J0738.1+1742_daily_bin1322> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0738.1+1742_daily_bin1322 114.539 17.7066 581990401 582249601 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 :                                   722.16 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             329.73 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   891 sec.
    Turnaround time :                            892 sec.

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

