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


Performing analysis on: 4FGL_J1438.9+3710_daily_bin549
RA = 219.74, Dec = 37.1752
tmin = 381628801, tmax = 381888001
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='670267', job_status='RUN', time_executed='2021-09-10 03:28:54.214037', time_epoch_executed='1631269734.21' WHERE source_name='4FGL J1438.9+3710' and cadence='daily' and bin_id='549'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/670267

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/670267/ft1_4FGL_J1438.9+3710_daily_bin549.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/670267/ft2_4FGL_J1438.9+3710_daily_bin549.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/670267/ft1_4FGL_J1438.9+3710_daily_bin549.fits outfile=/scratch/kocevski/670267/ft1_filteredMKT_4FGL_J1438.9+3710_daily_bin549.fits ra=219.74 dec=37.1752 rad=12.0 tmin=381628801.0 tmax=381888001.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 4.01
user 3.77
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/670267/ft1_filtered_4FGL_J1438.9+3710_daily_bin549.fits" evtable="EVENTS" scfile=/scratch/kocevski/670267/ft2_4FGL_J1438.9+3710_daily_bin549.fits sctable="SC_DATA" outfile=/scratch/kocevski/670267/ltcube_381628801_381888001_4FGL_J1438.9+3710_daily_bin549.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/670267/ft2_4FGL_J1438.9+3710_daily_bin549.fits
.....................!
real 11.84
user 11.47
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/670267/ft1_filtered_4FGL_J1438.9+3710_daily_bin549.fits evtable="EVENTS" scfile=/scratch/kocevski/670267/ft2_4FGL_J1438.9+3710_daily_bin549.fits sctable="SC_DATA" expcube=/scratch/kocevski/670267/ltcube_381628801_381888001_4FGL_J1438.9+3710_daily_bin549.fits outfile=/scratch/kocevski/670267/expmap_381628801_381888001_4FGL_J1438.9+3710_daily_bin549.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/670267/ltcube_381628801_381888001_4FGL_J1438.9+3710_daily_bin549.fits
.....................!
real 190.25
user 184.87
sys 5.00

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/670267/ft1_filtered_4FGL_J1438.9+3710_daily_bin549.fits scfile=/scratch/kocevski/670267/ft2_4FGL_J1438.9+3710_daily_bin549.fits outfile=/scratch/kocevski/670267/cmap_381628801_381888001_4FGL_J1438.9+3710_daily_bin549.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.52
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/670267/ft1_filtered_4FGL_J1438.9+3710_daily_bin549.fits scfile=/scratch/kocevski/670267/ft2_4FGL_J1438.9+3710_daily_bin549.fits outfile=/scratch/kocevski/670267/cmap_HighResolution_381628801_381888001_4FGL_J1438.9+3710_daily_bin549.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.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10107E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    5.7221       1.0000         .10000E-03   10000.    
     3 'norm      '    7.3162       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    12.080       1.0000         .10000E-03   10000.    
     6 'norm      '    8.6960       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    5.5942       1.0000         .10000E-03   10000.    
     9 'Prefactor '    7.9205       1.0000         .10000E-03   10000.    
    10 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    18.781       1.0000         .10000E-03   10000.    
    12 'norm      '    .81577       1.0000         .10000E-03   10000.    
    13 'Prefactor '    14.066       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    14.342       1.0000         .10000E-03   10000.    
    16 'Prefactor '    12.075       1.0000         .10000E-03   10000.    
    17 'Prefactor '    13.112       1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.2222       1.0000         .10000E-03   10000.    
    19 'norm      '    2.3396       1.0000         .10000E-03   10000.    
    20 'norm      '    .10022E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10922E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10443E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    10.703       1.0000         .10000E-03   10000.    
    25 'norm      '    2.9792       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    10.683       1.0000         .10000E-03   10000.    
    28 'norm      '    22.009       1.0000         .10000E-03   10000.    
    29 'Normalizat'    .90299       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .97813       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=   6076.916     FROM MIGRAD    STATUS=CONVERGED    750 CALLS     3944 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    117.48       -.43113E-06** at limit **
   2  Prefactor     5.7214        5.6359        .23208E-06    .70780E-04
   3  norm          7.3152        10.221        .84659E-06   -.42798E-03
   4  Prefactor     .10000E-03    4.7435        .36374E-08** at limit **
   5  Prefactor     12.066        19.185        .23694E-05    .22325E-03
   6  norm          8.6949        4.6063       -.83223E-07   -.46342E-04
   7  Prefactor     .10000E-03    5.0403       -.87877E-07** at limit **
   8  Prefactor     5.5872        10.986        .22443E-05   -.63216E-03
   9  Prefactor     7.9183        4.4055        .65203E-06   -.16321E-02
  10  norm          .10000E-03    5.1077       -.58987E-07** at limit **
  11  Prefactor     18.772        25.173        .31044E-06   -.18049E-04
  12  norm          .81704        5.2607        .44674E-06   -.23963E-03
  13  Prefactor     14.053        41.630       -.63242E-05   -.17688E-03
  14  Prefactor     .10000E-03    16.368       -.87241E-06** at limit **
  15  norm          14.342        9.1186       -.44427E-07   -.22915E-04
  16  Prefactor     12.070        13.447        .33653E-06    .33281E-04
  17  Prefactor     13.110        9.5313        .40803E-06   -.47222E-03
  18  Prefactor     2.2224        5.1032        .39523E-06   -.18226E-03
  19  norm          2.3395        1.7717       -.20916E-08   -.15927E-03
  20  norm          .10000E-03    1.1390       -.82203E-08** at limit **
  21  Prefactor     .10000E-03    8.0177        .38171E-08** at limit **
  22  Prefactor     .10000E-03    26.463        .28503E-07** at limit **
  23  Prefactor     .10000E-03    16.592        .12193E-05** at limit **
  24  Prefactor     10.708        10.401        .22938E-06   -.23044E-04
  25  norm          2.9789        1.3249        .37575E-07   -.12941E-03
  26  Prefactor     .10000E-03    20.417        .87252E-07** at limit **
  27  Prefactor     10.670        30.321       -.56501E-05   -.12889E-03
  28  norm          22.015        23.999        .32144E-05    .20371E-03
  29  Normalizat    .90338        .18306       -.12957E-05   -.10360E-04
  30  Prefactor     .97773        .18635        .22825E-06   -.71670E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 5.72136
  norm       = 7.3152
  Prefactor  = 0.0001
  Prefactor  = 12.0659
  norm       = 8.69494
  Prefactor  = 0.0001
  Prefactor  = 5.58724
  Prefactor  = 7.91831
  norm       = 0.0001
  Prefactor  = 18.7718
  norm       = 0.817039
  Prefactor  = 14.0532
  Prefactor  = 0.0001
  norm       = 14.3417
  Prefactor  = 12.0702
  Prefactor  = 13.1102
  Prefactor  = 2.22237
  norm       = 2.33946
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.7076
  norm       = 2.97895
  Prefactor  = 0.0001
  Prefactor  = 10.6699
  norm       = 22.0154
  Normalizat = 0.903378
  Prefactor  = 0.97773
 **********
 **   18 **HESSE 
 **********

 FCN=   6076.916     FROM HESSE     STATUS=OK           594 CALLS     4538 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    117.81        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     5.7214        5.6377        .16791E-03   -1.5230    
   3  norm          7.3152        10.451        .74143E-03   -1.5167    
   4  Prefactor     .10000E-03    4.7450        .16582E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     12.066        19.347        .11526E-03   -1.5013    
   6  norm          8.6949        4.6136        .11647E-03   -1.5118    
   7  Prefactor     .10000E-03    5.0539        .17088E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     5.5872        11.820        .84926E-03   -1.5235    
   9  Prefactor     7.9183        4.7067        .60448E-03   -1.5145    
  10  norm          .10000E-03    5.1116        .17206E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     18.772        25.237        .92421E-04   -1.4841    
  12  norm          .81704        9.9035        .32360E-02   -1.5527    
  13  Prefactor     14.053        42.393        .10680E-03   -1.4958    
  14  Prefactor     .10000E-03    16.425        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          14.342        9.1102        .10576E-03   -1.4950    
  16  Prefactor     12.070        13.422        .11528E-03   -1.5013    
  17  Prefactor     13.110        9.6055        .55309E-03   -1.4984    
  18  Prefactor     2.2224        5.1069        .25998E-03   -1.5410    
  19  norm          2.3395        1.7633        .79159E-04   -1.5402    
  20  norm          .10000E-03    1.1460        .81164E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    8.2060        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    26.482        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    16.858        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     10.708        10.311        .12247E-03   -1.5053    
  25  norm          2.9789        1.3178        .56814E-04   -1.5363    
  26  Prefactor     .10000E-03    20.866        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     10.670        31.407        .12258E-03   -1.5055    
  28  norm          22.015        24.700        .85379E-04   -1.4769    
  29  Normalizat    .90338        .21534        .24540E-03   -.96342    
  30  Prefactor     .97773        .21779        .26044E-03   -.93476    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.25002e-09
Minuit parameter uncertainties:
  1  0.000138858
  2  5.63826
  3  10.4539
  4  6.73026e-07
  5  19.3566
  6  4.61375
  7  3.92683e-06
  8  11.8252
  9  4.70692
  10  2.73554e-06
  11  25.2508
  12  5.68995
  13  42.4837
  14  0.000115395
  15  9.11103
  16  13.4256
  17  9.60658
  18  5.10793
  19  1.76337
  20  5.7927e-07
  21  7.32477e-06
  22  6.61735e-06
  23  0.000150406
  24  10.3128
  25  1.31781
  26  2.44518e-05
  27  31.4554
  28  24.7111
  29  0.215549
  30  0.217987
Done.

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

Extracting fit parameters...

4FGL J1438.9+3710
   Spectrum: LogParabola
282         norm:  8.170e-01  5.690e+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:  9.777e-01  2.180e-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:  9.034e-01  2.155e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/670267/likelihoodResults_381628801_381888001_4FGL_J1438.9+3710_daily_bin549.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) = 6075.67054895
delta logL = 1.24583513432

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6075.63380629
delta logL = 1.28257780066

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .46323       1.0000         .10000E-03   10000.    
     2 'alpha     '    4.9094       1.0000          .0000       5.0000    
     3 'Normalizat'    .80163       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0497       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=   6075.634     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      243 TOTAL
                     EDM=   .49E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .45705        .33789        .78553E-02    .46255E-02
   2  alpha         4.9178        .61783        .48495       -.86638E-04
   3  Normalizat    .80197        .17278        .43632E-01    .34535E-03
   4  Prefactor     1.0493        .18568        .57080E-01    .16553E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.457046
  alpha      = 4.91776
  Normalizat = 0.801973
  Prefactor  = 1.04934
 **********
 **   18 **HESSE 
 **********

 FCN=   6075.634     FROM HESSE     STATUS=OK            31 CALLS      274 TOTAL
                     EDM=   .54E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .45705        .83132        .35565E-04   -1.5573    
   2  alpha         4.9178        4.3037        .55102E-01    1.3136    
   3  Normalizat    .80197        .20458        .25828E-03   -.99996    
   4  Prefactor     1.0493        .22064        .25239E-03   -.91102    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.42883e-07
Minuit parameter uncertainties:
  1  0.831338
  2  1.15082
  3  0.204777
  4  0.220831
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/670267': 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) = 6075.63379379
delta logL = 1.28259030035

Extracting fit parameters...

4FGL J1438.9+3710
   Spectrum: LogParabola
282         norm:  4.570e-01  8.313e-01  1.000e-04  1.000e+04 ( 1.000e-12)
283        alpha:  4.918e+00  1.151e+00  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.049e+00  2.208e-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.020e-01  2.048e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.81
Ra Dec: 219.740 37.175
Photon Index (Free Index): 4.92 +/- 1.15
Photon Flux (Free Index): 7.79e-08 +/- 5.65e-08
Energy Flux (Free Index): 1.07e-05 +/- 7.65e-06

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/670267/cmap_HighResolution_381628801_381888001_4FGL_J1438.9+3710_daily_bin549.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.43e-05', comment='SUCCESS', energy_flux2='1.07e-05', dlogl='1.28e+00', photon_flux2='7.79e-08', job_status='DONE', time_completed='2021-09-10 03:42:46.427198', photon_index_error2='1.15', photon_index2='4.92', ts='0.02', fit_tolerance='1e-08', GAL='0.98', photon_index_error='0.00', photon_flux_upper_limit='7.10e-08', energy_flux_error2='7.65e-06', EG='0.90', time_epoch_completed='1631270566.43', return_code='0', job_id='670267', GAL2='1.05', EG2='0.80', return_code2='0', photon_flux_error2='5.65e-08', ts2='2.81', photon_index='2.31' WHERE bin_id='549' AND source_name='4FGL J1438.9+3710' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 03:42:46 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0295>
Subject: Job 670267: <4FGL_J1438.9+3710_daily_bin549> in cluster <slac> Done

Job <4FGL_J1438.9+3710_daily_bin549> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Fri Sep 10 03:26:11 2021
Job was executed on host(s) <bullet0295>, 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:42:47 2021
Results reported at Fri Sep 10 03:42:47 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1438.9+3710_daily_bin549 219.74 37.1752 381628801 381888001 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 :                                   830.04 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             287.40 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   993 sec.
    Turnaround time :                            996 sec.

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

