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


Performing analysis on: 4FGL_J1359.4+0202_daily_bin671
RA = 209.859, Dec = 2.0424
tmin = 413251201, tmax = 413510401
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='91120', job_status='RUN', time_executed='2021-09-08 19:24:26.301448', time_epoch_executed='1631154266.3' WHERE source_name='4FGL J1359.4+0202' and cadence='daily' and bin_id='671'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/91120

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/91120/ft1_4FGL_J1359.4+0202_daily_bin671.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/91120/ft2_4FGL_J1359.4+0202_daily_bin671.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/91120/ft1_4FGL_J1359.4+0202_daily_bin671.fits outfile=/scratch/kocevski/91120/ft1_filteredMKT_4FGL_J1359.4+0202_daily_bin671.fits ra=209.859 dec=2.0424 rad=12.0 tmin=413251201.0 tmax=413510401.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 5.91
user 5.53
sys 0.32

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/91120/ft1_filtered_4FGL_J1359.4+0202_daily_bin671.fits" evtable="EVENTS" scfile=/scratch/kocevski/91120/ft2_4FGL_J1359.4+0202_daily_bin671.fits sctable="SC_DATA" outfile=/scratch/kocevski/91120/ltcube_413251201_413510401_4FGL_J1359.4+0202_daily_bin671.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/91120/ft2_4FGL_J1359.4+0202_daily_bin671.fits
.....................!
real 13.83
user 13.37
sys 0.40

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/91120/ft1_filtered_4FGL_J1359.4+0202_daily_bin671.fits evtable="EVENTS" scfile=/scratch/kocevski/91120/ft2_4FGL_J1359.4+0202_daily_bin671.fits sctable="SC_DATA" expcube=/scratch/kocevski/91120/ltcube_413251201_413510401_4FGL_J1359.4+0202_daily_bin671.fits outfile=/scratch/kocevski/91120/expmap_413251201_413510401_4FGL_J1359.4+0202_daily_bin671.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/91120/ltcube_413251201_413510401_4FGL_J1359.4+0202_daily_bin671.fits
.....................!
real 191.83
user 185.35
sys 6.10

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/91120/ft1_filtered_4FGL_J1359.4+0202_daily_bin671.fits scfile=/scratch/kocevski/91120/ft2_4FGL_J1359.4+0202_daily_bin671.fits outfile=/scratch/kocevski/91120/cmap_413251201_413510401_4FGL_J1359.4+0202_daily_bin671.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.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/91120/ft1_filtered_4FGL_J1359.4+0202_daily_bin671.fits scfile=/scratch/kocevski/91120/ft2_4FGL_J1359.4+0202_daily_bin671.fits outfile=/scratch/kocevski/91120/cmap_HighResolution_413251201_413510401_4FGL_J1359.4+0202_daily_bin671.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/91120/ft1_filtered_4FGL_J1359.4+0202_daily_bin671.fits evtable="EVENTS" scfile=/scratch/kocevski/91120/ft2_4FGL_J1359.4+0202_daily_bin671.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/91120/Model_4FGL_J1359.4+0202_daily_bin671.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/91120/ft1_filtered_4FGL_J1359.4+0202_daily_bin671.fits.....................!
real 54.60
user 53.22
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    1.8689       1.0000         .10000E-03   10000.    
     4 'Prefactor '    57.378       1.0000         .10000E-03   10000.    
     5 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    6.0997       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    17.660       1.0000         .10000E-03   10000.    
    10 'norm      '    1.3988       1.0000         .10000E-03   10000.    
    11 'Prefactor '    23.887       1.0000         .10000E-03   10000.    
    12 'norm      '    18.002       1.0000         .10000E-03   10000.    
    13 'norm      '    9.8453       1.0000         .10000E-03   10000.    
    14 'Prefactor '    10.459       1.0000         .10000E-03   10000.    
    15 'norm      '    .10159E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.6885       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.2480       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .85597       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=   7135.072     FROM MIGRAD    STATUS=CONVERGED    416 CALLS     2009 TOTAL
                     EDM=   .24E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    10.092       -.45204E-06** at limit **
   2  Prefactor     .10000E-03    8.6264        .13657E-06** at limit **
   3  norm          1.8688        1.5990        .12587E-07   -.61099E-03
   4  Prefactor     57.378        64.260       -.33469E-05   -.20171E-05
   5  norm          .10000E-03    19.656       -.41258E-06** at limit **
   6  Prefactor     .10000E-03    2.4846        .30209E-08** at limit **
   7  Prefactor     6.0984        27.372       -.18297E-04   -.31575E-04
   8  Prefactor     .10000E-03    3.3531       -.37956E-07** at limit **
   9  Prefactor     17.659        13.714        .96400E-06    .22614E-04
  10  norm          1.3990        1.9300       -.16944E-06   -.86171E-03
  11  Prefactor     23.884        24.812        .18248E-05   -.12925E-04
  12  norm          18.002        10.487        .10923E-06    .10653E-04
  13  norm          9.8447        6.4737        .17032E-06    .22526E-03
  14  Prefactor     10.450        23.076        .25077E-04   -.95543E-05
  15  norm          .10000E-03    12.513        .29530E-06** at limit **
  16  Prefactor     1.5419        277.06       -.31420E-04   -.18520E-04
  17  Prefactor     .10000E-03    6.8322       -.83725E-08** at limit **
  18  norm          .10000E-03    4.4994       -.75391E-07** at limit **
  19  Normalizat    1.2479        .20200       -.10586E-05    .12648E-03
  20  Prefactor     .85599        .13051        .11587E-06    .55660E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.86878
  Prefactor  = 57.3782
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.09839
  Prefactor  = 0.0001
  Prefactor  = 17.6591
  norm       = 1.39903
  Prefactor  = 23.8844
  norm       = 18.002
  norm       = 9.84466
  Prefactor  = 10.4498
  norm       = 0.0001
  Prefactor  = 1.54188
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.24795
  Prefactor  = 0.855988
 **********
 **   18 **HESSE 
 **********

 FCN=   7135.072     FROM HESSE     STATUS=OK           293 CALLS     2302 TOTAL
                     EDM=   .48E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    10.109        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    8.6563        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          1.8688        1.5887        .94310E-04   -1.5435    
   4  Prefactor     57.378        64.292        .52960E-04   -1.4192    
   5  norm          .10000E-03    19.751        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    2.5082        .12996E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     6.0984        27.618        .16256E-03   -1.5214    
   8  Prefactor     .10000E-03    3.3758        .15100E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     17.659        13.687        .95307E-04   -1.4867    
  10  norm          1.3990        1.9062        .13141E-03   -1.5471    
  11  Prefactor     23.884        24.858        .81959E-04   -1.4730    
  12  norm          18.002        10.493        .94396E-04   -1.4859    
  13  norm          9.8447        6.4665        .63855E-03   -1.5080    
  14  Prefactor     10.450        22.901        .12389E-03   -1.5061    
  15  norm          .10000E-03    12.562        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     1.5419        283.56        .32400E-03   -1.5460    
  17  Prefactor     .10000E-03    6.8339        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    4.5011        .17499E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.2479        .24500        .27433E-03   -.85134    
  20  Prefactor     .85599        .15770        .21576E-03   -.97696    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.84948e-10
Minuit parameter uncertainties:
  1  1.08195e-05
  2  7.71685e-06
  3  1.58871
  4  64.3696
  5  3.53213e-05
  6  5.1592e-06
  7  25.9753
  8  5.53876e-06
  9  13.689
  10  1.90625
  11  24.8692
  12  10.4939
  13  6.46695
  14  22.9207
  15  0.000151802
  16  42.0216
  17  6.07884e-06
  18  3.65306e-06
  19  0.245229
  20  0.157781
Done.

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

Extracting fit parameters...

4FGL J1359.4+0202
   Spectrum: PowerLaw
268    Prefactor:  1.766e+01  1.369e+01  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:  8.560e-01  1.578e-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.248e+00  2.452e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.04
Ra Dec: 209.859 2.042
Photon Index (Fixed Index): 2.39 +/- 0.00
Photon Flux (Fixed Index): 5.61e-08 +/- 4.35e-08
Energy Flux (Fixed Index): 1.88e-05 +/- 1.45e-05

TS (Fixed Index): 3.04
Ra Dec: 209.859 2.042
Photon Flux Upper Limit: 1.47e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.13e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/91120/likelihoodResults_413251201_413510401_4FGL_J1359.4+0202_daily_bin671.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) = 7135.07210229
delta logL = 5.72850849494e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7135.07198598
delta logL = 0.000173592402462

Fit tolerance = 1e-08

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

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

 FCN=   7135.072     FROM MIGRAD    STATUS=CONVERGED     64 CALLS      245 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     17.953        314.51        .23649E-02   -.53375E-04
   2  Index         2.3600        5.9878        .14875        .76618E-04
   3  Normalizat    1.2502        .15551        .61974E-01    .26805E-04
   4  Prefactor     .85499        .52783E-01    .44436E-01    .21953E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 17.953
  Index      = 2.36
  Normalizat = 1.25023
  Prefactor  = 0.854992
 **********
 **   18 **HESSE 
 **********

 FCN=   7135.072     FROM HESSE     STATUS=OK            33 CALLS      278 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     17.953        24.309        .94597E-04   -1.4860    
   2  Index         2.3600        1.5437        .99508E-02   -.55624    
   3  Normalizat    1.2502        .27667        .27412E-03   -.85065    
   4  Prefactor     .85499        .16885        .21587E-03   -.97732    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.85641e-08
Minuit parameter uncertainties:
  1  24.3226
  2  1.57988
  3  0.277001
  4  0.168957
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/91120': 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) = 7135.07197748
delta logL = 0.000182097410288

Extracting fit parameters...

4FGL J1359.4+0202
   Spectrum: PowerLaw
268    Prefactor:  1.795e+01  2.432e+01  1.000e-04  1.000e+04 ( 1.000e-13)
269        Index:  2.360e+00  1.580e+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:  8.550e-01  1.690e-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.250e+00  2.770e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.04
Ra Dec: 209.859 2.042
Photon Index (Free Index): 2.36 +/- 1.58
Photon Flux (Free Index): 5.45e-08 +/- 1.03e-07
Energy Flux (Free Index): 1.89e-05 +/- 1.70e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/91120/cmap_HighResolution_413251201_413510401_4FGL_J1359.4+0202_daily_bin671.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.13e-02', comment='SUCCESS', photon_flux='5.61e-08', energy_flux2='1.89e-05', photon_flux_error='4.35e-08', dlogl='1.82e-04', energy_flux='1.88e-05', photon_flux2='5.45e-08', job_status='DONE', time_completed='2021-09-08 19:34:33.124528', photon_index_error2='1.58', photon_index2='2.36', ts='3.04', fit_tolerance='1e-08', GAL='0.86', photon_index_error='0.00', photon_flux_upper_limit='1.47e-07', energy_flux_error2='1.70e-05', EG='1.25', time_epoch_completed='1631154873.12', return_code='0', job_id='91120', GAL2='0.85', EG2='1.25', return_code2='0', energy_flux_error='1.45e-05', photon_flux_error2='1.03e-07', ts2='3.04', photon_index='2.39' WHERE bin_id='671' AND source_name='4FGL J1359.4+0202' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 19:34:33 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0069>
Subject: Job 91120: <4FGL_J1359.4+0202_daily_bin671> in cluster <slac> Done

Job <4FGL_J1359.4+0202_daily_bin671> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Wed Sep  8 19:20:31 2021
Job was executed on host(s) <bullet0069>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 19:20:32 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:20:32 2021
Terminated at Wed Sep  8 19:34:33 2021
Results reported at Wed Sep  8 19:34:33 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1359.4+0202_daily_bin671 209.859 2.0424 413251201 413510401 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 :                                   591.13 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             238.41 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   841 sec.
    Turnaround time :                            842 sec.

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

