/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 22 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 = 7502
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1357.1+1921_daily_bin1552
RA = 209.29, Dec = 19.3608
tmin = 641606401, tmax = 641865601
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='66535', job_status='RUN', time_executed='2021-09-08 18:01:44.597563', time_epoch_executed='1631149304.6' WHERE source_name='4FGL J1357.1+1921' and cadence='daily' and bin_id='1552'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/66535

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/66535/ft1_4FGL_J1357.1+1921_daily_bin1552.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/66535/ft2_4FGL_J1357.1+1921_daily_bin1552.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/66535/ft1_4FGL_J1357.1+1921_daily_bin1552.fits outfile=/scratch/kocevski/66535/ft1_filteredMKT_4FGL_J1357.1+1921_daily_bin1552.fits ra=209.29 dec=19.3608 rad=12.0 tmin=641606401.0 tmax=641865601.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 2.54
user 2.37
sys 0.17

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/66535/ft1_filtered_4FGL_J1357.1+1921_daily_bin1552.fits" evtable="EVENTS" scfile=/scratch/kocevski/66535/ft2_4FGL_J1357.1+1921_daily_bin1552.fits sctable="SC_DATA" outfile=/scratch/kocevski/66535/ltcube_641606401_641865601_4FGL_J1357.1+1921_daily_bin1552.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/66535/ft2_4FGL_J1357.1+1921_daily_bin1552.fits
.....................!
real 15.55
user 15.13
sys 0.38

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/66535/ft1_filtered_4FGL_J1357.1+1921_daily_bin1552.fits evtable="EVENTS" scfile=/scratch/kocevski/66535/ft2_4FGL_J1357.1+1921_daily_bin1552.fits sctable="SC_DATA" expcube=/scratch/kocevski/66535/ltcube_641606401_641865601_4FGL_J1357.1+1921_daily_bin1552.fits outfile=/scratch/kocevski/66535/expmap_641606401_641865601_4FGL_J1357.1+1921_daily_bin1552.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/66535/ltcube_641606401_641865601_4FGL_J1357.1+1921_daily_bin1552.fits
.....................!
real 190.82
user 184.65
sys 5.85

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Added 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/66535/ft1_filtered_4FGL_J1357.1+1921_daily_bin1552.fits scfile=/scratch/kocevski/66535/ft2_4FGL_J1357.1+1921_daily_bin1552.fits outfile=/scratch/kocevski/66535/cmap_641606401_641865601_4FGL_J1357.1+1921_daily_bin1552.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.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/66535/ft1_filtered_4FGL_J1357.1+1921_daily_bin1552.fits scfile=/scratch/kocevski/66535/ft2_4FGL_J1357.1+1921_daily_bin1552.fits outfile=/scratch/kocevski/66535/cmap_HighResolution_641606401_641865601_4FGL_J1357.1+1921_daily_bin1552.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.55
user 0.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10026E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    11.567       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10116E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    5.0397       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10310E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10231E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    5.3744       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10416E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    24.613       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    1.2022       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .46122E-01   1.0000         .10000E-03   10000.    
    16 'norm      '    2.6543       1.0000         .10000E-03   10000.    
    17 'Prefactor '    20.761       1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.0625       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.1038       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=   6227.774     FROM MIGRAD    STATUS=CONVERGED    400 CALLS     1872 TOTAL
                     EDM=   .62E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    16.044       -.41830E-05** at limit **
   2  norm          11.568        7.9954        .41537E-06   -.46459E-04
   3  Prefactor     .10000E-03    12.092        .94173E-06** at limit **
   4  norm          5.0405        8.6018        .45593E-06   -.14429E-03
   5  Prefactor     .10000E-03    19.383        .87606E-05** at limit **
   6  Prefactor     .10000E-03    23.764       -.49147E-05** at limit **
   7  Prefactor     .10000E-03    30.799       -.79344E-06** at limit **
   8  Prefactor     5.3747        4.4977        .46508E-06   -.34679E-03
   9  Prefactor     .10000E-03    4.3385        .65128E-07** at limit **
  10  Prefactor     .10000E-03    8.8472       -.26570E-06** at limit **
  11  Prefactor     .10000E-03    4.8960        .13966E-06** at limit **
  12  Prefactor     24.630        40.252        .20872E-04    .93167E-04
  13  Prefactor     .10000E-03    2.8306       -.20606E-06** at limit **
  14  norm          1.2022        1.4567        .21142E-06   -.45007E-04
  15  Prefactor     .10042E-03    5.4203       -.44893E-05** at limit **
  16  norm          2.6543        2.4592       -.94676E-06   -.14353E-03
  17  Prefactor     20.815        44.165        .75221E-04    .16395E-03
  18  Normalizat    1.0625        .19137       -.10957E-05    .29260E-03
  19  Prefactor     1.1039        .16533       -.54215E-05    .72001E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 11.5678
  Prefactor  = 0.0001
  norm       = 5.04052
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.37475
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 24.6305
  Prefactor  = 0.0001
  norm       = 1.20219
  Prefactor  = 0.000100423
  norm       = 2.65429
  Prefactor  = 20.815
  Normalizat = 1.06245
  Prefactor  = 1.10385
 **********
 **   18 **HESSE 
 **********

 FCN=   6227.774     FROM HESSE     STATUS=OK           268 CALLS     2140 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    16.145        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          11.568        7.9666        .11779E-03   -1.5028    
   3  Prefactor     .10000E-03    12.094        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          5.0405        8.5688        .17912E-03   -1.5259    
   5  Prefactor     .10000E-03    19.542        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    24.052        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    30.807        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     5.3747        4.5180        .14497E-03   -1.5244    
   9  Prefactor     .10000E-03    4.3677        .16051E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    8.8669        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    4.9166        .17051E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     24.630        40.305        .80742E-04   -1.4715    
  13  Prefactor     .10000E-03    2.8344        .12965E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          1.2022        1.4389        .10160E-03   -1.5489    
  15  Prefactor     .10042E-03    6.5693        .53129E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          2.6543        2.4510        .11407E-03   -1.5382    
  17  Prefactor     20.815        44.432        .87906E-04   -1.4795    
  18  Normalizat    1.0625        .22533        .26878E-03   -.90967    
  19  Prefactor     1.1039        .19402        .22825E-03   -.89344    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.3782e-09
Minuit parameter uncertainties:
  1  6.26965e-05
  2  7.96734
  3  1.36028e-05
  4  8.57086
  5  7.78346e-05
  6  0.000176925
  7  4.54228e-05
  8  4.51833
  9  2.31218e-05
  10  2.56925e-05
  11  2.39104e-05
  12  40.3493
  13  2.8282e-05
  14  1.43898
  15  0.00333304
  16  2.45105
  17  44.5031
  18  0.225531
  19  0.194148
Done.

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

Extracting fit parameters...

4FGL J1357.1+1921
   Spectrum: PowerLaw
267    Prefactor:  1.000e-04  2.391e-05  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.104e+00  1.941e-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.062e+00  2.255e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/66535/likelihoodResults_641606401_641865601_4FGL_J1357.1+1921_daily_bin1552.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) = 6227.77471258
delta logL = -0.000968276386629

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6227.77374432
delta logL = -1.30003172671e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7585       1.0000          .0000       10.000    
     3 'Normalizat'    1.0625       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1039       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=   6227.774     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      240 TOTAL
                     EDM=   .19E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    203.45        .17052E-02** at limit **
   2  Index         2.7672        8.5151        .50000       -.12150E-05
   3  Normalizat    1.0625        .32271E-01    .26877E-03   -.97709E-05
   4  Prefactor     1.1038        .28027E-01    .22825E-03   -.85668E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00010001
  Index      = 2.76716
  Normalizat = 1.06246
  Prefactor  = 1.10385
 **********
 **   18 **HESSE 
 **********

 FCN=   6227.774     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      269 TOTAL
                     EDM=   .97E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    755.89        .34104E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.7672        5.0758        .50000       -.46293    
   3  Normalizat    1.0625        .78997E-01    .10751E-04   -.90966    
   4  Prefactor     1.1038        .68606E-01    .91302E-05   -.89344    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 9.68833e-10
Minuit parameter uncertainties:
  1  0.00567265
  2  2117.96
  3  0.0790055
  4  0.0686112
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/66535': 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): 102
logL (Free Index) = 6227.7737443
delta logL = 2.40379449679e-09

Extracting fit parameters...

4FGL J1357.1+1921
   Spectrum: PowerLaw
267    Prefactor:  1.000e-04  5.673e-03  1.000e-04  1.000e+04 ( 1.000e-12)
268        Index:  2.767e+00  2.118e+03  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.104e+00  6.861e-02  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.062e+00  7.901e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 209.290 19.361

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/66535/cmap_HighResolution_641606401_641865601_4FGL_J1357.1+1921_daily_bin1552.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.01e-03', job_status='DONE', photon_flux_upper_limit='7.62e-08', time_completed='2021-09-08 18:10:38.592601', job_id='66535', GAL2='1.10', fit_tolerance='1e-08', EG2='1.06', EG='1.06', time_epoch_completed='1631149838.59', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.10', dlogl='2.40e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.76' WHERE bin_id='1552' AND source_name='4FGL J1357.1+1921' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 18:10:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0042>
Subject: Job 66535: <4FGL_J1357.1+1921_daily_bin1552> in cluster <slac> Done

Job <4FGL_J1357.1+1921_daily_bin1552> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Wed Sep  8 18:01:08 2021
Job was executed on host(s) <bullet0042>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 18:01:10 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:01:10 2021
Terminated at Wed Sep  8 18:10:39 2021
Results reported at Wed Sep  8 18:10:39 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1357.1+1921_daily_bin1552 209.29 19.3608 641606401 641865601 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 :                                   529.12 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             289.79 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   568 sec.
    Turnaround time :                            571 sec.

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

