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


Performing analysis on: 4FGL_J1357.1+1921_daily_bin120
RA = 209.29, Dec = 19.3608
tmin = 270432001, tmax = 270691201
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='60930', job_status='RUN', time_executed='2021-09-08 17:47:52.699479', time_epoch_executed='1631148472.7' WHERE source_name='4FGL J1357.1+1921' and cadence='daily' and bin_id='120'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/60930

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/60930/ft1_4FGL_J1357.1+1921_daily_bin120.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/60930/ft2_4FGL_J1357.1+1921_daily_bin120.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/60930/ft1_4FGL_J1357.1+1921_daily_bin120.fits outfile=/scratch/kocevski/60930/ft1_filteredMKT_4FGL_J1357.1+1921_daily_bin120.fits ra=209.29 dec=19.3608 rad=12.0 tmin=270432001.0 tmax=270691201.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.64
user 1.47
sys 0.16

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/60930/ft2_4FGL_J1357.1+1921_daily_bin120.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/60930/ft1_filteredMKT_4FGL_J1357.1+1921_daily_bin120.fits evtable="EVENTS" outfile="/scratch/kocevski/60930/ft1_filtered_4FGL_J1357.1+1921_daily_bin120.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.65
user 0.31
sys 0.28

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/60930/ft1_filtered_4FGL_J1357.1+1921_daily_bin120.fits" evtable="EVENTS" scfile=/scratch/kocevski/60930/ft2_4FGL_J1357.1+1921_daily_bin120.fits sctable="SC_DATA" outfile=/scratch/kocevski/60930/ltcube_270432001_270691201_4FGL_J1357.1+1921_daily_bin120.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/60930/ft2_4FGL_J1357.1+1921_daily_bin120.fits
.....................!
real 12.75
user 12.38
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/60930/ft1_filtered_4FGL_J1357.1+1921_daily_bin120.fits evtable="EVENTS" scfile=/scratch/kocevski/60930/ft2_4FGL_J1357.1+1921_daily_bin120.fits sctable="SC_DATA" expcube=/scratch/kocevski/60930/ltcube_270432001_270691201_4FGL_J1357.1+1921_daily_bin120.fits outfile=/scratch/kocevski/60930/expmap_270432001_270691201_4FGL_J1357.1+1921_daily_bin120.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/60930/ltcube_270432001_270691201_4FGL_J1357.1+1921_daily_bin120.fits
.....................!
real 192.50
user 187.18
sys 4.99

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/60930/ft1_filtered_4FGL_J1357.1+1921_daily_bin120.fits scfile=/scratch/kocevski/60930/ft2_4FGL_J1357.1+1921_daily_bin120.fits outfile=/scratch/kocevski/60930/cmap_270432001_270691201_4FGL_J1357.1+1921_daily_bin120.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.55
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/60930/ft1_filtered_4FGL_J1357.1+1921_daily_bin120.fits scfile=/scratch/kocevski/60930/ft2_4FGL_J1357.1+1921_daily_bin120.fits outfile=/scratch/kocevski/60930/cmap_HighResolution_270432001_270691201_4FGL_J1357.1+1921_daily_bin120.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.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    11.119       1.0000         .10000E-03   10000.    
     2 'norm      '    .10057E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    9.5878       1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.7923       1.0000         .10000E-03   10000.    
     6 'Prefactor '    38.549       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .93206       1.0000         .10000E-03   10000.    
    10 'Prefactor '    18.527       1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.2599       1.0000         .10000E-03   10000.    
    12 'Prefactor '    7.2585       1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.2850       1.0000         .10000E-03   10000.    
    14 'norm      '    8.0427       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.2976       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .79344       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=   8358.107     FROM MIGRAD    STATUS=CONVERGED    371 CALLS     1611 TOTAL
                     EDM=   .24E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          11.116        14.178       -.12173E-05   -.23352E-05
   2  norm          .10000E-03    3.2243        .16596E-06** at limit **
   3  Prefactor     .10000E-03    28.036        .18529E-04** at limit **
   4  norm          9.5840        7.4507       -.11829E-05   -.11274E-04
   5  Prefactor     4.7851        15.341       -.58311E-05   -.34266E-05
   6  Prefactor     38.546        21.392       -.17399E-05    .18994E-04
   7  Prefactor     .10000E-03    29.546       -.18941E-04** at limit **
   8  Prefactor     .10000E-03    .70069        .24192E-07** at limit **
   9  Prefactor     .93230        2.2290        .64857E-07    .23648E-05
  10  Prefactor     18.525        12.329       -.39022E-06    .16171E-04
  11  Prefactor     1.2583        3.2755        .33234E-06   -.81357E-03
  12  Prefactor     7.2584        9.1417        .59452E-07    .16034E-05
  13  Prefactor     3.2853        3.9554        .19401E-06   -.70237E-03
  14  norm          8.0427        2.8122        .42207E-06    .30892E-04
  15  Prefactor     .10000E-03    1.2896       -.11413E-07** at limit **
  16  norm          .10000E-03    .87955        .82832E-08** at limit **
  17  Prefactor     .10000E-03    13.188       -.15948E-06** at limit **
  18  Normalizat    1.2979        .16258        .10458E-05   -.10556E-03
  19  Prefactor     .79320        .13415       -.59064E-06    .69882E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 11.1158
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 9.58398
  Prefactor  = 4.78508
  Prefactor  = 38.546
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.932298
  Prefactor  = 18.5254
  Prefactor  = 1.25826
  Prefactor  = 7.25836
  Prefactor  = 3.2853
  norm       = 8.04266
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.29788
  Prefactor  = 0.793201
 **********
 **   18 **HESSE 
 **********

 FCN=   8358.107     FROM HESSE     STATUS=OK           272 CALLS     1883 TOTAL
                     EDM=   .53E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          11.116        14.177        .12015E-03   -1.5041    
   2  norm          .10000E-03    3.2570        .16008E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    28.100        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          9.5840        7.4577        .12942E-03   -1.5089    
   5  Prefactor     4.7851        15.325        .18378E-03   -1.5270    
   6  Prefactor     38.546        21.410        .64555E-04   -1.4465    
   7  Prefactor     .10000E-03    29.654        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    .70120        .74735E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .93230        1.7525        .20423E-02   -1.5515    
  10  Prefactor     18.525        12.314        .93051E-04   -1.4847    
  11  Prefactor     1.2583        20.087        .19872E-02   -1.5484    
  12  Prefactor     7.2584        9.1391        .14888E-03   -1.5169    
  13  Prefactor     3.2853        4.0524        .99127E-03   -1.5345    
  14  norm          8.0427        2.8136        .87685E-04   -1.5141    
  15  Prefactor     .10000E-03    1.2996        .10136E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    .90686        .16738E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    13.233        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    1.2979        .19902        .23584E-03   -.83630    
  19  Prefactor     .79320        .16151        .24510E-03   -.99979    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.31175e-09
Minuit parameter uncertainties:
  1  14.1812
  2  2.10031e-05
  3  4.64511e-06
  4  7.4584
  5  15.3374
  6  21.4139
  7  1.40121e-05
  8  6.6693e-07
  9  1.75264
  10  12.3159
  11  10.0583
  12  9.14083
  13  4.05272
  14  2.81362
  15  1.13124e-06
  16  1.31331e-06
  17  3.7744e-06
  18  0.199134
  19  0.161607
Done.

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

Extracting fit parameters...

4FGL J1357.1+1921
   Spectrum: PowerLaw
267    Prefactor:  1.258e+00  1.006e+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:  7.932e-01  1.616e-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.298e+00  1.991e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.02
Ra Dec: 209.290 19.361
Photon Flux Upper Limit: 9.32e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.36e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/60930/likelihoodResults_270432001_270691201_4FGL_J1357.1+1921_daily_bin120.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): 102
logL (Free Index) = 8357.95737638
delta logL = 0.149728937513

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8357.67067678
delta logL = 0.436428543693

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .57088E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    9.9999       1.0000          .0000       10.000    
     3 'Normalizat'    1.2648       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .81335       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8357.671     FROM MIGRAD    STATUS=CONVERGED    108 CALLS      401 TOTAL
                     EDM=   .91E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .57022E-03    .80580E-03    .30333E-04** at limit **
   2  Index        10.0000        6.2476        .50000    ** at limit **
   3  Normalizat    1.2644        .19589        .23843E-03   -.71523E-05
   4  Prefactor     .81371        .16217        .24230E-03   -.93841E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000570222
  Index      = 10
  Normalizat = 1.26437
  Prefactor  = 0.813706
 **********
 **   18 **HESSE 
 **********

 FCN=   8357.671     FROM HESSE     STATUS=OK            31 CALLS      432 TOTAL
                     EDM=   .11E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .57022E-03    .77443E-03    .60665E-05   -1.5704    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index        10.0000        6.1627        .50000        1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    1.2644        .19624        .95371E-05   -.84636    
   4  Prefactor     .81371        .16241        .96918E-05   -.99225    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.10468e-11
Minuit parameter uncertainties:
  1  0.000774432
  2  1.67404e-05
  3  0.196358
  4  0.162501
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/60930': 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) = 8357.67067114
delta logL = 0.436434180087

Extracting fit parameters...

4FGL J1357.1+1921
   Spectrum: PowerLaw
267    Prefactor:  5.702e-04  7.744e-04  1.000e-04  1.000e+04 ( 1.000e-12)
268        Index:  1.000e+01  1.674e-05  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:  8.137e-01  1.625e-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.264e+00  1.964e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.02
Ra Dec: 209.290 19.361

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/60930/cmap_HighResolution_270432001_270691201_4FGL_J1357.1+1921_daily_bin120.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.36e-03', job_status='DONE', photon_flux_upper_limit='9.32e-08', time_completed='2021-09-08 17:58:53.979503', job_id='60930', GAL2='0.81', fit_tolerance='1e-08', EG2='1.26', EG='1.30', time_epoch_completed='1631149133.98', return_code2='0', ts='0.02', comment='SUCCESS', return_code='0', GAL='0.79', dlogl='4.36e-01', ts2='0.92', photon_index_error='0.00', photon_index='2.76' WHERE bin_id='120' AND source_name='4FGL J1357.1+1921' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 17:58:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0098>
Subject: Job 60930: <4FGL_J1357.1+1921_daily_bin120> in cluster <slac> Done

Job <4FGL_J1357.1+1921_daily_bin120> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Wed Sep  8 17:45:23 2021
Job was executed on host(s) <bullet0098>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 17:45:24 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:45:24 2021
Terminated at Wed Sep  8 17:58:55 2021
Results reported at Wed Sep  8 17:58:55 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1357.1+1921_daily_bin120 209.29 19.3608 270432001 270691201 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.38 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             270.08 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   810 sec.
    Turnaround time :                            812 sec.

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

