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


Performing analysis on: 4FGL_J0603.9+2159_daily_bin1194
RA = 90.9815, Dec = 21.9848
tmin = 548812801, tmax = 549072001
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='996075', job_status='RUN', time_executed='2021-08-24 06:36:11.205639', time_epoch_executed='1629812171.21' WHERE source_name='4FGL J0603.9+2159' and cadence='daily' and bin_id='1194'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/996075

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/996075/ft1_4FGL_J0603.9+2159_daily_bin1194.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/996075/ft2_4FGL_J0603.9+2159_daily_bin1194.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/996075/ft1_4FGL_J0603.9+2159_daily_bin1194.fits outfile=/scratch/kocevski/996075/ft1_filteredMKT_4FGL_J0603.9+2159_daily_bin1194.fits ra=90.9815 dec=21.9848 rad=12.0 tmin=548812801.0 tmax=549072001.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.25
user 2.65
sys 1.47

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/996075/ft2_4FGL_J0603.9+2159_daily_bin1194.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/996075/ft1_filteredMKT_4FGL_J0603.9+2159_daily_bin1194.fits evtable="EVENTS" outfile="/scratch/kocevski/996075/ft1_filtered_4FGL_J0603.9+2159_daily_bin1194.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 1.92
user 0.37
sys 1.47

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/996075/ft1_filtered_4FGL_J0603.9+2159_daily_bin1194.fits" evtable="EVENTS" scfile=/scratch/kocevski/996075/ft2_4FGL_J0603.9+2159_daily_bin1194.fits sctable="SC_DATA" outfile=/scratch/kocevski/996075/ltcube_548812801_549072001_4FGL_J0603.9+2159_daily_bin1194.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/996075/ft2_4FGL_J0603.9+2159_daily_bin1194.fits
.....................!
real 19.06
user 16.94
sys 1.83

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/996075/ft1_filtered_4FGL_J0603.9+2159_daily_bin1194.fits evtable="EVENTS" scfile=/scratch/kocevski/996075/ft2_4FGL_J0603.9+2159_daily_bin1194.fits sctable="SC_DATA" expcube=/scratch/kocevski/996075/ltcube_548812801_549072001_4FGL_J0603.9+2159_daily_bin1194.fits outfile=/scratch/kocevski/996075/expmap_548812801_549072001_4FGL_J0603.9+2159_daily_bin1194.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/996075/ltcube_548812801_549072001_4FGL_J0603.9+2159_daily_bin1194.fits
.....................!
real 195.96
user 186.76
sys 6.90

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/996075/ft1_filtered_4FGL_J0603.9+2159_daily_bin1194.fits scfile=/scratch/kocevski/996075/ft2_4FGL_J0603.9+2159_daily_bin1194.fits outfile=/scratch/kocevski/996075/cmap_548812801_549072001_4FGL_J0603.9+2159_daily_bin1194.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 1.90
user 0.39
sys 1.44

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/996075/ft1_filtered_4FGL_J0603.9+2159_daily_bin1194.fits scfile=/scratch/kocevski/996075/ft2_4FGL_J0603.9+2159_daily_bin1194.fits outfile=/scratch/kocevski/996075/cmap_HighResolution_548812801_549072001_4FGL_J0603.9+2159_daily_bin1194.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 1.84
user 0.39
sys 1.43

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/996075/ft1_filtered_4FGL_J0603.9+2159_daily_bin1194.fits evtable="EVENTS" scfile=/scratch/kocevski/996075/ft2_4FGL_J0603.9+2159_daily_bin1194.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/996075/Model_4FGL_J0603.9+2159_daily_bin1194.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/996075/ft1_filtered_4FGL_J0603.9+2159_daily_bin1194.fits.....................!
real 193.55
user 188.70
sys 3.09

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/996075/ft1_filtered_4FGL_J0603.9+2159_daily_bin1194.fits', '/scratch/kocevski/996075/ft2_4FGL_J0603.9+2159_daily_bin1194.fits', expMap='/scratch/kocevski/996075/expmap_548812801_549072001_4FGL_J0603.9+2159_daily_bin1194.fits', expCube='/scratch/kocevski/996075/ltcube_548812801_549072001_4FGL_J0603.9+2159_daily_bin1194.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/996075/Model_4FGL_J0603.9+2159_daily_bin1194.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/996075/ft1_filtered_4FGL_J0603.9+2159_daily_bin1194.fits
Spacecraft file(s): /scratch/kocevski/996075/ft2_4FGL_J0603.9+2159_daily_bin1194.fits
Exposure map: /scratch/kocevski/996075/expmap_548812801_549072001_4FGL_J0603.9+2159_daily_bin1194.fits
Exposure cube: /scratch/kocevski/996075/ltcube_548812801_549072001_4FGL_J0603.9+2159_daily_bin1194.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/996075/Model_4FGL_J0603.9+2159_daily_bin1194.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) = 7720.56191485

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .28080E-02   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .70098E-02   1.0000         .10000E-03   10000.    
     3 'norm      '    19.911       1.0000         .10000E-03   10000.    
     4 'Prefactor '    330.57       1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .95553       1.0000         .10000E-03   10000.    
     7 'norm      '    .10154E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .12339E-02   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10056E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    61.657       1.0000         .10000E-03   10000.    
    12 'Prefactor '    153.55       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .26400E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10223E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    74.734       1.0000         .10000E-03   10000.    
    16 'norm      '    1.4138       1.0000         .10000E-03   10000.    
    17 'Normalizat'    .55291       1.0000         .10000E-01   10.000    
    18 'Prefactor '    1.0187       1.0000          .0000       10.000    
    19 'norm      '    4.0405       1.0000         .10000E-03   10000.    
 **********
 **   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.

 FCN=   7720.295     FROM MIGRAD    STATUS=CONVERGED    398 CALLS     2179 TOTAL
                     EDM=   .92E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10034E-03    6338.1       -.59403E-04** at limit **
   2  Prefactor     .10000E-03    549.95       -.24152E-05** at limit **
   3  norm          19.852        64.555        .47359E-05    .49615E-04
   4  Prefactor     329.69        447.75       -.11566E-04   -.22403E-04
   5  norm          .10000E-03    9.1035        .24788E-07** at limit **
   6  Prefactor     .95527        .44621        .13752E-05   -.42133E-02
   7  norm          .10000E-03    7.4296       -.49206E-06** at limit **
   8  Prefactor     .10667E-03    1.8431       -.25273E-05** at limit **
   9  Prefactor     .10000E-03    38.146        .36031E-06** at limit **
  10  Prefactor     .10000E-03    7.4105        .88134E-07** at limit **
  11  Prefactor     61.658        30.450        .16204E-05   -.16053E-04
  12  Prefactor     153.55        173.67        .32189E-05    .10497E-04
  13  Prefactor     .10002E-03    257.50        .10313E-04** at limit **
  14  Prefactor     .10000E-03    30.524        .22862E-07** at limit **
  15  Prefactor     74.739        41.924        .13639E-05    .28473E-04
  16  norm          1.3723        60.520       -.18362E-05   -.56276E-04
  17  Normalizat    .55232        .72111       -.16982E-04   -.40619E-04
  18  Prefactor     1.0188        .98417E-01    .17838E-05    .37367E-03
  19  norm          4.0404        1.4137        .40864E-07    .48437E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100342
  Prefactor  = 0.000100002
  norm       = 19.8523
  Prefactor  = 329.69
  norm       = 0.0001
  Prefactor  = 0.955272
  norm       = 0.000100001
  Prefactor  = 0.000106665
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 61.6576
  Prefactor  = 153.552
  Prefactor  = 0.000100016
  Prefactor  = 0.0001
  Prefactor  = 74.7394
  norm       = 1.37227
  Normalizat = 0.552324
  Prefactor  = 1.0188
  norm       = 4.04035
 **********
 **   18 **HESSE 
 **********

 FCN=   7720.295     FROM HESSE     STATUS=OK           268 CALLS     2447 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10034E-03    6344.8        .19899E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    550.01        .18697E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          19.852        64.488        .89760E-04   -1.4817    
   4  Prefactor     329.69        470.50        .11187E-03   -1.2056    
   5  norm          .10000E-03    9.1039        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .95527        .47385        .33708E-04   -1.5512    
   7  norm          .10000E-03    7.4613        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10667E-03    6.3648        .36459E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    38.148        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    7.4265        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     61.658        30.557        .51101E-04   -1.4136    
  12  Prefactor     153.55        172.83        .32531E-04   -1.3223    
  13  Prefactor     .10002E-03    258.06        .21443E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    30.535        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     74.739        40.817        .46445E-04   -1.3977    
  16  norm          1.3723        59.625        .36418E-03   -1.5474    
  17  Normalizat    .55232        .59968        .15770E-02   -1.1005    
  18  Prefactor     1.0188        .87423E-01    .17188E-03   -.92105    
  19  norm          4.0404        1.4128        .58770E-04   -1.5306    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.35677e-09
Minuit parameter uncertainties:
  1  0.0637404
  2  0.0018369
  3  64.7154
  4  476.123
  5  5.86128e-06
  6  0.47385
  7  0.000180011
  8  0.0130279
  9  2.12298e-06
  10  1.54897e-05
  11  30.5643
  12  173.408
  13  0.00403535
  14  1.21381e-05
  15  40.8322
  16  18.1096
  17  0.606929
  18  0.0874349
  19  1.41279
Done.

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

Extracting fit parameters...

4FGL J0603.9+2159
   Spectrum: PowerLaw
285    Prefactor:  6.166e+01  3.056e+01  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:  1.019e+00  8.743e-02  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:  5.523e-01  6.069e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 9.81
Ra Dec: 90.981 21.985
Photon Index (Fixed Index): 2.38 +/- 0.00
Photon Flux (Fixed Index): 6.00e-07 +/- 2.97e-07
Energy Flux (Fixed Index): 2.02e-04 +/- 1.00e-04

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) = 7719.95516752
delta logL = 0.339609454028

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7719.9547467
delta logL = 0.340030276122

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    96.108       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0556       1.0000          .0000       10.000    
     3 'Normalizat'    .58748       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0195       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=   7719.955     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      309 TOTAL
                     EDM=   .37E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     96.155        63.582        .20500E-03    .10631E-03
   2  Index         2.0561        .39697        .53828E-02    .64968E-03
   3  Normalizat    .58751        .57477        .15401E-02   -.20913E-04
   4  Prefactor     1.0194        .86373E-01    .17196E-03    .32745E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 96.1548
  Index      = 2.05612
  Normalizat = 0.587506
  Prefactor  = 1.01939
 **********
 **   18 **HESSE 
 **********

 FCN=   7719.955     FROM HESSE     STATUS=OK            25 CALLS      334 TOTAL
                     EDM=   .21E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     96.155        61.504        .82000E-05   -1.3744    
   2  Index         2.0561        .38384        .10766E-02   -.62954    
   3  Normalizat    .58751        .57421        .61603E-04   -1.0852    
   4  Prefactor     1.0194        .86332E-01    .34391E-04   -.92086    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.1076e-10
Minuit parameter uncertainties:
  1  61.545
  2  0.384416
  3  0.580183
  4  0.086344
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/996075': 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) = 7719.95474397
delta logL = 0.340033006099

Extracting fit parameters...

4FGL J0603.9+2159
   Spectrum: PowerLaw
285    Prefactor:  9.615e+01  6.155e+01  1.000e-04  1.000e+04 ( 1.000e-13)
286        Index:  2.056e+00  3.844e-01  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:  1.019e+00  8.634e-02  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:  5.875e-01  5.802e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 10.51
Ra Dec: 90.981 21.985
Photon Index (Free Index): 2.06 +/- 0.38
Photon Flux (Free Index): 4.59e-07 +/- 3.05e-07
Energy Flux (Free Index): 2.78e-04 +/- 1.92e-04

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/996075/cmap_HighResolution_548812801_549072001_4FGL_J0603.9+2159_daily_bin1194.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.00e-07', energy_flux2='2.78e-04', photon_flux_error='2.97e-07', dlogl='3.40e-01', energy_flux='2.02e-04', photon_flux2='4.59e-07', job_status='DONE', time_completed='2021-08-24 06:49:39.926811', photon_index_error2='0.38', photon_index2='2.06', ts='9.81', fit_tolerance='1e-08', GAL='1.02', photon_index_error='0.00', energy_flux_error2='1.92e-04', EG='0.55', time_epoch_completed='1629812979.93', return_code='0', job_id='996075', GAL2='1.02', EG2='0.59', return_code2='0', energy_flux_error='1.00e-04', photon_flux_error2='3.05e-07', ts2='10.51', photon_index='2.38' WHERE bin_id='1194' AND source_name='4FGL J0603.9+2159' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 24 06:49:39 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0233>
Subject: Job 996075: <4FGL_J0603.9+2159_daily_bin1194> in cluster <slac> Done

Job <4FGL_J0603.9+2159_daily_bin1194> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Aug 24 06:35:32 2021
Job was executed on host(s) <bullet0233>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 24 06:35:34 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:34 2021
Terminated at Tue Aug 24 06:49:41 2021
Results reported at Tue Aug 24 06:49:41 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0603.9+2159_daily_bin1194 90.9815 21.9848 548812801 549072001 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 :                                   819.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             327.27 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   846 sec.
    Turnaround time :                            849 sec.

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

