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


Performing analysis on: 4FGL_J1357.1+1921_daily_bin85
RA = 209.29, Dec = 19.3608
tmin = 261360001, tmax = 261619201
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='60874', job_status='RUN', time_executed='2021-09-08 17:46:21.820105', time_epoch_executed='1631148381.82' WHERE source_name='4FGL J1357.1+1921' and cadence='daily' and bin_id='85'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/60874

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/60874/ft1_4FGL_J1357.1+1921_daily_bin85.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/60874/ft2_4FGL_J1357.1+1921_daily_bin85.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/60874/ft1_4FGL_J1357.1+1921_daily_bin85.fits outfile=/scratch/kocevski/60874/ft1_filteredMKT_4FGL_J1357.1+1921_daily_bin85.fits ra=209.29 dec=19.3608 rad=12.0 tmin=261360001.0 tmax=261619201.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.48
user 1.30
sys 0.17

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/60874/ft1_filtered_4FGL_J1357.1+1921_daily_bin85.fits evtable="EVENTS" scfile=/scratch/kocevski/60874/ft2_4FGL_J1357.1+1921_daily_bin85.fits sctable="SC_DATA" expcube=/scratch/kocevski/60874/ltcube_261360001_261619201_4FGL_J1357.1+1921_daily_bin85.fits outfile=/scratch/kocevski/60874/expmap_261360001_261619201_4FGL_J1357.1+1921_daily_bin85.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/60874/ltcube_261360001_261619201_4FGL_J1357.1+1921_daily_bin85.fits
.....................!
real 191.04
user 185.75
sys 4.83

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/60874/ft1_filtered_4FGL_J1357.1+1921_daily_bin85.fits scfile=/scratch/kocevski/60874/ft2_4FGL_J1357.1+1921_daily_bin85.fits outfile=/scratch/kocevski/60874/cmap_261360001_261619201_4FGL_J1357.1+1921_daily_bin85.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=209.29 yref=19.3608 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.52
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/60874/ft1_filtered_4FGL_J1357.1+1921_daily_bin85.fits scfile=/scratch/kocevski/60874/ft2_4FGL_J1357.1+1921_daily_bin85.fits outfile=/scratch/kocevski/60874/cmap_HighResolution_261360001_261619201_4FGL_J1357.1+1921_daily_bin85.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.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    15.116       1.0000         .10000E-03   10000.    
     2 'norm      '    5.0865       1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.9547       1.0000         .10000E-03   10000.    
     4 'norm      '    13.314       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    13.566       1.0000         .10000E-03   10000.    
     7 'Prefactor '    15.823       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .28629E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.0981       1.0000         .10000E-03   10000.    
    12 'Prefactor '    7.2382       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    8.6383       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    3.5802       1.0000         .10000E-03   10000.    
    17 'Prefactor '    4.9642       1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.3700       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .83772       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=   8846.207     FROM MIGRAD    STATUS=CONVERGED    398 CALLS     1663 TOTAL
                     EDM=   .48E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          15.116        11.781       -.19555E-06   -.56725E-07
   2  norm          5.0850        5.6117        .13186E-05   -.23594E-03
   3  Prefactor     1.9365        26.873       -.59042E-05   -.11381E-03
   4  norm          13.313        9.0797       -.12081E-05   -.13888E-03
   5  Prefactor     .10000E-03    9.8143       -.41076E-06** at limit **
   6  Prefactor     13.556        18.624        .18854E-04   -.25564E-04
   7  Prefactor     15.661        41.020       -.15816E-04   -.20931E-04
   8  Prefactor     .10000E-03    1.3873       -.25799E-07** at limit **
   9  Prefactor     .10000E-03    1.6313        .42886E-06** at limit **
  10  Prefactor     .10000E-03    6.0811       -.91548E-07** at limit **
  11  Prefactor     3.0953        9.8074       -.30512E-05   -.23892E-03
  12  Prefactor     7.2349        13.779        .20621E-05   -.51638E-04
  13  Prefactor     .10000E-03    1.6152       -.33016E-07** at limit **
  14  norm          8.6375        3.0259        .27581E-07   -.59744E-04
  15  Prefactor     .10000E-03    5.5960       -.22950E-06** at limit **
  16  norm          3.5792        2.4221       -.42456E-06   -.60608E-03
  17  Prefactor     4.9470        33.789        .42159E-04   -.19738E-04
  18  Normalizat    1.3701        .16569       -.24005E-05    .66403E-04
  19  Prefactor     .83783        .13587        .73346E-06   -.31430E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 15.1156
  norm       = 5.08501
  Prefactor  = 1.93654
  norm       = 13.3126
  Prefactor  = 0.000100001
  Prefactor  = 13.556
  Prefactor  = 15.6615
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 3.09533
  Prefactor  = 7.23486
  Prefactor  = 0.0001
  norm       = 8.63749
  Prefactor  = 0.0001
  norm       = 3.57922
  Prefactor  = 4.94695
  Normalizat = 1.37007
  Prefactor  = 0.837827
 **********
 **   18 **HESSE 
 **********

 FCN=   8846.207     FROM HESSE     STATUS=OK           276 CALLS     1939 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          15.116        11.780        .10302E-03   -1.4930    
   2  norm          5.0850        5.5848        .17828E-03   -1.5257    
   3  Prefactor     1.9365        27.045        .29677E-03   -1.5430    
   4  norm          13.313        9.0717        .10977E-03   -1.4978    
   5  Prefactor     .10000E-03    9.8476        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     13.556        18.592        .10875E-03   -1.4971    
   7  Prefactor     15.661        41.011        .10069E-03   -1.4916    
   8  Prefactor     .10000E-03    1.4011        .10817E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    8.1078        .23143E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    6.1283        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     3.0953        9.8350        .23040E-03   -1.5356    
  12  Prefactor     7.2349        13.768        .14909E-03   -1.5170    
  13  Prefactor     .10000E-03    1.6196        .11672E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          8.6375        3.0254        .93442E-04   -1.5120    
  15  Prefactor     .10000E-03    5.8083        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          3.5792        2.4185        .11551E-03   -1.5330    
  17  Prefactor     4.9470        33.425        .18050E-03   -1.5263    
  18  Normalizat    1.3701        .19916        .24014E-03   -.81498    
  19  Prefactor     .83783        .16221        .24921E-03   -.98349    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.39011e-09
Minuit parameter uncertainties:
  1  11.7823
  2  5.58533
  3  14.4815
  4  9.07263
  5  0.000147207
  6  18.5995
  7  41.0851
  8  3.8058e-06
  9  0.00028525
  10  2.91314e-05
  11  9.84017
  12  13.7744
  13  3.50533e-06
  14  3.02548
  15  8.91445e-05
  16  2.41856
  17  25.7383
  18  0.199268
  19  0.162298
Done.

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

Extracting fit parameters...

4FGL J1357.1+1921
   Spectrum: PowerLaw
267    Prefactor:  3.095e+00  9.840e+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

GAL_V02
   Spectrum: PowerLaw
506    Prefactor:  8.378e-01  1.623e-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.370e+00  1.993e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/60874/likelihoodResults_261360001_261619201_4FGL_J1357.1+1921_daily_bin85.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) = 8846.13014435
delta logL = 0.076390946273

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8845.87552311
delta logL = 0.331012188346

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .48024E-03   1.0000         .10000E-03   10000.    
     2 'Index     '   10.0000       1.0000          .0000       10.000    
     3 'Normalizat'    1.3489       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85358       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=   8845.876     FROM MIGRAD    STATUS=CONVERGED    109 CALLS      394 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .48372E-03    .73836E-03    .31421E-04** at limit **
   2  Index        10.0000        6.4039        .50000    ** at limit **
   3  Normalizat    1.3486        .19455        .24170E-03    .56443E-06
   4  Prefactor     .85375        .16147        .24712E-03   -.25486E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000483716
  Index      = 10
  Normalizat = 1.34861
  Prefactor  = 0.853749
 **********
 **   18 **HESSE 
 **********

 FCN=   8845.876     FROM HESSE     STATUS=OK            31 CALLS      425 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .48372E-03    .70690E-03    .62843E-05   -1.5704    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index        10.0000        6.3007        .50000        1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    1.3486        .19490        .96680E-05   -.82127    
   4  Prefactor     .85375        .16171        .98849E-05   -.97776    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.32866e-10
Minuit parameter uncertainties:
  1  0.000706896
  2  0.00018133
  3  0.195008
  4  0.161801
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/60874': 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) = 8845.87550585
delta logL = 0.331029449881

Extracting fit parameters...

4FGL J1357.1+1921
   Spectrum: PowerLaw
267    Prefactor:  4.837e-04  7.069e-04  1.000e-04  1.000e+04 ( 1.000e-12)
268        Index:  1.000e+01  1.813e-04  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.537e-01  1.618e-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.349e+00  1.950e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.11
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/60874/cmap_HighResolution_261360001_261619201_4FGL_J1357.1+1921_daily_bin85.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.56e-03', job_status='DONE', photon_flux_upper_limit='9.57e-08', time_completed='2021-09-08 17:57:00.944123', job_id='60874', GAL2='0.85', fit_tolerance='1e-08', EG2='1.35', EG='1.37', time_epoch_completed='1631149020.94', return_code2='0', ts='0.11', comment='SUCCESS', return_code='0', GAL='0.84', dlogl='3.31e-01', ts2='0.79', photon_index_error='0.00', photon_index='2.76' WHERE bin_id='85' AND source_name='4FGL J1357.1+1921' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 17:57:00 PDT 2021


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

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1357.1+1921_daily_bin85 209.29 19.3608 261360001 261619201 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 :                                   628.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             308.35 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   701 sec.
    Turnaround time :                            704 sec.

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

