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


Performing analysis on: 4FGL_J0225.6-4502_daily_bin1518
RA = 36.4048, Dec = -45.0366
tmin = 632793601, tmax = 633052801
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='386919', job_status='RUN', time_executed='2021-08-15 21:41:57.002727', time_epoch_executed='1629088917.0' WHERE source_name='4FGL J0225.6-4502' and cadence='daily' and bin_id='1518'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/386919

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/386919/ft1_4FGL_J0225.6-4502_daily_bin1518.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/386919/ft2_4FGL_J0225.6-4502_daily_bin1518.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/386919/ft1_4FGL_J0225.6-4502_daily_bin1518.fits outfile=/scratch/kocevski/386919/ft1_filteredMKT_4FGL_J0225.6-4502_daily_bin1518.fits ra=36.4048 dec=-45.0366 rad=12.0 tmin=632793601.0 tmax=633052801.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 4.23
user 3.40
sys 0.78

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/386919/ft2_4FGL_J0225.6-4502_daily_bin1518.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/386919/ft2_4FGL_J0225.6-4502_daily_bin1518.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/386919/ft1_filteredMKT_4FGL_J0225.6-4502_daily_bin1518.fits evtable="EVENTS" outfile="/scratch/kocevski/386919/ft1_filtered_4FGL_J0225.6-4502_daily_bin1518.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.06
user 0.35
sys 0.68

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/386919/ft1_filtered_4FGL_J0225.6-4502_daily_bin1518.fits" evtable="EVENTS" scfile=/scratch/kocevski/386919/ft2_4FGL_J0225.6-4502_daily_bin1518.fits sctable="SC_DATA" outfile=/scratch/kocevski/386919/ltcube_632793601_633052801_4FGL_J0225.6-4502_daily_bin1518.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/386919/ft2_4FGL_J0225.6-4502_daily_bin1518.fits
.....................!
real 14.76
user 13.73
sys 0.97

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/386919/ft1_filtered_4FGL_J0225.6-4502_daily_bin1518.fits evtable="EVENTS" scfile=/scratch/kocevski/386919/ft2_4FGL_J0225.6-4502_daily_bin1518.fits sctable="SC_DATA" expcube=/scratch/kocevski/386919/ltcube_632793601_633052801_4FGL_J0225.6-4502_daily_bin1518.fits outfile=/scratch/kocevski/386919/expmap_632793601_633052801_4FGL_J0225.6-4502_daily_bin1518.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/386919/ltcube_632793601_633052801_4FGL_J0225.6-4502_daily_bin1518.fits
.....................!
real 192.82
user 185.60
sys 6.58

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 180 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 J0225.6-4502 @ 36.4048 -45.0366

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/386919/ft1_filtered_4FGL_J0225.6-4502_daily_bin1518.fits scfile=/scratch/kocevski/386919/ft2_4FGL_J0225.6-4502_daily_bin1518.fits outfile=/scratch/kocevski/386919/cmap_632793601_633052801_4FGL_J0225.6-4502_daily_bin1518.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=36.4048 yref=-45.0366 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.10
user 0.38
sys 0.68

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/386919/ft1_filtered_4FGL_J0225.6-4502_daily_bin1518.fits scfile=/scratch/kocevski/386919/ft2_4FGL_J0225.6-4502_daily_bin1518.fits outfile=/scratch/kocevski/386919/cmap_HighResolution_632793601_633052801_4FGL_J0225.6-4502_daily_bin1518.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=36.4048 yref=-45.0366 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.04
user 0.40
sys 0.62

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/386919/ft1_filtered_4FGL_J0225.6-4502_daily_bin1518.fits evtable="EVENTS" scfile=/scratch/kocevski/386919/ft2_4FGL_J0225.6-4502_daily_bin1518.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/386919/Model_4FGL_J0225.6-4502_daily_bin1518.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/386919/ft1_filtered_4FGL_J0225.6-4502_daily_bin1518.fits.....................!
real 105.62
user 103.10
sys 1.91

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/386919/ft1_filtered_4FGL_J0225.6-4502_daily_bin1518.fits', '/scratch/kocevski/386919/ft2_4FGL_J0225.6-4502_daily_bin1518.fits', expMap='/scratch/kocevski/386919/expmap_632793601_633052801_4FGL_J0225.6-4502_daily_bin1518.fits', expCube='/scratch/kocevski/386919/ltcube_632793601_633052801_4FGL_J0225.6-4502_daily_bin1518.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/386919/Model_4FGL_J0225.6-4502_daily_bin1518.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0225.6-4502'

4FGL J0225.6-4502
   Spectrum: PowerLaw
284    Prefactor:  2.072e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
285        Index:  2.479e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
286        Scale:  1.057e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/386919/ft1_filtered_4FGL_J0225.6-4502_daily_bin1518.fits
Spacecraft file(s): /scratch/kocevski/386919/ft2_4FGL_J0225.6-4502_daily_bin1518.fits
Exposure map: /scratch/kocevski/386919/expmap_632793601_633052801_4FGL_J0225.6-4502_daily_bin1518.fits
Exposure cube: /scratch/kocevski/386919/ltcube_632793601_633052801_4FGL_J0225.6-4502_daily_bin1518.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/386919/Model_4FGL_J0225.6-4502_daily_bin1518.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) = 5313.75499805

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    23.701       1.0000         .10000E-03   10000.    
     2 'norm      '    23.286       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .47745E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    9.3702       1.0000         .10000E-03   10000.    
     5 'Prefactor '    7.0596       1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    1.5083       1.0000         .10000E-03   10000.    
     8 'Prefactor '    6.8068       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    5.7770       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    31.957       1.0000         .10000E-03   10000.    
    14 'norm      '    8.8331       1.0000         .10000E-03   10000.    
    15 'norm      '    .10041E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    16.071       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    1.1455       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    1.8789       1.0000         .10000E-03   10000.    
    22 'Prefactor '    6.9630       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    1.4352       1.0000         .10000E-03   10000.    
    25 'Prefactor '    5.7980       1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.1448       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .72764       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5710E+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=   5313.751     FROM MIGRAD    STATUS=CONVERGED   1153 CALLS     3775 TOTAL
                     EDM=   .30E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     23.706        27.476        .82279E-04    .16581E-05
   2  norm          23.286        13.009        .83008E-04   -.79436E-05
   3  Prefactor     .10001E-03    330.83        .85386E-02** at limit **
   4  Prefactor     9.3727        6.0677        .13092E-03   -.93783E-05
   5  Prefactor     7.0599        6.7473        .15098E-03    .19126E-04
   6  norm          .10000E-03    81.215        .18142E-02** at limit **
   7  norm          1.5075        5.2281        .14388E-02    .36687E-03
   8  Prefactor     6.8072        7.8195        .15379E-03    .40659E-05
   9  Prefactor     .10000E-03    23.099        .18142E-02** at limit **
  10  Prefactor     .10000E-03    4.3518        .14763E-02** at limit **
  11  norm          5.7768        1.8958        .54860E-04   -.82892E-05
  12  Prefactor     .10000E-03    9.2919        .18142E-02** at limit **
  13  Prefactor     31.953        20.546        .70880E-04    .12029E-04
  14  norm          8.8329        2.8681        .67757E-04    .26846E-05
  15  norm          .10000E-03    1.7299        .18476E-03** at limit **
  16  Prefactor     .10000E-03    3.0707        .12466E-02** at limit **
  17  Prefactor     16.070        19.541        .99908E-04    .14679E-04
  18  Prefactor     .10000E-03    28.910        .18142E-02** at limit **
  19  norm          1.1454        1.0950        .72113E-04   -.34998E-04
  20  Prefactor     .10000E-03    68.760        .18142E-02** at limit **
  21  Prefactor     1.8788        3.2723        .84634E-03    .22116E-03
  22  Prefactor     6.9627        7.8243        .15204E-03    .53839E-05
  23  Prefactor     .10000E-03    5.4751        .16657E-02** at limit **
  24  Prefactor     1.4349        3.5079        .20975E-03    .13767E-04
  25  Prefactor     5.7991        18.418        .16679E-03    .18403E-05
  26  Normalizat    1.1447        .21736        .22102E-03    .46910E-04
  27  Prefactor     .72783        .22666        .29225E-03    .38123E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 23.7057
  norm       = 23.2857
  Prefactor  = 0.00010001
  Prefactor  = 9.37271
  Prefactor  = 7.05995
  norm       = 0.0001
  norm       = 1.50753
  Prefactor  = 6.80716
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.77677
  Prefactor  = 0.0001
  Prefactor  = 31.9529
  norm       = 8.83286
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 16.0697
  Prefactor  = 0.0001
  norm       = 1.14537
  Prefactor  = 0.0001
  Prefactor  = 1.8788
  Prefactor  = 6.96272
  Prefactor  = 0.0001
  Prefactor  = 1.43489
  Prefactor  = 5.79913
  Normalizat = 1.14467
  Prefactor  = 0.727833
 **********
 **   18 **HESSE 
 **********

 FCN=   5313.751     FROM HESSE     STATUS=OK           464 CALLS     4239 TOTAL
                     EDM=   .26E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     23.706        27.479        .32912E-05   -1.4734    
   2  norm          23.286        13.009        .33203E-05   -1.4742    
   3  Prefactor     .10001E-03    343.38        .34154E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     9.3727        6.0621        .52369E-05   -1.5096    
   5  Prefactor     7.0599        6.7385        .60392E-05   -1.5176    
   6  norm          .10000E-03    81.222        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          1.5075        5.2174        .57552E-04   -1.5462    
   8  Prefactor     6.8072        7.8195        .61515E-05   -1.5186    
   9  Prefactor     .10000E-03    23.101        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    4.3527        .29527E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          5.7768        1.8956        .21944E-05   -1.5227    
  12  Prefactor     .10000E-03    9.2927        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     31.953        20.547        .28352E-05   -1.4577    
  14  norm          8.8329        2.8680        .27103E-05   -1.5113    
  15  norm          .10000E-03    1.7299        .36953E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    3.0708        .24933E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     16.070        19.541        .39963E-05   -1.4906    
  18  Prefactor     .10000E-03    28.911        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          1.1454        1.0949        .28845E-05   -1.5494    
  20  Prefactor     .10000E-03    68.760        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     1.8788        3.2715        .33854E-04   -1.5434    
  22  Prefactor     6.9627        7.8237        .60814E-05   -1.5180    
  23  Prefactor     .10000E-03    5.4752        .33313E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     1.4349        3.5078        .83898E-05   -1.5468    
  25  Prefactor     5.7991        18.419        .66718E-05   -1.5226    
  26  Normalizat    1.1447        .21743        .88410E-05   -.88330    
  27  Prefactor     .72783        .22687        .11690E-04   -1.0245    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.59424e-10
Minuit parameter uncertainties:
  1  27.4939
  2  13.0101
  3  0.00365262
  4  6.06255
  5  6.73922
  6  7.3675e-05
  7  5.21902
  8  7.82066
  9  6.45231e-06
  10  1.10533e-05
  11  1.89567
  12  6.69515e-06
  13  20.5515
  14  2.86802
  15  3.2491e-06
  16  9.49377e-07
  17  19.5484
  18  1.23485e-05
  19  1.09489
  20  4.54894e-05
  21  3.27184
  22  7.82486
  23  7.87028e-07
  24  3.50834
  25  18.4367
  26  0.217605
  27  0.227155
Done.

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

Extracting fit parameters...

4FGL J0225.6-4502
   Spectrum: PowerLaw
284    Prefactor:  1.000e-04  6.695e-06  1.000e-04  1.000e+04 ( 1.000e-13)
285        Index:  2.479e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
286        Scale:  1.057e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
568    Prefactor:  7.278e-01  2.272e-01  0.000e+00  1.000e+01 ( 1.000e+00)
569        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
570        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
564   Normalization:  1.145e+00  2.176e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 36.405 -45.037
Photon Flux Upper Limit: 7.05e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.48e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/386919/likelihoodResults_632793601_633052801_4FGL_J0225.6-4502_daily_bin1518.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): 102
logL (Free Index) = 5313.75183506
delta logL = -0.000512595687724

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5313.75132644
delta logL = -3.97581789002e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .14660E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4531       1.0000          .0000       10.000    
     3 'Normalizat'    1.1443       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .72824       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5710E+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=   5313.751     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      242 TOTAL
                     EDM=   .59E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10212E-03    95.269        .18142E-02** at limit **
   2  Index         2.3816        7.5883        .50000        .17909E-04
   3  Normalizat    1.1447        .13622E-01    .22102E-03    .39092E-05
   4  Prefactor     .72783        .14739E-01    .29225E-03   -.21785E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000102117
  Index      = 2.38159
  Normalizat = 1.14467
  Prefactor  = 0.727833
 **********
 **   18 **HESSE 
 **********

 FCN=   5313.751     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      271 TOTAL
                     EDM=   .26E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10212E-03    400.52        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3816        6.6535        .50000       -.55117    
   3  Normalizat    1.1447        .29071E-01    .88410E-05   -.88330    
   4  Prefactor     .72783        .31454E-01    .11690E-04   -1.0245    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.60724e-08
Minuit parameter uncertainties:
  1  0.0586319
  2  707.478
  3  0.0290715
  4  0.0314543
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/386919': 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) = 5313.75132212
delta logL = 3.48233697878e-07

Extracting fit parameters...

4FGL J0225.6-4502
   Spectrum: PowerLaw
284    Prefactor:  1.021e-04  5.863e-02  1.000e-04  1.000e+04 ( 1.000e-13)
285        Index:  2.382e+00  7.075e+02  0.000e+00  1.000e+01 (-1.000e+00)
286        Scale:  1.057e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
568    Prefactor:  7.278e-01  3.145e-02  0.000e+00  1.000e+01 ( 1.000e+00)
569        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
570        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
564   Normalization:  1.145e+00  2.907e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 36.405 -45.037

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/386919/cmap_HighResolution_632793601_633052801_4FGL_J0225.6-4502_daily_bin1518.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.48e-03', job_status='DONE', photon_flux_upper_limit='7.05e-08', time_completed='2021-08-15 21:55:45.293323', job_id='386919', GAL2='0.73', fit_tolerance='1e-08', EG2='1.14', EG='1.14', time_epoch_completed='1629089745.29', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.73', dlogl='3.48e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.48' WHERE bin_id='1518' AND source_name='4FGL J0225.6-4502' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 15 21:55:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0194>
Subject: Job 386919: <4FGL_J0225.6-4502_daily_bin1518> in cluster <slac> Done

Job <4FGL_J0225.6-4502_daily_bin1518> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sun Aug 15 21:40:32 2021
Job was executed on host(s) <bullet0194>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 15 21:41:22 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Aug 15 21:41:22 2021
Terminated at Sun Aug 15 21:55:46 2021
Results reported at Sun Aug 15 21:55:46 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0225.6-4502_daily_bin1518 36.4048 -45.0366 632793601 633052801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0225.6-4502 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   813.22 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             359.31 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   865 sec.
    Turnaround time :                            914 sec.

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

