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


Performing analysis on: 4FGL_J0225.6-4502_daily_bin1067
RA = 36.4048, Dec = -45.0366
tmin = 515894401, tmax = 516153601
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='384185', job_status='RUN', time_executed='2021-08-15 21:32:12.733054', time_epoch_executed='1629088332.73' WHERE source_name='4FGL J0225.6-4502' and cadence='daily' and bin_id='1067'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/384185

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/384185/ft1_4FGL_J0225.6-4502_daily_bin1067.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/384185/ft2_4FGL_J0225.6-4502_daily_bin1067.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/384185/ft1_4FGL_J0225.6-4502_daily_bin1067.fits outfile=/scratch/kocevski/384185/ft1_filteredMKT_4FGL_J0225.6-4502_daily_bin1067.fits ra=36.4048 dec=-45.0366 rad=12.0 tmin=515894401.0 tmax=516153601.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.77
user 3.53
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/384185/ft1_filtered_4FGL_J0225.6-4502_daily_bin1067.fits" evtable="EVENTS" scfile=/scratch/kocevski/384185/ft2_4FGL_J0225.6-4502_daily_bin1067.fits sctable="SC_DATA" outfile=/scratch/kocevski/384185/ltcube_515894401_516153601_4FGL_J0225.6-4502_daily_bin1067.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/384185/ft2_4FGL_J0225.6-4502_daily_bin1067.fits
.....................!
real 13.84
user 13.44
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/384185/ft1_filtered_4FGL_J0225.6-4502_daily_bin1067.fits evtable="EVENTS" scfile=/scratch/kocevski/384185/ft2_4FGL_J0225.6-4502_daily_bin1067.fits sctable="SC_DATA" expcube=/scratch/kocevski/384185/ltcube_515894401_516153601_4FGL_J0225.6-4502_daily_bin1067.fits outfile=/scratch/kocevski/384185/expmap_515894401_516153601_4FGL_J0225.6-4502_daily_bin1067.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/384185/ltcube_515894401_516153601_4FGL_J0225.6-4502_daily_bin1067.fits
.....................!
real 191.35
user 185.87
sys 4.75

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/384185/ft1_filtered_4FGL_J0225.6-4502_daily_bin1067.fits scfile=/scratch/kocevski/384185/ft2_4FGL_J0225.6-4502_daily_bin1067.fits outfile=/scratch/kocevski/384185/cmap_515894401_516153601_4FGL_J0225.6-4502_daily_bin1067.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 0.56
user 0.39
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/384185/ft1_filtered_4FGL_J0225.6-4502_daily_bin1067.fits scfile=/scratch/kocevski/384185/ft2_4FGL_J0225.6-4502_daily_bin1067.fits outfile=/scratch/kocevski/384185/cmap_HighResolution_515894401_516153601_4FGL_J0225.6-4502_daily_bin1067.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 0.56
user 0.39
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/384185/ft1_filtered_4FGL_J0225.6-4502_daily_bin1067.fits evtable="EVENTS" scfile=/scratch/kocevski/384185/ft2_4FGL_J0225.6-4502_daily_bin1067.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/384185/Model_4FGL_J0225.6-4502_daily_bin1067.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/384185/ft1_filtered_4FGL_J0225.6-4502_daily_bin1067.fits.....................!
real 115.76
user 114.15
sys 1.28

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/384185/ft1_filtered_4FGL_J0225.6-4502_daily_bin1067.fits', '/scratch/kocevski/384185/ft2_4FGL_J0225.6-4502_daily_bin1067.fits', expMap='/scratch/kocevski/384185/expmap_515894401_516153601_4FGL_J0225.6-4502_daily_bin1067.fits', expCube='/scratch/kocevski/384185/ltcube_515894401_516153601_4FGL_J0225.6-4502_daily_bin1067.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/384185/Model_4FGL_J0225.6-4502_daily_bin1067.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/384185/ft1_filtered_4FGL_J0225.6-4502_daily_bin1067.fits
Spacecraft file(s): /scratch/kocevski/384185/ft2_4FGL_J0225.6-4502_daily_bin1067.fits
Exposure map: /scratch/kocevski/384185/expmap_515894401_516153601_4FGL_J0225.6-4502_daily_bin1067.fits
Exposure cube: /scratch/kocevski/384185/ltcube_515894401_516153601_4FGL_J0225.6-4502_daily_bin1067.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/384185/Model_4FGL_J0225.6-4502_daily_bin1067.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) = 5766.12977164

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.7388       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    5.3380       1.0000         .10000E-03   10000.    
     6 'norm      '    .84979E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.9714       1.0000         .10000E-03   10000.    
    11 'norm      '    1.7010       1.0000         .10000E-03   10000.    
    12 'Prefactor '    6.4104       1.0000         .10000E-03   10000.    
    13 'Prefactor '    14.833       1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .73984       1.0000         .10000E-03   10000.    
    16 'Prefactor '    22.264       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .43572       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .12840E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    23.751       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    .83847       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .92947       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.

 FCN=   5766.048     FROM MIGRAD    STATUS=CONVERGED    674 CALLS     2810 TOTAL
                     EDM=   .36E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    9.7025        .97519E-06** at limit **
   2  norm          .10000E-03    1.5024        .20323E-08** at limit **
   3  Prefactor     1.7425        29.203       -.35420E-05   -.11424E-03
   4  Prefactor     .10000E-03    1.7664        .40335E-08** at limit **
   5  Prefactor     5.3394        6.0455       -.92439E-06   -.42132E-03
   6  norm          .10000E-03    174.22        .15954E-05** at limit **
   7  norm          .10000E-03    1.6774       -.15726E-07** at limit **
   8  Prefactor     .10000E-03    6.0444        .98022E-08** at limit **
   9  Prefactor     .10000E-03    12.018       -.27037E-07** at limit **
  10  Prefactor     3.9679        3.9109        .10594E-05   -.11481E-02
  11  norm          1.7012        1.4961       -.98637E-07   -.12182E-03
  12  Prefactor     6.4128        15.867        .15673E-06   -.84389E-04
  13  Prefactor     14.834        15.619       -.73765E-06   -.14284E-03
  14  norm          .10000E-03    .98069        .14996E-07** at limit **
  15  norm          .74037        1.8408        .19609E-06   -.30645E-03
  16  Prefactor     22.262        12.108       -.83766E-06   -.36002E-03
  17  Prefactor     .10000E-03    7.7334        .91286E-08** at limit **
  18  Prefactor     .10000E-03    53.816       -.25520E-06** at limit **
  19  norm          .43715        .84100        .17223E-06   -.30095E-04
  20  Prefactor     .10000E-03    856.40       -.41378E-05** at limit **
  21  Prefactor     23.752        6.6973        .16329E-06    .19133E-03
  22  Prefactor     .10000E-03    9.4561        .55659E-07** at limit **
  23  Prefactor     .10000E-03    9.7046       -.10463E-05** at limit **
  24  Prefactor     .10000E-03    2.9894        .18013E-07** at limit **
  25  Prefactor     .10000E-03    5.3669        .83581E-08** at limit **
  26  Normalizat    .83829        .15346        .35178E-06   -.12185E-03
  27  Prefactor     .92948        .16755       -.46728E-06   -.42034E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 1.74249
  Prefactor  = 0.0001
  Prefactor  = 5.33938
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.96794
  norm       = 1.70116
  Prefactor  = 6.41276
  Prefactor  = 14.8344
  norm       = 0.0001
  norm       = 0.740368
  Prefactor  = 22.2615
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.437149
  Prefactor  = 0.000100003
  Prefactor  = 23.752
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.838294
  Prefactor  = 0.929483
 **********
 **   18 **HESSE 
 **********

 FCN=   5766.048     FROM HESSE     STATUS=OK           482 CALLS     3292 TOTAL
                     EDM=   .61E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    9.8420        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    1.5032        .90899E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     1.7425        31.426        .31819E-03   -1.5444    
   4  Prefactor     .10000E-03    1.7916        .98535E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     5.3394        6.1843        .17395E-03   -1.5246    
   6  norm          .10000E-03    176.32        .20866E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    1.6838        .95976E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    6.0825        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    12.039        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     3.9679        4.5871        .79570E-03   -1.5310    
  11  norm          1.7012        1.4966        .78245E-04   -1.5447    
  12  Prefactor     6.4128        15.832        .15852E-03   -1.5201    
  13  Prefactor     14.834        15.630        .10400E-03   -1.4937    
  14  norm          .10000E-03    1.0201        .14674E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .74037        1.8187        .15526E-03   -1.5536    
  16  Prefactor     22.262        12.185        .84890E-04   -1.4764    
  17  Prefactor     .10000E-03    7.7412        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    54.006        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .43715        .78957        .90825E-03   -1.5576    
  20  Prefactor     .10000E-03    860.66        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     23.752        6.7032        .82192E-04   -1.4733    
  22  Prefactor     .10000E-03    9.5415        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    9.7841        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    3.0160        .12820E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    5.3731        .17181E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .83829        .18175        .21785E-03   -.98664    
  27  Prefactor     .92948        .19982        .23450E-03   -.95118    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.0638e-09
Minuit parameter uncertainties:
  1  7.31962e-05
  2  2.1857e-07
  3  14.8085
  4  2.90618e-06
  5  6.18502
  6  0.000427581
  7  7.68985e-06
  8  2.86656e-06
  9  2.178e-05
  10  4.58754
  11  1.49659
  12  15.8426
  13  15.6341
  14  6.10425e-07
  15  1.81888
  16  12.1861
  17  3.23391e-07
  18  4.94271e-05
  19  0.789593
  20  0.00303837
  21  6.70341
  22  4.24073e-06
  23  7.90238e-05
  24  6.11609e-08
  25  1.06624e-07
  26  0.18188
  27  0.199975
Done.

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

Extracting fit parameters...

4FGL J0225.6-4502
   Spectrum: PowerLaw
284    Prefactor:  6.413e+00  1.584e+01  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:  9.295e-01  2.000e-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:  8.383e-01  1.819e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/384185/likelihoodResults_515894401_516153601_4FGL_J0225.6-4502_daily_bin1067.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) = 5764.64588287
delta logL = 1.40229578734

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5764.63898194
delta logL = 1.40919672297

Fit tolerance = 1e-08

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

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

 FCN=   5764.639     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      248 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .37615        3.3769        .64206E-02   -.16935E-03
   2  Index         4.7794        2.3003        .98387E-01    .72398E-04
   3  Normalizat    .74909        .38714E-01    .42942E-01   -.14358E-03
   4  Prefactor     .99628        .43760E-01    .46221E-01    .24588E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.376149
  Index      = 4.77936
  Normalizat = 0.749091
  Prefactor  = 0.996277
 **********
 **   18 **HESSE 
 **********

 FCN=   5764.639     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      281 TOTAL
                     EDM=   .55E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .37615        7.4753        .28907E-04   -1.5585    
   2  Index         4.7794        3.7341        .37622E-02   -.44142E-01
   3  Normalizat    .74909        .15870        .22866E-03   -1.0199    
   4  Prefactor     .99628        .17617        .22719E-03   -.92854    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.54523e-10
Minuit parameter uncertainties:
  1  3.35373
  2  4.2177
  3  0.158801
  4  0.176276
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/384185': 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) = 5764.63898163
delta logL = 1.40919702557

Extracting fit parameters...

4FGL J0225.6-4502
   Spectrum: PowerLaw
284    Prefactor:  3.761e-01  3.354e+00  1.000e-04  1.000e+04 ( 1.000e-13)
285        Index:  4.779e+00  4.218e+00  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:  9.963e-01  1.763e-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:  7.491e-01  1.588e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.33
Ra Dec: 36.405 -45.037
Photon Index (Free Index): 4.78 +/- 4.22
Photon Flux (Free Index): 7.86e-08 +/- 5.08e-08
Energy Flux (Free Index): 1.07e-05 +/- 8.46e-06

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/384185/cmap_HighResolution_515894401_516153601_4FGL_J0225.6-4502_daily_bin1067.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.01e-03', comment='SUCCESS', energy_flux2='1.07e-05', dlogl='1.41e+00', photon_flux2='7.86e-08', job_status='DONE', time_completed='2021-08-15 21:45:10.010408', photon_index_error2='4.22', photon_index2='4.78', ts='0.24', fit_tolerance='1e-08', GAL='0.93', photon_index_error='0.00', photon_flux_upper_limit='9.03e-08', energy_flux_error2='8.46e-06', EG='0.84', time_epoch_completed='1629089110.01', return_code='0', job_id='384185', GAL2='1.00', EG2='0.75', return_code2='102', photon_flux_error2='5.08e-08', ts2='3.33', photon_index='2.48' WHERE bin_id='1067' AND source_name='4FGL J0225.6-4502' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 15 21:45:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0201>
Subject: Job 384185: <4FGL_J0225.6-4502_daily_bin1067> in cluster <slac> Done

Job <4FGL_J0225.6-4502_daily_bin1067> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sun Aug 15 21:30:42 2021
Job was executed on host(s) <bullet0201>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 15 21:31:45 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:31:45 2021
Terminated at Sun Aug 15 21:45:10 2021
Results reported at Sun Aug 15 21:45:10 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0225.6-4502_daily_bin1067 36.4048 -45.0366 515894401 516153601 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 :                                   771.16 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             347.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   805 sec.
    Turnaround time :                            868 sec.

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

