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


Performing analysis on: 4FGL_J1438.9+3710_daily_bin458
RA = 219.74, Dec = 37.1752
tmin = 358041601, tmax = 358300801
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='668817', job_status='RUN', time_executed='2021-09-10 03:23:59.579934', time_epoch_executed='1631269439.58' WHERE source_name='4FGL J1438.9+3710' and cadence='daily' and bin_id='458'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/668817

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/668817/ft1_4FGL_J1438.9+3710_daily_bin458.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/668817/ft2_4FGL_J1438.9+3710_daily_bin458.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/668817/ft1_4FGL_J1438.9+3710_daily_bin458.fits outfile=/scratch/kocevski/668817/ft1_filteredMKT_4FGL_J1438.9+3710_daily_bin458.fits ra=219.74 dec=37.1752 rad=12.0 tmin=358041601.0 tmax=358300801.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.52
user 3.32
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/668817/ft2_4FGL_J1438.9+3710_daily_bin458.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/668817/ft1_filteredMKT_4FGL_J1438.9+3710_daily_bin458.fits evtable="EVENTS" outfile="/scratch/kocevski/668817/ft1_filtered_4FGL_J1438.9+3710_daily_bin458.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.51
user 0.35
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/668817/ft1_filtered_4FGL_J1438.9+3710_daily_bin458.fits" evtable="EVENTS" scfile=/scratch/kocevski/668817/ft2_4FGL_J1438.9+3710_daily_bin458.fits sctable="SC_DATA" outfile=/scratch/kocevski/668817/ltcube_358041601_358300801_4FGL_J1438.9+3710_daily_bin458.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/668817/ft2_4FGL_J1438.9+3710_daily_bin458.fits
.....................!
real 11.97
user 11.61
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/668817/ft1_filtered_4FGL_J1438.9+3710_daily_bin458.fits evtable="EVENTS" scfile=/scratch/kocevski/668817/ft2_4FGL_J1438.9+3710_daily_bin458.fits sctable="SC_DATA" expcube=/scratch/kocevski/668817/ltcube_358041601_358300801_4FGL_J1438.9+3710_daily_bin458.fits outfile=/scratch/kocevski/668817/expmap_358041601_358300801_4FGL_J1438.9+3710_daily_bin458.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/668817/ltcube_358041601_358300801_4FGL_J1438.9+3710_daily_bin458.fits
.....................!
real 190.45
user 185.31
sys 4.76

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/668817/ft1_filtered_4FGL_J1438.9+3710_daily_bin458.fits scfile=/scratch/kocevski/668817/ft2_4FGL_J1438.9+3710_daily_bin458.fits outfile=/scratch/kocevski/668817/cmap_358041601_358300801_4FGL_J1438.9+3710_daily_bin458.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.55
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/668817/ft1_filtered_4FGL_J1438.9+3710_daily_bin458.fits scfile=/scratch/kocevski/668817/ft2_4FGL_J1438.9+3710_daily_bin458.fits outfile=/scratch/kocevski/668817/cmap_HighResolution_358041601_358300801_4FGL_J1438.9+3710_daily_bin458.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.56
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/668817/ft1_filtered_4FGL_J1438.9+3710_daily_bin458.fits evtable="EVENTS" scfile=/scratch/kocevski/668817/ft2_4FGL_J1438.9+3710_daily_bin458.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/668817/Model_4FGL_J1438.9+3710_daily_bin458.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/668817/ft1_filtered_4FGL_J1438.9+3710_daily_bin458.fits.....................!
real 45.20
user 43.88
sys 1.18

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/668817/ft1_filtered_4FGL_J1438.9+3710_daily_bin458.fits', '/scratch/kocevski/668817/ft2_4FGL_J1438.9+3710_daily_bin458.fits', expMap='/scratch/kocevski/668817/expmap_358041601_358300801_4FGL_J1438.9+3710_daily_bin458.fits', expCube='/scratch/kocevski/668817/ltcube_358041601_358300801_4FGL_J1438.9+3710_daily_bin458.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/668817/Model_4FGL_J1438.9+3710_daily_bin458.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/668817/ft1_filtered_4FGL_J1438.9+3710_daily_bin458.fits
Spacecraft file(s): /scratch/kocevski/668817/ft2_4FGL_J1438.9+3710_daily_bin458.fits
Exposure map: /scratch/kocevski/668817/expmap_358041601_358300801_4FGL_J1438.9+3710_daily_bin458.fits
Exposure cube: /scratch/kocevski/668817/ltcube_358041601_358300801_4FGL_J1438.9+3710_daily_bin458.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/668817/Model_4FGL_J1438.9+3710_daily_bin458.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) = 5792.97299071

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    39.924       1.0000         .10000E-03   10000.    
     2 'Prefactor '    12.755       1.0000         .10000E-03   10000.    
     3 'norm      '    15.785       1.0000         .10000E-03   10000.    
     4 'Prefactor '    36.961       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .12613E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    20.866       1.0000         .10000E-03   10000.    
     8 'Prefactor '    40.846       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    11.508       1.0000         .10000E-03   10000.    
    11 'Prefactor '    11.218       1.0000         .10000E-03   10000.    
    12 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    27.250       1.0000         .10000E-03   10000.    
    14 'Prefactor '    16.128       1.0000         .10000E-03   10000.    
    15 'norm      '    10.592       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.6405       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10023E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .45745       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    20.863       1.0000         .10000E-03   10000.    
    25 'norm      '    8.4040       1.0000         .10000E-03   10000.    
    26 'Prefactor '    6.1809       1.0000         .10000E-03   10000.    
    27 'Prefactor '    12.721       1.0000         .10000E-03   10000.    
    28 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    .75516       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.0031       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5650E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5792.853     FROM MIGRAD    STATUS=CONVERGED     79 CALLS     3447 TOTAL
                     EDM=   .20E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 12.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     39.928        2.4666        .15074E-05   -.58766E-02
   2  Prefactor     12.755        1.0034        .75746E-07    .39479E-04
   3  norm          15.787        1.0326        .24590E-06   -.17490E-03
   4  Prefactor     36.959        1.3686       -.65112E-06    .23118E-02
   5  Prefactor     .10000E-03    10.623        .18023E-04** at limit **
   6  norm          .10000E-03    15.879       -.17088E-04** at limit **
   7  Prefactor     20.869        1.5330        .10323E-05   -.14139E-02
   8  Prefactor     40.849        1.2752        .50157E-06   -.13133E-02
   9  Prefactor     .10000E-03    3.0239       -.55044E-06** at limit **
  10  norm          11.506        1.0465       -.37871E-06    .35680E-03
  11  Prefactor     11.218        1.0420       -.36352E-06    .36921E-03
  12  norm          .10000E-03    3.6324        .40065E-05** at limit **
  13  Prefactor     27.249        1.0462       -.24845E-06    .65473E-03
  14  Prefactor     16.128        1.0036       -.79383E-07    .85508E-04
  15  norm          10.592        1.0030        .70133E-07    .52916E-04
  16  Prefactor     .10003E-03    4.3897       -.30242E-05** at limit **
  17  Prefactor     1.6390        1.0760        .73792E-07    .33312E-04
  18  Prefactor     .10000E-03    3.5856       -.45522E-05** at limit **
  19  norm          .10000E-03    1.0957        .21255E-06** at limit **
  20  norm          .45720        2.8172        .39164E-06   -.29476E-04
  21  Prefactor     .10000E-03    5.8253       -.41356E-06** at limit **
  22  Prefactor     .10000E-03    10.632        .18029E-04** at limit **
  23  Prefactor     .10000E-03    30.488       -.24252E-04** at limit **
  24  Prefactor     20.862        1.1186        .40574E-06   -.28118E-03
  25  norm          8.4040        1.7598       -.11675E-06   -.17215E-03
  26  Prefactor     6.1803        1.0139       -.13167E-06    .16075E-05
  27  Prefactor     12.720        1.0008        .12623E-08   -.25313E-07
  28  norm          .10003E-03    4.3416        .60887E-05** at limit **
  29  Normalizat    .75497        .19700       -.11195E-05    .59316E-04
  30  Prefactor     1.0033        .21858        .52861E-06    .61615E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 39.9283
  Prefactor  = 12.7555
  norm       = 15.7875
  Prefactor  = 36.9594
  Prefactor  = 0.0001
  norm       = 0.000100001
  Prefactor  = 20.8695
  Prefactor  = 40.8486
  Prefactor  = 0.0001
  norm       = 11.5062
  Prefactor  = 11.2179
  norm       = 0.0001
  Prefactor  = 27.249
  Prefactor  = 16.128
  norm       = 10.5924
  Prefactor  = 0.00010003
  Prefactor  = 1.63904
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.457204
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 20.8625
  norm       = 8.404
  Prefactor  = 6.18026
  Prefactor  = 12.7204
  norm       = 0.000100031
  Normalizat = 0.754972
  Prefactor  = 1.00335
 **********
 **   18 **HESSE 
 **********

 FCN=   5792.853     FROM HESSE     STATUS=OK           664 CALLS     4111 TOTAL
                     EDM=   .83E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     39.928        95.662        .15859E-02   -1.4443    
   2  Prefactor     12.755        7.8656        .28040E-02   -1.4994    
   3  norm          15.787        17.005        .25202E-02   -1.4913    
   4  Prefactor     36.959        28.507        .16481E-02   -1.4491    
   5  Prefactor     .10000E-03    21.620        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    3.0157        .69976E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     20.869        27.750        .21921E-02   -1.4794    
   8  Prefactor     40.849        33.721        .15680E-02   -1.4429    
   9  Prefactor     .10000E-03    2.9639        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          11.506        14.983        .29524E-02   -1.5029    
  11  Prefactor     11.218        30.319        .29903E-02   -1.5038    
  12  norm          .10000E-03    3.6092        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     27.249        50.483        .19186E-02   -1.4663    
  14  Prefactor     16.128        35.901        .24933E-02   -1.4905    
  15  norm          10.592        7.8981        .30777E-02   -1.5057    
  16  Prefactor     .10003E-03    7.9074        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     1.6390        5.6730        .82475E-02   -1.5452    
  18  Prefactor     .10000E-03    3.5708        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    .72110        .24515E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .45720        3.0860        .11096E-01   -1.5573    
  21  Prefactor     .10000E-03    5.8125        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    21.848        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    30.712        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     20.862        13.124        .21923E-02   -1.4794    
  25  norm          8.4040        2.0388        .34571E-02   -1.5128    
  26  Prefactor     6.1803        13.257        .40369E-02   -1.5211    
  27  Prefactor     12.720        15.429        .28077E-02   -1.4995    
  28  norm          .10003E-03    7.7404        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .75497        .18677        .43022E-01   -1.0176    
  30  Prefactor     1.0033        .19161        .44630E-01   -.92618    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.34032e-07
Minuit parameter uncertainties:
  1  96.033
  2  7.86624
  3  17.01
  4  28.5177
  5  0.000106456
  6  0.000101069
  7  27.7673
  8  33.7368
  9  3.40254e-06
  10  14.9875
  11  30.3608
  12  2.91483e-05
  13  50.5622
  14  35.9495
  15  7.8989
  16  0.000979007
  17  5.67484
  18  3.51026e-05
  19  3.55244e-06
  20  2.37556
  21  5.34921e-05
  22  7.97144e-05
  23  0.000729093
  24  13.1262
  25  2.03878
  26  13.2637
  27  15.4343
  28  0.000979452
  29  0.186924
  30  0.191742
Done.

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

Extracting fit parameters...

4FGL J1438.9+3710
   Spectrum: LogParabola
282         norm:  1.000e-04  2.915e-05  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:  1.003e+00  1.917e-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:  7.550e-01  1.869e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 219.740 37.175
Photon Flux Upper Limit: 5.91e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.03e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/668817/likelihoodResults_358041601_358300801_4FGL_J1438.9+3710_daily_bin458.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) = 5792.85386433
delta logL = -0.00130895437997

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5792.83563727
delta logL = 0.016918108292

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .49959E-01   1.0000         .10000E-03   10000.    
     2 'alpha     '    5.0000       1.0000          .0000       5.0000    
     3 'Normalizat'    .74216       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0123       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=   5792.836     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      276 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .50096E-01    7.2839        .15494E-01    .22508E-02
   2  alpha         5.0000        4.8965        .46267    ** at limit **
   3  Normalizat    .74212        .36120E-01    .42851E-01    .18141E-04
   4  Prefactor     1.0124        .37058E-01    .43008E-01    .69305E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0500961
  alpha      = 5
  Normalizat = 0.742116
  Prefactor  = 1.01239
 **********
 **   18 **HESSE 
 **********

 FCN=   5792.836     FROM HESSE     STATUS=OK            33 CALLS      309 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .50096E-01    .41271        .54450E-03   -1.5663    
   2  alpha         5.0000        4.4664        .50000        1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .74212        .21134        .26386E-03   -1.0225    
   4  Prefactor     1.0124        .22423        .25164E-03   -.92318    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.3521e-08
Minuit parameter uncertainties:
  1  0.287293
  2  4.731e-06
  3  0.211569
  4  0.224434
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/668817': 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) = 5792.83563687
delta logL = 0.0169185064733

Extracting fit parameters...

4FGL J1438.9+3710
   Spectrum: LogParabola
282         norm:  5.010e-02  2.873e-01  1.000e-04  1.000e+04 ( 1.000e-12)
283        alpha:  5.000e+00  4.731e-06  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:  1.012e+00  2.244e-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:  7.421e-01  2.116e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 219.740 37.175

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/668817/cmap_HighResolution_358041601_358300801_4FGL_J1438.9+3710_daily_bin458.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.03e-05', job_status='DONE', photon_flux_upper_limit='5.91e-08', time_completed='2021-09-10 03:36:49.358245', job_id='668817', GAL2='1.01', fit_tolerance='1e-08', EG2='0.74', EG='0.75', time_epoch_completed='1631270209.36', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.00', dlogl='1.69e-02', ts2='0.04', photon_index_error='0.00', photon_index='2.31' WHERE bin_id='458' AND source_name='4FGL J1438.9+3710' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 03:36:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0262>
Subject: Job 668817: <4FGL_J1438.9+3710_daily_bin458> in cluster <slac> Done

Job <4FGL_J1438.9+3710_daily_bin458> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Fri Sep 10 03:21:12 2021
Job was executed on host(s) <bullet0262>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 10 03:21:13 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:13 2021
Terminated at Fri Sep 10 03:36:50 2021
Results reported at Fri Sep 10 03:36:50 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1438.9+3710_daily_bin458 219.74 37.1752 358041601 358300801 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 :                                   768.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             282.47 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   936 sec.
    Turnaround time :                            938 sec.

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

