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


Performing analysis on: 4FGL_J1438.9+3710_daily_bin381
RA = 219.74, Dec = 37.1752
tmin = 338083201, tmax = 338342401
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='668705', job_status='RUN', time_executed='2021-09-10 03:24:56.306245', time_epoch_executed='1631269496.31' WHERE source_name='4FGL J1438.9+3710' and cadence='daily' and bin_id='381'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/668705

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

Retrieving the FT1 file...

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

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

Retrieving 52 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/668705/ft1_4FGL_J1438.9+3710_daily_bin381.fits


Retrieving the FT1 file...

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

Retrieving 52 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/668705/ft2_4FGL_J1438.9+3710_daily_bin381.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/668705/ft1_4FGL_J1438.9+3710_daily_bin381.fits outfile=/scratch/kocevski/668705/ft1_filteredMKT_4FGL_J1438.9+3710_daily_bin381.fits ra=219.74 dec=37.1752 rad=12.0 tmin=338083201.0 tmax=338342401.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 6.68
user 6.39
sys 0.24

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/668705/ft1_filtered_4FGL_J1438.9+3710_daily_bin381.fits evtable="EVENTS" scfile=/scratch/kocevski/668705/ft2_4FGL_J1438.9+3710_daily_bin381.fits sctable="SC_DATA" expcube=/scratch/kocevski/668705/ltcube_338083201_338342401_4FGL_J1438.9+3710_daily_bin381.fits outfile=/scratch/kocevski/668705/expmap_338083201_338342401_4FGL_J1438.9+3710_daily_bin381.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/668705/ltcube_338083201_338342401_4FGL_J1438.9+3710_daily_bin381.fits
.....................!
real 191.01
user 185.67
sys 4.94

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/668705/ft1_filtered_4FGL_J1438.9+3710_daily_bin381.fits scfile=/scratch/kocevski/668705/ft2_4FGL_J1438.9+3710_daily_bin381.fits outfile=/scratch/kocevski/668705/cmap_338083201_338342401_4FGL_J1438.9+3710_daily_bin381.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.14

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    5.4966       1.0000         .10000E-03   10000.    
     3 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10077E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.7806       1.0000         .10000E-03   10000.    
     6 'norm      '    1.9176       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    9.6450       1.0000         .10000E-03   10000.    
    11 'Prefactor '    23.246       1.0000         .10000E-03   10000.    
    12 'norm      '    5.1523       1.0000         .10000E-03   10000.    
    13 'Prefactor '    66.310       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    1.5842       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    5.6954       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10085E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    8.0267       1.0000         .10000E-03   10000.    
    26 'Prefactor '    17.766       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.2544       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .58386       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=   5205.916     FROM MIGRAD    STATUS=CONVERGED    739 CALLS     3867 TOTAL
                     EDM=   .38E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    36.609       -.21210E-05** at limit **
   2  Prefactor     5.4962        4.7070        .93785E-06   -.13777E-02
   3  norm          .10000E-03    7.5878       -.56413E-06** at limit **
   4  Prefactor     .10000E-03    49.899       -.37306E-05** at limit **
   5  Prefactor     4.7781        27.542       -.20006E-05   -.29364E-04
   6  norm          1.9167        4.4436       -.10224E-05   -.30010E-03
   7  Prefactor     .10000E-03    5.1425       -.14103E-06** at limit **
   8  Prefactor     .10000E-03    6.4150        .10355E-06** at limit **
   9  Prefactor     .10000E-03    1.5320       -.12623E-07** at limit **
  10  norm          9.6441        10.080       -.92861E-07    .16834E-04
  11  Prefactor     23.245        21.824       -.33980E-06   -.15892E-04
  12  norm          5.1523        5.7271       -.12059E-07   -.25168E-04
  13  Prefactor     66.309        51.097       -.60782E-06   -.15703E-04
  14  Prefactor     .10000E-03    41.397        .42915E-05** at limit **
  15  norm          1.5843        4.5856       -.73060E-07   -.16920E-03
  16  Prefactor     .10000E-03    6.8740        .39558E-06** at limit **
  17  Prefactor     .10000E-03    2.7446       -.22576E-08** at limit **
  18  Prefactor     .10000E-03    4.4737        .83043E-07** at limit **
  19  norm          .10000E-03    .65465        .70906E-08** at limit **
  20  norm          5.6941        4.1387       -.10323E-06   -.33316E-05
  21  Prefactor     .10000E-03    8.4317        .14636E-06** at limit **
  22  Prefactor     .10000E-03    43.300        .45887E-05** at limit **
  23  Prefactor     .10000E-03    48.975       -.16782E-05** at limit **
  24  Prefactor     .10000E-03    35.577       -.13454E-05** at limit **
  25  norm          8.0267        2.2349       -.10459E-07   -.20919E-04
  26  Prefactor     17.767        15.534       -.16369E-07   -.70771E-05
  27  Prefactor     .10000E-03    14.079        .20301E-05** at limit **
  28  norm          .10000E-03    14.577       -.20484E-05** at limit **
  29  Normalizat    1.2545        .18735        .44037E-06    .40346E-04
  30  Prefactor     .58372        .19136       -.20905E-06    .51965E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 5.4962
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.77811
  norm       = 1.91665
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 9.64407
  Prefactor  = 23.2448
  norm       = 5.15225
  Prefactor  = 66.3087
  Prefactor  = 0.000100001
  norm       = 1.58433
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 5.69407
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 8.02674
  Prefactor  = 17.7666
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.25448
  Prefactor  = 0.583725
 **********
 **   18 **HESSE 
 **********

 FCN=   5205.916     FROM HESSE     STATUS=OK           580 CALLS     4447 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    36.739        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     5.4962        6.9050        .85689E-03   -1.5239    
   3  norm          .10000E-03    7.6240        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    51.293        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     4.7781        28.166        .18401E-03   -1.5271    
   6  norm          1.9167        4.5355        .22455E-03   -1.5431    
   7  Prefactor     .10000E-03    5.1462        .15974E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    6.4247        .17849E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    1.5399        .87172E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          9.6441        10.071        .12903E-03   -1.5087    
  11  Prefactor     23.245        21.854        .83078E-04   -1.4743    
  12  norm          5.1523        5.7215        .17392E-03   -1.5254    
  13  Prefactor     66.309        51.123        .49287E-04   -1.4078    
  14  Prefactor     .10000E-03    41.874        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          1.5843        4.5676        .25795E-03   -1.5456    
  16  Prefactor     .10000E-03    6.9049        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    2.7552        .11673E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    4.5066        .14902E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    .66655        .56954E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          5.6941        4.1208        .12000E-03   -1.5231    
  21  Prefactor     .10000E-03    8.5866        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    43.784        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    50.169        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    36.852        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          8.0267        2.2498        .49395E-04   -1.5141    
  26  Prefactor     17.767        15.630        .95021E-04   -1.4865    
  27  Prefactor     .10000E-03    14.184        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          .10000E-03    14.758        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    1.2545        .21652        .20938E-03   -.84935    
  30  Prefactor     .58372        .21812        .31039E-03   -1.0828    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.91555e-09
Minuit parameter uncertainties:
  1  0.00016674
  2  6.90603
  3  1.92201e-05
  4  0.00015681
  5  23.2181
  6  4.53634
  7  2.66842e-06
  8  9.46765e-06
  9  6.55333e-07
  10  10.0725
  11  21.8617
  12  5.7221
  13  51.1573
  14  0.000316803
  15  4.56862
  16  1.06462e-05
  17  8.15453e-07
  18  1.17428e-06
  19  7.40878e-07
  20  4.12102
  21  1.58438e-05
  22  0.000375077
  23  0.000146464
  24  5.82793e-05
  25  2.24981
  26  15.6335
  27  9.3957e-05
  28  0.00010466
  29  0.216675
  30  0.218432
Done.

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

Extracting fit parameters...

4FGL J1438.9+3710
   Spectrum: LogParabola
282         norm:  5.152e+00  5.722e+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:  5.837e-01  2.184e-01  0.000e+00  1.000e+01 ( 1.000e+00)
563        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
564        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
561   Normalization:  1.254e+00  2.167e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.73
Ra Dec: 219.740 37.175
Photon Index (Fixed Index): 2.31 +/- 0.00
Photon Flux (Fixed Index): 2.33e-08 +/- 2.59e-08
Energy Flux (Fixed Index): 8.00e-06 +/- 8.89e-06

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

Saving results to:
/scratch/kocevski/668705/likelihoodResults_338083201_338342401_4FGL_J1438.9+3710_daily_bin381.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) = 5205.8437248
delta logL = 0.0723316151643

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5205.84216234
delta logL = 0.0738940677402

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.3387       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9260       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2637       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .57661       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=   5205.842     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      199 TOTAL
                     EDM=   .36E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.3387        7.4037        .43484E-02    .43464E-03
   2  alpha         1.9252        .96279        .42614       -.17171E-04
   3  Normalizat    1.2640        .18296        .33489E-01    .44251E-05
   4  Prefactor     .57651        .19194        .70522E-01    .26192E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 5.33872
  alpha      = 1.9252
  Normalizat = 1.26396
  Prefactor  = 0.57651
 **********
 **   18 **HESSE 
 **********

 FCN=   5205.842     FROM HESSE     STATUS=OK            31 CALLS      230 TOTAL
                     EDM=   .91E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.3387        5.9083        .17394E-03   -1.5246    
   2  alpha         1.9252        .90941        .22438E-01   -.23200    
   3  Normalizat    1.2640        .20714        .20871E-03   -.84649    
   4  Prefactor     .57651        .21691        .31217E-03   -1.0858    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.12547e-11
Minuit parameter uncertainties:
  1  5.90898
  2  0.932039
  3  0.207274
  4  0.21722
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/668705': 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) = 5205.84216039
delta logL = 0.0738960234967

Extracting fit parameters...

4FGL J1438.9+3710
   Spectrum: LogParabola
282         norm:  5.339e+00  5.909e+00  1.000e-04  1.000e+04 ( 1.000e-12)
283        alpha:  1.925e+00  9.320e-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:  5.765e-01  2.172e-01  0.000e+00  1.000e+01 ( 1.000e+00)
563        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
564        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
561   Normalization:  1.264e+00  2.073e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.88
Ra Dec: 219.740 37.175
Photon Index (Free Index): 1.93 +/- 0.93
Photon Flux (Free Index): 1.70e-08 +/- 2.37e-08
Energy Flux (Free Index): 9.73e-06 +/- 1.25e-05

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/668705/cmap_HighResolution_338083201_338342401_4FGL_J1438.9+3710_daily_bin381.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.15e-05', comment='SUCCESS', photon_flux='2.33e-08', energy_flux2='9.73e-06', photon_flux_error='2.59e-08', dlogl='7.39e-02', energy_flux='8.00e-06', photon_flux2='1.70e-08', job_status='DONE', time_completed='2021-09-10 03:37:32.900727', photon_index_error2='0.93', photon_index2='1.93', ts='1.73', fit_tolerance='1e-08', GAL='0.58', photon_index_error='0.00', photon_flux_upper_limit='9.20e-08', energy_flux_error2='1.25e-05', EG='1.25', time_epoch_completed='1631270252.9', return_code='0', job_id='668705', GAL2='0.58', EG2='1.26', return_code2='0', energy_flux_error='8.89e-06', photon_flux_error2='2.37e-08', ts2='1.88', photon_index='2.31' WHERE bin_id='381' AND source_name='4FGL J1438.9+3710' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 03:37:32 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0064>
Subject: Job 668705: <4FGL_J1438.9+3710_daily_bin381> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1438.9+3710_daily_bin381 219.74 37.1752 338083201 338342401 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 :                                   753.13 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             259.62 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   988 sec.
    Turnaround time :                            990 sec.

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

