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


Performing analysis on: 4FGL_J1359.4+0202_daily_bin932
RA = 209.859, Dec = 2.0424
tmin = 480902401, tmax = 481161601
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='92574', job_status='RUN', time_executed='2021-09-08 19:27:56.057644', time_epoch_executed='1631154476.06' WHERE source_name='4FGL J1359.4+0202' and cadence='daily' and bin_id='932'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/92574

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/92574/ft1_4FGL_J1359.4+0202_daily_bin932.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/92574/ft2_4FGL_J1359.4+0202_daily_bin932.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/92574/ft1_4FGL_J1359.4+0202_daily_bin932.fits outfile=/scratch/kocevski/92574/ft1_filteredMKT_4FGL_J1359.4+0202_daily_bin932.fits ra=209.859 dec=2.0424 rad=12.0 tmin=480902401.0 tmax=481161601.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 3.61
user 3.40
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/92574/ft2_4FGL_J1359.4+0202_daily_bin932.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/92574/ft2_4FGL_J1359.4+0202_daily_bin932.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/92574/ft1_filteredMKT_4FGL_J1359.4+0202_daily_bin932.fits evtable="EVENTS" outfile="/scratch/kocevski/92574/ft1_filtered_4FGL_J1359.4+0202_daily_bin932.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.49
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/92574/ft1_filtered_4FGL_J1359.4+0202_daily_bin932.fits" evtable="EVENTS" scfile=/scratch/kocevski/92574/ft2_4FGL_J1359.4+0202_daily_bin932.fits sctable="SC_DATA" outfile=/scratch/kocevski/92574/ltcube_480902401_481161601_4FGL_J1359.4+0202_daily_bin932.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/92574/ft2_4FGL_J1359.4+0202_daily_bin932.fits
.....................!
real 11.92
user 11.56
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/92574/ft1_filtered_4FGL_J1359.4+0202_daily_bin932.fits evtable="EVENTS" scfile=/scratch/kocevski/92574/ft2_4FGL_J1359.4+0202_daily_bin932.fits sctable="SC_DATA" expcube=/scratch/kocevski/92574/ltcube_480902401_481161601_4FGL_J1359.4+0202_daily_bin932.fits outfile=/scratch/kocevski/92574/expmap_480902401_481161601_4FGL_J1359.4+0202_daily_bin932.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/92574/ltcube_480902401_481161601_4FGL_J1359.4+0202_daily_bin932.fits
.....................!
real 189.63
user 184.75
sys 4.57

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 158 point sources and 0 extended sources

Setting source of interest to:
4FGL J1359.4+0202 @ 209.859 2.0424

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/92574/ft1_filtered_4FGL_J1359.4+0202_daily_bin932.fits scfile=/scratch/kocevski/92574/ft2_4FGL_J1359.4+0202_daily_bin932.fits outfile=/scratch/kocevski/92574/cmap_480902401_481161601_4FGL_J1359.4+0202_daily_bin932.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.859 yref=2.0424 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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/92574/ft1_filtered_4FGL_J1359.4+0202_daily_bin932.fits scfile=/scratch/kocevski/92574/ft2_4FGL_J1359.4+0202_daily_bin932.fits outfile=/scratch/kocevski/92574/cmap_HighResolution_480902401_481161601_4FGL_J1359.4+0202_daily_bin932.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.859 yref=2.0424 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/92574/ft1_filtered_4FGL_J1359.4+0202_daily_bin932.fits evtable="EVENTS" scfile=/scratch/kocevski/92574/ft2_4FGL_J1359.4+0202_daily_bin932.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/92574/Model_4FGL_J1359.4+0202_daily_bin932.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/92574/ft1_filtered_4FGL_J1359.4+0202_daily_bin932.fits.....................!
real 53.47
user 52.21
sys 1.16

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/92574/ft1_filtered_4FGL_J1359.4+0202_daily_bin932.fits', '/scratch/kocevski/92574/ft2_4FGL_J1359.4+0202_daily_bin932.fits', expMap='/scratch/kocevski/92574/expmap_480902401_481161601_4FGL_J1359.4+0202_daily_bin932.fits', expCube='/scratch/kocevski/92574/ltcube_480902401_481161601_4FGL_J1359.4+0202_daily_bin932.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/92574/Model_4FGL_J1359.4+0202_daily_bin932.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1359.4+0202'

4FGL J1359.4+0202
   Spectrum: PowerLaw
268    Prefactor:  1.682e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
269        Index:  2.385e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
270        Scale:  1.283e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/92574/ft1_filtered_4FGL_J1359.4+0202_daily_bin932.fits
Spacecraft file(s): /scratch/kocevski/92574/ft2_4FGL_J1359.4+0202_daily_bin932.fits
Exposure map: /scratch/kocevski/92574/expmap_480902401_481161601_4FGL_J1359.4+0202_daily_bin932.fits
Exposure cube: /scratch/kocevski/92574/ltcube_480902401_481161601_4FGL_J1359.4+0202_daily_bin932.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/92574/Model_4FGL_J1359.4+0202_daily_bin932.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) = 7239.89627086

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    15.428       1.0000         .10000E-03   10000.    
     2 'Prefactor '    5.6689       1.0000         .10000E-03   10000.    
     3 'norm      '    1.6648       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .78453E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.4772       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .85519       1.0000         .10000E-03   10000.    
    11 'Prefactor '    8.6921       1.0000         .10000E-03   10000.    
    12 'norm      '    8.1934       1.0000         .10000E-03   10000.    
    13 'norm      '    .12151E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    34.623       1.0000         .10000E-03   10000.    
    15 'norm      '    5.3688       1.0000         .10000E-03   10000.    
    16 'Prefactor '    14.466       1.0000         .10000E-03   10000.    
    17 'Prefactor '    17.742       1.0000         .10000E-03   10000.    
    18 'norm      '    .17083E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.0923       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .95595       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5220E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7239.883     FROM MIGRAD    STATUS=CONVERGED    418 CALLS     2066 TOTAL
                     EDM=   .11E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     15.420        21.207        .75092E-07   -.55738E-04
   2  Prefactor     5.6690        8.5383        .21946E-05    .23463E-04
   3  norm          1.6647        1.0386        .21925E-07    .39155E-05
   4  Prefactor     .10000E-03    17.493       -.70422E-07** at limit **
   5  norm          .10000E-03    8.0042       -.87866E-10** at limit **
   6  Prefactor     .10001E-03    1.9946        .32307E-06** at limit **
   7  Prefactor     .10000E-03    3.8256       -.13826E-08** at limit **
   8  Prefactor     1.4775        2.6845        .37077E-06    .22272E-04
   9  Prefactor     .10000E-03    13.317        .10979E-06** at limit **
  10  norm          .85505        1.1565        .47657E-07    .15864E-03
  11  Prefactor     8.6930        17.968        .31736E-06   -.31621E-05
  12  norm          8.1935        9.4344        .49512E-07    .34145E-05
  13  norm          .10000E-03    3.1641       -.19048E-06** at limit **
  14  Prefactor     34.644        28.142        .50974E-06    .16512E-03
  15  norm          5.3688        17.675        .24932E-06   -.14191E-05
  16  Prefactor     14.458        40.571       -.15376E-06   -.26855E-04
  17  Prefactor     17.732        21.314        .44237E-06    .21098E-04
  18  norm          .10000E-03    33.027       -.19185E-05** at limit **
  19  Normalizat    1.0924        .19087       -.11638E-05   -.22492E-04
  20  Prefactor     .95591        .12964        .57178E-06   -.12668E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 15.4202
  Prefactor  = 5.66898
  norm       = 1.66471
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100009
  Prefactor  = 0.0001
  Prefactor  = 1.47749
  Prefactor  = 0.0001
  norm       = 0.855053
  Prefactor  = 8.69299
  norm       = 8.19348
  norm       = 0.0001
  Prefactor  = 34.6438
  norm       = 5.36882
  Prefactor  = 14.4585
  Prefactor  = 17.7316
  norm       = 0.0001
  Normalizat = 1.09243
  Prefactor  = 0.955915
 **********
 **   18 **HESSE 
 **********

 FCN=   7239.883     FROM HESSE     STATUS=OK           301 CALLS     2367 TOTAL
                     EDM=   .81E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     15.420        21.212        .10197E-03   -1.4922    
   2  Prefactor     5.6690        8.5357        .84356E-03   -1.5232    
   3  norm          1.6647        1.0355        .66143E-04   -1.5450    
   4  Prefactor     .10000E-03    17.500        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    8.0065        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10001E-03    13.297        .22238E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    3.8283        .16254E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     1.4775        2.6526        .18317E-03   -1.5465    
   9  Prefactor     .10000E-03    13.562        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .85505        .99122        .10323E-02   -1.5523    
  11  Prefactor     8.6930        17.957        .13596E-03   -1.5118    
  12  norm          8.1935        9.4494        .14006E-03   -1.5135    
  13  norm          .10000E-03    9.2492        .29294E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     34.644        28.150        .68105E-04   -1.4530    
  15  norm          5.3688        17.687        .17344E-03   -1.5245    
  16  Prefactor     14.458        40.558        .10531E-03   -1.4947    
  17  Prefactor     17.732        21.153        .95087E-04   -1.4866    
  18  norm          .10000E-03    33.467        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.0924        .22339        .27352E-03   -.89995    
  20  Prefactor     .95591        .15448        .20397E-03   -.94214    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.08749e-10
Minuit parameter uncertainties:
  1  21.2227
  2  8.5375
  3  1.03549
  4  2.43985e-05
  5  1.23596e-06
  6  0.000690373
  7  4.68638e-07
  8  2.65285
  9  1.37175e-05
  10  0.991236
  11  17.9684
  12  9.45117
  13  0.000110572
  14  28.161
  15  17.7047
  16  40.6355
  17  21.1619
  18  6.72277e-05
  19  0.223579
  20  0.154553
Done.

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

Extracting fit parameters...

4FGL J1359.4+0202
   Spectrum: PowerLaw
268    Prefactor:  1.000e-04  1.372e-05  1.000e-04  1.000e+04 ( 1.000e-13)
269        Index:  2.385e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
270        Scale:  1.283e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
519    Prefactor:  9.559e-01  1.546e-01  0.000e+00  1.000e+01 ( 1.000e+00)
520        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
521        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
518   Normalization:  1.092e+00  2.236e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 209.859 2.042
Photon Flux Upper Limit: 7.50e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.79e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/92574/likelihoodResults_480902401_481161601_4FGL_J1359.4+0202_daily_bin932.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) = 7239.88351756
delta logL = -0.000351455894815

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7239.88316615
delta logL = -4.48444552603e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10495E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4160       1.0000          .0000       10.000    
     3 'Normalizat'    1.0925       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95591       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5220E+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=   7239.879     FROM MIGRAD    STATUS=FAILED       171 CALLS      323 TOTAL
                     EDM=   .49E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .14172        23.273        .36285E-02   -.22921E-01
   2  Index         3.5462        .72261        .50000        .24502E-05
   3  Normalizat    1.0869        .11849E-01    .27352E-03   -.32420E-05
   4  Prefactor     .95786        .83702E-02    .20397E-03    .46819E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   7239.879     FROM SIMPLEX   STATUS=UNCHANGED     65 CALLS      388 TOTAL
                     EDM=   .16E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .14172        23.273        .24780E-03   -.22921E-01
   2  Index         3.5462        .72261        .18248E-02    .24502E-05
   3  Normalizat    1.0869        .11849E-01    .70251E-04   -.32420E-05
   4  Prefactor     .95786        .83702E-02    .34662E-04    .46819E-05
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7239.879     FROM MIGRAD    STATUS=CONVERGED     31 CALLS      419 TOTAL
                     EDM=   .31E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .14172        6.0530        .72569E-03   -.39979E-04
   2  Index         3.5462        3.8878        .48849E-02    .88903E-06
   3  Normalizat    1.0869        .22296        .10941E-04   -.31174E-05
   4  Prefactor     .95786        .15365        .81587E-05    .47377E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.141724
  Index      = 3.54625
  Normalizat = 1.08695
  Prefactor  = 0.957855
 **********
 **   18 **HESSE 
 **********

 FCN=   7239.879     FROM HESSE     STATUS=OK            25 CALLS      444 TOTAL
                     EDM=   .57E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .14172        7.5278        .29028E-04   -1.5783    
   2  Index         3.5462        6.7099        .19540E-03   -.29501    
   3  Normalizat    1.0869        .22241        .21881E-05   -.90172    
   4  Prefactor     .95786        .15316        .16317E-05   -.94148    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.69897e-13
Minuit parameter uncertainties:
  1  2.06534
  2  5.02555
  3  0.222599
  4  0.153233
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/92574': 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) = 7239.87873883
delta logL = 0.00442727217342

Extracting fit parameters...

4FGL J1359.4+0202
   Spectrum: PowerLaw
268    Prefactor:  1.417e-01  2.065e+00  1.000e-04  1.000e+04 ( 1.000e-13)
269        Index:  3.546e+00  5.026e+00  0.000e+00  1.000e+01 (-1.000e+00)
270        Scale:  1.283e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
519    Prefactor:  9.579e-01  1.532e-01  0.000e+00  1.000e+01 ( 1.000e+00)
520        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
521        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
518   Normalization:  1.087e+00  2.226e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 209.859 2.042

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/92574/cmap_HighResolution_480902401_481161601_4FGL_J1359.4+0202_daily_bin932.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.79e-03', job_status='DONE', photon_flux_upper_limit='7.50e-08', time_completed='2021-09-08 19:38:02.908620', job_id='92574', GAL2='0.96', fit_tolerance='1e-08', EG2='1.09', EG='1.09', time_epoch_completed='1631155082.91', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.96', dlogl='4.43e-03', ts2='0.01', photon_index_error='0.00', photon_index='2.39' WHERE bin_id='932' AND source_name='4FGL J1359.4+0202' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 19:38:02 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0057>
Subject: Job 92574: <4FGL_J1359.4+0202_daily_bin932> in cluster <slac> Done

Job <4FGL_J1359.4+0202_daily_bin932> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Wed Sep  8 19:25:19 2021
Job was executed on host(s) <bullet0057>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 19:25: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 19:25:21 2021
Terminated at Wed Sep  8 19:38:03 2021
Results reported at Wed Sep  8 19:38:03 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1359.4+0202_daily_bin932 209.859 2.0424 480902401 481161601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1359.4+0202 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   598.23 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             267.74 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   762 sec.
    Turnaround time :                            764 sec.

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

