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


Performing analysis on: 4FGL_J1359.4+0202_daily_bin724
RA = 209.859, Dec = 2.0424
tmin = 426988801, tmax = 427248001
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='91198', job_status='RUN', time_executed='2021-09-08 19:24:04.667281', time_epoch_executed='1631154244.67' WHERE source_name='4FGL J1359.4+0202' and cadence='daily' and bin_id='724'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/91198

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/91198/ft1_4FGL_J1359.4+0202_daily_bin724.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/91198/ft2_4FGL_J1359.4+0202_daily_bin724.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/91198/ft1_4FGL_J1359.4+0202_daily_bin724.fits outfile=/scratch/kocevski/91198/ft1_filteredMKT_4FGL_J1359.4+0202_daily_bin724.fits ra=209.859 dec=2.0424 rad=12.0 tmin=426988801.0 tmax=427248001.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.80
user 5.59
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/91198/ft1_filtered_4FGL_J1359.4+0202_daily_bin724.fits" evtable="EVENTS" scfile=/scratch/kocevski/91198/ft2_4FGL_J1359.4+0202_daily_bin724.fits sctable="SC_DATA" outfile=/scratch/kocevski/91198/ltcube_426988801_427248001_4FGL_J1359.4+0202_daily_bin724.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/91198/ft2_4FGL_J1359.4+0202_daily_bin724.fits
.....................!
real 11.88
user 11.49
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/91198/ft1_filtered_4FGL_J1359.4+0202_daily_bin724.fits evtable="EVENTS" scfile=/scratch/kocevski/91198/ft2_4FGL_J1359.4+0202_daily_bin724.fits sctable="SC_DATA" expcube=/scratch/kocevski/91198/ltcube_426988801_427248001_4FGL_J1359.4+0202_daily_bin724.fits outfile=/scratch/kocevski/91198/expmap_426988801_427248001_4FGL_J1359.4+0202_daily_bin724.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/91198/ltcube_426988801_427248001_4FGL_J1359.4+0202_daily_bin724.fits
.....................!
real 190.46
user 185.13
sys 5.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/91198/ft1_filtered_4FGL_J1359.4+0202_daily_bin724.fits scfile=/scratch/kocevski/91198/ft2_4FGL_J1359.4+0202_daily_bin724.fits outfile=/scratch/kocevski/91198/cmap_426988801_427248001_4FGL_J1359.4+0202_daily_bin724.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.55
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/91198/ft1_filtered_4FGL_J1359.4+0202_daily_bin724.fits scfile=/scratch/kocevski/91198/ft2_4FGL_J1359.4+0202_daily_bin724.fits outfile=/scratch/kocevski/91198/cmap_HighResolution_426988801_427248001_4FGL_J1359.4+0202_daily_bin724.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.58
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.0033       1.0000         .10000E-03   10000.    
     2 'Prefactor '    13.610       1.0000         .10000E-03   10000.    
     3 'norm      '    .10095E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .46961E-02   1.0000         .10000E-03   10000.    
     5 'norm      '    .10025E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.8556       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.8715       1.0000         .10000E-03   10000.    
     9 'Prefactor '    7.3029       1.0000         .10000E-03   10000.    
    10 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    5.7953       1.0000         .10000E-03   10000.    
    13 'norm      '    .10038E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    7.1498       1.0000         .10000E-03   10000.    
    15 'norm      '    25.847       1.0000         .10000E-03   10000.    
    16 'Prefactor '    5.1280       1.0000         .10000E-03   10000.    
    17 'Prefactor '    19.150       1.0000         .10000E-03   10000.    
    18 'norm      '    .10067E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.1641       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .99490       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=   7724.506     FROM MIGRAD    STATUS=CONVERGED    431 CALLS     2078 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.0208        13.866       -.13977E-06   -.40697E-03
   2  Prefactor     13.603        14.290       -.73716E-05    .94210E-04
   3  norm          .10000E-03    .65570       -.37055E-06** at limit **
   4  Prefactor     .10020E-03    386.71       -.23439E-03** at limit **
   5  norm          .10000E-03    15.350       -.70300E-06** at limit **
   6  Prefactor     4.8569        4.0004       -.15218E-05    .15008E-03
   7  Prefactor     .10000E-03    9.3759        .21554E-06** at limit **
   8  Prefactor     3.8717        3.8192        .26080E-06    .15809E-03
   9  Prefactor     7.3041        13.146        .24132E-06    .29876E-05
  10  norm          .10000E-03    .91927       -.26686E-06** at limit **
  11  Prefactor     .10000E-03    6.4572       -.15943E-06** at limit **
  12  norm          5.7951        7.6337        .29208E-06   -.27658E-04
  13  norm          .10000E-03    2.7955        .17047E-06** at limit **
  14  Prefactor     7.1966        26.530       -.52810E-04   -.46228E-04
  15  norm          25.812        23.166        .22010E-04    .12215E-03
  16  Prefactor     5.1262        19.104        .19720E-05   -.29732E-04
  17  Prefactor     19.140        17.560        .53612E-05    .33022E-04
  18  norm          .10000E-03    4.9590       -.42810E-06** at limit **
  19  Normalizat    1.1641        .19360        .65567E-05    .35770E-03
  20  Prefactor     .99491        .12634       -.11846E-05    .12641E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.02076
  Prefactor  = 13.6027
  norm       = 0.0001
  Prefactor  = 0.000100205
  norm       = 0.0001
  Prefactor  = 4.85685
  Prefactor  = 0.0001
  Prefactor  = 3.87166
  Prefactor  = 7.30413
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 5.79513
  norm       = 0.0001
  Prefactor  = 7.19657
  norm       = 25.8119
  Prefactor  = 5.12619
  Prefactor  = 19.1399
  norm       = 0.0001
  Normalizat = 1.1641
  Prefactor  = 0.994907
 **********
 **   18 **HESSE 
 **********

 FCN=   7724.506     FROM HESSE     STATUS=OK           295 CALLS     2373 TOTAL
                     EDM=   .86E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.0208        107.13        .62463E-02   -1.5506    
   2  Prefactor     13.603        14.293        .10857E-03   -1.4970    
   3  norm          .10000E-03    1.5331        .13800E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10020E-03    390.71        .38575E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    15.393        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     4.8569        4.0042        .15322E-03   -1.5267    
   7  Prefactor     .10000E-03    9.3936        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     3.8717        3.8140        .16575E-03   -1.5314    
   9  Prefactor     7.3041        13.181        .14842E-03   -1.5167    
  10  norm          .10000E-03    .94776        .16447E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    6.4653        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          5.7951        7.6321        .16683E-03   -1.5226    
  13  norm          .10000E-03    2.8075        .14350E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     7.1966        26.808        .15002E-03   -1.5171    
  15  norm          25.812        23.193        .78796E-04   -1.4691    
  16  Prefactor     5.1262        19.091        .17754E-03   -1.5255    
  17  Prefactor     19.140        17.558        .91526E-04   -1.4833    
  18  norm          .10000E-03    4.9641        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.1641        .23507        .28547E-03   -.87720    
  20  Prefactor     .99491        .15300        .20731E-03   -.92899    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.60926e-09
Minuit parameter uncertainties:
  1  20.9518
  2  14.2963
  3  7.6362e-06
  4  0.0180125
  5  1.36143e-05
  6  4.00445
  7  2.40896e-05
  8  3.81423
  9  13.1858
  10  8.64482e-06
  11  2.28327e-06
  12  7.63338
  13  1.06513e-05
  14  26.8528
  15  23.2015
  16  19.1134
  17  17.563
  18  2.01209e-05
  19  0.235281
  20  0.153062
Done.

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

Extracting fit parameters...

4FGL J1359.4+0202
   Spectrum: PowerLaw
268    Prefactor:  7.304e+00  1.319e+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:  9.949e-01  1.531e-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.164e+00  2.353e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.36
Ra Dec: 209.859 2.042
Photon Flux Upper Limit: 1.14e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.79e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/91198/likelihoodResults_426988801_427248001_4FGL_J1359.4+0202_daily_bin724.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) = 7723.82521213
delta logL = 0.680801048456

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7723.780188
delta logL = 0.725825183741

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.1924       1.0000         .10000E-03   10000.    
     2 'Index     '    3.6332       1.0000          .0000       10.000    
     3 'Normalizat'    1.0876       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0253       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=   7723.780     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      260 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.1897        32.255        .69484E-02    .83247E-03
   2  Index         3.6337        2.8252        .10169        .21698E-03
   3  Normalizat    1.0876        .58508E-01    .66446E-01    .87281E-05
   4  Prefactor     1.0254        .38182E-01    .41644E-01   -.66277E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.1897
  Index      = 3.63366
  Normalizat = 1.08762
  Prefactor  = 1.02535
 **********
 **   18 **HESSE 
 **********

 FCN=   7723.780     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      293 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.1897        61.672        .96593E-04   -1.5412    
   2  Index         3.6337        6.7541        .53263E-02   -.27679    
   3  Normalizat    1.0876        .23669        .29396E-03   -.90150    
   4  Prefactor     1.0254        .15545        .20447E-03   -.91889    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.35932e-09
Minuit parameter uncertainties:
  1  23.2675
  2  5.14429
  3  0.236926
  4  0.155519
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/91198': 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) = 7723.78018772
delta logL = 0.725825462049

Extracting fit parameters...

4FGL J1359.4+0202
   Spectrum: PowerLaw
268    Prefactor:  2.190e+00  2.327e+01  1.000e-04  1.000e+04 ( 1.000e-13)
269        Index:  3.634e+00  5.144e+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:  1.025e+00  1.555e-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.088e+00  2.369e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.93
Ra Dec: 209.859 2.042
Photon Index (Free Index): 3.63 +/- 5.14
Photon Flux (Free Index): 8.87e-08 +/- 8.76e-08
Energy Flux (Free Index): 1.43e-05 +/- 1.44e-05

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/91198/cmap_HighResolution_426988801_427248001_4FGL_J1359.4+0202_daily_bin724.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.79e-03', comment='SUCCESS', energy_flux2='1.43e-05', dlogl='7.26e-01', photon_flux2='8.87e-08', job_status='DONE', time_completed='2021-09-08 19:34:26.110630', photon_index_error2='5.14', photon_index2='3.63', ts='0.36', fit_tolerance='1e-08', GAL='0.99', photon_index_error='0.00', photon_flux_upper_limit='1.14e-07', energy_flux_error2='1.44e-05', EG='1.16', time_epoch_completed='1631154866.11', return_code='0', job_id='91198', GAL2='1.03', EG2='1.09', return_code2='102', photon_flux_error2='8.76e-08', ts2='1.93', photon_index='2.39' WHERE bin_id='724' AND source_name='4FGL J1359.4+0202' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 19:34:26 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0207>
Subject: Job 91198: <4FGL_J1359.4+0202_daily_bin724> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1359.4+0202_daily_bin724 209.859 2.0424 426988801 427248001 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 :                                   619.36 sec.
    Max Memory :                                 1192 MB
    Average Memory :                             289.38 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   828 sec.
    Turnaround time :                            830 sec.

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

