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


Performing analysis on: 4FGL_J1357.1+1921_daily_bin60
RA = 209.29, Dec = 19.3608
tmin = 254880001, tmax = 255139201
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='59818', job_status='RUN', time_executed='2021-09-08 17:44:13.673658', time_epoch_executed='1631148253.67' WHERE source_name='4FGL J1357.1+1921' and cadence='daily' and bin_id='60'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/59818

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/59818/ft1_4FGL_J1357.1+1921_daily_bin60.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/59818/ft2_4FGL_J1357.1+1921_daily_bin60.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/59818/ft1_4FGL_J1357.1+1921_daily_bin60.fits outfile=/scratch/kocevski/59818/ft1_filteredMKT_4FGL_J1357.1+1921_daily_bin60.fits ra=209.29 dec=19.3608 rad=12.0 tmin=254880001.0 tmax=255139201.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 1.43
user 1.23
sys 0.19

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/59818/ft2_4FGL_J1357.1+1921_daily_bin60.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/59818/ft2_4FGL_J1357.1+1921_daily_bin60.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/59818/ft1_filteredMKT_4FGL_J1357.1+1921_daily_bin60.fits evtable="EVENTS" outfile="/scratch/kocevski/59818/ft1_filtered_4FGL_J1357.1+1921_daily_bin60.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.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/59818/ft1_filtered_4FGL_J1357.1+1921_daily_bin60.fits" evtable="EVENTS" scfile=/scratch/kocevski/59818/ft2_4FGL_J1357.1+1921_daily_bin60.fits sctable="SC_DATA" outfile=/scratch/kocevski/59818/ltcube_254880001_255139201_4FGL_J1357.1+1921_daily_bin60.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/59818/ft2_4FGL_J1357.1+1921_daily_bin60.fits
.....................!
real 12.93
user 12.56
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/59818/ft1_filtered_4FGL_J1357.1+1921_daily_bin60.fits evtable="EVENTS" scfile=/scratch/kocevski/59818/ft2_4FGL_J1357.1+1921_daily_bin60.fits sctable="SC_DATA" expcube=/scratch/kocevski/59818/ltcube_254880001_255139201_4FGL_J1357.1+1921_daily_bin60.fits outfile=/scratch/kocevski/59818/expmap_254880001_255139201_4FGL_J1357.1+1921_daily_bin60.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/59818/ltcube_254880001_255139201_4FGL_J1357.1+1921_daily_bin60.fits
.....................!
real 193.64
user 188.26
sys 4.97

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

Setting source of interest to:
4FGL J1357.1+1921 @ 209.29 19.3608

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/59818/ft1_filtered_4FGL_J1357.1+1921_daily_bin60.fits scfile=/scratch/kocevski/59818/ft2_4FGL_J1357.1+1921_daily_bin60.fits outfile=/scratch/kocevski/59818/cmap_254880001_255139201_4FGL_J1357.1+1921_daily_bin60.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=209.29 yref=19.3608 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.56
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/59818/ft1_filtered_4FGL_J1357.1+1921_daily_bin60.fits scfile=/scratch/kocevski/59818/ft2_4FGL_J1357.1+1921_daily_bin60.fits outfile=/scratch/kocevski/59818/cmap_HighResolution_254880001_255139201_4FGL_J1357.1+1921_daily_bin60.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=209.29 yref=19.3608 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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/59818/ft1_filtered_4FGL_J1357.1+1921_daily_bin60.fits evtable="EVENTS" scfile=/scratch/kocevski/59818/ft2_4FGL_J1357.1+1921_daily_bin60.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/59818/Model_4FGL_J1357.1+1921_daily_bin60.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/59818/ft1_filtered_4FGL_J1357.1+1921_daily_bin60.fits.....................!
real 61.78
user 60.33
sys 1.26

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/59818/ft1_filtered_4FGL_J1357.1+1921_daily_bin60.fits', '/scratch/kocevski/59818/ft2_4FGL_J1357.1+1921_daily_bin60.fits', expMap='/scratch/kocevski/59818/expmap_254880001_255139201_4FGL_J1357.1+1921_daily_bin60.fits', expCube='/scratch/kocevski/59818/ltcube_254880001_255139201_4FGL_J1357.1+1921_daily_bin60.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/59818/Model_4FGL_J1357.1+1921_daily_bin60.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1357.1+1921'

4FGL J1357.1+1921
   Spectrum: PowerLaw
267    Prefactor:  2.782e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
268        Index:  2.758e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
269        Scale:  4.625e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/59818/ft1_filtered_4FGL_J1357.1+1921_daily_bin60.fits
Spacecraft file(s): /scratch/kocevski/59818/ft2_4FGL_J1357.1+1921_daily_bin60.fits
Exposure map: /scratch/kocevski/59818/expmap_254880001_255139201_4FGL_J1357.1+1921_daily_bin60.fits
Exposure cube: /scratch/kocevski/59818/ltcube_254880001_255139201_4FGL_J1357.1+1921_daily_bin60.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/59818/Model_4FGL_J1357.1+1921_daily_bin60.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) = 8547.45958143

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10022E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    22.427       1.0000         .10000E-03   10000.    
     4 'norm      '    13.671       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    20.421       1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.7905       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.7546       1.0000         .10000E-03   10000.    
    11 'Prefactor '    9.5559       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .73037E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    8.7725       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .23938       1.0000         .10000E-03   10000.    
    16 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    13.871       1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.0898       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.0365       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5090E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8547.417     FROM MIGRAD    STATUS=CONVERGED    381 CALLS     1645 TOTAL
                     EDM=   .38E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    9.9012       -.48584E-05** at limit **
   2  norm          .10000E-03    2.2538       -.21640E-07** at limit **
   3  Prefactor     22.418        28.454       -.14762E-04    .28880E-04
   4  norm          13.670        7.4039       -.74726E-07    .39717E-04
   5  Prefactor     .10000E-03    7.0594       -.75974E-06** at limit **
   6  Prefactor     20.416        16.043       -.42644E-05    .19366E-04
   7  Prefactor     4.7712        88.252       -.77487E-04    .35678E-05
   8  Prefactor     .10000E-03    1.2292       -.17690E-07** at limit **
   9  Prefactor     .10000E-03    1.2158        .88243E-07** at limit **
  10  Prefactor     4.7510        11.938       -.28931E-05   -.57058E-04
  11  Prefactor     9.5539        9.8163       -.90964E-06   -.14033E-04
  12  Prefactor     .10000E-03    8.3767        .33577E-05** at limit **
  13  Prefactor     .10000E-03    3.4273       -.82286E-06** at limit **
  14  norm          8.7721        2.7384       -.85849E-07    .92222E-04
  15  Prefactor     .19608        2.0456       -.31162E-06   -.78417E-03
  16  norm          .10000E-03    .52516       -.56071E-07** at limit **
  17  Prefactor     13.874        14.287        .27141E-05    .36405E-04
  18  Normalizat    1.0898        .15980        .22269E-05    .28854E-03
  19  Prefactor     1.0366        .13372        .20894E-05    .35783E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 22.4184
  norm       = 13.6697
  Prefactor  = 0.0001
  Prefactor  = 20.4163
  Prefactor  = 4.77121
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.75101
  Prefactor  = 9.55393
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 8.77213
  Prefactor  = 0.196082
  norm       = 0.0001
  Prefactor  = 13.8739
  Normalizat = 1.08983
  Prefactor  = 1.03658
 **********
 **   18 **HESSE 
 **********

 FCN=   8547.417     FROM HESSE     STATUS=OK           278 CALLS     1923 TOTAL
                     EDM=   .43E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    9.9605        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    2.2676        .13543E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     22.418        28.455        .84580E-04   -1.4761    
   4  norm          13.670        7.4221        .10833E-03   -1.4968    
   5  Prefactor     .10000E-03    7.0670        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     20.416        16.096        .88634E-04   -1.4804    
   7  Prefactor     4.7712        88.865        .18382E-03   -1.5271    
   8  Prefactor     .10000E-03    1.2367        .10009E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    1.2221        .99538E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     4.7510        11.951        .18452E-03   -1.5272    
  11  Prefactor     9.5539        9.8286        .12964E-03   -1.5090    
  12  Prefactor     .10000E-03    8.3839        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    3.3654        .54929E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          8.7721        2.7394        .82808E-04   -1.5116    
  15  Prefactor     .19608        19.106        .24874E-02   -1.5619    
  16  norm          .10000E-03    .52787        .65415E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     13.874        14.291        .10755E-03   -1.4963    
  18  Normalizat    1.0898        .19005        .25642E-03   -.90079    
  19  Prefactor     1.0366        .15879        .22323E-03   -.91520    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.27365e-09
Minuit parameter uncertainties:
  1  8.52197e-06
  2  6.08309e-06
  3  28.4719
  4  7.42259
  5  1.02518e-05
  6  16.0996
  7  41.253
  8  3.44878e-06
  9  6.55105e-06
  10  11.9571
  11  9.83026
  12  1.82014e-05
  13  0.000116253
  14  2.73947
  15  3.87138
  16  3.23988e-06
  17  14.2944
  18  0.19017
  19  0.158863
Done.

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

Extracting fit parameters...

4FGL J1357.1+1921
   Spectrum: PowerLaw
267    Prefactor:  9.554e+00  9.830e+00  1.000e-04  1.000e+04 ( 1.000e-12)
268        Index:  2.758e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
269        Scale:  4.625e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
506    Prefactor:  1.037e+00  1.589e-01  0.000e+00  1.000e+01 ( 1.000e+00)
507        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
508        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
505   Normalization:  1.090e+00  1.902e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.30
Ra Dec: 209.290 19.361
Photon Index (Fixed Index): 2.76 +/- 0.00
Photon Flux (Fixed Index): 3.71e-08 +/- 3.82e-08
Energy Flux (Fixed Index): 8.56e-06 +/- 8.81e-06

TS (Fixed Index): 1.30
Ra Dec: 209.290 19.361
Photon Flux Upper Limit: 1.18e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.35e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/59818/likelihoodResults_254880001_255139201_4FGL_J1357.1+1921_daily_bin60.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) = 8547.36917343
delta logL = 0.0477923728431

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8547.36722895
delta logL = 0.049736857316

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.668       1.0000         .10000E-03   10000.    
     2 'Index     '    2.5225       1.0000          .0000       10.000    
     3 'Normalizat'    1.0957       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0327       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5090E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8547.367     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      238 TOTAL
                     EDM=   .24E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.661        472.67        .30667E-02    .68145E-04
   2  Index         2.5221        5.5859        .23457        .13534E-04
   3  Normalizat    1.0959        .87041E-01    .57841E-01    .56158E-04
   4  Prefactor     1.0325        .95080E-01    .41050E-01    .69278E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.6613
  Index      = 2.52212
  Normalizat = 1.09589
  Prefactor  = 1.03254
 **********
 **   18 **HESSE 
 **********

 FCN=   8547.367     FROM HESSE     STATUS=OK            33 CALLS      271 TOTAL
                     EDM=   .25E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.661        10.989        .12267E-03   -1.5055    
   2  Index         2.5221        .71699        .12005E-01   -.51850    
   3  Normalizat    1.0959        .18444        .25579E-03   -.89884    
   4  Prefactor     1.0325        .15697        .22360E-03   -.91653    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.45088e-12
Minuit parameter uncertainties:
  1  10.9907
  2  0.720291
  3  0.184547
  4  0.157036
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/59818': 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) = 8547.36722787
delta logL = 0.049737930427

Extracting fit parameters...

4FGL J1357.1+1921
   Spectrum: PowerLaw
267    Prefactor:  1.066e+01  1.099e+01  1.000e-04  1.000e+04 ( 1.000e-12)
268        Index:  2.522e+00  7.203e-01  0.000e+00  1.000e+01 (-1.000e+00)
269        Scale:  4.625e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
506    Prefactor:  1.033e+00  1.570e-01  0.000e+00  1.000e+01 ( 1.000e+00)
507        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
508        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
505   Normalization:  1.096e+00  1.845e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.39
Ra Dec: 209.290 19.361
Photon Index (Free Index): 2.52 +/- 0.72
Photon Flux (Free Index): 3.34e-08 +/- 3.67e-08
Energy Flux (Free Index): 9.45e-06 +/- 1.01e-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/59818/cmap_HighResolution_254880001_255139201_4FGL_J1357.1+1921_daily_bin60.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.35e-03', comment='SUCCESS', photon_flux='3.71e-08', energy_flux2='9.45e-06', photon_flux_error='3.82e-08', dlogl='4.97e-02', energy_flux='8.56e-06', photon_flux2='3.34e-08', job_status='DONE', time_completed='2021-09-08 17:54:12.557216', photon_index_error2='0.72', photon_index2='2.52', ts='1.30', fit_tolerance='1e-08', GAL='1.04', photon_index_error='0.00', photon_flux_upper_limit='1.18e-07', energy_flux_error2='1.01e-05', EG='1.09', time_epoch_completed='1631148852.56', return_code='0', job_id='59818', GAL2='1.03', EG2='1.10', return_code2='0', energy_flux_error='8.81e-06', photon_flux_error2='3.67e-08', ts2='1.39', photon_index='2.76' WHERE bin_id='60' AND source_name='4FGL J1357.1+1921' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 17:54:12 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0224>
Subject: Job 59818: <4FGL_J1357.1+1921_daily_bin60> in cluster <slac> Done

Job <4FGL_J1357.1+1921_daily_bin60> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep  8 17:41:02 2021
Job was executed on host(s) <bullet0224>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 17:41:04 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep  8 17:41:04 2021
Terminated at Wed Sep  8 17:54:13 2021
Results reported at Wed Sep  8 17:54:13 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1357.1+1921_daily_bin60 209.29 19.3608 254880001 255139201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1357.1+1921 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   598.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             273.15 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   788 sec.
    Turnaround time :                            791 sec.

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

