/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 163 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 = 7408
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1438.9+3710_daily_bin450
RA = 219.74, Dec = 37.1752
tmin = 355968001, tmax = 356227201
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='668806', job_status='RUN', time_executed='2021-09-10 03:24:04.871532', time_epoch_executed='1631269444.87' WHERE source_name='4FGL J1438.9+3710' and cadence='daily' and bin_id='450'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/668806

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/668806/ft1_4FGL_J1438.9+3710_daily_bin450.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/668806/ft2_4FGL_J1438.9+3710_daily_bin450.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/668806/ft1_4FGL_J1438.9+3710_daily_bin450.fits outfile=/scratch/kocevski/668806/ft1_filteredMKT_4FGL_J1438.9+3710_daily_bin450.fits ra=219.74 dec=37.1752 rad=12.0 tmin=355968001.0 tmax=356227201.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.35
user 3.11
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/668806/ft2_4FGL_J1438.9+3710_daily_bin450.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/668806/ft2_4FGL_J1438.9+3710_daily_bin450.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/668806/ft1_filteredMKT_4FGL_J1438.9+3710_daily_bin450.fits evtable="EVENTS" outfile="/scratch/kocevski/668806/ft1_filtered_4FGL_J1438.9+3710_daily_bin450.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.48
user 0.30
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/668806/ft1_filtered_4FGL_J1438.9+3710_daily_bin450.fits" evtable="EVENTS" scfile=/scratch/kocevski/668806/ft2_4FGL_J1438.9+3710_daily_bin450.fits sctable="SC_DATA" outfile=/scratch/kocevski/668806/ltcube_355968001_356227201_4FGL_J1438.9+3710_daily_bin450.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/668806/ft2_4FGL_J1438.9+3710_daily_bin450.fits
.....................!
real 11.90
user 11.49
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/668806/ft1_filtered_4FGL_J1438.9+3710_daily_bin450.fits evtable="EVENTS" scfile=/scratch/kocevski/668806/ft2_4FGL_J1438.9+3710_daily_bin450.fits sctable="SC_DATA" expcube=/scratch/kocevski/668806/ltcube_355968001_356227201_4FGL_J1438.9+3710_daily_bin450.fits outfile=/scratch/kocevski/668806/expmap_355968001_356227201_4FGL_J1438.9+3710_daily_bin450.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/668806/ltcube_355968001_356227201_4FGL_J1438.9+3710_daily_bin450.fits
.....................!
real 189.57
user 185.16
sys 4.04

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
Added 176 point sources and 0 extended sources

Setting source of interest to:
4FGL J1438.9+3710 @ 219.74 37.1752

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/668806/ft1_filtered_4FGL_J1438.9+3710_daily_bin450.fits scfile=/scratch/kocevski/668806/ft2_4FGL_J1438.9+3710_daily_bin450.fits outfile=/scratch/kocevski/668806/cmap_355968001_356227201_4FGL_J1438.9+3710_daily_bin450.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=219.74 yref=37.1752 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.53
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/668806/ft1_filtered_4FGL_J1438.9+3710_daily_bin450.fits scfile=/scratch/kocevski/668806/ft2_4FGL_J1438.9+3710_daily_bin450.fits outfile=/scratch/kocevski/668806/cmap_HighResolution_355968001_356227201_4FGL_J1438.9+3710_daily_bin450.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=219.74 yref=37.1752 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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/668806/ft1_filtered_4FGL_J1438.9+3710_daily_bin450.fits evtable="EVENTS" scfile=/scratch/kocevski/668806/ft2_4FGL_J1438.9+3710_daily_bin450.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/668806/Model_4FGL_J1438.9+3710_daily_bin450.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
Working on...
/scratch/kocevski/668806/ft1_filtered_4FGL_J1438.9+3710_daily_bin450.fits.....................!
real 53.10
user 51.73
sys 1.21

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/668806/ft1_filtered_4FGL_J1438.9+3710_daily_bin450.fits', '/scratch/kocevski/668806/ft2_4FGL_J1438.9+3710_daily_bin450.fits', expMap='/scratch/kocevski/668806/expmap_355968001_356227201_4FGL_J1438.9+3710_daily_bin450.fits', expCube='/scratch/kocevski/668806/ltcube_355968001_356227201_4FGL_J1438.9+3710_daily_bin450.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/668806/Model_4FGL_J1438.9+3710_daily_bin450.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1438.9+3710'

4FGL J1438.9+3710
   Spectrum: LogParabola
282         norm:  4.709e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
283        alpha:  2.310e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
284         beta:  1.080e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
285           Eb:  6.335e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/668806/ft1_filtered_4FGL_J1438.9+3710_daily_bin450.fits
Spacecraft file(s): /scratch/kocevski/668806/ft2_4FGL_J1438.9+3710_daily_bin450.fits
Exposure map: /scratch/kocevski/668806/expmap_355968001_356227201_4FGL_J1438.9+3710_daily_bin450.fits
Exposure cube: /scratch/kocevski/668806/ltcube_355968001_356227201_4FGL_J1438.9+3710_daily_bin450.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/668806/Model_4FGL_J1438.9+3710_daily_bin450.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) = 6591.94787902

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .31308E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    10.736       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    16.984       1.0000         .10000E-03   10000.    
     6 'norm      '    11.003       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .73783E-01   1.0000         .10000E-03   10000.    
    10 'norm      '    10.466       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10142E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    8.3746       1.0000         .10000E-03   10000.    
    13 'Prefactor '    66.465       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    12.851       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    5.7222       1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    5.2686       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    6.2218       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    1.3674       1.0000         .10000E-03   10000.    
    25 'norm      '    11.143       1.0000         .10000E-03   10000.    
    26 'Prefactor '    10.664       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.1995       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .81946       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5650E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6591.940     FROM MIGRAD    STATUS=CONVERGED    758 CALLS     3913 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    47.034       -.15774E-05** at limit **
   2  Prefactor     .10000E-03    4.0578       -.68065E-06** at limit **
   3  norm          10.735        12.554       -.15881E-06   -.43859E-04
   4  Prefactor     .10000E-03    25.154       -.10087E-04** at limit **
   5  Prefactor     16.982        19.551       -.85995E-06   -.56040E-04
   6  norm          11.002        4.9780        .11965E-06   -.14185E-04
   7  Prefactor     .10000E-03    19.331        .48938E-05** at limit **
   8  Prefactor     .10000E-03    38.634        .20080E-04** at limit **
   9  Prefactor     .85182E-01    1.8112       -.10110E-05    .12247E-02
  10  norm          10.473        14.050       -.59285E-06   -.27307E-03
  11  Prefactor     .10000E-03    33.709        .18693E-04** at limit **
  12  norm          8.3740        5.6218        .62916E-07   -.10379E-03
  13  Prefactor     66.463        44.890       -.16523E-05   -.77063E-04
  14  Prefactor     .10000E-03    23.526       -.13322E-04** at limit **
  15  norm          12.851        9.4590        .40747E-07    .95968E-05
  16  Prefactor     .10000E-03    4.4847       -.17086E-06** at limit **
  17  Prefactor     .10000E-03    3.2988       -.43890E-06** at limit **
  18  Prefactor     5.7228        7.9686        .74757E-06   -.23728E-04
  19  norm          .10000E-03    .38391       -.46602E-07** at limit **
  20  norm          5.2697        4.0003        .71117E-07   -.19784E-04
  21  Prefactor     .10000E-03    6.1281        .34426E-06** at limit **
  22  Prefactor     6.2228        54.038        .26213E-05    .63103E-05
  23  Prefactor     .10000E-03    51.089       -.29230E-04** at limit **
  24  Prefactor     1.3475        3.0902        .99116E-06   -.12831E-02
  25  norm          11.143        2.6222        .12599E-06    .61614E-04
  26  Prefactor     10.659        18.754       -.16204E-05    .44946E-05
  27  Prefactor     .10000E-03    5.0541        .14505E-06** at limit **
  28  norm          .10000E-03    3.3419        .50940E-06** at limit **
  29  Normalizat    1.1997        .17351        .30968E-06    .15836E-03
  30  Prefactor     .81926        .18012       -.14855E-06    .14002E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  norm       = 10.7352
  Prefactor  = 0.0001
  Prefactor  = 16.9816
  norm       = 11.0021
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0851823
  norm       = 10.4729
  Prefactor  = 0.0001
  norm       = 8.37396
  Prefactor  = 66.4628
  Prefactor  = 0.0001
  norm       = 12.8511
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.72276
  norm       = 0.0001
  norm       = 5.2697
  Prefactor  = 0.000100001
  Prefactor  = 6.22277
  Prefactor  = 0.000100001
  Prefactor  = 1.34747
  norm       = 11.1434
  Prefactor  = 10.6587
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.19968
  Prefactor  = 0.819255
 **********
 **   18 **HESSE 
 **********

 FCN=   6591.940     FROM HESSE     STATUS=OK           590 CALLS     4503 TOTAL
                     EDM=   .25E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    47.077        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    10.480        .31641E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          10.735        12.576        .12228E-03   -1.5053    
   4  Prefactor     .10000E-03    25.474        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     16.982        19.669        .97185E-04   -1.4884    
   6  norm          11.002        4.9754        .11623E-03   -1.5044    
   7  Prefactor     .10000E-03    19.502        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    39.636        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .85182E-01    18.202        .20583E-02   -1.5650    
  10  norm          10.473        13.996        .12385E-03   -1.5061    
  11  Prefactor     .10000E-03    34.565        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          8.3740        5.6238        .13853E-03   -1.5129    
  13  Prefactor     66.463        44.934        .49229E-04   -1.4076    
  14  Prefactor     .10000E-03    23.669        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          12.851        9.4605        .11174E-03   -1.4991    
  16  Prefactor     .10000E-03    4.4931        .16790E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    3.3339        .14398E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     5.7228        7.9571        .16791E-03   -1.5229    
  19  norm          .10000E-03    .39230        .49099E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          5.2697        3.7482        .12500E-03   -1.5249    
  21  Prefactor     .10000E-03    28.906        .35034E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     6.2228        54.058        .16094E-03   -1.5209    
  23  Prefactor     .10000E-03    52.171        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     1.3475        20.389        .18653E-02   -1.5476    
  25  norm          11.143        2.6517        .48396E-04   -1.5040    
  26  Prefactor     10.659        18.955        .12269E-03   -1.5055    
  27  Prefactor     .10000E-03    5.0554        .17827E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          .10000E-03    3.3427        .14496E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    1.1997        .20563        .23347E-03   -.86613    
  30  Prefactor     .81926        .21346        .29884E-03   -.99022    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.50644e-08
Minuit parameter uncertainties:
  1  1.73927e-05
  2  0.000355977
  3  12.5792
  4  6.23663e-05
  5  19.6767
  6  4.97561
  7  6.4683e-05
  8  0.000318961
  9  2.48965
  10  14.0005
  11  0.000254223
  12  5.62417
  13  44.9567
  14  6.03618e-05
  15  9.46161
  16  3.40951e-07
  17  3.1758e-07
  18  7.9586
  19  4.47865e-08
  20  3.74833
  21  0.000298759
  22  36.7262
  23  0.000412372
  24  10.4868
  25  2.65169
  26  18.9653
  27  4.69656e-07
  28  1.32835e-06
  29  0.205767
  30  0.213675
Done.

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

Extracting fit parameters...

4FGL J1438.9+3710
   Spectrum: LogParabola
282         norm:  8.374e+00  5.624e+00  1.000e-04  1.000e+04 ( 1.000e-12)
283        alpha:  2.310e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
284         beta:  1.080e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
285           Eb:  6.335e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
562    Prefactor:  8.193e-01  2.137e-01  0.000e+00  1.000e+01 ( 1.000e+00)
563        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
564        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
561   Normalization:  1.200e+00  2.058e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.95
Ra Dec: 219.740 37.175
Photon Index (Fixed Index): 2.31 +/- 0.00
Photon Flux (Fixed Index): 3.79e-08 +/- 2.55e-08
Energy Flux (Fixed Index): 1.30e-05 +/- 8.73e-06

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) = 6591.80155032
delta logL = 0.138263566577

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6591.79922001
delta logL = 0.140593872279

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    8.6704       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9645       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2111       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .81173       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5650E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6591.799     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      209 TOTAL
                     EDM=   .88E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          8.6704        10.055        .34033E-02   -.92321E-03
   2  alpha         1.9645        .88359        .42413       -.68091E-05
   3  Normalizat    1.2111        .16688        .52601E-01    .45559E-05
   4  Prefactor     .81174        .17959        .67833E-01    .19511E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 8.67042
  alpha      = 1.9645
  Normalizat = 1.21112
  Prefactor  = 0.811738
 **********
 **   18 **HESSE 
 **********

 FCN=   6591.799     FROM HESSE     STATUS=OK            31 CALLS      240 TOTAL
                     EDM=   .44E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          8.6704        6.0111        .13613E-03   -1.5119    
   2  alpha         1.9645        .63267        .17220E-01   -.21587    
   3  Normalizat    1.2111        .19594        .23257E-03   -.86260    
   4  Prefactor     .81174        .21115        .30010E-03   -.99297    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.41425e-10
Minuit parameter uncertainties:
  1  6.01155
  2  0.639968
  3  0.196054
  4  0.211359
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/668806': 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) = 6591.79922001
delta logL = 0.140593875745

Extracting fit parameters...

4FGL J1438.9+3710
   Spectrum: LogParabola
282         norm:  8.670e+00  6.012e+00  1.000e-04  1.000e+04 ( 1.000e-12)
283        alpha:  1.965e+00  6.400e-01  0.000e+00  5.000e+00 ( 1.000e+00)
284         beta:  1.080e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
285           Eb:  6.335e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
562    Prefactor:  8.117e-01  2.114e-01  0.000e+00  1.000e+01 ( 1.000e+00)
563        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
564        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
561   Normalization:  1.211e+00  1.961e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.24
Ra Dec: 219.740 37.175
Photon Index (Free Index): 1.96 +/- 0.64
Photon Flux (Free Index): 2.85e-08 +/- 2.58e-08
Energy Flux (Free Index): 1.53e-05 +/- 1.23e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/668806/cmap_HighResolution_355968001_356227201_4FGL_J1438.9+3710_daily_bin450.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.79e-08', energy_flux2='1.53e-05', photon_flux_error='2.55e-08', dlogl='1.41e-01', energy_flux='1.30e-05', photon_flux2='2.85e-08', job_status='DONE', time_completed='2021-09-10 03:36:42.499682', photon_index_error2='0.64', photon_index2='1.96', ts='5.95', fit_tolerance='1e-08', GAL='0.82', photon_index_error='0.00', energy_flux_error2='1.23e-05', EG='1.20', time_epoch_completed='1631270202.5', return_code='0', job_id='668806', GAL2='0.81', EG2='1.21', return_code2='0', energy_flux_error='8.73e-06', photon_flux_error2='2.58e-08', ts2='6.24', photon_index='2.31' WHERE bin_id='450' AND source_name='4FGL J1438.9+3710' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 03:36:42 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0038>
Subject: Job 668806: <4FGL_J1438.9+3710_daily_bin450> in cluster <slac> Done

Job <4FGL_J1438.9+3710_daily_bin450> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Fri Sep 10 03:21:10 2021
Job was executed on host(s) <bullet0038>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 10 03:21:12 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep 10 03:21:12 2021
Terminated at Fri Sep 10 03:36:43 2021
Results reported at Fri Sep 10 03:36:43 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1438.9+3710_daily_bin450 219.74 37.1752 355968001 356227201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1438.9+3710 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   754.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             292.93 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   930 sec.
    Turnaround time :                            933 sec.

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

