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


Performing analysis on: 4FGL_J0635.6-7518_daily_bin1171
RA = 98.9022, Dec = -75.3046
tmin = 542851201, tmax = 543110401
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='528993', job_status='RUN', time_executed='2021-08-25 10:15:52.576221', time_epoch_executed='1629911752.58' WHERE source_name='4FGL J0635.6-7518' and cadence='daily' and bin_id='1171'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/528993

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

Retrieving the FT1 file...

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

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

Retrieving 4 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/528993/ft1_4FGL_J0635.6-7518_daily_bin1171.fits


Retrieving the FT1 file...

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

Retrieving 4 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/528993/ft2_4FGL_J0635.6-7518_daily_bin1171.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/528993/ft1_4FGL_J0635.6-7518_daily_bin1171.fits outfile=/scratch/kocevski/528993/ft1_filteredMKT_4FGL_J0635.6-7518_daily_bin1171.fits ra=98.9022 dec=-75.3046 rad=12.0 tmin=542851201.0 tmax=543110401.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 0.97
user 0.58
sys 0.34

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/528993/ft2_4FGL_J0635.6-7518_daily_bin1171.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/528993/ft2_4FGL_J0635.6-7518_daily_bin1171.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/528993/ft1_filteredMKT_4FGL_J0635.6-7518_daily_bin1171.fits evtable="EVENTS" outfile="/scratch/kocevski/528993/ft1_filtered_4FGL_J0635.6-7518_daily_bin1171.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.66
user 0.30
sys 0.35

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/528993/ft1_filtered_4FGL_J0635.6-7518_daily_bin1171.fits" evtable="EVENTS" scfile=/scratch/kocevski/528993/ft2_4FGL_J0635.6-7518_daily_bin1171.fits sctable="SC_DATA" outfile=/scratch/kocevski/528993/ltcube_542851201_543110401_4FGL_J0635.6-7518_daily_bin1171.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/528993/ft2_4FGL_J0635.6-7518_daily_bin1171.fits
.....................!
real 2.05
user 1.50
sys 0.53

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/528993/ft1_filtered_4FGL_J0635.6-7518_daily_bin1171.fits evtable="EVENTS" scfile=/scratch/kocevski/528993/ft2_4FGL_J0635.6-7518_daily_bin1171.fits sctable="SC_DATA" expcube=/scratch/kocevski/528993/ltcube_542851201_543110401_4FGL_J0635.6-7518_daily_bin1171.fits outfile=/scratch/kocevski/528993/expmap_542851201_543110401_4FGL_J0635.6-7518_daily_bin1171.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/528993/ltcube_542851201_543110401_4FGL_J0635.6-7518_daily_bin1171.fits
.....................!
real 192.50
user 186.69
sys 5.26

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 LMC-Galaxy in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/LMC-Galaxy.fits is the correct path to the extended template.
Extended source LMC-30DorWest in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/LMC-30DorWest.fits is the correct path to the extended template.
Extended source LMC-FarWest in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/LMC-FarWest.fits is the correct path to the extended template.
Extended source LMC-North in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/LMC-North.fits is the correct path to the extended template.
Extended source SMC-Galaxy in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/SMC-Galaxy.fits is the correct path to the extended template.
Added 173 point sources and 5 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 J0635.6-7518 @ 98.9022 -75.3046

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/528993/ft1_filtered_4FGL_J0635.6-7518_daily_bin1171.fits scfile=/scratch/kocevski/528993/ft2_4FGL_J0635.6-7518_daily_bin1171.fits outfile=/scratch/kocevski/528993/cmap_542851201_543110401_4FGL_J0635.6-7518_daily_bin1171.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=98.9022 yref=-75.3046 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.68
user 0.35
sys 0.31

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/528993/ft1_filtered_4FGL_J0635.6-7518_daily_bin1171.fits scfile=/scratch/kocevski/528993/ft2_4FGL_J0635.6-7518_daily_bin1171.fits outfile=/scratch/kocevski/528993/cmap_HighResolution_542851201_543110401_4FGL_J0635.6-7518_daily_bin1171.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=98.9022 yref=-75.3046 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.71
user 0.37
sys 0.33

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/528993/ft1_filtered_4FGL_J0635.6-7518_daily_bin1171.fits evtable="EVENTS" scfile=/scratch/kocevski/528993/ft2_4FGL_J0635.6-7518_daily_bin1171.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/528993/Model_4FGL_J0635.6-7518_daily_bin1171.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 LMC-30DorWest
adding source LMC-FarWest
adding source LMC-Galaxy
adding source LMC-North
adding source SMC-Galaxy
Working on...
/scratch/kocevski/528993/ft1_filtered_4FGL_J0635.6-7518_daily_bin1171.fits....................!
real 191.42
user 189.39
sys 1.55

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/528993/ft1_filtered_4FGL_J0635.6-7518_daily_bin1171.fits', '/scratch/kocevski/528993/ft2_4FGL_J0635.6-7518_daily_bin1171.fits', expMap='/scratch/kocevski/528993/expmap_542851201_543110401_4FGL_J0635.6-7518_daily_bin1171.fits', expCube='/scratch/kocevski/528993/ltcube_542851201_543110401_4FGL_J0635.6-7518_daily_bin1171.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/528993/Model_4FGL_J0635.6-7518_daily_bin1171.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0635.6-7518'

4FGL J0635.6-7518
   Spectrum: PowerLaw
269    Prefactor:  6.577e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
270        Index:  2.701e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
271        Scale:  5.156e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/528993/ft1_filtered_4FGL_J0635.6-7518_daily_bin1171.fits
Spacecraft file(s): /scratch/kocevski/528993/ft2_4FGL_J0635.6-7518_daily_bin1171.fits
Exposure map: /scratch/kocevski/528993/expmap_542851201_543110401_4FGL_J0635.6-7518_daily_bin1171.fits
Exposure cube: /scratch/kocevski/528993/ltcube_542851201_543110401_4FGL_J0635.6-7518_daily_bin1171.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/528993/Model_4FGL_J0635.6-7518_daily_bin1171.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) = 187.429052767

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12395E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    193.95       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    443.18       1.0000         .10000E-03   10000.    
     6 'norm      '    312.69       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10641E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    38.351       1.0000         .10000E-03   10000.    
    10 'norm      '    .56159E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    36.379       1.0000         .10000E-03   10000.    
    12 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .48751E-02   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .31293E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10771E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    13.836       1.0000         .10000E-03   10000.    
    17 'Prefactor '    934.09       1.0000         .10000E-03   10000.    
    18 'Normalizat'    3.4397       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .26896       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5830E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   185.9263     FROM MIGRAD    STATUS=CONVERGED    347 CALLS     2187 TOTAL
                     EDM=   .47E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10007E-03    386.93       -.87364E-05** at limit **
   2  Prefactor     196.02        6003.3        .17113E-03    .88128E-05
   3  Prefactor     .10000E-03    79.150        .21141E-05** at limit **
   4  Prefactor     .10002E-03    177.42        .21745E-05** at limit **
   5  Prefactor     443.25        474.68        .29177E-05   -.23778E-05
   6  norm          313.04        632.31        .22775E-04    .54254E-05
   7  Prefactor     .10000E-03    86.410        .19679E-05** at limit **
   8  norm          .10000E-03    89.934       -.58024E-06** at limit **
   9  Prefactor     38.412        124.26        .20795E-05    .30538E-05
  10  norm          .10000E-03    385.96       -.92402E-06** at limit **
  11  norm          36.420        142.78        .21683E-04   -.39916E-04
  12  norm          .10000E-03    36.827        .80917E-06** at limit **
  13  Prefactor     .10116E-03    6553.1       -.23174E-04** at limit **
  14  Prefactor     .10000E-03    762.71        .21113E-05** at limit **
  15  norm          .10000E-03    265.44        .40326E-05** at limit **
  16  Prefactor     14.091        940.67        .62271E-04    .73328E-06
  17  Prefactor     934.39        733.83        .13380E-04   -.19994E-04
  18  Normalizat    3.4348        2.5753       -.16305E-03    .88464E-05
  19  Prefactor     .26992        .68344        .11439E-03    .40429E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100066
  Prefactor  = 196.016
  Prefactor  = 0.000100005
  Prefactor  = 0.000100016
  Prefactor  = 443.249
  norm       = 313.035
  Prefactor  = 0.0001
  norm       = 0.000100003
  Prefactor  = 38.4125
  norm       = 0.000100001
  norm       = 36.4199
  norm       = 0.0001
  Prefactor  = 0.000101165
  Prefactor  = 0.000100002
  norm       = 0.000100003
  Prefactor  = 14.0914
  Prefactor  = 934.394
  Normalizat = 3.43483
  Prefactor  = 0.269919
 **********
 **   18 **HESSE 
 **********

 FCN=   185.9263     FROM HESSE     STATUS=OK           254 CALLS     2441 TOTAL
                     EDM=   .92E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10007E-03    389.66        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     196.02        5994.9        .14502E-03   -1.2899    
   3  Prefactor     .10000E-03    79.269        .11888E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10002E-03    178.14        .17847E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     443.25        474.41        .97182E-04   -1.1466    
   6  norm          313.04        631.78        .11491E-03   -1.2151    
   7  Prefactor     .10000E-03    86.457        .12415E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    90.043        .12672E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     38.412        123.92        .64721E-04   -1.4468    
  10  norm          .10000E-03    386.00        .21099E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          36.420        142.20        .66445E-04   -1.4500    
  12  norm          .10000E-03    36.828        .80968E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10116E-03    6570.4        .19237E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    762.67        .21372E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    265.36        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     14.091        916.92        .10768E-03   -1.4957    
  17  Prefactor     934.39        730.21        .68727E-04   -.94949    
  18  Normalizat    3.4348        2.5713        .36240E-03   -.31977    
  19  Prefactor     .26992        .68099        .32293E-03   -1.2407    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.21433e-10
Minuit parameter uncertainties:
  1  0.0101922
  2  1738.3
  3  0.00121588
  4  0.00341723
  5  478.712
  6  646.531
  7  0.00012741
  8  0.000971679
  9  124.769
  10  0.00143999
  11  143.553
  12  0.000107865
  13  0.12842
  14  0.00258011
  15  0.00179037
  16  231.138
  17  738.098
  18  2.71769
  19  0.702815
Done.

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

Extracting fit parameters...

4FGL J0635.6-7518
   Spectrum: PowerLaw
269    Prefactor:  3.841e+01  1.248e+02  1.000e-04  1.000e+04 ( 1.000e-12)
270        Index:  2.701e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
271        Scale:  5.156e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
562    Prefactor:  2.699e-01  7.028e-01  0.000e+00  1.000e+01 ( 1.000e+00)
563        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
564        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
561   Normalization:  3.435e+00  2.718e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.13
Ra Dec: 98.902 -75.305
Photon Flux Upper Limit: 2.43e-06 ph cm-2 s-1
Energy Flux Upper Limit: 1.91e-01 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/528993/likelihoodResults_542851201_543110401_4FGL_J0635.6-7518_daily_bin1171.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) = 185.880321737
delta logL = 0.0459629527311

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 185.874247374
delta logL = 0.05203731521

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    68.660       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1286       1.0000          .0000       10.000    
     3 'Normalizat'    3.4457       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .25456       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5830E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   185.8742     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      255 TOTAL
                     EDM=   .14E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     68.515        169.62       -.24330E-04    .60004E-05
   2  Index         2.1286        1.4605       -.97445E-04    .84778E-06
   3  Normalizat    3.4451        1.9546        .10256E-04    .13464E-04
   4  Prefactor     .25494        .59970        .35499E-05    .19503E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 68.5146
  Index      = 2.12855
  Normalizat = 3.44513
  Prefactor  = 0.25494
 **********
 **   18 **HESSE 
 **********

 FCN=   185.8742     FROM HESSE     STATUS=OK            31 CALLS      286 TOTAL
                     EDM=   .23E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     68.515        170.29        .24221E-03   -1.4051    
   2  Index         2.1286        1.4658        .46239E-02   -.61174    
   3  Normalizat    3.4451        2.0734        .36146E-03   -.31760    
   4  Prefactor     .25494        .63395        .32987E-03   -1.2501    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.32414e-11
Minuit parameter uncertainties:
  1  171.525
  2  1.49905
  3  2.14576
  4  0.652422
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/528993': 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) = 185.874246865
delta logL = 0.0520378239562

Extracting fit parameters...

4FGL J0635.6-7518
   Spectrum: PowerLaw
269    Prefactor:  6.851e+01  1.715e+02  1.000e-04  1.000e+04 ( 1.000e-12)
270        Index:  2.129e+00  1.499e+00  0.000e+00  1.000e+01 (-1.000e+00)
271        Scale:  5.156e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
562    Prefactor:  2.549e-01  6.524e-01  0.000e+00  1.000e+01 ( 1.000e+00)
563        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
564        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
561   Normalization:  3.445e+00  2.146e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.13
Ra Dec: 98.902 -75.305

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/528993/cmap_HighResolution_542851201_543110401_4FGL_J0635.6-7518_daily_bin1171.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.91e-01', job_status='DONE', photon_flux_upper_limit='2.43e-06', time_completed='2021-08-25 10:24:21.547616', job_id='528993', GAL2='0.25', fit_tolerance='1e-08', EG2='3.45', EG='3.43', time_epoch_completed='1629912261.55', return_code2='0', ts='0.13', comment='SUCCESS', return_code='0', GAL='0.27', dlogl='5.20e-02', ts2='0.24', photon_index_error='0.00', photon_index='2.70' WHERE bin_id='1171' AND source_name='4FGL J0635.6-7518' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Aug 25 10:24:21 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0208>
Subject: Job 528993: <4FGL_J0635.6-7518_daily_bin1171> in cluster <slac> Done

Job <4FGL_J0635.6-7518_daily_bin1171> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Aug 25 10:15:31 2021
Job was executed on host(s) <bullet0208>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Aug 25 10:15:33 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Aug 25 10:15:33 2021
Terminated at Wed Aug 25 10:24:22 2021
Results reported at Wed Aug 25 10:24:22 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0635.6-7518_daily_bin1171 98.9022 -75.3046 542851201 543110401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0635.6-7518 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   515.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             523.32 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   528 sec.
    Turnaround time :                            531 sec.

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

