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


Performing analysis on: 4FGL_J0207.5-2402_daily_bin1318
RA = 31.8989, Dec = -24.0484
tmin = 580953601, tmax = 581212801
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='136872', job_status='RUN', time_executed='2021-08-15 08:28:11.915728', time_epoch_executed='1629041291.92' WHERE source_name='4FGL J0207.5-2402' and cadence='daily' and bin_id='1318'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/136872

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/136872/ft1_4FGL_J0207.5-2402_daily_bin1318.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/136872/ft2_4FGL_J0207.5-2402_daily_bin1318.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/136872/ft1_4FGL_J0207.5-2402_daily_bin1318.fits outfile=/scratch/kocevski/136872/ft1_filteredMKT_4FGL_J0207.5-2402_daily_bin1318.fits ra=31.8989 dec=-24.0484 rad=12.0 tmin=580953601.0 tmax=581212801.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 3.65
user 2.76
sys 0.84

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/136872/ft2_4FGL_J0207.5-2402_daily_bin1318.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/136872/ft2_4FGL_J0207.5-2402_daily_bin1318.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/136872/ft1_filteredMKT_4FGL_J0207.5-2402_daily_bin1318.fits evtable="EVENTS" outfile="/scratch/kocevski/136872/ft1_filtered_4FGL_J0207.5-2402_daily_bin1318.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.15
user 0.34
sys 0.77

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/136872/ft1_filtered_4FGL_J0207.5-2402_daily_bin1318.fits" evtable="EVENTS" scfile=/scratch/kocevski/136872/ft2_4FGL_J0207.5-2402_daily_bin1318.fits sctable="SC_DATA" outfile=/scratch/kocevski/136872/ltcube_580953601_581212801_4FGL_J0207.5-2402_daily_bin1318.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/136872/ft2_4FGL_J0207.5-2402_daily_bin1318.fits
.....................!
real 14.64
user 13.51
sys 1.08

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/136872/ft1_filtered_4FGL_J0207.5-2402_daily_bin1318.fits evtable="EVENTS" scfile=/scratch/kocevski/136872/ft2_4FGL_J0207.5-2402_daily_bin1318.fits sctable="SC_DATA" expcube=/scratch/kocevski/136872/ltcube_580953601_581212801_4FGL_J0207.5-2402_daily_bin1318.fits outfile=/scratch/kocevski/136872/expmap_580953601_581212801_4FGL_J0207.5-2402_daily_bin1318.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/136872/ltcube_580953601_581212801_4FGL_J0207.5-2402_daily_bin1318.fits
.....................!
real 192.55
user 186.48
sys 5.61

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 Fornax A in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/FornaxA.fits is the correct path to the extended template.
Added 174 point sources and 1 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 J0207.5-2402 @ 31.8989 -24.0484

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/136872/ft1_filtered_4FGL_J0207.5-2402_daily_bin1318.fits scfile=/scratch/kocevski/136872/ft2_4FGL_J0207.5-2402_daily_bin1318.fits outfile=/scratch/kocevski/136872/cmap_580953601_581212801_4FGL_J0207.5-2402_daily_bin1318.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=31.8989 yref=-24.0484 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.17
user 0.38
sys 0.76

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/136872/ft1_filtered_4FGL_J0207.5-2402_daily_bin1318.fits scfile=/scratch/kocevski/136872/ft2_4FGL_J0207.5-2402_daily_bin1318.fits outfile=/scratch/kocevski/136872/cmap_HighResolution_580953601_581212801_4FGL_J0207.5-2402_daily_bin1318.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=31.8989 yref=-24.0484 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.17
user 0.38
sys 0.78

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/136872/ft1_filtered_4FGL_J0207.5-2402_daily_bin1318.fits evtable="EVENTS" scfile=/scratch/kocevski/136872/ft2_4FGL_J0207.5-2402_daily_bin1318.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/136872/Model_4FGL_J0207.5-2402_daily_bin1318.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 Fornax A
adding source GAL_V02
Working on...
/scratch/kocevski/136872/ft1_filtered_4FGL_J0207.5-2402_daily_bin1318.fits.....................!
real 121.78
user 119.36
sys 2.04

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/136872/ft1_filtered_4FGL_J0207.5-2402_daily_bin1318.fits', '/scratch/kocevski/136872/ft2_4FGL_J0207.5-2402_daily_bin1318.fits', expMap='/scratch/kocevski/136872/expmap_580953601_581212801_4FGL_J0207.5-2402_daily_bin1318.fits', expCube='/scratch/kocevski/136872/ltcube_580953601_581212801_4FGL_J0207.5-2402_daily_bin1318.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/136872/Model_4FGL_J0207.5-2402_daily_bin1318.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0207.5-2402'

4FGL J0207.5-2402
   Spectrum: PowerLaw
282    Prefactor:  2.138e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
283        Index:  2.189e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
284        Scale:  1.340e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/136872/ft1_filtered_4FGL_J0207.5-2402_daily_bin1318.fits
Spacecraft file(s): /scratch/kocevski/136872/ft2_4FGL_J0207.5-2402_daily_bin1318.fits
Exposure map: /scratch/kocevski/136872/expmap_580953601_581212801_4FGL_J0207.5-2402_daily_bin1318.fits
Exposure cube: /scratch/kocevski/136872/ltcube_580953601_581212801_4FGL_J0207.5-2402_daily_bin1318.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/136872/Model_4FGL_J0207.5-2402_daily_bin1318.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) = 6160.61016658

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    5.4510       1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    2.5974       1.0000         .10000E-03   10000.    
     8 'norm      '    2.5784       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    9.0670       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .14445E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    55.304       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .21363       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.6779       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10018E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.0451       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .82117       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5500E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6160.591     FROM MIGRAD    STATUS=CONVERGED    509 CALLS     2527 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.5553       -.17631E-06** at limit **
   2  norm          .10000E-03    .66574       -.11906E-06** at limit **
   3  norm          .10000E-03    .71056        .63612E-07** at limit **
   4  Prefactor     .10000E-03    9.5299       -.70677E-06** at limit **
   5  Prefactor     5.4515        4.0676        .13608E-05   -.19567E-03
   6  norm          .10000E-03    .21574        .15895E-06** at limit **
   7  norm          2.5972        2.3010       -.91408E-06   -.68885E-03
   8  norm          2.5781        2.8116        .44446E-06   -.47969E-03
   9  Prefactor     .10000E-03    19.089        .25003E-05** at limit **
  10  norm          9.0668        2.6891        .10286E-06    .26735E-04
  11  Prefactor     .10000E-03    3.2711       -.27923E-06** at limit **
  12  Prefactor     .10000E-03    4.1950        .42421E-06** at limit **
  13  Prefactor     .10004E-03    14.142       -.85171E-07** at limit **
  14  norm          55.283        47.472       -.21860E-04    .19293E-04
  15  Prefactor     .20164        3.5077       -.83474E-06    .20481E-03
  16  Prefactor     .10000E-03    17.488       -.33589E-05** at limit **
  17  Prefactor     .10000E-03    38.477        .18249E-04** at limit **
  18  Prefactor     .10000E-03    12.468        .38858E-05** at limit **
  19  Prefactor     3.6778        2.8481       -.10282E-05   -.52254E-04
  20  Prefactor     .10000E-03    43.551       -.19649E-04** at limit **
  21  norm          .10000E-03    1.0944       -.52452E-07** at limit **
  22  Normalizat    1.0452        .16267        .35428E-06    .24712E-03
  23  Prefactor     .82111        .17456        .19137E-05    .92069E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.45149
  norm       = 0.0001
  norm       = 2.59719
  norm       = 2.57807
  Prefactor  = 0.0001
  norm       = 9.06681
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100043
  norm       = 55.2826
  Prefactor  = 0.201636
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.67778
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.04519
  Prefactor  = 0.821114
 **********
 **   18 **HESSE 
 **********

 FCN=   6160.591     FROM HESSE     STATUS=OK           364 CALLS     2891 TOTAL
                     EDM=   .42E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.5840        .18058E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    .67043        .62444E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    .72327        .64595E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    9.6497        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     5.4515        4.0531        .12748E-03   -1.5241    
   6  norm          .10000E-03    .21573        .18142E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          2.5972        2.2921        .10176E-03   -1.5386    
   8  norm          2.5781        2.8059        .12623E-03   -1.5387    
   9  Prefactor     .10000E-03    19.114        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          9.0668        2.6965        .66681E-04   -1.5106    
  11  Prefactor     .10000E-03    3.2759        .13863E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    4.2652        .15672E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10004E-03    14.661        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          55.283        47.453        .53939E-04   -1.4220    
  15  Prefactor     .20164        55.604        .27121E-02   -1.5618    
  16  Prefactor     .10000E-03    17.464        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    38.500        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    12.493        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     3.6778        2.8496        .11332E-03   -1.5324    
  20  Prefactor     .10000E-03    43.704        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    1.1392        .16021E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.0452        .19634        .21052E-03   -.91531    
  23  Prefactor     .82111        .20659        .26792E-03   -.98955    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.22293e-09
Minuit parameter uncertainties:
  1  3.46798e-05
  2  6.82742e-06
  3  2.04038e-06
  4  2.23269e-05
  5  4.0533
  6  5.36309e-08
  7  2.29222
  8  2.80606
  9  1.29858e-05
  10  2.69656
  11  9.66534e-07
  12  1.11729e-05
  13  0.00159055
  14  47.486
  15  6.7014
  16  0.000169112
  17  4.3124e-05
  18  1.84648e-07
  19  2.84972
  20  2.31784e-05
  21  1.46431e-06
  22  0.19648
  23  0.20679
Done.

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

Extracting fit parameters...

4FGL J0207.5-2402
   Spectrum: PowerLaw
282    Prefactor:  1.000e-04  9.665e-07  1.000e-04  1.000e+04 ( 1.000e-13)
283        Index:  2.189e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
284        Scale:  1.340e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
547    Prefactor:  8.211e-01  2.068e-01  0.000e+00  1.000e+01 ( 1.000e+00)
548        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
549        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
543   Normalization:  1.045e+00  1.965e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 31.899 -24.048
Photon Flux Upper Limit: 4.09e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.11e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/136872/likelihoodResults_580953601_581212801_4FGL_J0207.5-2402_daily_bin1318.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) = 6160.59294943
delta logL = -0.00144981242465

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6160.59149959
delta logL = 2.72384568234e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1829       1.0000          .0000       10.000    
     3 'Normalizat'    1.0452       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82112       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5500E+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=   6160.591     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      228 TOTAL
                     EDM=   .67E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    18.683        .13888E-02** at limit **
   2  Index         1.8850        6.2275        .99332E-01   -.10644E-07
   3  Normalizat    1.0452        .17635        .21052E-03    .66208E-04
   4  Prefactor     .82112        .20225        .26791E-03    .65561E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.88503
  Normalizat = 1.04519
  Prefactor  = 0.821115
 **********
 **   18 **HESSE 
 **********

 FCN=   6160.591     FROM HESSE     STATUS=OK            23 CALLS      251 TOTAL
                     EDM=   .57E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.4269        .27776E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.8850        5.4318        .39733E-02   -.67257    
   3  Normalizat    1.0452        .17653        .84207E-05   -.91531    
   4  Prefactor     .82112        .20245        .10717E-04   -.98955    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.74613e-12
Minuit parameter uncertainties:
  1  1.27462e-06
  2  244.94
  3  0.176629
  4  0.202637
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/136872': 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) = 6160.59149894
delta logL = 6.71092493576e-07

Extracting fit parameters...

4FGL J0207.5-2402
   Spectrum: PowerLaw
282    Prefactor:  1.000e-04  1.275e-06  1.000e-04  1.000e+04 ( 1.000e-13)
283        Index:  1.885e+00  2.449e+02  0.000e+00  1.000e+01 (-1.000e+00)
284        Scale:  1.340e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
547    Prefactor:  8.211e-01  2.026e-01  0.000e+00  1.000e+01 ( 1.000e+00)
548        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
549        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
543   Normalization:  1.045e+00  1.766e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 31.899 -24.048

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/136872/cmap_HighResolution_580953601_581212801_4FGL_J0207.5-2402_daily_bin1318.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.11e-03', job_status='DONE', photon_flux_upper_limit='4.09e-08', time_completed='2021-08-15 08:40:23.620896', job_id='136872', GAL2='0.82', fit_tolerance='1e-08', EG2='1.05', EG='1.05', time_epoch_completed='1629042023.62', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.82', dlogl='6.71e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.19' WHERE bin_id='1318' AND source_name='4FGL J0207.5-2402' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 15 08:40:23 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0234>
Subject: Job 136872: <4FGL_J0207.5-2402_daily_bin1318> in cluster <slac> Done

Job <4FGL_J0207.5-2402_daily_bin1318> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Sun Aug 15 08:25:37 2021
Job was executed on host(s) <bullet0234>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 15 08:26:56 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Aug 15 08:26:56 2021
Terminated at Sun Aug 15 08:40:24 2021
Results reported at Sun Aug 15 08:40:24 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0207.5-2402_daily_bin1318 31.8989 -24.0484 580953601 581212801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0207.5-2402 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   732.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             373.32 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   807 sec.
    Turnaround time :                            887 sec.

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

