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


Performing analysis on: 4FGL_J0603.9+2159_daily_bin1216
RA = 90.9815, Dec = 21.9848
tmin = 554515201, tmax = 554774401
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='996106', job_status='RUN', time_executed='2021-08-24 06:39:04.243904', time_epoch_executed='1629812344.24' WHERE source_name='4FGL J0603.9+2159' and cadence='daily' and bin_id='1216'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/996106

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/996106/ft1_4FGL_J0603.9+2159_daily_bin1216.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/996106/ft2_4FGL_J0603.9+2159_daily_bin1216.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/996106/ft1_4FGL_J0603.9+2159_daily_bin1216.fits outfile=/scratch/kocevski/996106/ft1_filteredMKT_4FGL_J0603.9+2159_daily_bin1216.fits ra=90.9815 dec=21.9848 rad=12.0 tmin=554515201.0 tmax=554774401.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 4.34
user 3.88
sys 0.44

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/996106/ft2_4FGL_J0603.9+2159_daily_bin1216.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/996106/ft2_4FGL_J0603.9+2159_daily_bin1216.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/996106/ft1_filteredMKT_4FGL_J0603.9+2159_daily_bin1216.fits evtable="EVENTS" outfile="/scratch/kocevski/996106/ft1_filtered_4FGL_J0603.9+2159_daily_bin1216.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.73
user 0.34
sys 0.38

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/996106/ft1_filtered_4FGL_J0603.9+2159_daily_bin1216.fits" evtable="EVENTS" scfile=/scratch/kocevski/996106/ft2_4FGL_J0603.9+2159_daily_bin1216.fits sctable="SC_DATA" outfile=/scratch/kocevski/996106/ltcube_554515201_554774401_4FGL_J0603.9+2159_daily_bin1216.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/996106/ft2_4FGL_J0603.9+2159_daily_bin1216.fits
.....................!
real 14.92
user 14.30
sys 0.57

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/996106/ft1_filtered_4FGL_J0603.9+2159_daily_bin1216.fits evtable="EVENTS" scfile=/scratch/kocevski/996106/ft2_4FGL_J0603.9+2159_daily_bin1216.fits sctable="SC_DATA" expcube=/scratch/kocevski/996106/ltcube_554515201_554774401_4FGL_J0603.9+2159_daily_bin1216.fits outfile=/scratch/kocevski/996106/expmap_554515201_554774401_4FGL_J0603.9+2159_daily_bin1216.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/996106/ltcube_554515201_554774401_4FGL_J0603.9+2159_daily_bin1216.fits
.....................!
real 190.98
user 185.49
sys 4.85

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
Extended source IC 443 in ROI with RadialGaussian spatial model.
Extended source S 147 in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/S147.fits is the correct path to the extended template.
Extended source Monoceros in ROI with RadialGaussian spatial model.
Extended source Rosette in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/Rosette.fits is the correct path to the extended template.
Added 162 point sources and 4 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J0603.9+2159 @ 90.9815 21.9848

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/996106/ft1_filtered_4FGL_J0603.9+2159_daily_bin1216.fits scfile=/scratch/kocevski/996106/ft2_4FGL_J0603.9+2159_daily_bin1216.fits outfile=/scratch/kocevski/996106/cmap_554515201_554774401_4FGL_J0603.9+2159_daily_bin1216.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=90.9815 yref=21.9848 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.77
user 0.39
sys 0.36

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/996106/ft1_filtered_4FGL_J0603.9+2159_daily_bin1216.fits scfile=/scratch/kocevski/996106/ft2_4FGL_J0603.9+2159_daily_bin1216.fits outfile=/scratch/kocevski/996106/cmap_HighResolution_554515201_554774401_4FGL_J0603.9+2159_daily_bin1216.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=90.9815 yref=21.9848 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.77
user 0.38
sys 0.38

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/996106/ft1_filtered_4FGL_J0603.9+2159_daily_bin1216.fits evtable="EVENTS" scfile=/scratch/kocevski/996106/ft2_4FGL_J0603.9+2159_daily_bin1216.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/996106/Model_4FGL_J0603.9+2159_daily_bin1216.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
adding source IC 443
adding source Monoceros
adding source Rosette
adding source S 147
Working on...
/scratch/kocevski/996106/ft1_filtered_4FGL_J0603.9+2159_daily_bin1216.fits.....................!
real 73.02
user 71.24
sys 1.51

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/996106/ft1_filtered_4FGL_J0603.9+2159_daily_bin1216.fits', '/scratch/kocevski/996106/ft2_4FGL_J0603.9+2159_daily_bin1216.fits', expMap='/scratch/kocevski/996106/expmap_554515201_554774401_4FGL_J0603.9+2159_daily_bin1216.fits', expCube='/scratch/kocevski/996106/ltcube_554515201_554774401_4FGL_J0603.9+2159_daily_bin1216.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/996106/Model_4FGL_J0603.9+2159_daily_bin1216.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0603.9+2159'

4FGL J0603.9+2159
   Spectrum: PowerLaw
285    Prefactor:  1.767e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
286        Index:  2.379e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
287        Scale:  2.063e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/996106/ft1_filtered_4FGL_J0603.9+2159_daily_bin1216.fits
Spacecraft file(s): /scratch/kocevski/996106/ft2_4FGL_J0603.9+2159_daily_bin1216.fits
Exposure map: /scratch/kocevski/996106/expmap_554515201_554774401_4FGL_J0603.9+2159_daily_bin1216.fits
Exposure cube: /scratch/kocevski/996106/ltcube_554515201_554774401_4FGL_J0603.9+2159_daily_bin1216.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/996106/Model_4FGL_J0603.9+2159_daily_bin1216.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 2950.84244309

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 2949.77782606

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.5860       1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.1024       1.0000         .10000E-03   10000.    
     3 'norm      '    52.605       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .33430E-01   1.0000         .10000E-03   10000.    
     5 'norm      '    1.7259       1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.0798       1.0000         .10000E-03   10000.    
     7 'norm      '    .13430E-01   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10055E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .42097       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .54639E-01   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10508E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    7.6683       1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.1367       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .27241E-02   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .27149E-02   1.0000         .10000E-03   10000.    
    16 'norm      '    .37640E-02   1.0000         .10000E-03   10000.    
    17 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    18 'Prefactor '    .84090       1.0000          .0000       10.000    
    19 'norm      '    2.5175       1.0000         .10000E-03   10000.    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5730E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   2949.768     FROM MIGRAD    STATUS=CONVERGED    181 CALLS      303 TOTAL
                     EDM=   .41E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.5860        1.0200         .0000         .0000    
   2  Prefactor     .10013E-03    309.45        .10943E-03** at limit **
   3  norm          53.165        71.288        .17971E-03   -.95793E-04
   4  Prefactor     .10067E-03    471.50       -.25522E-03** at limit **
   5  norm          1.6013        163.61        .18609E-03   -.19858E-04
   6  Prefactor     1.0795        .89323       -.45545E-05    .52864E-03
   7  norm          .10000E-03    34.422       -.33056E-04** at limit **
   8  Prefactor     .10000E-03    7.0858       -.77996E-05** at limit **
   9  Prefactor     .10002E-03    580.10        .18034E-05** at limit **
  10  Prefactor     .13728E-03    19.108        .53585E-05** at limit **
  11  Prefactor     .10000E-03    42.885       -.39392E-04** at limit **
  12  Prefactor     .10005E-03    731.22        .48548E-03** at limit **
  13  Prefactor     .10110E-03    2271.6       -.41934E-05** at limit **
  14  Prefactor     .10000E-03    107.11        .56426E-05** at limit **
  15  Prefactor     .10000E-03    46.625        .17691E-04** at limit **
  16  norm          .10000E-03    32.873        .13905E-05** at limit **
  17  Normalizat    .10000E-01    .84653        .10225E-03** at limit **
  18  Prefactor     .84112        .88033E-01   -.11740E-04    .69004E-04
  19  norm          2.5201        2.3717       -.59094E-05   -.15595E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.586
  Prefactor  = 0.000100132
  norm       = 53.1649
  Prefactor  = 0.000100668
  norm       = 1.60126
  Prefactor  = 1.07954
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100019
  Prefactor  = 0.000137275
  Prefactor  = 0.0001
  Prefactor  = 0.000100053
  Prefactor  = 0.000101097
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 0.01
  Prefactor  = 0.841118
  norm       = 2.52014
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   2949.768     FROM HESSE     STATUS=FAILED         9 CALLS      312 TOTAL
                     EDM=   .41E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     560.04        557.36         .0000       -1.5386    
   2  Prefactor     .10013E-03    .12655        .10943E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          53.165        1.0053        .17971E-03   -1.4248    
   4  Prefactor     .10067E-03    .21109       -.25522E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          1.6013        1.0111        .18609E-03   -1.5455    
   6  Prefactor     1.0795        1.2050       -.45545E-05   -1.5500    
   7  norm          .10000E-03    .20657       -.33056E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    .20571       -.77996E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10002E-03    .29941        .18034E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .13728E-03    .21588        .53585E-05   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    .20571       -.39392E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10005E-03    .32767E-01    .48548E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10110E-03    .61372E-01   -.41934E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    .24827        .56426E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    .24835        .17691E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    .23934        .13905E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Normalizat    .10000E-01    .25505        .10225E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .84112        1.1884       -.11740E-04   -.98230    
  19  norm          2.5201        1.0218       -.59094E-05   -1.5390    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 4.10452e-10
Minuit parameter uncertainties:
  1  1.02003
  2  0.000258343
  3  1.00533
  4  0.000750759
  5  1.01111
  6  1.20502
  7  1.5599e-06
  8  5.04052e-06
  9  0.000151463
  10  0.0056735
  11  1.96366e-05
  12  8.34865e-05
  13  0.000518934
  14  1.12563e-05
  15  6.26292e-06
  16  8.94941e-06
  17  1.76908e-07
  18  1.22811
  19  1.02176
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 2949.76777624

Extracting fit parameters...

4FGL J0603.9+2159
   Spectrum: PowerLaw
285    Prefactor:  1.000e-04  1.964e-05  1.000e-04  1.000e+04 ( 1.000e-13)
286        Index:  2.379e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
287        Scale:  2.063e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
554    Prefactor:  8.411e-01  1.228e+00  0.000e+00  1.000e+01 ( 1.000e+00)
555        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
556        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
553   Normalization:  1.000e-02  1.769e-07  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 90.981 21.985
Photon Flux Upper Limit: 1.51e-06 ph cm-2 s-1
Energy Flux Upper Limit: 1.17e-01 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/996106/likelihoodResults_554515201_554774401_4FGL_J0603.9+2159_daily_bin1216.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) = 2949.76789261
delta logL = -0.000116375812922

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2949.76778202
delta logL = -5.7856782405e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10331E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6335       1.0000          .0000       10.000    
     3 'Normalizat'    .10009E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84112       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5730E+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=   2949.768     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      287 TOTAL
                     EDM=   .24E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10327E-03    8.6485        .18142E-01** at limit **
   2  Index         2.5538        6.5338        .50000        .11722E-04
   3  Normalizat    .10000E-01    .46961E-03    .22241E-01** at limit **
   4  Prefactor     .84112        .19749E-02    .16212E-03    .65183E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000103271
  Index      = 2.55377
  Normalizat = 0.01
  Prefactor  = 0.841118
 **********
 **   18 **HESSE 
 **********

 FCN=   2949.768     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      316 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10327E-03    104.33        .29957E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5538        6.9273        .50000       -.51122    
   3  Normalizat    .10000E-01    .57031E-02    .44483E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .84112        .68755E-02    .64846E-05   -.98230    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.82449e-09
Minuit parameter uncertainties:
  1  0.0370111
  2  231.91
  3  1.38415e-08
  4  0.00687554
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/996106': 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) = 2949.76777668
delta logL = -4.46768353868e-07

Extracting fit parameters...

4FGL J0603.9+2159
   Spectrum: PowerLaw
285    Prefactor:  1.033e-04  3.701e-02  1.000e-04  1.000e+04 ( 1.000e-13)
286        Index:  2.554e+00  2.319e+02  0.000e+00  1.000e+01 (-1.000e+00)
287        Scale:  2.063e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
554    Prefactor:  8.411e-01  6.876e-03  0.000e+00  1.000e+01 ( 1.000e+00)
555        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
556        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
553   Normalization:  1.000e-02  1.384e-08  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 90.981 21.985

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/996106/cmap_HighResolution_554515201_554774401_4FGL_J0603.9+2159_daily_bin1216.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.17e-01', job_status='DONE', photon_flux_upper_limit='1.51e-06', time_completed='2021-08-24 06:45:59.100411', job_id='996106', GAL2='0.84', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1629812759.1', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='101', GAL='0.84', dlogl='-4.47e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.38' WHERE bin_id='1216' AND source_name='4FGL J0603.9+2159' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 24 06:45:59 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0208>
Subject: Job 996106: <4FGL_J0603.9+2159_daily_bin1216> in cluster <slac> Done

Job <4FGL_J0603.9+2159_daily_bin1216> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Aug 24 06:35:34 2021
Job was executed on host(s) <bullet0208>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 24 06:35:35 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Aug 24 06:35:35 2021
Terminated at Tue Aug 24 06:45:59 2021
Results reported at Tue Aug 24 06:45:59 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0603.9+2159_daily_bin1216 90.9815 21.9848 554515201 554774401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0603.9+2159 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   413.52 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             222.91 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   624 sec.
    Turnaround time :                            625 sec.

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

