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


Performing analysis on: 4FGL_J0207.5-2402_daily_bin1218
RA = 31.8989, Dec = -24.0484
tmin = 555033601, tmax = 555292801
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='136724', job_status='RUN', time_executed='2021-08-15 08:28:20.104087', time_epoch_executed='1629041300.1' WHERE source_name='4FGL J0207.5-2402' and cadence='daily' and bin_id='1218'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/136724

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/136724/ft1_4FGL_J0207.5-2402_daily_bin1218.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/136724/ft2_4FGL_J0207.5-2402_daily_bin1218.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/136724/ft1_4FGL_J0207.5-2402_daily_bin1218.fits outfile=/scratch/kocevski/136724/ft1_filteredMKT_4FGL_J0207.5-2402_daily_bin1218.fits ra=31.8989 dec=-24.0484 rad=12.0 tmin=555033601.0 tmax=555292801.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 6.81
user 3.41
sys 3.28

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/136724/ft2_4FGL_J0207.5-2402_daily_bin1218.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/136724/ft1_filteredMKT_4FGL_J0207.5-2402_daily_bin1218.fits evtable="EVENTS" outfile="/scratch/kocevski/136724/ft1_filtered_4FGL_J0207.5-2402_daily_bin1218.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 3.61
user 0.37
sys 3.20

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/136724/ft1_filtered_4FGL_J0207.5-2402_daily_bin1218.fits" evtable="EVENTS" scfile=/scratch/kocevski/136724/ft2_4FGL_J0207.5-2402_daily_bin1218.fits sctable="SC_DATA" outfile=/scratch/kocevski/136724/ltcube_555033601_555292801_4FGL_J0207.5-2402_daily_bin1218.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/136724/ft2_4FGL_J0207.5-2402_daily_bin1218.fits
.....................!
real 17.84
user 14.03
sys 3.75

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/136724/ft1_filtered_4FGL_J0207.5-2402_daily_bin1218.fits evtable="EVENTS" scfile=/scratch/kocevski/136724/ft2_4FGL_J0207.5-2402_daily_bin1218.fits sctable="SC_DATA" expcube=/scratch/kocevski/136724/ltcube_555033601_555292801_4FGL_J0207.5-2402_daily_bin1218.fits outfile=/scratch/kocevski/136724/expmap_555033601_555292801_4FGL_J0207.5-2402_daily_bin1218.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/136724/ltcube_555033601_555292801_4FGL_J0207.5-2402_daily_bin1218.fits
.....................!
real 195.35
user 186.33
sys 8.53

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/136724/ft1_filtered_4FGL_J0207.5-2402_daily_bin1218.fits scfile=/scratch/kocevski/136724/ft2_4FGL_J0207.5-2402_daily_bin1218.fits outfile=/scratch/kocevski/136724/cmap_555033601_555292801_4FGL_J0207.5-2402_daily_bin1218.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 3.60
user 0.41
sys 3.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/136724/ft1_filtered_4FGL_J0207.5-2402_daily_bin1218.fits scfile=/scratch/kocevski/136724/ft2_4FGL_J0207.5-2402_daily_bin1218.fits outfile=/scratch/kocevski/136724/cmap_HighResolution_555033601_555292801_4FGL_J0207.5-2402_daily_bin1218.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 3.63
user 0.41
sys 3.18

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/136724/ft1_filtered_4FGL_J0207.5-2402_daily_bin1218.fits evtable="EVENTS" scfile=/scratch/kocevski/136724/ft2_4FGL_J0207.5-2402_daily_bin1218.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/136724/Model_4FGL_J0207.5-2402_daily_bin1218.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/136724/ft1_filtered_4FGL_J0207.5-2402_daily_bin1218.fits......................!
real 55.06
user 49.51
sys 5.28

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/136724/ft1_filtered_4FGL_J0207.5-2402_daily_bin1218.fits', '/scratch/kocevski/136724/ft2_4FGL_J0207.5-2402_daily_bin1218.fits', expMap='/scratch/kocevski/136724/expmap_555033601_555292801_4FGL_J0207.5-2402_daily_bin1218.fits', expCube='/scratch/kocevski/136724/ltcube_555033601_555292801_4FGL_J0207.5-2402_daily_bin1218.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/136724/Model_4FGL_J0207.5-2402_daily_bin1218.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/136724/ft1_filtered_4FGL_J0207.5-2402_daily_bin1218.fits
Spacecraft file(s): /scratch/kocevski/136724/ft2_4FGL_J0207.5-2402_daily_bin1218.fits
Exposure map: /scratch/kocevski/136724/expmap_555033601_555292801_4FGL_J0207.5-2402_daily_bin1218.fits
Exposure cube: /scratch/kocevski/136724/ltcube_555033601_555292801_4FGL_J0207.5-2402_daily_bin1218.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/136724/Model_4FGL_J0207.5-2402_daily_bin1218.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) = 2264.73613563

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10084E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .39470       1.0000         .10000E-03   10000.    
     4 'Prefactor '    31.050       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    2.2913       1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    1.3638       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10186E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    5.0637       1.0000         .10000E-03   10000.    
    11 'Prefactor '    20.690       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10081E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    20.476       1.0000         .10000E-03   10000.    
    14 'norm      '    98.695       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    63.146       1.0000         .10000E-03   10000.    
    17 'Prefactor '    38.243       1.0000         .10000E-03   10000.    
    18 'Prefactor '    141.45       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    6.8339       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.0574       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .57112       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=   2264.711     FROM MIGRAD    STATUS=CONVERGED    498 CALLS     2944 TOTAL
                     EDM=   .20E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    17.961        .90587E-05** at limit **
   2  norm          .10000E-03    1.6786       -.21244E-07** at limit **
   3  norm          .39351        8.4726       -.10988E-04    .89147E-03
   4  Prefactor     31.065        35.641        .15928E-04    .10444E-02
   5  Prefactor     .10000E-03    3.4892       -.36870E-07** at limit **
   6  norm          2.2915        1.4553        .15715E-06   -.54499E-04
   7  norm          .10000E-03    1.3073       -.71433E-07** at limit **
   8  norm          1.3634        4.4869       -.21375E-05   -.23759E-03
   9  Prefactor     .10000E-03    62.796       -.37221E-04** at limit **
  10  norm          5.0643        3.1928        .44792E-06    .59730E-04
  11  Prefactor     20.693        27.097        .51104E-05    .27643E-03
  12  Prefactor     .10000E-03    23.969       -.26984E-04** at limit **
  13  Prefactor     20.480        22.418        .45086E-05    .34565E-04
  14  norm          98.684        126.36       -.10088E-04    .20631E-04
  15  Prefactor     .10000E-03    34.906        .33941E-04** at limit **
  16  Prefactor     63.142        93.088       -.45660E-05    .37134E-04
  17  Prefactor     38.384        276.07        .22368E-03   -.22725E-04
  18  Prefactor     141.41        112.31       -.28774E-04   -.14513E-03
  19  Prefactor     .10000E-03    10.730       -.15858E-05** at limit **
  20  Prefactor     .10000E-03    55.159        .12831E-04** at limit **
  21  norm          6.8341        5.1089        .33239E-05   -.44765E-04
  22  Normalizat    1.0574        .30178       -.56192E-05    .40488E-03
  23  Prefactor     .57116        .30497       -.16502E-05    .14685E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.393505
  Prefactor  = 31.0653
  Prefactor  = 0.0001
  norm       = 2.29154
  norm       = 0.0001
  norm       = 1.36342
  Prefactor  = 0.0001
  norm       = 5.06432
  Prefactor  = 20.6925
  Prefactor  = 0.000100001
  Prefactor  = 20.4804
  norm       = 98.6842
  Prefactor  = 0.000100001
  Prefactor  = 63.1416
  Prefactor  = 38.3836
  Prefactor  = 141.412
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  norm       = 6.83406
  Normalizat = 1.05738
  Prefactor  = 0.571157
 **********
 **   18 **HESSE 
 **********

 FCN=   2264.711     FROM HESSE     STATUS=OK           362 CALLS     3306 TOTAL
                     EDM=   .50E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    18.141        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    1.7010        .60181E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .39351        15.675        .20244E-02   -1.5583    
   4  Prefactor     31.065        36.190        .71905E-04   -1.4593    
   5  Prefactor     .10000E-03    3.5178        .86762E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          2.2915        1.4570        .43968E-04   -1.5405    
   7  norm          .10000E-03    1.3120        .53112E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.3634        4.4567        .17411E-03   -1.5474    
   9  Prefactor     .10000E-03    62.811        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          5.0643        3.1934        .63020E-04   -1.5258    
  11  Prefactor     20.693        27.176        .88056E-04   -1.4798    
  12  Prefactor     .10000E-03    24.293        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     20.480        22.421        .88514E-04   -1.4803    
  14  norm          98.684        126.37        .40464E-04   -1.3718    
  15  Prefactor     .10000E-03    35.236        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     63.142        93.125        .50498E-04   -1.4117    
  17  Prefactor     38.384        271.26        .32406E-03   -1.4468    
  18  Prefactor     141.41        112.64        .16937E-03   -1.3324    
  19  Prefactor     .10000E-03    10.745        .15231E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    55.150        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          6.8341        5.1076        .88798E-04   -1.5185    
  22  Normalizat    1.0574        .35477        .23165E-03   -.91132    
  23  Prefactor     .57116        .35308        .32311E-03   -1.0881    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.00028e-09
Minuit parameter uncertainties:
  1  1.26856e-05
  2  3.54284e-07
  3  4.968
  4  36.2155
  5  4.46254e-06
  6  1.45702
  7  4.22212e-06
  8  4.45774
  9  3.82789e-06
  10  3.19352
  11  27.1924
  12  0.000236587
  13  22.4304
  14  126.719
  15  0.000389435
  16  93.3408
  17  205.417
  18  112.812
  19  0.000366806
  20  4.83114e-05
  21  5.10796
  22  0.355573
  23  0.354453
Done.

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

Extracting fit parameters...

4FGL J0207.5-2402
   Spectrum: PowerLaw
282    Prefactor:  2.069e+01  2.719e+01  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:  5.712e-01  3.545e-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.057e+00  3.556e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.77
Ra Dec: 31.899 -24.048
Photon Flux Upper Limit: 2.04e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.55e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/136724/likelihoodResults_555033601_555292801_4FGL_J0207.5-2402_daily_bin1218.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) = 2263.88964715
delta logL = 0.821327705437

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2263.81886099
delta logL = 0.892113870377

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.6455       1.0000         .10000E-03   10000.    
     2 'Index     '    3.9014       1.0000          .0000       10.000    
     3 'Normalizat'    .94830       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .66363       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.

 FCN=   2263.819     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      300 TOTAL
                     EDM=   .38E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.6409        31.430        .82315E-02    .39019E-03
   2  Index         3.9028        3.3546        .73858E-01    .33037E-04
   3  Normalizat    .94815        .98630E-01    .45516E-01   -.15237E-03
   4  Prefactor     .66393        .10421        .68041E-01   -.89559E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.6409
  Index      = 3.9028
  Normalizat = 0.948147
  Prefactor  = 0.663932
 **********
 **   18 **HESSE 
 **********

 FCN=   2263.819     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      331 TOTAL
                     EDM=   .39E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.6409        49.304        .45212E-04   -1.5452    
   2  Index         3.9028        6.8257        .30547E-02   -.22124    
   3  Normalizat    .94815        .31977        .24228E-03   -.94788    
   4  Prefactor     .66393        .34271        .30111E-03   -1.0496    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.85173e-09
Minuit parameter uncertainties:
  1  18.0049
  2  5.03013
  3  0.320416
  4  0.343799
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/136724': 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) = 2263.81886025
delta logL = 0.892114608355

Extracting fit parameters...

4FGL J0207.5-2402
   Spectrum: PowerLaw
282    Prefactor:  1.641e+00  1.800e+01  1.000e-04  1.000e+04 ( 1.000e-13)
283        Index:  3.903e+00  5.030e+00  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:  6.639e-01  3.438e-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:  9.481e-01  3.204e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.68
Ra Dec: 31.899 -24.048
Photon Index (Free Index): 3.90 +/- 5.03
Photon Flux (Free Index): 1.42e-07 +/- 1.22e-07
Energy Flux (Free Index): 2.17e-05 +/- 2.03e-05

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/136724/cmap_HighResolution_555033601_555292801_4FGL_J0207.5-2402_daily_bin1218.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.55e-02', comment='SUCCESS', energy_flux2='2.17e-05', dlogl='8.92e-01', photon_flux2='1.42e-07', job_status='DONE', time_completed='2021-08-15 08:37:29.157393', photon_index_error2='5.03', photon_index2='3.90', ts='0.77', fit_tolerance='1e-08', GAL='0.57', photon_index_error='0.00', photon_flux_upper_limit='2.04e-07', energy_flux_error2='2.03e-05', EG='1.06', time_epoch_completed='1629041849.16', return_code='0', job_id='136724', GAL2='0.66', EG2='0.95', return_code2='102', photon_flux_error2='1.22e-07', ts2='2.68', photon_index='2.19' WHERE bin_id='1218' AND source_name='4FGL J0207.5-2402' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 15 08:37:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0195>
Subject: Job 136724: <4FGL_J0207.5-2402_daily_bin1218> in cluster <slac> Done

Job <4FGL_J0207.5-2402_daily_bin1218> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Sun Aug 15 08:25:27 2021
Job was executed on host(s) <bullet0195>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 15 08:26:00 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:00 2021
Terminated at Sun Aug 15 08:37:30 2021
Results reported at Sun Aug 15 08:37:30 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0207.5-2402_daily_bin1218 31.8989 -24.0484 555033601 555292801 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 :                                   567.17 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             271.13 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   689 sec.
    Turnaround time :                            723 sec.

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

