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


Performing analysis on: 4FGL_J1438.9+3710_daily_bin468
RA = 219.74, Dec = 37.1752
tmin = 360633601, tmax = 360892801
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='668831', job_status='RUN', time_executed='2021-09-10 03:24:54.016371', time_epoch_executed='1631269494.02' WHERE source_name='4FGL J1438.9+3710' and cadence='daily' and bin_id='468'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/668831

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/668831/ft1_4FGL_J1438.9+3710_daily_bin468.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/668831/ft2_4FGL_J1438.9+3710_daily_bin468.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/668831/ft1_4FGL_J1438.9+3710_daily_bin468.fits outfile=/scratch/kocevski/668831/ft1_filteredMKT_4FGL_J1438.9+3710_daily_bin468.fits ra=219.74 dec=37.1752 rad=12.0 tmin=360633601.0 tmax=360892801.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.36
user 3.17
sys 0.17

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/668831/ft1_filtered_4FGL_J1438.9+3710_daily_bin468.fits" evtable="EVENTS" scfile=/scratch/kocevski/668831/ft2_4FGL_J1438.9+3710_daily_bin468.fits sctable="SC_DATA" outfile=/scratch/kocevski/668831/ltcube_360633601_360892801_4FGL_J1438.9+3710_daily_bin468.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/668831/ft2_4FGL_J1438.9+3710_daily_bin468.fits
.....................!
real 12.11
user 11.70
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/668831/ft1_filtered_4FGL_J1438.9+3710_daily_bin468.fits evtable="EVENTS" scfile=/scratch/kocevski/668831/ft2_4FGL_J1438.9+3710_daily_bin468.fits sctable="SC_DATA" expcube=/scratch/kocevski/668831/ltcube_360633601_360892801_4FGL_J1438.9+3710_daily_bin468.fits outfile=/scratch/kocevski/668831/expmap_360633601_360892801_4FGL_J1438.9+3710_daily_bin468.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/668831/ltcube_360633601_360892801_4FGL_J1438.9+3710_daily_bin468.fits
.....................!
real 190.22
user 184.97
sys 4.80

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/668831/ft1_filtered_4FGL_J1438.9+3710_daily_bin468.fits scfile=/scratch/kocevski/668831/ft2_4FGL_J1438.9+3710_daily_bin468.fits outfile=/scratch/kocevski/668831/cmap_360633601_360892801_4FGL_J1438.9+3710_daily_bin468.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.37
sys 0.16

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

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/668831/ft1_filtered_4FGL_J1438.9+3710_daily_bin468.fits', '/scratch/kocevski/668831/ft2_4FGL_J1438.9+3710_daily_bin468.fits', expMap='/scratch/kocevski/668831/expmap_360633601_360892801_4FGL_J1438.9+3710_daily_bin468.fits', expCube='/scratch/kocevski/668831/ltcube_360633601_360892801_4FGL_J1438.9+3710_daily_bin468.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/668831/Model_4FGL_J1438.9+3710_daily_bin468.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/668831/ft1_filtered_4FGL_J1438.9+3710_daily_bin468.fits
Spacecraft file(s): /scratch/kocevski/668831/ft2_4FGL_J1438.9+3710_daily_bin468.fits
Exposure map: /scratch/kocevski/668831/expmap_360633601_360892801_4FGL_J1438.9+3710_daily_bin468.fits
Exposure cube: /scratch/kocevski/668831/ltcube_360633601_360892801_4FGL_J1438.9+3710_daily_bin468.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/668831/Model_4FGL_J1438.9+3710_daily_bin468.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 6598.13530421

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .14784E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    6.1681       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10878E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    33.408       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10083E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.6239       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    7.2065       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    15.464       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    30.518       1.0000         .10000E-03   10000.    
    15 'norm      '    4.6691       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.2778       1.0000         .10000E-03   10000.    
    18 'Prefactor '    8.8306       1.0000         .10000E-03   10000.    
    19 'norm      '    .36836       1.0000         .10000E-03   10000.    
    20 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10662E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    5.8876       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .31589E-02   1.0000         .10000E-03   10000.    
    28 'norm      '    3.0886       1.0000         .10000E-03   10000.    
    29 'Normalizat'    .78658       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.2640       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=   6598.050     FROM MIGRAD    STATUS=CONVERGED    786 CALLS     3385 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    281.52       -.64735E-05** at limit **
   2  Prefactor     .10000E-03    2.1852       -.19797E-07** at limit **
   3  norm          6.1667        11.112        .51156E-07   -.29960E-03
   4  Prefactor     .10000E-03    13.413       -.44276E-05** at limit **
   5  Prefactor     .10000E-03    58.085        .45676E-05** at limit **
   6  norm          33.408        7.0194        .26490E-07    .82668E-04
   7  Prefactor     .10000E-03    8.1457       -.13468E-06** at limit **
   8  Prefactor     2.6246        7.8673       -.29959E-07   -.86973E-03
   9  Prefactor     .10000E-03    1.8558        .14405E-07** at limit **
  10  norm          7.2056        12.549       -.11048E-07    .69542E-05
  11  Prefactor     .10000E-03    19.864       -.78704E-05** at limit **
  12  norm          15.463        7.1438       -.76825E-07   -.35392E-04
  13  Prefactor     .10000E-03    15.045        .73261E-05** at limit **
  14  Prefactor     30.516        26.960        .76481E-06    .41230E-04
  15  norm          4.6689        5.2965       -.30067E-06   -.41902E-04
  16  Prefactor     .10000E-03    6.9616        .65225E-07** at limit **
  17  Prefactor     1.2803        11.730       -.16817E-05   -.24293E-03
  18  Prefactor     8.8306        7.2466        .28057E-07   -.34280E-03
  19  norm          .36744        1.5241        .31620E-06   -.13775E-03
  20  norm          .10000E-03    2.8671        .18452E-07** at limit **
  21  Prefactor     .10000E-03    2.7365        .28950E-07** at limit **
  22  Prefactor     .10000E-03    17.464       -.70316E-06** at limit **
  23  Prefactor     .10000E-03    25.061        .94606E-05** at limit **
  24  Prefactor     .10000E-03    3.7403       -.35765E-07** at limit **
  25  norm          5.8884        1.7193        .14220E-07    .16706E-03
  26  Prefactor     .10000E-03    10.913        .54543E-06** at limit **
  27  Prefactor     .10036E-03    12.698       -.46997E-05** at limit **
  28  norm          3.1088        8.1215        .14315E-05   -.37314E-03
  29  Normalizat    .78655        .17233       -.88831E-07    .79176E-04
  30  Prefactor     1.2641        .18940        .22731E-07    .86192E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 6.16666
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  norm       = 33.4082
  Prefactor  = 0.0001
  Prefactor  = 2.62464
  Prefactor  = 0.0001
  norm       = 7.20565
  Prefactor  = 0.000100002
  norm       = 15.4633
  Prefactor  = 0.000100002
  Prefactor  = 30.5164
  norm       = 4.66888
  Prefactor  = 0.0001
  Prefactor  = 1.28026
  Prefactor  = 8.83059
  norm       = 0.36744
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  norm       = 5.88838
  Prefactor  = 0.0001
  Prefactor  = 0.000100356
  norm       = 3.10883
  Normalizat = 0.78655
  Prefactor  = 1.26409
 **********
 **   18 **HESSE 
 **********

 FCN=   6598.050     FROM HESSE     STATUS=OK           580 CALLS     3965 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    284.75        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    2.2128        .11725E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          6.1667        11.264        .80823E-03   -1.5211    
   4  Prefactor     .10000E-03    13.585        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    59.452        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          33.408        7.0198        .69328E-04   -1.4551    
   7  Prefactor     .10000E-03    8.2022        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     2.6246        11.139        .12588E-02   -1.5384    
   9  Prefactor     .10000E-03    1.9184        .21599E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          7.2056        12.564        .14942E-03   -1.5171    
  11  Prefactor     .10000E-03    20.122        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          15.463        7.1424        .10185E-03   -1.4921    
  13  Prefactor     .10000E-03    15.196        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     30.516        26.972        .72527E-04   -1.4603    
  15  norm          4.6689        5.2950        .18624E-03   -1.5276    
  16  Prefactor     .10000E-03    6.9739        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     1.2803        10.114        .39291E-03   -1.5482    
  18  Prefactor     8.8306        7.2971        .67442E-03   -1.5114    
  19  norm          .36744        1.3934        .16136E-03   -1.5587    
  20  norm          .10000E-03    2.9594        .26841E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    2.7475        .13121E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    17.467        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    25.608        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    3.7497        .15341E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          5.8884        1.7168        .55039E-04   -1.5223    
  26  Prefactor     .10000E-03    10.960        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10036E-03    42.862        .49524E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          3.1088        9.3346        .11539E-02   -1.5355    
  29  Normalizat    .78655        .20330        .27322E-03   -1.0057    
  30  Prefactor     1.2641        .22423        .25046E-03   -.84381    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.30742e-08
Minuit parameter uncertainties:
  1  0.00122079
  2  3.97253e-07
  3  11.2677
  4  0.000177621
  5  0.000366214
  6  7.01996
  7  7.14323e-06
  8  10.8175
  9  2.26273e-07
  10  12.5682
  11  0.00039733
  12  7.14278
  13  0.000354695
  14  26.9827
  15  5.29556
  16  7.6387e-06
  17  7.19826
  18  7.2978
  19  1.3935
  20  1.76251e-06
  21  9.90105e-07
  22  3.61396e-05
  23  0.000465835
  24  2.78263e-06
  25  1.71684
  26  2.11297e-05
  27  0.00781708
  28  9.33899
  29  0.203501
  30  0.224403
Done.

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

Extracting fit parameters...

4FGL J1438.9+3710
   Spectrum: LogParabola
282         norm:  1.546e+01  7.143e+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:  1.264e+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.866e-01  2.035e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 14.38
Ra Dec: 219.740 37.175
Photon Index (Fixed Index): 2.31 +/- 0.00
Photon Flux (Fixed Index): 7.01e-08 +/- 3.23e-08
Energy Flux (Fixed Index): 2.40e-05 +/- 1.11e-05

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) = 6597.56344883
delta logL = 0.486904581354

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6597.549417
delta logL = 0.500936411926

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    15.019       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.8204       1.0000          .0000       5.0000    
     3 'Normalizat'    .81876       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2437       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=   6597.549     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      206 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          15.019        7.8332        .25837E-02    .26863E-02
   2  alpha         1.8204        .41831        .33545       -.22573E-04
   3  Normalizat    .81875        .16694        .43855E-01    .19836E-04
   4  Prefactor     1.2437        .18843        .57060E-01    .40354E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 15.0191
  alpha      = 1.82037
  Normalizat = 0.818746
  Prefactor  = 1.2437
 **********
 **   18 **HESSE 
 **********

 FCN=   6597.549     FROM HESSE     STATUS=OK            31 CALLS      237 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          15.019        8.1704        .10335E-03   -1.4933    
   2  alpha         1.8204        .48797        .13164E-01   -.27532    
   3  Normalizat    .81875        .19783        .26848E-03   -.99377    
   4  Prefactor     1.2437        .22299        .25231E-03   -.84997    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.16507e-09
Minuit parameter uncertainties:
  1  8.17099
  2  0.491375
  3  0.198
  4  0.223163
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/668831': 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) = 6597.549417
delta logL = 0.500936414342

Extracting fit parameters...

4FGL J1438.9+3710
   Spectrum: LogParabola
282         norm:  1.502e+01  8.171e+00  1.000e-04  1.000e+04 ( 1.000e-12)
283        alpha:  1.820e+00  4.914e-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:  1.244e+00  2.232e-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.187e-01  1.980e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 15.37
Ra Dec: 219.740 37.175
Photon Index (Free Index): 1.82 +/- 0.49
Photon Flux (Free Index): 4.44e-08 +/- 3.27e-08
Energy Flux (Free Index): 3.04e-05 +/- 1.87e-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/668831/cmap_HighResolution_360633601_360892801_4FGL_J1438.9+3710_daily_bin468.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.01e-08', energy_flux2='3.04e-05', photon_flux_error='3.23e-08', dlogl='5.01e-01', energy_flux='2.40e-05', photon_flux2='4.44e-08', job_status='DONE', time_completed='2021-09-10 03:36:43.819190', photon_index_error2='0.49', photon_index2='1.82', ts='14.38', fit_tolerance='1e-08', GAL='1.26', photon_index_error='0.00', energy_flux_error2='1.87e-05', EG='0.79', time_epoch_completed='1631270203.82', return_code='0', job_id='668831', GAL2='1.24', EG2='0.82', return_code2='0', energy_flux_error='1.11e-05', photon_flux_error2='3.27e-08', ts2='15.37', photon_index='2.31' WHERE bin_id='468' AND source_name='4FGL J1438.9+3710' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 03:36:43 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0091>
Subject: Job 668831: <4FGL_J1438.9+3710_daily_bin468> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1438.9+3710_daily_bin468 219.74 37.1752 360633601 360892801 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 :                                   708.19 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             252.93 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   929 sec.
    Turnaround time :                            931 sec.

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

