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


Performing analysis on: 4FGL_J1438.0+0219_daily_bin1291
RA = 219.504, Dec = 2.3272
tmin = 573955201, tmax = 574214401
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='646908', job_status='RUN', time_executed='2021-09-10 02:08:00.971203', time_epoch_executed='1631264880.97' WHERE source_name='4FGL J1438.0+0219' and cadence='daily' and bin_id='1291'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/646908

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/646908/ft1_4FGL_J1438.0+0219_daily_bin1291.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/646908/ft2_4FGL_J1438.0+0219_daily_bin1291.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/646908/ft1_4FGL_J1438.0+0219_daily_bin1291.fits outfile=/scratch/kocevski/646908/ft1_filteredMKT_4FGL_J1438.0+0219_daily_bin1291.fits ra=219.504 dec=2.3272 rad=12.0 tmin=573955201.0 tmax=574214401.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 5.64
user 3.40
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/646908/ft2_4FGL_J1438.0+0219_daily_bin1291.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/646908/ft2_4FGL_J1438.0+0219_daily_bin1291.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/646908/ft1_filteredMKT_4FGL_J1438.0+0219_daily_bin1291.fits evtable="EVENTS" outfile="/scratch/kocevski/646908/ft1_filtered_4FGL_J1438.0+0219_daily_bin1291.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 3.84
user 0.35
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/646908/ft1_filtered_4FGL_J1438.0+0219_daily_bin1291.fits" evtable="EVENTS" scfile=/scratch/kocevski/646908/ft2_4FGL_J1438.0+0219_daily_bin1291.fits sctable="SC_DATA" outfile=/scratch/kocevski/646908/ltcube_573955201_574214401_4FGL_J1438.0+0219_daily_bin1291.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/646908/ft2_4FGL_J1438.0+0219_daily_bin1291.fits
.....................!
real 18.32
user 13.39
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/646908/ft1_filtered_4FGL_J1438.0+0219_daily_bin1291.fits evtable="EVENTS" scfile=/scratch/kocevski/646908/ft2_4FGL_J1438.0+0219_daily_bin1291.fits sctable="SC_DATA" expcube=/scratch/kocevski/646908/ltcube_573955201_574214401_4FGL_J1438.0+0219_daily_bin1291.fits outfile=/scratch/kocevski/646908/expmap_573955201_574214401_4FGL_J1438.0+0219_daily_bin1291.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/646908/ltcube_573955201_574214401_4FGL_J1438.0+0219_daily_bin1291.fits
.....................!
real 209.31
user 185.81
sys 3.85

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 160 point sources and 0 extended sources

Setting source of interest to:
4FGL J1438.0+0219 @ 219.504 2.3272

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/646908/ft1_filtered_4FGL_J1438.0+0219_daily_bin1291.fits scfile=/scratch/kocevski/646908/ft2_4FGL_J1438.0+0219_daily_bin1291.fits outfile=/scratch/kocevski/646908/cmap_573955201_574214401_4FGL_J1438.0+0219_daily_bin1291.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.504 yref=2.3272 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 4.35
user 0.39
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/646908/ft1_filtered_4FGL_J1438.0+0219_daily_bin1291.fits scfile=/scratch/kocevski/646908/ft2_4FGL_J1438.0+0219_daily_bin1291.fits outfile=/scratch/kocevski/646908/cmap_HighResolution_573955201_574214401_4FGL_J1438.0+0219_daily_bin1291.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.504 yref=2.3272 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 1.63
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/646908/ft1_filtered_4FGL_J1438.0+0219_daily_bin1291.fits evtable="EVENTS" scfile=/scratch/kocevski/646908/ft2_4FGL_J1438.0+0219_daily_bin1291.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/646908/Model_4FGL_J1438.0+0219_daily_bin1291.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/646908/ft1_filtered_4FGL_J1438.0+0219_daily_bin1291.fits.....................!
real 90.10
user 54.48
sys 1.26

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/646908/ft1_filtered_4FGL_J1438.0+0219_daily_bin1291.fits', '/scratch/kocevski/646908/ft2_4FGL_J1438.0+0219_daily_bin1291.fits', expMap='/scratch/kocevski/646908/expmap_573955201_574214401_4FGL_J1438.0+0219_daily_bin1291.fits', expCube='/scratch/kocevski/646908/ltcube_573955201_574214401_4FGL_J1438.0+0219_daily_bin1291.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/646908/Model_4FGL_J1438.0+0219_daily_bin1291.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1438.0+0219'

4FGL J1438.0+0219
   Spectrum: PowerLaw
248    Prefactor:  3.502e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
249        Index:  2.234e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
250        Scale:  1.903e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/646908/ft1_filtered_4FGL_J1438.0+0219_daily_bin1291.fits
Spacecraft file(s): /scratch/kocevski/646908/ft2_4FGL_J1438.0+0219_daily_bin1291.fits
Exposure map: /scratch/kocevski/646908/expmap_573955201_574214401_4FGL_J1438.0+0219_daily_bin1291.fits
Exposure cube: /scratch/kocevski/646908/ltcube_573955201_574214401_4FGL_J1438.0+0219_daily_bin1291.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/646908/Model_4FGL_J1438.0+0219_daily_bin1291.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) = 7183.3125209

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    56.746       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10108E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    7.8008       1.0000         .10000E-03   10000.    
     6 'Prefactor '    14.786       1.0000         .10000E-03   10000.    
     7 'norm      '    16.238       1.0000         .10000E-03   10000.    
     8 'Prefactor '    74.007       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .11752E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .76722       1.0000         .10000E-03   10000.    
    13 'norm      '    1.3715       1.0000         .10000E-03   10000.    
    14 'norm      '    3.6553       1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    2.3424       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.2313       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .96890       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5290E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7183.308     FROM MIGRAD    STATUS=CONVERGED    387 CALLS     1917 TOTAL
                     EDM=   .47E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     56.746        34.569        .13313E-02    .40501E-03
   2  Prefactor     .10000E-03    3.9264        .90712E-02** at limit **
   3  Prefactor     .10000E-03    10.021        .90712E-02** at limit **
   4  norm          .10000E-03    4.0528        .90712E-02** at limit **
   5  norm          7.8010        7.0402        .35892E-02   -.22699E-03
   6  Prefactor     14.786        22.440        .26040E-02    .16336E-03
   7  norm          16.240        24.842        .24848E-02   -.21299E-03
   8  Prefactor     74.006        69.194        .11668E-02    .74309E-03
   9  Prefactor     .10000E-03    15.564        .90712E-02** at limit **
  10  norm          .10000E-03    9.5595        .90712E-02** at limit **
  11  Prefactor     .10002E-03    80.861        .90712E-02** at limit **
  12  norm          .76717        .22982        .48143E-02    .30486E-02
  13  norm          1.3717        1.5440        .93055E-02    .59547E-03
  14  norm          3.6552        3.6664        .52821E-02   -.34885E-03
  15  norm          .10000E-03    1.6363        .90712E-02** at limit **
  16  norm          2.3423        2.5640        .66970E-02    .14984E-03
  17  Prefactor     .10000E-03    24.879        .90712E-02** at limit **
  18  Normalizat    1.2312        .21421        .71086E-01    .22513E-03
  19  Prefactor     .96892        .11950        .45877E-01    .37336E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 56.7458
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 7.80103
  Prefactor  = 14.786
  norm       = 16.2395
  Prefactor  = 74.0063
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100024
  norm       = 0.767169
  norm       = 1.37174
  norm       = 3.65523
  norm       = 0.0001
  norm       = 2.34231
  Prefactor  = 0.000100001
  Normalizat = 1.2312
  Prefactor  = 0.96892
 **********
 **   18 **HESSE 
 **********

 FCN=   7183.308     FROM HESSE     STATUS=OK           262 CALLS     2179 TOTAL
                     EDM=   .47E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     56.746        34.610        .53253E-04   -1.4200    
   2  Prefactor     .10000E-03    3.9298        .16400E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    10.032        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    4.0552        .16664E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          7.8010        7.0411        .71784E-03   -1.5149    
   6  Prefactor     14.786        22.508        .10416E-03   -1.4939    
   7  norm          16.240        24.833        .99394E-04   -1.4902    
   8  Prefactor     74.006        69.293        .46671E-04   -1.3985    
   9  Prefactor     .10000E-03    15.583        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    9.5842        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10002E-03    84.376        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .76717        .22965        .21336E-04   -1.5533    
  13  norm          1.3717        1.5307        .10744E-03   -1.5474    
  14  norm          3.6552        3.6746        .15865E-03   -1.5326    
  15  norm          .10000E-03    1.6410        .10587E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          2.3423        2.5582        .13760E-03   -1.5402    
  17  Prefactor     .10000E-03    24.917        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    1.2312        .25272        .31454E-03   -.85644    
  19  Prefactor     .96892        .14092        .19934E-03   -.93773    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.65072e-09
Minuit parameter uncertainties:
  1  34.6223
  2  1.6293e-05
  3  5.7001e-06
  4  2.08642e-06
  5  7.04184
  6  22.5205
  7  24.849
  8  69.3682
  9  4.94232e-05
  10  6.1387e-05
  11  0.00283816
  12  0.229655
  13  1.53072
  14  3.67485
  15  4.40742e-07
  16  2.55834
  17  0.000385796
  18  0.252971
  19  0.140969
Done.

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

Extracting fit parameters...

4FGL J1438.0+0219
   Spectrum: PowerLaw
248    Prefactor:  7.401e+01  6.937e+01  1.000e-04  1.000e+04 ( 1.000e-14)
249        Index:  2.234e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
250        Scale:  1.903e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
526    Prefactor:  9.689e-01  1.410e-01  0.000e+00  1.000e+01 ( 1.000e+00)
527        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
528        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
525   Normalization:  1.231e+00  2.530e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.72
Ra Dec: 219.504 2.327
Photon Index (Fixed Index): 2.23 +/- 0.00
Photon Flux (Fixed Index): 4.33e-08 +/- 4.06e-08
Energy Flux (Fixed Index): 1.83e-05 +/- 1.72e-05

TS (Fixed Index): 1.72
Ra Dec: 219.504 2.327
Photon Flux Upper Limit: 1.34e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.02e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/646908/likelihoodResults_573955201_574214401_4FGL_J1438.0+0219_daily_bin1291.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) = 7183.29837435
delta logL = 0.00972158197601

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7183.2933134
delta logL = 0.0147825339609

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    82.441       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1151       1.0000          .0000       10.000    
     3 'Normalizat'    1.2373       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96729       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5290E+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=   7183.293     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      282 TOTAL
                     EDM=   .70E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     82.443        92.492        .44238E-04   -.44922E-04
   2  Index         2.1151        .72235        .88159E-02    .43689E-03
   3  Normalizat    1.2372        .24799        .31388E-03   -.89100E-04
   4  Prefactor     .96734        .14040        .19948E-03    .23016E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 82.4429
  Index      = 2.11514
  Normalizat = 1.2372
  Prefactor  = 0.967336
 **********
 **   18 **HESSE 
 **********

 FCN=   7183.293     FROM HESSE     STATUS=OK            25 CALLS      307 TOTAL
                     EDM=   .30E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     82.443        89.186        .88476E-05   -1.3889    
   2  Index         2.1151        .69613        .17632E-02   -.61502    
   3  Normalizat    1.2372        .24794        .12555E-04   -.85461    
   4  Prefactor     .96734        .14047        .39895E-04   -.93826    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.03117e-10
Minuit parameter uncertainties:
  1  89.3311
  2  0.699548
  3  0.248181
  4  0.140518
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/646908': 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) = 7183.29331334
delta logL = 0.0147825927643

Extracting fit parameters...

4FGL J1438.0+0219
   Spectrum: PowerLaw
248    Prefactor:  8.244e+01  8.933e+01  1.000e-04  1.000e+04 ( 1.000e-14)
249        Index:  2.115e+00  6.995e-01  0.000e+00  1.000e+01 (-1.000e+00)
250        Scale:  1.903e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
526    Prefactor:  9.673e-01  1.405e-01  0.000e+00  1.000e+01 ( 1.000e+00)
527        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
528        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
525   Normalization:  1.237e+00  2.482e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.75
Ra Dec: 219.504 2.327
Photon Index (Free Index): 2.12 +/- 0.70
Photon Flux (Free Index): 3.76e-08 +/- 4.99e-08
Energy Flux (Free Index): 2.00e-05 +/- 2.20e-05

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/646908/cmap_HighResolution_573955201_574214401_4FGL_J1438.0+0219_daily_bin1291.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.02e-02', comment='SUCCESS', photon_flux='4.33e-08', energy_flux2='2.00e-05', photon_flux_error='4.06e-08', dlogl='1.48e-02', energy_flux='1.83e-05', photon_flux2='3.76e-08', job_status='DONE', time_completed='2021-09-10 02:19:12.785519', photon_index_error2='0.70', photon_index2='2.12', ts='1.72', fit_tolerance='1e-08', GAL='0.97', photon_index_error='0.00', photon_flux_upper_limit='1.34e-07', energy_flux_error2='2.20e-05', EG='1.23', time_epoch_completed='1631265552.79', return_code='0', job_id='646908', GAL2='0.97', EG2='1.24', return_code2='0', energy_flux_error='1.72e-05', photon_flux_error2='4.99e-08', ts2='1.75', photon_index='2.23' WHERE bin_id='1291' AND source_name='4FGL J1438.0+0219' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 02:19:12 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0228>
Subject: Job 646908: <4FGL_J1438.0+0219_daily_bin1291> in cluster <slac> Done

Job <4FGL_J1438.0+0219_daily_bin1291> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Fri Sep 10 02:06:53 2021
Job was executed on host(s) <bullet0228>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 10 02:06:55 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep 10 02:06:55 2021
Terminated at Fri Sep 10 02:19:13 2021
Results reported at Fri Sep 10 02:19:13 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1438.0+0219_daily_bin1291 219.504 2.3272 573955201 574214401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1438.0+0219 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   579.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             317.32 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   738 sec.
    Turnaround time :                            740 sec.

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

