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


Performing analysis on: 4FGL_J1357.1+1921_daily_bin940
RA = 209.29, Dec = 19.3608
tmin = 482976001, tmax = 483235201
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='64450', job_status='RUN', time_executed='2021-09-08 17:58:31.392566', time_epoch_executed='1631149111.39' WHERE source_name='4FGL J1357.1+1921' and cadence='daily' and bin_id='940'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/64450

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/64450/ft1_4FGL_J1357.1+1921_daily_bin940.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/64450/ft2_4FGL_J1357.1+1921_daily_bin940.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/64450/ft1_4FGL_J1357.1+1921_daily_bin940.fits outfile=/scratch/kocevski/64450/ft1_filteredMKT_4FGL_J1357.1+1921_daily_bin940.fits ra=209.29 dec=19.3608 rad=12.0 tmin=482976001.0 tmax=483235201.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 16.25
user 3.91
sys 0.25

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/64450/ft1_filtered_4FGL_J1357.1+1921_daily_bin940.fits" evtable="EVENTS" scfile=/scratch/kocevski/64450/ft2_4FGL_J1357.1+1921_daily_bin940.fits sctable="SC_DATA" outfile=/scratch/kocevski/64450/ltcube_482976001_483235201_4FGL_J1357.1+1921_daily_bin940.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/64450/ft2_4FGL_J1357.1+1921_daily_bin940.fits
.....................!
real 14.67
user 14.27
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/64450/ft1_filtered_4FGL_J1357.1+1921_daily_bin940.fits evtable="EVENTS" scfile=/scratch/kocevski/64450/ft2_4FGL_J1357.1+1921_daily_bin940.fits sctable="SC_DATA" expcube=/scratch/kocevski/64450/ltcube_482976001_483235201_4FGL_J1357.1+1921_daily_bin940.fits outfile=/scratch/kocevski/64450/expmap_482976001_483235201_4FGL_J1357.1+1921_daily_bin940.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/64450/ltcube_482976001_483235201_4FGL_J1357.1+1921_daily_bin940.fits
.....................!
real 190.66
user 185.51
sys 4.65

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/64450/ft1_filtered_4FGL_J1357.1+1921_daily_bin940.fits scfile=/scratch/kocevski/64450/ft2_4FGL_J1357.1+1921_daily_bin940.fits outfile=/scratch/kocevski/64450/cmap_482976001_483235201_4FGL_J1357.1+1921_daily_bin940.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.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/64450/ft1_filtered_4FGL_J1357.1+1921_daily_bin940.fits scfile=/scratch/kocevski/64450/ft2_4FGL_J1357.1+1921_daily_bin940.fits outfile=/scratch/kocevski/64450/cmap_HighResolution_482976001_483235201_4FGL_J1357.1+1921_daily_bin940.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.62
user 0.37
sys 0.13

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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      '    10.388       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    29.533       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10066E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    29.406       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .17730E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    8.9336       1.0000         .10000E-03   10000.    
    12 'Prefactor '    50.269       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    9.6206       1.0000         .10000E-03   10000.    
    15 'Prefactor '    10.090       1.0000         .10000E-03   10000.    
    16 'norm      '    17.909       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    .66367       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.1257       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=   5677.056     FROM MIGRAD    STATUS=CONVERGED    375 CALLS     1883 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    6.7154       -.74741E-06** at limit **
   2  norm          10.389        7.1176       -.22940E-06   -.38109E-04
   3  Prefactor     .10000E-03    12.674       -.80207E-06** at limit **
   4  norm          29.533        11.749       -.44102E-06    .26496E-04
   5  Prefactor     .10000E-03    9.0381       -.16402E-05** at limit **
   6  Prefactor     .10000E-03    23.403        .11651E-05** at limit **
   7  Prefactor     29.362        48.577       -.71048E-04    .10779E-04
   8  Prefactor     .10000E-03    1.9604       -.28854E-06** at limit **
   9  Prefactor     .10000E-03    1.1271        .14503E-06** at limit **
  10  Prefactor     .10000E-03    4.4515        .26626E-07** at limit **
  11  Prefactor     8.9340        10.910       -.11599E-05   -.35423E-04
  12  Prefactor     50.270        30.735        .91045E-06    .14349E-04
  13  Prefactor     .10000E-03    4.9097        .18461E-06** at limit **
  14  norm          9.6206        3.3755       -.19421E-06    .56901E-04
  15  Prefactor     10.090        7.0063       -.17649E-05   -.23887E-02
  16  norm          17.909        4.6274       -.17443E-06    .26700E-04
  17  Prefactor     .10000E-03    8.3996        .14997E-05** at limit **
  18  Normalizat    .66367        .18433        .24771E-05    .90465E-04
  19  Prefactor     1.1257        .16637        .31213E-05   -.31030E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 10.3885
  Prefactor  = 0.0001
  norm       = 29.5328
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 29.3621
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.93402
  Prefactor  = 50.2697
  Prefactor  = 0.0001
  norm       = 9.62064
  Prefactor  = 10.0898
  norm       = 17.909
  Prefactor  = 0.0001
  Normalizat = 0.66367
  Prefactor  = 1.12572
 **********
 **   18 **HESSE 
 **********

 FCN=   5677.056     FROM HESSE     STATUS=OK           270 CALLS     2153 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    6.7197        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          10.389        7.1204        .12431E-03   -1.5063    
   3  Prefactor     .10000E-03    12.685        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          29.533        11.770        .73725E-04   -1.4621    
   5  Prefactor     .10000E-03    9.0543        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    23.567        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     29.362        48.431        .73883E-04   -1.4624    
   8  Prefactor     .10000E-03    8.4967        .20398E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    1.1286        .78123E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    4.4591        .15525E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     8.9340        10.907        .13410E-03   -1.5110    
  12  Prefactor     50.270        30.730        .56562E-04   -1.4289    
  13  Prefactor     .10000E-03    4.9351        .16286E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          9.6206        3.3769        .79390E-04   -1.5088    
  15  Prefactor     10.090        7.0592        .63071E-03   -1.5073    
  16  norm          17.909        4.6288        .78710E-04   -1.4861    
  17  Prefactor     .10000E-03    8.4005        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    .66367        .21102        .29655E-03   -1.0535    
  19  Prefactor     1.1257        .19230        .21121E-03   -.88649    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.4078e-09
Minuit parameter uncertainties:
  1  5.83357e-06
  2  7.12094
  3  1.94595e-05
  4  11.7713
  5  2.25101e-05
  6  0.000131659
  7  48.4958
  8  0.00034839
  9  1.25199e-05
  10  1.52244e-05
  11  10.9094
  12  30.7396
  13  7.96062e-07
  14  3.37701
  15  7.05977
  16  4.62893
  17  1.99498e-06
  18  0.211276
  19  0.192416
Done.

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

Extracting fit parameters...

4FGL J1357.1+1921
   Spectrum: PowerLaw
267    Prefactor:  8.934e+00  1.091e+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.126e+00  1.924e-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:  6.637e-01  2.113e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.94
Ra Dec: 209.290 19.361
Photon Flux Upper Limit: 1.29e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.02e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/64450/likelihoodResults_482976001_483235201_4FGL_J1357.1+1921_daily_bin940.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) = 5676.79067692
delta logL = 0.265759607376

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5676.70241518
delta logL = 0.354021344859

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    14.426       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0954       1.0000          .0000       10.000    
     3 'Normalizat'    .68324       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1059       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=   5676.702     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      247 TOTAL
                     EDM=   .72E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     14.423        13.999        .10545E-03   -.72231E-05
   2  Index         2.0954        .60999        .93510E-02    .11953E-04
   3  Normalizat    .68323        .20831        .29254E-03    .19322E-03
   4  Prefactor     1.1059        .19074        .21275E-03    .27779E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 14.4235
  Index      = 2.09536
  Normalizat = 0.683229
  Prefactor  = 1.10592
 **********
 **   18 **HESSE 
 **********

 FCN=   5676.702     FROM HESSE     STATUS=OK            25 CALLS      272 TOTAL
                     EDM=   .75E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     14.423        14.040        .42181E-05   -1.4948    
   2  Index         2.0954        .61193        .37404E-03   -.61987    
   3  Normalizat    .68323        .20845        .11701E-04   -1.0456    
   4  Prefactor     1.1059        .19085        .42551E-04   -.89278    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.45686e-11
Minuit parameter uncertainties:
  1  14.043
  2  0.614256
  3  0.208693
  4  0.190966
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/64450': 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) = 5676.70241516
delta logL = 0.354021363938

Extracting fit parameters...

4FGL J1357.1+1921
   Spectrum: PowerLaw
267    Prefactor:  1.442e+01  1.404e+01  1.000e-04  1.000e+04 ( 1.000e-12)
268        Index:  2.095e+00  6.143e-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.106e+00  1.910e-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:  6.832e-01  2.087e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.65
Ra Dec: 209.290 19.361
Photon Index (Free Index): 2.10 +/- 0.61
Photon Flux (Free Index): 3.26e-08 +/- 3.52e-08
Energy Flux (Free Index): 1.81e-05 +/- 2.34e-05

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/64450/cmap_HighResolution_482976001_483235201_4FGL_J1357.1+1921_daily_bin940.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.02e-02', comment='SUCCESS', energy_flux2='1.81e-05', dlogl='3.54e-01', photon_flux2='3.26e-08', job_status='DONE', time_completed='2021-09-08 18:07:36.592996', photon_index_error2='0.61', photon_index2='2.10', ts='0.94', fit_tolerance='1e-08', GAL='1.13', photon_index_error='0.00', photon_flux_upper_limit='1.29e-07', energy_flux_error2='2.34e-05', EG='0.66', time_epoch_completed='1631149656.59', return_code='0', job_id='64450', GAL2='1.11', EG2='0.68', return_code2='0', photon_flux_error2='3.52e-08', ts2='1.65', photon_index='2.76' WHERE bin_id='940' AND source_name='4FGL J1357.1+1921' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 18:07:36 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0206>
Subject: Job 64450: <4FGL_J1357.1+1921_daily_bin940> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1357.1+1921_daily_bin940 209.29 19.3608 482976001 483235201 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 :                                   525.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             274.82 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   710 sec.
    Turnaround time :                            748 sec.

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

