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


Performing analysis on: 4FGL_J1438.9+3710_daily_bin556
RA = 219.74, Dec = 37.1752
tmin = 383443201, tmax = 383702401
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='670277', job_status='RUN', time_executed='2021-09-10 03:26:27.335887', time_epoch_executed='1631269587.34' WHERE source_name='4FGL J1438.9+3710' and cadence='daily' and bin_id='556'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/670277

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/670277/ft1_4FGL_J1438.9+3710_daily_bin556.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/670277/ft2_4FGL_J1438.9+3710_daily_bin556.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/670277/ft1_4FGL_J1438.9+3710_daily_bin556.fits outfile=/scratch/kocevski/670277/ft1_filteredMKT_4FGL_J1438.9+3710_daily_bin556.fits ra=219.74 dec=37.1752 rad=12.0 tmin=383443201.0 tmax=383702401.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.40
user 3.18
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/670277/ft2_4FGL_J1438.9+3710_daily_bin556.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/670277/ft1_filteredMKT_4FGL_J1438.9+3710_daily_bin556.fits evtable="EVENTS" outfile="/scratch/kocevski/670277/ft1_filtered_4FGL_J1438.9+3710_daily_bin556.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/670277/ft1_filtered_4FGL_J1438.9+3710_daily_bin556.fits" evtable="EVENTS" scfile=/scratch/kocevski/670277/ft2_4FGL_J1438.9+3710_daily_bin556.fits sctable="SC_DATA" outfile=/scratch/kocevski/670277/ltcube_383443201_383702401_4FGL_J1438.9+3710_daily_bin556.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/670277/ft2_4FGL_J1438.9+3710_daily_bin556.fits
.....................!
real 12.19
user 11.78
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/670277/ft1_filtered_4FGL_J1438.9+3710_daily_bin556.fits evtable="EVENTS" scfile=/scratch/kocevski/670277/ft2_4FGL_J1438.9+3710_daily_bin556.fits sctable="SC_DATA" expcube=/scratch/kocevski/670277/ltcube_383443201_383702401_4FGL_J1438.9+3710_daily_bin556.fits outfile=/scratch/kocevski/670277/expmap_383443201_383702401_4FGL_J1438.9+3710_daily_bin556.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/670277/ltcube_383443201_383702401_4FGL_J1438.9+3710_daily_bin556.fits
.....................!
real 189.53
user 185.15
sys 3.98

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/670277/ft1_filtered_4FGL_J1438.9+3710_daily_bin556.fits scfile=/scratch/kocevski/670277/ft2_4FGL_J1438.9+3710_daily_bin556.fits outfile=/scratch/kocevski/670277/cmap_383443201_383702401_4FGL_J1438.9+3710_daily_bin556.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.54
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/670277/ft1_filtered_4FGL_J1438.9+3710_daily_bin556.fits scfile=/scratch/kocevski/670277/ft2_4FGL_J1438.9+3710_daily_bin556.fits outfile=/scratch/kocevski/670277/cmap_HighResolution_383443201_383702401_4FGL_J1438.9+3710_daily_bin556.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.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    187.41       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .62862E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    3.3004       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.2105       1.0000         .10000E-03   10000.    
     5 'Prefactor '    17.294       1.0000         .10000E-03   10000.    
     6 'norm      '    5.6628       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10444E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .16926       1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.8666       1.0000         .10000E-03   10000.    
    10 'norm      '    .10362E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10067E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    7.2613       1.0000         .10000E-03   10000.    
    14 'Prefactor '    46.560       1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10068E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    4.5782       1.0000         .10000E-03   10000.    
    19 'norm      '    1.5917       1.0000         .10000E-03   10000.    
    20 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .59017E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    23.133       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10098E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    4.2595       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10719E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10927E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    39.004       1.0000         .10000E-03   10000.    
    29 'Normalizat'    .85026       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.1625       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=   7014.513     FROM MIGRAD    STATUS=CONVERGED    805 CALLS     3995 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     187.34        109.88       -.39891E-04   -.33632E-05
   2  Prefactor     .10005E-03    2.7599       -.89878E-06** at limit **
   3  norm          3.3022        11.420        .71081E-05   -.43691E-05
   4  Prefactor     1.2375        54.109       -.42313E-04   -.22041E-03
   5  Prefactor     17.276        15.127       -.14209E-05   -.13148E-04
   6  norm          5.6650        3.4925        .23931E-06   -.11905E-03
   7  Prefactor     .10000E-03    17.864        .69226E-05** at limit **
   8  Prefactor     .12618E-03    12.398        .27799E-05** at limit **
   9  Prefactor     3.8655        3.1282       -.35305E-06   -.23509E-03
  10  norm          .10000E-03    12.928       -.21424E-06** at limit **
  11  Prefactor     .10000E-03    63.676       -.14278E-04** at limit **
  12  norm          .10000E-03    1.7523       -.13193E-06** at limit **
  13  Prefactor     7.2449        24.145        .31015E-04   -.20582E-04
  14  Prefactor     46.526        33.740        .13648E-04   -.62096E-05
  15  norm          .10000E-03    2.2859       -.33434E-07** at limit **
  16  Prefactor     .10000E-03    10.431        .73451E-06** at limit **
  17  Prefactor     .10000E-03    2.0168       -.41927E-07** at limit **
  18  Prefactor     4.5766        6.1459       -.80244E-06   -.26011E-03
  19  norm          1.5912        1.3972       -.11321E-06   -.61730E-03
  20  norm          .10000E-03    1.2067       -.32891E-08** at limit **
  21  Prefactor     .10000E-03    4.0931       -.30298E-06** at limit **
  22  Prefactor     23.131        46.891       -.12820E-04   -.15100E-05
  23  Prefactor     .10000E-03    4.1369       -.37084E-07** at limit **
  24  Prefactor     .10000E-03    17.681       -.56529E-05** at limit **
  25  norm          4.2595        1.4247       -.71381E-07    .57164E-03
  26  Prefactor     .10000E-03    5.6896       -.50178E-06** at limit **
  27  Prefactor     .10000E-03    40.397        .71547E-05** at limit **
  28  norm          38.989        19.452        .42378E-05   -.11945E-03
  29  Normalizat    .85069        .17163        .43646E-05   -.92231E-04
  30  Prefactor     1.1623        .17984       -.28806E-05    .43403E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 187.342
  Prefactor  = 0.000100052
  norm       = 3.30224
  Prefactor  = 1.23745
  Prefactor  = 17.2758
  norm       = 5.66501
  Prefactor  = 0.000100001
  Prefactor  = 0.000126184
  Prefactor  = 3.86553
  norm       = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 7.24488
  Prefactor  = 46.5261
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.57663
  norm       = 1.59125
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 23.1311
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.25945
  Prefactor  = 0.000100001
  Prefactor  = 0.000100005
  norm       = 38.989
  Normalizat = 0.850688
  Prefactor  = 1.16233
 **********
 **   18 **HESSE 
 **********

 FCN=   7014.513     FROM HESSE     STATUS=OK           600 CALLS     4595 TOTAL
                     EDM=   .68E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     187.34        109.80        .14748E-03   -1.2962    
   2  Prefactor     .10005E-03    14.064        .27046E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          3.3022        11.374        .22285E-03   -1.5345    
   4  Prefactor     1.2375        56.489        .41123E-03   -1.5485    
   5  Prefactor     17.276        15.137        .96311E-04   -1.4876    
   6  norm          5.6650        3.4909        .11804E-03   -1.5232    
   7  Prefactor     .10000E-03    18.120        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .12618E-03    18.445        .76283E-01   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     3.8655        3.1312        .12699E-03   -1.5315    
  10  norm          .10000E-03    13.088        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    66.262        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    1.7616        .10825E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     7.2449        24.031        .14885E-03   -1.5170    
  14  Prefactor     46.526        33.678        .58761E-04   -1.4343    
  15  norm          .10000E-03    2.2891        .12367E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    10.521        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    2.0210        .11612E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     4.5766        6.1395        .18813E-03   -1.5280    
  19  norm          1.5912        1.3815        .86837E-04   -1.5456    
  20  norm          .10000E-03    1.2175        .89740E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    12.489        .32564E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     23.131        46.800        .83281E-04   -1.4746    
  23  Prefactor     .10000E-03    4.1396        .16636E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    18.283        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          4.2595        1.3190        .51391E-04   -1.5295    
  26  Prefactor     .10000E-03    22.055        .35801E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    40.444        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          38.989        19.377        .64178E-04   -1.4458    
  29  Normalizat    .85069        .20412        .25740E-03   -.98215    
  30  Prefactor     1.1623        .21530        .25079E-03   -.87499    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.84907e-09
Minuit parameter uncertainties:
  1  109.917
  2  0.00171579
  3  11.3813
  4  16.7376
  5  15.1404
  6  3.49098
  7  0.000241369
  8  0.0439662
  9  3.13132
  10  2.35593e-05
  11  0.000546394
  12  1.75096e-05
  13  24.0631
  14  33.6921
  15  3.49286e-06
  16  0.000102622
  17  5.54532e-06
  18  6.1403
  19  1.38158
  20  7.95847e-07
  21  0.000145546
  22  46.8741
  23  2.86135e-06
  24  2.44557e-05
  25  1.31898
  26  0.000219585
  27  0.000893928
  28  19.3802
  29  0.20431
  30  0.21546
Done.

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

Extracting fit parameters...

4FGL J1438.9+3710
   Spectrum: LogParabola
282         norm:  1.000e-04  1.751e-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.162e+00  2.155e-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:  8.507e-01  2.043e-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: 3.74e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.28e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/670277/likelihoodResults_383443201_383702401_4FGL_J1438.9+3710_daily_bin556.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) = 7014.51530515
delta logL = -0.00267970990717

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7014.51262547
delta logL = -2.69810698228e-08

Fit tolerance = 1e-08

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

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

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7014.513     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      229 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    2.4272        .10825E-02** at limit **
   2  alpha         2.3179        2.9809        .16521       -.38811E-06
   3  Normalizat    .85069        .18781        .25739E-03    .99820E-05
   4  Prefactor     1.1623        .21146        .25079E-03    .90210E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100002
  alpha      = 2.31795
  Normalizat = 0.850694
  Prefactor  = 1.16232
 **********
 **   18 **HESSE 
 **********

 FCN=   7014.513     FROM HESSE     STATUS=OK            23 CALLS      252 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.7618        .21651E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.3179        2.6769        .66084E-02   -.72885E-01
   3  Normalizat    .85069        .18802        .10296E-04   -.98215    
   4  Prefactor     1.1623        .21170        .10032E-04   -.87499    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.53049e-09
Minuit parameter uncertainties:
  1  0.000122581
  2  234.641
  3  0.188169
  4  0.211856
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/670277': 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) = 7014.51262544
delta logL = 1.85173121281e-09

Extracting fit parameters...

4FGL J1438.9+3710
   Spectrum: LogParabola
282         norm:  1.000e-04  1.226e-04  1.000e-04  1.000e+04 ( 1.000e-12)
283        alpha:  2.318e+00  2.346e+02  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.162e+00  2.119e-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:  8.507e-01  1.882e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/670277/cmap_HighResolution_383443201_383702401_4FGL_J1438.9+3710_daily_bin556.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.28e-05', job_status='DONE', photon_flux_upper_limit='3.74e-08', time_completed='2021-09-10 03:41:35.689307', job_id='670277', GAL2='1.16', fit_tolerance='1e-08', EG2='0.85', EG='0.85', time_epoch_completed='1631270495.69', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.16', dlogl='1.85e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.31' WHERE bin_id='556' AND source_name='4FGL J1438.9+3710' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 03:41:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0065>
Subject: Job 670277: <4FGL_J1438.9+3710_daily_bin556> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1438.9+3710_daily_bin556 219.74 37.1752 383443201 383702401 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 :                                   904.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             331.63 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   922 sec.
    Turnaround time :                            924 sec.

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

