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


Performing analysis on: 4FGL_J1357.1+1921_daily_bin1402
RA = 209.29, Dec = 19.3608
tmin = 602726401, tmax = 602985601
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='66322', job_status='RUN', time_executed='2021-09-08 18:01:10.509164', time_epoch_executed='1631149270.51' WHERE source_name='4FGL J1357.1+1921' and cadence='daily' and bin_id='1402'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/66322

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/66322/ft1_4FGL_J1357.1+1921_daily_bin1402.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/66322/ft2_4FGL_J1357.1+1921_daily_bin1402.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/66322/ft1_4FGL_J1357.1+1921_daily_bin1402.fits outfile=/scratch/kocevski/66322/ft1_filteredMKT_4FGL_J1357.1+1921_daily_bin1402.fits ra=209.29 dec=19.3608 rad=12.0 tmin=602726401.0 tmax=602985601.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.18
user 2.81
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/66322/ft1_filtered_4FGL_J1357.1+1921_daily_bin1402.fits" evtable="EVENTS" scfile=/scratch/kocevski/66322/ft2_4FGL_J1357.1+1921_daily_bin1402.fits sctable="SC_DATA" outfile=/scratch/kocevski/66322/ltcube_602726401_602985601_4FGL_J1357.1+1921_daily_bin1402.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/66322/ft2_4FGL_J1357.1+1921_daily_bin1402.fits
.....................!
real 11.96
user 11.61
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/66322/ft1_filtered_4FGL_J1357.1+1921_daily_bin1402.fits evtable="EVENTS" scfile=/scratch/kocevski/66322/ft2_4FGL_J1357.1+1921_daily_bin1402.fits sctable="SC_DATA" expcube=/scratch/kocevski/66322/ltcube_602726401_602985601_4FGL_J1357.1+1921_daily_bin1402.fits outfile=/scratch/kocevski/66322/expmap_602726401_602985601_4FGL_J1357.1+1921_daily_bin1402.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/66322/ltcube_602726401_602985601_4FGL_J1357.1+1921_daily_bin1402.fits
.....................!
real 189.85
user 184.89
sys 4.61

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/66322/ft1_filtered_4FGL_J1357.1+1921_daily_bin1402.fits scfile=/scratch/kocevski/66322/ft2_4FGL_J1357.1+1921_daily_bin1402.fits outfile=/scratch/kocevski/66322/cmap_602726401_602985601_4FGL_J1357.1+1921_daily_bin1402.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.52
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/66322/ft1_filtered_4FGL_J1357.1+1921_daily_bin1402.fits scfile=/scratch/kocevski/66322/ft2_4FGL_J1357.1+1921_daily_bin1402.fits outfile=/scratch/kocevski/66322/cmap_HighResolution_602726401_602985601_4FGL_J1357.1+1921_daily_bin1402.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.56
user 0.38
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/66322/ft1_filtered_4FGL_J1357.1+1921_daily_bin1402.fits', '/scratch/kocevski/66322/ft2_4FGL_J1357.1+1921_daily_bin1402.fits', expMap='/scratch/kocevski/66322/expmap_602726401_602985601_4FGL_J1357.1+1921_daily_bin1402.fits', expCube='/scratch/kocevski/66322/ltcube_602726401_602985601_4FGL_J1357.1+1921_daily_bin1402.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/66322/Model_4FGL_J1357.1+1921_daily_bin1402.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/66322/ft1_filtered_4FGL_J1357.1+1921_daily_bin1402.fits
Spacecraft file(s): /scratch/kocevski/66322/ft2_4FGL_J1357.1+1921_daily_bin1402.fits
Exposure map: /scratch/kocevski/66322/expmap_602726401_602985601_4FGL_J1357.1+1921_daily_bin1402.fits
Exposure cube: /scratch/kocevski/66322/ltcube_602726401_602985601_4FGL_J1357.1+1921_daily_bin1402.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/66322/Model_4FGL_J1357.1+1921_daily_bin1402.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) = 6581.6184695

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .11069E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .61560       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .22538E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    15.403       1.0000         .10000E-03   10000.    
     5 'Prefactor '    9.2798       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10081E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .15275E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    12.104       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .11843E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.5019       1.0000         .10000E-03   10000.    
    12 'Prefactor '    61.414       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10209E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    4.2478       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .43979       1.0000         .10000E-03   10000.    
    16 'norm      '    3.4051       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .17558E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.0466       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.0777       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=   6581.455     FROM MIGRAD    STATUS=CONVERGED    393 CALLS     1654 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    7.3874        .18767E-07** at limit **
   2  norm          .59141        12.587        .76910E-05    .12147E-03
   3  Prefactor     .10000E-03    12.835        .34627E-06** at limit **
   4  norm          15.457        12.443       -.82179E-06    .69149E-04
   5  Prefactor     9.1229        17.425        .16415E-06    .80023E-04
   6  Prefactor     .10000E-03    5.8998        .20289E-06** at limit **
   7  Prefactor     .10000E-03    14.429       -.84013E-07** at limit **
   8  Prefactor     .10000E-03    1.2976        .18369E-06** at limit **
   9  Prefactor     12.082        6.1064       -.53671E-07   -.11390E-03
  10  Prefactor     .10000E-03    10.660       -.34502E-06** at limit **
  11  Prefactor     4.4644        10.379        .76445E-06    .22169E-03
  12  Prefactor     61.354        29.643       -.46376E-06   -.33673E-03
  13  Prefactor     .10000E-03    4.3000       -.20126E-05** at limit **
  14  norm          4.2471        2.3226       -.50225E-08    .17843E-04
  15  Prefactor     .46685        6.3682        .50802E-05   -.66247E-03
  16  norm          3.4038        2.3470        .16325E-06    .66028E-03
  17  Prefactor     .10000E-03    24.408        .11069E-06** at limit **
  18  Normalizat    1.0467        .18409        .19553E-05    .39206E-03
  19  Prefactor     1.0778        .15787       -.14212E-05    .24572E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.591415
  Prefactor  = 0.0001
  norm       = 15.4565
  Prefactor  = 9.12286
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.0819
  Prefactor  = 0.0001
  Prefactor  = 4.4644
  Prefactor  = 61.3541
  Prefactor  = 0.000100005
  norm       = 4.24715
  Prefactor  = 0.466853
  norm       = 3.40383
  Prefactor  = 0.0001
  Normalizat = 1.04669
  Prefactor  = 1.07778
 **********
 **   18 **HESSE 
 **********

 FCN=   6581.455     FROM HESSE     STATUS=OK           270 CALLS     1924 TOTAL
                     EDM=   .41E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    7.3889        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .59141        17.204        .35287E-02   -1.5554    
   3  Prefactor     .10000E-03    12.850        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          15.457        12.224        .10205E-03   -1.4921    
   5  Prefactor     9.1229        17.446        .13156E-03   -1.5104    
   6  Prefactor     .10000E-03    5.9091        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    14.432        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    1.3063        .90299E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     12.082        6.1099        .11514E-03   -1.5013    
  10  Prefactor     .10000E-03    10.864        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     4.4644        10.390        .18975E-03   -1.5285    
  12  Prefactor     61.354        29.739        .25600E-03   -1.4140    
  13  Prefactor     .10000E-03    4.6523        .16992E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          4.2471        2.3229        .88422E-04   -1.5296    
  15  Prefactor     .46685        13.005        .25256E-02   -1.5571    
  16  norm          3.4038        2.3471        .99253E-04   -1.5339    
  17  Prefactor     .10000E-03    24.569        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    1.0467        .21699        .26437E-03   -.91482    
  19  Prefactor     1.0778        .18438        .22476E-03   -.90180    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.05347e-09
Minuit parameter uncertainties:
  1  1.80413e-06
  2  6.38107
  3  0.0001071
  4  12.2255
  5  17.4561
  6  3.02199e-05
  7  3.89919e-05
  8  1.31298e-05
  9  6.11025
  10  8.28974e-05
  11  10.3939
  12  29.746
  13  0.000305042
  14  2.32291
  15  4.92868
  16  2.34716
  17  1.43179e-05
  18  0.217175
  19  0.184489
Done.

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

Extracting fit parameters...

4FGL J1357.1+1921
   Spectrum: PowerLaw
267    Prefactor:  4.464e+00  1.039e+01  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.078e+00  1.845e-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.047e+00  2.172e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/66322/likelihoodResults_602726401_602985601_4FGL_J1357.1+1921_daily_bin1402.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) = 6580.99545182
delta logL = 0.459928373537

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6580.95152885
delta logL = 0.503851343254

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.3891       1.0000         .10000E-03   10000.    
     2 'Index     '    1.8364       1.0000          .0000       10.000    
     3 'Normalizat'    1.0637       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0620       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=   6580.952     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      216 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.3891        9.0794        .36887E-02    .16597E-02
   2  Index         1.8365        .50292        .20611       -.73526E-04
   3  Normalizat    1.0637        .17910        .59350E-01    .11709E-04
   4  Prefactor     1.0620        .15520        .39253E-01    .66466E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.38908
  Index      = 1.83647
  Normalizat = 1.06368
  Prefactor  = 1.06202
 **********
 **   18 **HESSE 
 **********

 FCN=   6580.952     FROM HESSE     STATUS=OK            31 CALLS      247 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.3891        10.693        .14755E-03   -1.5164    
   2  Index         1.8365        .71338        .10258E-01   -.68504    
   3  Normalizat    1.0637        .21072        .26247E-03   -.90926    
   4  Prefactor     1.0620        .18264        .22605E-03   -.90690    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.35811e-09
Minuit parameter uncertainties:
  1  10.6956
  2  0.717481
  3  0.210888
  4  0.182745
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/66322': 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) = 6580.95152885
delta logL = 0.503851350995

Extracting fit parameters...

4FGL J1357.1+1921
   Spectrum: PowerLaw
267    Prefactor:  7.389e+00  1.070e+01  1.000e-04  1.000e+04 ( 1.000e-12)
268        Index:  1.836e+00  7.175e-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.062e+00  1.827e-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.064e+00  2.109e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.23
Ra Dec: 209.290 19.361
Photon Index (Free Index): 1.84 +/- 0.72
Photon Flux (Free Index): 1.47e-08 +/- 2.35e-08
Energy Flux (Free Index): 1.58e-05 +/- 2.55e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/66322/cmap_HighResolution_602726401_602985601_4FGL_J1357.1+1921_daily_bin1402.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.83e-03', comment='SUCCESS', energy_flux2='1.58e-05', dlogl='5.04e-01', photon_flux2='1.47e-08', job_status='DONE', time_completed='2021-09-08 18:10:13.694003', photon_index_error2='0.72', photon_index2='1.84', ts='0.21', fit_tolerance='1e-08', GAL='1.08', photon_index_error='0.00', photon_flux_upper_limit='1.12e-07', energy_flux_error2='2.55e-05', EG='1.05', time_epoch_completed='1631149813.69', return_code='0', job_id='66322', GAL2='1.06', EG2='1.06', return_code2='0', photon_flux_error2='2.35e-08', ts2='1.23', photon_index='2.76' WHERE bin_id='1402' AND source_name='4FGL J1357.1+1921' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 18:10:13 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0281>
Subject: Job 66322: <4FGL_J1357.1+1921_daily_bin1402> in cluster <slac> Done

Job <4FGL_J1357.1+1921_daily_bin1402> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Wed Sep  8 18:00:51 2021
Job was executed on host(s) <bullet0281>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 18:00:54 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep  8 18:00:54 2021
Terminated at Wed Sep  8 18:10:16 2021
Results reported at Wed Sep  8 18:10:16 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1357.1+1921_daily_bin1402 209.29 19.3608 602726401 602985601 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 :                                   530.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             378.40 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   559 sec.
    Turnaround time :                            565 sec.

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

