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


Performing analysis on: 4FGL_J0207.5-2402_daily_bin1157
RA = 31.8989, Dec = -24.0484
tmin = 539222401, tmax = 539481601
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='136636', job_status='RUN', time_executed='2021-08-15 08:26:41.512124', time_epoch_executed='1629041201.51' WHERE source_name='4FGL J0207.5-2402' and cadence='daily' and bin_id='1157'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/136636

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/136636/ft1_4FGL_J0207.5-2402_daily_bin1157.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/136636/ft2_4FGL_J0207.5-2402_daily_bin1157.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/136636/ft1_4FGL_J0207.5-2402_daily_bin1157.fits outfile=/scratch/kocevski/136636/ft1_filteredMKT_4FGL_J0207.5-2402_daily_bin1157.fits ra=31.8989 dec=-24.0484 rad=12.0 tmin=539222401.0 tmax=539481601.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 5.62
user 5.36
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/136636/ft1_filtered_4FGL_J0207.5-2402_daily_bin1157.fits" evtable="EVENTS" scfile=/scratch/kocevski/136636/ft2_4FGL_J0207.5-2402_daily_bin1157.fits sctable="SC_DATA" outfile=/scratch/kocevski/136636/ltcube_539222401_539481601_4FGL_J0207.5-2402_daily_bin1157.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/136636/ft2_4FGL_J0207.5-2402_daily_bin1157.fits
.....................!
real 13.02
user 12.66
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/136636/ft1_filtered_4FGL_J0207.5-2402_daily_bin1157.fits evtable="EVENTS" scfile=/scratch/kocevski/136636/ft2_4FGL_J0207.5-2402_daily_bin1157.fits sctable="SC_DATA" expcube=/scratch/kocevski/136636/ltcube_539222401_539481601_4FGL_J0207.5-2402_daily_bin1157.fits outfile=/scratch/kocevski/136636/expmap_539222401_539481601_4FGL_J0207.5-2402_daily_bin1157.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/136636/ltcube_539222401_539481601_4FGL_J0207.5-2402_daily_bin1157.fits
.....................!
real 190.22
user 185.50
sys 4.19

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/136636/ft1_filtered_4FGL_J0207.5-2402_daily_bin1157.fits scfile=/scratch/kocevski/136636/ft2_4FGL_J0207.5-2402_daily_bin1157.fits outfile=/scratch/kocevski/136636/cmap_539222401_539481601_4FGL_J0207.5-2402_daily_bin1157.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 0.63
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/136636/ft1_filtered_4FGL_J0207.5-2402_daily_bin1157.fits scfile=/scratch/kocevski/136636/ft2_4FGL_J0207.5-2402_daily_bin1157.fits outfile=/scratch/kocevski/136636/cmap_HighResolution_539222401_539481601_4FGL_J0207.5-2402_daily_bin1157.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 0.54
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/136636/ft1_filtered_4FGL_J0207.5-2402_daily_bin1157.fits evtable="EVENTS" scfile=/scratch/kocevski/136636/ft2_4FGL_J0207.5-2402_daily_bin1157.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/136636/Model_4FGL_J0207.5-2402_daily_bin1157.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/136636/ft1_filtered_4FGL_J0207.5-2402_daily_bin1157.fits.....................!
real 93.48
user 91.81
sys 1.34

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    2.7582       1.0000         .10000E-03   10000.    
     3 'norm      '    1.5823       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .14119E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    5.1214       1.0000         .10000E-03   10000.    
     7 'norm      '    .15568E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10029E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    71.834       1.0000         .10000E-03   10000.    
    10 'norm      '    3.1212       1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.0950       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    5.1324       1.0000         .10000E-03   10000.    
    14 'norm      '    23.073       1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.3390       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10162E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    51.340       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10063E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.0096       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .11098E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10067E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .94904       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .89389       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=   4631.481     FROM MIGRAD    STATUS=CONVERGED    556 CALLS     2985 TOTAL
                     EDM=   .13E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    16.839       -.48882E-08** at limit **
   2  norm          2.7575        2.1753        .26652E-07   -.90307E-05
   3  norm          1.5820        1.8153        .53507E-07   -.92187E-04
   4  Prefactor     .10052E-03    14.978        .15765E-05** at limit **
   5  Prefactor     .10000E-03    1.1763       -.76885E-08** at limit **
   6  norm          5.1217        1.7638        .54813E-08    .29528E-04
   7  norm          .10000E-03    1.2443       -.27342E-06** at limit **
   8  norm          .10000E-03    1.8108       -.28972E-06** at limit **
   9  Prefactor     71.779        48.259        .27520E-05    .28401E-04
  10  norm          3.1216        2.2374        .12766E-07   -.12905E-04
  11  Prefactor     3.0950        10.987        .34289E-05    .33794E-04
  12  Prefactor     .10000E-03    1.4822        .19996E-07** at limit **
  13  Prefactor     5.1161        18.516        .32138E-05    .39179E-05
  14  norm          23.113        136.55       -.10629E-04   -.77372E-05
  15  Prefactor     3.3388        7.6184        .39855E-06    .13401E-04
  16  Prefactor     .10000E-03    76.418        .17981E-05** at limit **
  17  Prefactor     51.353        53.966       -.10600E-05   -.43107E-06
  18  Prefactor     .10000E-03    32.536       -.16459E-06** at limit **
  19  Prefactor     1.0099        3.6271        .30522E-06    .13218E-04
  20  Prefactor     .10000E-03    19.841       -.28883E-07** at limit **
  21  norm          .10000E-03    1.5303       -.78129E-08** at limit **
  22  Normalizat    .94881        .17971        .25884E-07    .77015E-04
  23  Prefactor     .89410        .19870       -.17218E-06    .47181E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 2.75752
  norm       = 1.58195
  Prefactor  = 0.000100516
  Prefactor  = 0.0001
  norm       = 5.12174
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 71.7792
  norm       = 3.1216
  Prefactor  = 3.09496
  Prefactor  = 0.0001
  Prefactor  = 5.11614
  norm       = 23.1135
  Prefactor  = 3.33884
  Prefactor  = 0.000100001
  Prefactor  = 51.3531
  Prefactor  = 0.0001
  Prefactor  = 1.00991
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 0.948811
  Prefactor  = 0.894104
 **********
 **   18 **HESSE 
 **********

 FCN=   4631.481     FROM HESSE     STATUS=OK           380 CALLS     3365 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    17.043        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          2.7575        2.1584        .85828E-04   -1.5376    
   3  norm          1.5820        1.7759        .94382E-04   -1.5456    
   4  Prefactor     .10052E-03    178.74        .46772E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    1.1804        .72035E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          5.1217        1.7646        .51046E-04   -1.5255    
   7  norm          .10000E-03    5.3294        .14076E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    3.6920        .17509E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     71.779        48.121        .23683E-03   -1.4011    
  10  norm          3.1216        2.2288        .81676E-04   -1.5355    
  11  Prefactor     3.0950        11.030        .11526E-02   -1.5356    
  12  Prefactor     .10000E-03    1.4844        .80902E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     5.1161        18.428        .17746E-03   -1.5256    
  14  norm          23.113        135.84        .83389E-04   -1.4746    
  15  Prefactor     3.3388        7.6401        .22150E-03   -1.5342    
  16  Prefactor     .10000E-03    77.112        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     51.353        53.951        .55972E-04   -1.4274    
  18  Prefactor     .10000E-03    32.626        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     1.0099        3.5628        .23560E-03   -1.5507    
  20  Prefactor     .10000E-03    19.857        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    3.1562        .16254E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .94881        .21073        .21413E-03   -.94766    
  23  Prefactor     .89410        .23462        .25654E-03   -.96347    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.66594e-09
Minuit parameter uncertainties:
  1  1.3566e-05
  2  2.15844
  3  1.77595
  4  0.0192655
  5  8.80389e-07
  6  1.7646
  7  2.55084e-05
  8  7.87671e-06
  9  48.1469
  10  2.22882
  11  11.0376
  12  1.43644e-06
  13  18.4484
  14  112.454
  15  7.6423
  16  0.000516709
  17  54.0019
  18  3.59728e-05
  19  3.56355
  20  3.44311e-06
  21  1.70013e-06
  22  0.210915
  23  0.23488
Done.

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

Extracting fit parameters...

4FGL J0207.5-2402
   Spectrum: PowerLaw
282    Prefactor:  3.095e+00  1.104e+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:  8.941e-01  2.349e-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.488e-01  2.109e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/136636/likelihoodResults_539222401_539481601_4FGL_J0207.5-2402_daily_bin1157.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) = 4631.3986856
delta logL = 0.0824600072883

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4631.37034852
delta logL = 0.110797080737

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.0501       1.0000         .10000E-03   10000.    
     2 'Index     '    3.2719       1.0000          .0000       10.000    
     3 'Normalizat'    .92668       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91096       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   4631.370     FROM MIGRAD    STATUS=FAILED        84 CALLS      265 TOTAL
                     EDM=   .11E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.0499        179.81        .12660E-03   -.30887E-02
   2  Index         3.2725        5.6612        .83682E-02   -.42948E-03
   3  Normalizat    .92669        .17640        .21638E-03   -.72205E-03
   4  Prefactor     .91094        .20175        .25443E-03   -.50010E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   4631.370     FROM SIMPLEX   STATUS=UNCHANGED     91 CALLS      356 TOTAL
                     EDM=   .12E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.0499        179.81        .15658E-03   -.30887E-02
   2  Index         3.2725        5.6612        .11740E-02   -.42948E-03
   3  Normalizat    .92669        .17640        .90955E-04   -.72205E-03
   4  Prefactor     .91094        .20175        .86891E-04   -.50010E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4631.370     FROM MIGRAD    STATUS=CONVERGED     32 CALLS      388 TOTAL
                     EDM=   .21E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.0494        12.884        .50640E-05    .17960E-05
   2  Index         3.2728        3.1118        .33473E-03    .78117E-06
   3  Normalizat    .92669        .20605        .43276E-04    .83013E-04
   4  Prefactor     .91094        .23637        .50886E-04    .18901E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.04935
  Index      = 3.27283
  Normalizat = 0.926686
  Prefactor  = 0.910941
 **********
 **   18 **HESSE 
 **********

 FCN=   4631.370     FROM HESSE     STATUS=OK            23 CALLS      411 TOTAL
                     EDM=   .21E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.0494        11.306        .10128E-05   -1.5503    
   2  Index         3.2728        2.9469        .13389E-04   -.35270    
   3  Normalizat    .92669        .20580        .86553E-05   -.95529    
   4  Prefactor     .91094        .23605        .10177E-04   -.95760    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.0827e-11
Minuit parameter uncertainties:
  1  6.89005
  2  3.18611
  3  0.205979
  4  0.236311
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/136636': 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) = 4631.37034829
delta logL = 0.110797319303

Extracting fit parameters...

4FGL J0207.5-2402
   Spectrum: PowerLaw
282    Prefactor:  1.049e+00  6.890e+00  1.000e-04  1.000e+04 ( 1.000e-13)
283        Index:  3.273e+00  3.186e+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:  9.109e-01  2.363e-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.267e-01  2.060e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.09
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/136636/cmap_HighResolution_539222401_539481601_4FGL_J0207.5-2402_daily_bin1157.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.96e-03', job_status='DONE', photon_flux_upper_limit='7.83e-08', time_completed='2021-08-15 08:38:09.662971', job_id='136636', GAL2='0.91', fit_tolerance='1e-08', EG2='0.93', EG='0.95', time_epoch_completed='1629041889.66', return_code2='0', ts='0.09', comment='SUCCESS', return_code='0', GAL='0.89', dlogl='1.11e-01', ts2='0.33', photon_index_error='0.00', photon_index='2.19' WHERE bin_id='1157' AND source_name='4FGL J0207.5-2402' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 15 08:38:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0278>
Subject: Job 136636: <4FGL_J0207.5-2402_daily_bin1157> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0207.5-2402_daily_bin1157 31.8989 -24.0484 539222401 539481601 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 :                                   661.40 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             284.61 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   760 sec.
    Turnaround time :                            769 sec.

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

