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


Performing analysis on: 4FGL_J1359.4+0202_daily_bin976
RA = 209.859, Dec = 2.0424
tmin = 492307201, tmax = 492566401
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='92643', job_status='RUN', time_executed='2021-09-08 19:29:34.032170', time_epoch_executed='1631154574.03' WHERE source_name='4FGL J1359.4+0202' and cadence='daily' and bin_id='976'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/92643

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/92643/ft1_4FGL_J1359.4+0202_daily_bin976.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/92643/ft2_4FGL_J1359.4+0202_daily_bin976.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/92643/ft1_4FGL_J1359.4+0202_daily_bin976.fits outfile=/scratch/kocevski/92643/ft1_filteredMKT_4FGL_J1359.4+0202_daily_bin976.fits ra=209.859 dec=2.0424 rad=12.0 tmin=492307201.0 tmax=492566401.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.73
user 3.49
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/92643/ft2_4FGL_J1359.4+0202_daily_bin976.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/92643/ft1_filteredMKT_4FGL_J1359.4+0202_daily_bin976.fits evtable="EVENTS" outfile="/scratch/kocevski/92643/ft1_filtered_4FGL_J1359.4+0202_daily_bin976.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.14

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/92643/ft1_filtered_4FGL_J1359.4+0202_daily_bin976.fits evtable="EVENTS" scfile=/scratch/kocevski/92643/ft2_4FGL_J1359.4+0202_daily_bin976.fits sctable="SC_DATA" expcube=/scratch/kocevski/92643/ltcube_492307201_492566401_4FGL_J1359.4+0202_daily_bin976.fits outfile=/scratch/kocevski/92643/expmap_492307201_492566401_4FGL_J1359.4+0202_daily_bin976.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/92643/ltcube_492307201_492566401_4FGL_J1359.4+0202_daily_bin976.fits
.....................!
real 190.05
user 185.68
sys 4.01

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/92643/ft1_filtered_4FGL_J1359.4+0202_daily_bin976.fits scfile=/scratch/kocevski/92643/ft2_4FGL_J1359.4+0202_daily_bin976.fits outfile=/scratch/kocevski/92643/cmap_492307201_492566401_4FGL_J1359.4+0202_daily_bin976.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.53
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/92643/ft1_filtered_4FGL_J1359.4+0202_daily_bin976.fits scfile=/scratch/kocevski/92643/ft2_4FGL_J1359.4+0202_daily_bin976.fits outfile=/scratch/kocevski/92643/cmap_HighResolution_492307201_492566401_4FGL_J1359.4+0202_daily_bin976.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.53
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/92643/ft1_filtered_4FGL_J1359.4+0202_daily_bin976.fits evtable="EVENTS" scfile=/scratch/kocevski/92643/ft2_4FGL_J1359.4+0202_daily_bin976.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/92643/Model_4FGL_J1359.4+0202_daily_bin976.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/92643/ft1_filtered_4FGL_J1359.4+0202_daily_bin976.fits....................!
real 36.33
user 34.80
sys 1.18

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/92643/ft1_filtered_4FGL_J1359.4+0202_daily_bin976.fits', '/scratch/kocevski/92643/ft2_4FGL_J1359.4+0202_daily_bin976.fits', expMap='/scratch/kocevski/92643/expmap_492307201_492566401_4FGL_J1359.4+0202_daily_bin976.fits', expCube='/scratch/kocevski/92643/ltcube_492307201_492566401_4FGL_J1359.4+0202_daily_bin976.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/92643/Model_4FGL_J1359.4+0202_daily_bin976.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/92643/ft1_filtered_4FGL_J1359.4+0202_daily_bin976.fits
Spacecraft file(s): /scratch/kocevski/92643/ft2_4FGL_J1359.4+0202_daily_bin976.fits
Exposure map: /scratch/kocevski/92643/expmap_492307201_492566401_4FGL_J1359.4+0202_daily_bin976.fits
Exposure cube: /scratch/kocevski/92643/ltcube_492307201_492566401_4FGL_J1359.4+0202_daily_bin976.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/92643/Model_4FGL_J1359.4+0202_daily_bin976.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) = 3949.13224079

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .32251E-01   1.0000         .10000E-03   10000.    
     4 'Prefactor '    56.455       1.0000         .10000E-03   10000.    
     5 'norm      '    .10349E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.8646       1.0000         .10000E-03   10000.    
     7 'Prefactor '    9.7499       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10068E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    38.579       1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    6.2139       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    11.073       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.2980       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .94886       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=   3949.129     FROM MIGRAD    STATUS=CONVERGED    422 CALLS     2048 TOTAL
                     EDM=   .22E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    8.9489        .17631E-05** at limit **
   2  Prefactor     .10000E-03    9.3282       -.46196E-06** at limit **
   3  norm          .20855E-01    .86316        .14599E-06   -.99539E-03
   4  Prefactor     56.445        60.075       -.10636E-04    .49913E-05
   5  norm          .10000E-03    84.236        .10484E-05** at limit **
   6  Prefactor     4.8637        5.1185       -.93970E-06   -.13852E-03
   7  Prefactor     9.7329        31.114       -.18785E-04   -.61931E-05
   8  Prefactor     .10000E-03    2.3106        .19243E-07** at limit **
   9  Prefactor     .10000E-03    4.3740        .80777E-07** at limit **
  10  norm          .10000E-03    2.1664       -.20106E-06** at limit **
  11  Prefactor     38.573        30.014       -.28596E-05    .16519E-04
  12  norm          .10000E-03    7.8633       -.48547E-06** at limit **
  13  norm          6.2131        9.0805       -.38539E-06   -.23384E-04
  14  Prefactor     .10000E-03    9.6702       -.15224E-05** at limit **
  15  norm          11.070        23.513       -.13552E-05   -.46755E-05
  16  Prefactor     .10000E-03    40.152        .16520E-06** at limit **
  17  Prefactor     .10000E-03    16.708       -.82881E-06** at limit **
  18  norm          .10000E-03    10.314       -.51554E-06** at limit **
  19  Normalizat    1.2980        .26972        .32148E-05   -.31024E-04
  20  Prefactor     .94896        .18472        .42289E-06    .98027E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0208551
  Prefactor  = 56.4447
  norm       = 0.0001
  Prefactor  = 4.86372
  Prefactor  = 9.73289
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 38.5731
  norm       = 0.0001
  norm       = 6.2131
  Prefactor  = 0.0001
  norm       = 11.0702
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.29801
  Prefactor  = 0.948964
 **********
 **   18 **HESSE 
 **********

 FCN=   3949.129     FROM HESSE     STATUS=OK           291 CALLS     2339 TOTAL
                     EDM=   .51E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    8.9641        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    9.3622        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .20855E-01    13.919        .11299E-02   -1.5679    
   4  Prefactor     56.445        60.005        .53390E-04   -1.4204    
   5  norm          .10000E-03    84.943        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     4.8637        5.1401        .13952E-03   -1.5267    
   7  Prefactor     9.7329        31.168        .12834E-03   -1.5084    
   8  Prefactor     .10000E-03    2.3192        .93283E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    4.3765        .12837E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    3.9648        .17912E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     38.573        30.016        .64530E-04   -1.4465    
  12  norm          .10000E-03    7.8689        .17213E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          6.2131        9.0643        .16104E-03   -1.5209    
  14  Prefactor     .10000E-03    9.6765        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          11.070        23.520        .12040E-03   -1.5042    
  16  Prefactor     .10000E-03    40.161        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    16.719        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    10.324        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.2980        .32887        .26967E-03   -.83626    
  20  Prefactor     .94896        .22719        .21623E-03   -.94451    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.08604e-09
Minuit parameter uncertainties:
  1  8.45187e-06
  2  4.52004e-06
  3  1.07524
  4  60.0695
  5  1.86365e-05
  6  5.14053
  7  31.2205
  8  3.88246e-07
  9  2.04408e-05
  10  3.87967e-05
  11  30.028
  12  4.62955e-06
  13  9.06631
  14  3.11591e-06
  15  23.5396
  16  2.65804e-05
  17  1.03896e-05
  18  7.09786e-06
  19  0.329398
  20  0.227422
Done.

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

Extracting fit parameters...

4FGL J1359.4+0202
   Spectrum: PowerLaw
268    Prefactor:  1.000e-04  2.044e-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.490e-01  2.274e-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.298e+00  3.294e-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.64e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.90e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/92643/likelihoodResults_492307201_492566401_4FGL_J1359.4+0202_daily_bin976.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) = 3949.13008785
delta logL = -0.00106796038426

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3949.12901968
delta logL = 2.03589479497e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10112E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3569       1.0000          .0000       10.000    
     3 'Normalizat'    1.2981       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94891       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.

 FCN=   3949.129     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      241 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10327E-03    5.4747        .13253E-01** at limit **
   2  Index         2.2680        5.7316        .50000        .45141E-04
   3  Normalizat    1.2980        .68955E-02    .26967E-03    .22596E-04
   4  Prefactor     .94896        .48420E-02    .21623E-03    .65667E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000103271
  Index      = 2.26803
  Normalizat = 1.29801
  Prefactor  = 0.948962
 **********
 **   18 **HESSE 
 **********

 FCN=   3949.129     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      270 TOTAL
                     EDM=   .20E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10327E-03    58.678        .13691E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2680        5.5164        .50000       -.57805    
   3  Normalizat    1.2980        .22836E-01    .10787E-04   -.83626    
   4  Prefactor     .94896        .16035E-01    .86494E-05   -.94451    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.04036e-08
Minuit parameter uncertainties:
  1  0.0277347
  2  264.267
  3  0.0228362
  4  0.0160354
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/92643': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3949.12901883
delta logL = 1.0563280739e-06

Extracting fit parameters...

4FGL J1359.4+0202
   Spectrum: PowerLaw
268    Prefactor:  1.033e-04  2.773e-02  1.000e-04  1.000e+04 ( 1.000e-13)
269        Index:  2.268e+00  2.643e+02  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.490e-01  1.604e-02  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.298e+00  2.284e-02  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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/92643/cmap_HighResolution_492307201_492566401_4FGL_J1359.4+0202_daily_bin976.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.90e-03', job_status='DONE', photon_flux_upper_limit='7.64e-08', time_completed='2021-09-08 19:37:21.015259', job_id='92643', GAL2='0.95', fit_tolerance='1e-08', EG2='1.30', EG='1.30', time_epoch_completed='1631155041.02', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.95', dlogl='1.06e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.39' WHERE bin_id='976' AND source_name='4FGL J1359.4+0202' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 19:37:21 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0079>
Subject: Job 92643: <4FGL_J1359.4+0202_daily_bin976> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1359.4+0202_daily_bin976 209.859 2.0424 492307201 492566401 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 :                                   464.24 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             248.62 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   714 sec.
    Turnaround time :                            716 sec.

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

