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


Performing analysis on: 4FGL_J1357.1+1921_daily_bin91
RA = 209.29, Dec = 19.3608
tmin = 262915201, tmax = 263174401
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='60884', job_status='RUN', time_executed='2021-09-08 17:48:18.249270', time_epoch_executed='1631148498.25' WHERE source_name='4FGL J1357.1+1921' and cadence='daily' and bin_id='91'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/60884

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

Retrieving the FT1 file...

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

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

Retrieving 41 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/60884/ft1_4FGL_J1357.1+1921_daily_bin91.fits


Retrieving the FT1 file...

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

Retrieving 41 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/60884/ft2_4FGL_J1357.1+1921_daily_bin91.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/60884/ft1_4FGL_J1357.1+1921_daily_bin91.fits outfile=/scratch/kocevski/60884/ft1_filteredMKT_4FGL_J1357.1+1921_daily_bin91.fits ra=209.29 dec=19.3608 rad=12.0 tmin=262915201.0 tmax=263174401.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.27
user 1.09
sys 0.17

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/60884/ft1_filtered_4FGL_J1357.1+1921_daily_bin91.fits" evtable="EVENTS" scfile=/scratch/kocevski/60884/ft2_4FGL_J1357.1+1921_daily_bin91.fits sctable="SC_DATA" outfile=/scratch/kocevski/60884/ltcube_262915201_263174401_4FGL_J1357.1+1921_daily_bin91.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/60884/ft2_4FGL_J1357.1+1921_daily_bin91.fits
.....................!
real 13.88
user 13.50
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/60884/ft1_filtered_4FGL_J1357.1+1921_daily_bin91.fits evtable="EVENTS" scfile=/scratch/kocevski/60884/ft2_4FGL_J1357.1+1921_daily_bin91.fits sctable="SC_DATA" expcube=/scratch/kocevski/60884/ltcube_262915201_263174401_4FGL_J1357.1+1921_daily_bin91.fits outfile=/scratch/kocevski/60884/expmap_262915201_263174401_4FGL_J1357.1+1921_daily_bin91.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/60884/ltcube_262915201_263174401_4FGL_J1357.1+1921_daily_bin91.fits
.....................!
real 191.44
user 185.10
sys 5.90

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/60884/ft1_filtered_4FGL_J1357.1+1921_daily_bin91.fits scfile=/scratch/kocevski/60884/ft2_4FGL_J1357.1+1921_daily_bin91.fits outfile=/scratch/kocevski/60884/cmap_262915201_263174401_4FGL_J1357.1+1921_daily_bin91.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.34
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/60884/ft1_filtered_4FGL_J1357.1+1921_daily_bin91.fits scfile=/scratch/kocevski/60884/ft2_4FGL_J1357.1+1921_daily_bin91.fits outfile=/scratch/kocevski/60884/cmap_HighResolution_262915201_263174401_4FGL_J1357.1+1921_daily_bin91.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.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    2.0641       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    13.819       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    98.360       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.1577       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .11095E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10430E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    6.6693       1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.7724       1.0000         .10000E-03   10000.    
    16 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    15.495       1.0000         .10000E-03   10000.    
    18 'Normalizat'    .97235       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .90845       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=   3877.679     FROM MIGRAD    STATUS=CONVERGED    384 CALLS     1837 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    12.473        .17693E-05** at limit **
   2  norm          2.0663        8.0778        .60977E-06   -.21705E-03
   3  Prefactor     .10001E-03    12.399        .35563E-05** at limit **
   4  norm          13.819        11.545       -.20872E-06   -.15419E-03
   5  Prefactor     .10000E-03    20.679       -.25395E-05** at limit **
   6  Prefactor     .10000E-03    10.090        .82553E-06** at limit **
   7  Prefactor     98.364        67.957        .95410E-06    .69647E-04
   8  Prefactor     .10000E-03    2.1762        .41416E-07** at limit **
   9  Prefactor     1.1612        6.1830        .28415E-05    .10436E-03
  10  Prefactor     .10001E-03    10.853       -.51619E-05** at limit **
  11  Prefactor     .10001E-03    36.443        .49039E-05** at limit **
  12  Prefactor     .10001E-03    67.078       -.51349E-05** at limit **
  13  Prefactor     .10000E-03    4.2985       -.31389E-06** at limit **
  14  norm          6.6697        3.4237        .59593E-07    .11304E-04
  15  Prefactor     4.7705        6.6459        .37486E-05   -.13884E-02
  16  norm          .10000E-03    .95041       -.14649E-07** at limit **
  17  Prefactor     15.503        41.542        .19153E-05    .97927E-04
  18  Normalizat    .97216        .20533       -.60088E-06   -.88712E-04
  19  Prefactor     .90845        .17772       -.11456E-05   -.37909E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100001
  norm       = 2.06633
  Prefactor  = 0.000100005
  norm       = 13.8192
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 98.3635
  Prefactor  = 0.0001
  Prefactor  = 1.1612
  Prefactor  = 0.000100011
  Prefactor  = 0.000100007
  Prefactor  = 0.000100009
  Prefactor  = 0.0001
  norm       = 6.66974
  Prefactor  = 4.77046
  norm       = 0.0001
  Prefactor  = 15.5027
  Normalizat = 0.972157
  Prefactor  = 0.90845
 **********
 **   18 **HESSE 
 **********

 FCN=   3877.679     FROM HESSE     STATUS=OK           262 CALLS     2099 TOTAL
                     EDM=   .44E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    12.598        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          2.0663        7.9866        .28760E-03   -1.5420    
   3  Prefactor     .10001E-03    12.808        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          13.819        11.397        .10775E-03   -1.4964    
   5  Prefactor     .10000E-03    21.002        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    10.126        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     98.364        67.867        .40533E-04   -1.3721    
   8  Prefactor     .10000E-03    2.1938        .89702E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     1.1612        6.1880        .29442E-03   -1.5492    
  10  Prefactor     .10001E-03    11.745        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10001E-03    38.595        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10001E-03    68.486        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    4.3196        .12614E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          6.6697        3.4243        .80042E-04   -1.5191    
  15  Prefactor     4.7705        7.3581        .92086E-03   -1.5271    
  16  norm          .10000E-03    .95534        .59274E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     15.503        41.946        .10175E-03   -1.4920    
  18  Normalizat    .97216        .24147        .23849E-03   -.93969    
  19  Prefactor     .90845        .20889        .21262E-03   -.95846    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.37796e-09
Minuit parameter uncertainties:
  1  0.000260981
  2  7.9907
  3  0.000515716
  4  11.3984
  5  0.000447883
  6  0.000110596
  7  67.9205
  8  3.47491e-06
  9  5.36177
  10  0.00070339
  11  0.00105622
  12  0.00158943
  13  2.18647e-05
  14  3.42436
  15  7.3595
  16  1.65359e-06
  17  42.0255
  18  0.241736
  19  0.209078
Done.

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

Extracting fit parameters...

4FGL J1357.1+1921
   Spectrum: PowerLaw
267    Prefactor:  1.000e-04  1.056e-03  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:  9.085e-01  2.091e-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:  9.722e-01  2.417e-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: 1.17e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.22e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/60884/likelihoodResults_262915201_263174401_4FGL_J1357.1+1921_daily_bin91.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) = 3877.67952528
delta logL = -0.00012363551059

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3877.67940193
delta logL = -2.92812273983e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .14228E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.8238       1.0000          .0000       10.000    
     3 'Normalizat'    .97221       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90845       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   3877.675     FROM MIGRAD    STATUS=FAILED       161 CALLS      321 TOTAL
                     EDM=   .20E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .40775        265.12        .33500E-02   -.43635E-02
   2  Index         3.9940        6.7041        .50000        .44014E-05
   3  Normalizat    .96593        .28441E-01    .23849E-03    .68692E-04
   4  Prefactor     .91068        .24616E-01    .21262E-03    .10578E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   3877.675     FROM SIMPLEX   STATUS=UNCHANGED     81 CALLS      402 TOTAL
                     EDM=   .14E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .40775        265.12        .63267E-03   -.43635E-02
   2  Index         3.9940        6.7041        .71623E-02    .44014E-05
   3  Normalizat    .96593        .28441E-01    .13669E-03    .68692E-04
   4  Prefactor     .91068        .24616E-01    .27283E-04    .10578E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   3877.675     FROM MIGRAD    STATUS=CONVERGED     42 CALLS      444 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .40776        25.666        .66999E-03   -.74491E-05
   2  Index         3.9940        6.5941        .21237E-01    .24653E-04
   3  Normalizat    .96593        .24515        .95395E-05    .72458E-04
   4  Prefactor     .91068        .20764        .42524E-04    .10739E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.407758
  Index      = 3.994
  Normalizat = 0.965929
  Prefactor  = 0.910679
 **********
 **   18 **HESSE 
 **********

 FCN=   3877.675     FROM HESSE     STATUS=OK            27 CALLS      471 TOTAL
                     EDM=   .25E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .40776        21.510        .26800E-04   -1.5836    
   2  Index         3.9940        6.7955        .42473E-02   -.20258    
   3  Normalizat    .96593        .24558        .19079E-05   -.94181    
   4  Prefactor     .91068        .20768        .85048E-05   -.95769    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.49168e-11
Minuit parameter uncertainties:
  1  5.92466
  2  8.6809
  3  0.245868
  4  0.207859
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/60884': 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) = 3877.67460954
delta logL = 0.00479210466028

Extracting fit parameters...

4FGL J1357.1+1921
   Spectrum: PowerLaw
267    Prefactor:  4.078e-01  5.925e+00  1.000e-04  1.000e+04 ( 1.000e-12)
268        Index:  3.994e+00  8.681e+00  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:  9.107e-01  2.079e-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:  9.659e-01  2.459e-01  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/60884/cmap_HighResolution_262915201_263174401_4FGL_J1357.1+1921_daily_bin91.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.22e-03', job_status='DONE', photon_flux_upper_limit='1.17e-07', time_completed='2021-09-08 17:56:37.584171', job_id='60884', GAL2='0.91', fit_tolerance='1e-08', EG2='0.97', EG='0.97', time_epoch_completed='1631148997.58', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.91', dlogl='4.79e-03', ts2='0.01', photon_index_error='0.00', photon_index='2.76' WHERE bin_id='91' AND source_name='4FGL J1357.1+1921' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 17:56:37 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0255>
Subject: Job 60884: <4FGL_J1357.1+1921_daily_bin91> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1357.1+1921_daily_bin91 209.29 19.3608 262915201 263174401 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 :                                   448.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             217.81 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   676 sec.
    Turnaround time :                            679 sec.

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

