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


Performing analysis on: 4FGL_J1438.0+0219_daily_bin276
RA = 219.504, Dec = 2.3272
tmin = 310867201, tmax = 311126401
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='639566', job_status='RUN', time_executed='2021-09-10 01:42:30.902530', time_epoch_executed='1631263350.9' WHERE source_name='4FGL J1438.0+0219' and cadence='daily' and bin_id='276'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/639566

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/639566/ft1_4FGL_J1438.0+0219_daily_bin276.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/639566/ft2_4FGL_J1438.0+0219_daily_bin276.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/639566/ft1_4FGL_J1438.0+0219_daily_bin276.fits outfile=/scratch/kocevski/639566/ft1_filteredMKT_4FGL_J1438.0+0219_daily_bin276.fits ra=219.504 dec=2.3272 rad=12.0 tmin=310867201.0 tmax=311126401.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.62
user 3.35
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/639566/ft1_filtered_4FGL_J1438.0+0219_daily_bin276.fits" evtable="EVENTS" scfile=/scratch/kocevski/639566/ft2_4FGL_J1438.0+0219_daily_bin276.fits sctable="SC_DATA" outfile=/scratch/kocevski/639566/ltcube_310867201_311126401_4FGL_J1438.0+0219_daily_bin276.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/639566/ft2_4FGL_J1438.0+0219_daily_bin276.fits
.....................!
real 12.01
user 11.42
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/639566/ft1_filtered_4FGL_J1438.0+0219_daily_bin276.fits evtable="EVENTS" scfile=/scratch/kocevski/639566/ft2_4FGL_J1438.0+0219_daily_bin276.fits sctable="SC_DATA" expcube=/scratch/kocevski/639566/ltcube_310867201_311126401_4FGL_J1438.0+0219_daily_bin276.fits outfile=/scratch/kocevski/639566/expmap_310867201_311126401_4FGL_J1438.0+0219_daily_bin276.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/639566/ltcube_310867201_311126401_4FGL_J1438.0+0219_daily_bin276.fits
.....................!
real 191.07
user 184.89
sys 5.25

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/639566/ft1_filtered_4FGL_J1438.0+0219_daily_bin276.fits scfile=/scratch/kocevski/639566/ft2_4FGL_J1438.0+0219_daily_bin276.fits outfile=/scratch/kocevski/639566/cmap_310867201_311126401_4FGL_J1438.0+0219_daily_bin276.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 0.75
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/639566/ft1_filtered_4FGL_J1438.0+0219_daily_bin276.fits scfile=/scratch/kocevski/639566/ft2_4FGL_J1438.0+0219_daily_bin276.fits outfile=/scratch/kocevski/639566/cmap_HighResolution_310867201_311126401_4FGL_J1438.0+0219_daily_bin276.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 0.73
user 0.39
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/639566/ft1_filtered_4FGL_J1438.0+0219_daily_bin276.fits', '/scratch/kocevski/639566/ft2_4FGL_J1438.0+0219_daily_bin276.fits', expMap='/scratch/kocevski/639566/expmap_310867201_311126401_4FGL_J1438.0+0219_daily_bin276.fits', expCube='/scratch/kocevski/639566/ltcube_310867201_311126401_4FGL_J1438.0+0219_daily_bin276.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/639566/Model_4FGL_J1438.0+0219_daily_bin276.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/639566/ft1_filtered_4FGL_J1438.0+0219_daily_bin276.fits
Spacecraft file(s): /scratch/kocevski/639566/ft2_4FGL_J1438.0+0219_daily_bin276.fits
Exposure map: /scratch/kocevski/639566/expmap_310867201_311126401_4FGL_J1438.0+0219_daily_bin276.fits
Exposure cube: /scratch/kocevski/639566/ltcube_310867201_311126401_4FGL_J1438.0+0219_daily_bin276.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/639566/Model_4FGL_J1438.0+0219_daily_bin276.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) = 8936.60604651

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.9565       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    12.450       1.0000         .10000E-03   10000.    
     5 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10457E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    40.125       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .47976E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    12.468       1.0000         .10000E-03   10000.    
    11 'Prefactor '    7.8894       1.0000         .10000E-03   10000.    
    12 'norm      '    .10033E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    3.5648       1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    10.436       1.0000         .10000E-03   10000.    
    16 'norm      '    2.2809       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .11542E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.3785       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.0317       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.

 FCN=   8936.582     FROM MIGRAD    STATUS=CONVERGED    383 CALLS     1880 TOTAL
                     EDM=   .25E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    19.029       -.42226E-07** at limit **
   2  Prefactor     2.9557        9.2982       -.12177E-05   -.21877E-03
   3  Prefactor     .10000E-03    5.6139        .13016E-06** at limit **
   4  norm          12.450        9.5919       -.10420E-06    .13879E-04
   5  norm          .10000E-03    4.7826        .70703E-07** at limit **
   6  Prefactor     .10000E-03    47.776        .63636E-05** at limit **
   7  norm          .10000E-03    14.138        .15962E-06** at limit **
   8  Prefactor     40.121        56.514       -.35977E-05    .22277E-04
   9  Prefactor     .10000E-03    53.035       -.23330E-04** at limit **
  10  norm          12.434        21.558        .18285E-05    .23914E-03
  11  Prefactor     7.8642        26.863       -.12032E-04    .79619E-05
  12  norm          .10000E-03    .68671E-01    .25675E-07** at limit **
  13  norm          3.5639        2.2874       -.75984E-07   -.29648E-03
  14  norm          .10000E-03    1.6203        .79077E-07** at limit **
  15  norm          10.436        5.0754       -.26308E-05   -.13827E-03
  16  norm          2.2804        3.0592       -.29227E-06   -.49355E-03
  17  Prefactor     .10000E-03    85.904       -.38248E-05** at limit **
  18  Normalizat    1.3789        .20390        .16931E-05    .70973E-04
  19  Prefactor     1.0315        .11412        .60660E-06    .18663E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 2.95573
  Prefactor  = 0.0001
  norm       = 12.4497
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 40.1214
  Prefactor  = 0.0001
  norm       = 12.4339
  Prefactor  = 7.86418
  norm       = 0.0001
  norm       = 3.56393
  norm       = 0.0001
  norm       = 10.4365
  norm       = 2.28039
  Prefactor  = 0.0001
  Normalizat = 1.37888
  Prefactor  = 1.03151
 **********
 **   18 **HESSE 
 **********

 FCN=   8936.582     FROM HESSE     STATUS=OK           266 CALLS     2146 TOTAL
                     EDM=   .52E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    19.138        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     2.9557        9.3373        .23618E-03   -1.5364    
   3  Prefactor     .10000E-03    5.6189        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          12.450        9.5925        .11353E-03   -1.5002    
   5  norm          .10000E-03    4.8082        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    48.868        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    14.173        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     40.121        56.549        .63279E-04   -1.4440    
   9  Prefactor     .10000E-03    53.018        .21178E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          12.434        21.601        .11344E-03   -1.5003    
  11  Prefactor     7.8642        26.975        .14275E-03   -1.5147    
  12  norm          .10000E-03    .11616        .47953E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          3.5639        2.2813        .10835E-03   -1.5330    
  14  norm          .10000E-03    1.6207        .11752E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          10.436        5.0899        .12403E-03   -1.5062    
  16  norm          2.2804        3.0504        .18447E-03   -1.5406    
  17  Prefactor     .10000E-03    86.573        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    1.3789        .23978        .31152E-03   -.81242    
  19  Prefactor     1.0315        .13433        .20358E-03   -.91687    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.161e-10
Minuit parameter uncertainties:
  1  1.49148e-05
  2  9.3419
  3  3.69976e-06
  4  9.5937
  5  1.01706e-05
  6  0.000257856
  7  1.67393e-05
  8  56.6243
  9  1.85686e-05
  10  21.6149
  11  27.0173
  12  1.10228e-06
  13  2.28133
  14  1.88304e-07
  15  5.09009
  16  3.05056
  17  0.000106581
  18  0.239971
  19  0.134375
Done.

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

Extracting fit parameters...

4FGL J1438.0+0219
   Spectrum: PowerLaw
248    Prefactor:  4.012e+01  5.662e+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:  1.032e+00  1.344e-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.379e+00  2.400e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/639566/likelihoodResults_310867201_311126401_4FGL_J1438.0+0219_daily_bin276.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) = 8936.48822652
delta logL = 0.0934373350447

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8936.48279576
delta logL = 0.0988680931277

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    23.856       1.0000         .10000E-03   10000.    
     2 'Index     '    2.6567       1.0000          .0000       10.000    
     3 'Normalizat'    1.3632       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0366       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=   8936.483     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      313 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     23.839        78.513        .82012E-04   -.46832E-03
   2  Index         2.6570        1.5266        .82605E-02   -.20718E-03
   3  Normalizat    1.3629        .23594        .31306E-03    .39279E-03
   4  Prefactor     1.0367        .13414        .20313E-03    .48186E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 23.8388
  Index      = 2.65704
  Normalizat = 1.36293
  Prefactor  = 1.03673
 **********
 **   18 **HESSE 
 **********

 FCN=   8936.483     FROM HESSE     STATUS=OK            25 CALLS      338 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     23.839        52.329        .16402E-04   -1.4731    
   2  Index         2.6570        1.0252        .33042E-03   -.48770    
   3  Normalizat    1.3629        .23393        .62612E-04   -.81707    
   4  Prefactor     1.0367        .13330        .40625E-04   -.91515    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.37952e-09
Minuit parameter uncertainties:
  1  52.4296
  2  1.03466
  3  0.234118
  4  0.133345
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/639566': 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) = 8936.48279509
delta logL = 0.0988687684057

Extracting fit parameters...

4FGL J1438.0+0219
   Spectrum: PowerLaw
248    Prefactor:  2.384e+01  5.243e+01  1.000e-04  1.000e+04 ( 1.000e-14)
249        Index:  2.657e+00  1.035e+00  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:  1.037e+00  1.333e-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.363e+00  2.341e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.66
Ra Dec: 219.504 2.327

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/639566/cmap_HighResolution_310867201_311126401_4FGL_J1438.0+0219_daily_bin276.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.76e-03', job_status='DONE', photon_flux_upper_limit='1.02e-07', time_completed='2021-09-10 01:53:31.110459', job_id='639566', GAL2='1.04', fit_tolerance='1e-08', EG2='1.36', EG='1.38', time_epoch_completed='1631264011.11', return_code2='0', ts='0.66', comment='SUCCESS', return_code='0', GAL='1.03', dlogl='9.89e-02', ts2='0.87', photon_index_error='0.00', photon_index='2.23' WHERE bin_id='276' AND source_name='4FGL J1438.0+0219' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 01:53:31 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0213>
Subject: Job 639566: <4FGL_J1438.0+0219_daily_bin276> in cluster <slac> Done

Job <4FGL_J1438.0+0219_daily_bin276> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Fri Sep 10 01:42:03 2021
Job was executed on host(s) <bullet0213>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 10 01:42: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 01:42:05 2021
Terminated at Fri Sep 10 01:53:33 2021
Results reported at Fri Sep 10 01:53:33 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1438.0+0219_daily_bin276 219.504 2.3272 310867201 311126401 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 :                                   651.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             345.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   687 sec.
    Turnaround time :                            690 sec.

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

