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


Performing analysis on: 4FGL_J0225.6-4502_daily_bin1017
RA = 36.4048, Dec = -45.0366
tmin = 502934401, tmax = 503193601
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='384103', job_status='RUN', time_executed='2021-08-15 21:35:24.864721', time_epoch_executed='1629088524.86' WHERE source_name='4FGL J0225.6-4502' and cadence='daily' and bin_id='1017'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/384103

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/384103/ft1_4FGL_J0225.6-4502_daily_bin1017.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/384103/ft2_4FGL_J0225.6-4502_daily_bin1017.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/384103/ft1_4FGL_J0225.6-4502_daily_bin1017.fits outfile=/scratch/kocevski/384103/ft1_filteredMKT_4FGL_J0225.6-4502_daily_bin1017.fits ra=36.4048 dec=-45.0366 rad=12.0 tmin=502934401.0 tmax=503193601.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.55
user 2.74
sys 0.72

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/384103/ft1_filtered_4FGL_J0225.6-4502_daily_bin1017.fits" evtable="EVENTS" scfile=/scratch/kocevski/384103/ft2_4FGL_J0225.6-4502_daily_bin1017.fits sctable="SC_DATA" outfile=/scratch/kocevski/384103/ltcube_502934401_503193601_4FGL_J0225.6-4502_daily_bin1017.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/384103/ft2_4FGL_J0225.6-4502_daily_bin1017.fits
.....................!
real 12.93
user 11.76
sys 0.91

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/384103/ft1_filtered_4FGL_J0225.6-4502_daily_bin1017.fits evtable="EVENTS" scfile=/scratch/kocevski/384103/ft2_4FGL_J0225.6-4502_daily_bin1017.fits sctable="SC_DATA" expcube=/scratch/kocevski/384103/ltcube_502934401_503193601_4FGL_J0225.6-4502_daily_bin1017.fits outfile=/scratch/kocevski/384103/expmap_502934401_503193601_4FGL_J0225.6-4502_daily_bin1017.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/384103/ltcube_502934401_503193601_4FGL_J0225.6-4502_daily_bin1017.fits
.....................!
real 157.67
user 152.21
sys 4.91

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/384103/ft1_filtered_4FGL_J0225.6-4502_daily_bin1017.fits scfile=/scratch/kocevski/384103/ft2_4FGL_J0225.6-4502_daily_bin1017.fits outfile=/scratch/kocevski/384103/cmap_502934401_503193601_4FGL_J0225.6-4502_daily_bin1017.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.03
user 0.32
sys 0.67

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/384103/ft1_filtered_4FGL_J0225.6-4502_daily_bin1017.fits scfile=/scratch/kocevski/384103/ft2_4FGL_J0225.6-4502_daily_bin1017.fits outfile=/scratch/kocevski/384103/cmap_HighResolution_502934401_503193601_4FGL_J0225.6-4502_daily_bin1017.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.02
user 0.32
sys 0.69

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/384103/ft1_filtered_4FGL_J0225.6-4502_daily_bin1017.fits evtable="EVENTS" scfile=/scratch/kocevski/384103/ft2_4FGL_J0225.6-4502_daily_bin1017.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/384103/Model_4FGL_J0225.6-4502_daily_bin1017.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/384103/ft1_filtered_4FGL_J0225.6-4502_daily_bin1017.fits.....................!
real 94.52
user 92.35
sys 1.75

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    23.059       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    8.0048       1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10062E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.6440       1.0000         .10000E-03   10000.    
    11 'norm      '    5.4173       1.0000         .10000E-03   10000.    
    12 'Prefactor '    6.7880       1.0000         .10000E-03   10000.    
    13 'Prefactor '    43.973       1.0000         .10000E-03   10000.    
    14 'norm      '    .49810       1.0000         .10000E-03   10000.    
    15 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10105E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    92.692       1.0000         .10000E-03   10000.    
    19 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    147.08       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    4.8277       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    4.4685       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.0499       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.1408       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=   5893.060     FROM MIGRAD    STATUS=CONVERGED    631 CALLS     3250 TOTAL
                     EDM=   .57E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    30.953        .46854E-05** at limit **
   2  norm          .10000E-03    7.8830       -.74850E-06** at limit **
   3  Prefactor     23.056        26.450       -.19815E-05   -.13613E-03
   4  Prefactor     .10000E-03    2.2092        .19760E-07** at limit **
   5  Prefactor     8.0027        7.8761        .64515E-07   -.35746E-04
   6  norm          .10000E-03    35.808       -.33062E-05** at limit **
   7  norm          .10000E-03    1.4801        .32172E-07** at limit **
   8  Prefactor     .10000E-03    24.717       -.12745E-05** at limit **
   9  Prefactor     .10000E-03    11.817       -.13291E-06** at limit **
  10  Prefactor     5.6439        4.8924        .10530E-06    .19078E-04
  11  norm          5.4172        1.9379       -.68824E-08   -.32004E-04
  12  Prefactor     6.7793        21.387       -.29982E-05   -.93858E-04
  13  Prefactor     43.972        31.754        .13334E-05    .60883E-04
  14  norm          .49875        1.5054        .23092E-06   -.39428E-03
  15  norm          .10000E-03    1.3245       -.16479E-07** at limit **
  16  Prefactor     .10000E-03    8.0320       -.76344E-06** at limit **
  17  Prefactor     .10000E-03    8.5785        .10846E-05** at limit **
  18  Prefactor     92.698        60.649        .28416E-05    .15175E-03
  19  norm          .10000E-03    .48462       -.16147E-08** at limit **
  20  Prefactor     147.09        170.48        .37494E-05    .40536E-04
  21  Prefactor     .10000E-03    3.6446       -.12773E-06** at limit **
  22  Prefactor     4.8288        6.5622        .15292E-05   -.99212E-03
  23  Prefactor     .10000E-03    7.6436        .85688E-06** at limit **
  24  Prefactor     4.4688        5.0716       -.48543E-06   -.21588E-03
  25  Prefactor     .10000E-03    7.8059       -.22967E-06** at limit **
  26  Normalizat    1.0500        .18394        .26218E-06   -.17339E-04
  27  Prefactor     1.1407        .20170       -.51731E-06    .28734E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100002
  norm       = 0.0001
  Prefactor  = 23.0559
  Prefactor  = 0.0001
  Prefactor  = 8.00274
  norm       = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.64386
  norm       = 5.41716
  Prefactor  = 6.7793
  Prefactor  = 43.9724
  norm       = 0.498755
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 92.6981
  norm       = 0.0001
  Prefactor  = 147.091
  Prefactor  = 0.0001
  Prefactor  = 4.82884
  Prefactor  = 0.0001
  Prefactor  = 4.46883
  Prefactor  = 0.0001
  Normalizat = 1.04996
  Prefactor  = 1.14071
 **********
 **   18 **HESSE 
 **********

 FCN=   5893.060     FROM HESSE     STATUS=OK           480 CALLS     3730 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    31.578        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    8.0266        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     23.056        26.671        .83414E-04   -1.4747    
   4  Prefactor     .10000E-03    2.2213        .11140E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     8.0027        7.8733        .14171E-03   -1.5142    
   6  norm          .10000E-03    36.036        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    1.4829        .91186E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    25.179        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    11.832        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     5.6439        4.8912        .14908E-03   -1.5233    
  11  norm          5.4172        1.9379        .59069E-04   -1.5242    
  12  Prefactor     6.7793        21.443        .15400E-03   -1.5187    
  13  Prefactor     43.972        31.647        .60458E-04   -1.4381    
  14  norm          .49875        1.4896        .15931E-03   -1.5567    
  15  norm          .10000E-03    2.1786        .17081E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    8.0687        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    8.5939        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     92.698        60.943        .41741E-04   -1.3779    
  19  norm          .10000E-03    .50061        .10419E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     147.09        170.78        .16614E-03   -1.3276    
  21  Prefactor     .10000E-03    3.7548        .28619E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     4.8288        9.3115        .91546E-03   -1.5268    
  23  Prefactor     .10000E-03    7.6670        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     4.4688        5.0702        .17885E-03   -1.5285    
  25  Prefactor     .10000E-03    7.8143        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    1.0500        .21857        .24430E-03   -.91375    
  27  Prefactor     1.1407        .23960        .26352E-03   -.88176    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.26661e-09
Minuit parameter uncertainties:
  1  0.000500768
  2  4.05566e-05
  3  26.6849
  4  4.60804e-06
  5  7.87437
  6  0.000404844
  7  1.23649e-06
  8  9.97815e-05
  9  4.37663e-06
  10  4.89154
  11  1.93793
  12  21.4672
  13  31.6592
  14  1.48967
  15  2.72335e-05
  16  3.03896e-05
  17  5.94396e-05
  18  60.9838
  19  9.38988e-07
  20  171.362
  21  4.64175e-06
  22  9.31427
  23  5.19303e-05
  24  5.07064
  25  1.26852e-05
  26  0.218753
  27  0.23983
Done.

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

Extracting fit parameters...

4FGL J0225.6-4502
   Spectrum: PowerLaw
284    Prefactor:  6.779e+00  2.147e+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:  1.141e+00  2.398e-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.050e+00  2.188e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.17
Ra Dec: 36.405 -45.037
Photon Flux Upper Limit: 1.07e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.32e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/384103/likelihoodResults_502934401_503193601_4FGL_J0225.6-4502_daily_bin1017.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) = 5892.52814194
delta logL = 0.532002412099

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5892.14634153
delta logL = 0.913802824463

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    8.4654       1.0000          .0000       10.000    
     3 'Normalizat'    .97659       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2018       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=   5892.146     FROM MIGRAD    STATUS=CONVERGED    204 CALLS      619 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .25168E-01    .14731E-03** at limit **
   2  Index         8.4665        8.1273        .65330E-02    .19069E-04
   3  Normalizat    .97625        .10706        .25195E-03   -.84831E-05
   4  Prefactor     1.2023        .11936        .25769E-03   -.20779E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 8.46651
  Normalizat = 0.976247
  Prefactor  = 1.20234
 **********
 **   18 **HESSE 
 **********

 FCN=   5892.146     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      654 TOTAL
                     EDM=   .38E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    .13792E-01    .20207E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         8.4665        8.0331        .26132E-03    .76606    
   3  Normalizat    .97625        .92629E-01    .10078E-04   -.93830    
   4  Prefactor     1.2023        .10352        .10308E-04   -.86259    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.84157e-11
Minuit parameter uncertainties:
  1  9.31906e-08
  2  4.73051
  3  0.0926445
  4  0.10354
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/384103': 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) = 5892.14632803
delta logL = 0.913816314642

Extracting fit parameters...

4FGL J0225.6-4502
   Spectrum: PowerLaw
284    Prefactor:  1.000e-04  9.319e-08  1.000e-04  1.000e+04 ( 1.000e-13)
285        Index:  8.467e+00  4.731e+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:  1.202e+00  1.035e-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:  9.762e-01  9.264e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.14
Ra Dec: 36.405 -45.037
Photon Index (Free Index): 8.47 +/- 4.73
Photon Flux (Free Index): 6.42e-08 +/- 6.61e-07
Energy Flux (Free Index): 7.37e-06 +/- 7.56e-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/384103/cmap_HighResolution_502934401_503193601_4FGL_J0225.6-4502_daily_bin1017.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.32e-03', comment='SUCCESS', energy_flux2='7.37e-06', dlogl='9.14e-01', photon_flux2='6.42e-08', job_status='DONE', time_completed='2021-08-15 21:47:07.799595', photon_index_error2='4.73', photon_index2='8.47', ts='0.17', fit_tolerance='1e-08', GAL='1.14', photon_index_error='0.00', photon_flux_upper_limit='1.07e-07', energy_flux_error2='7.56e-05', EG='1.05', time_epoch_completed='1629089227.8', return_code='0', job_id='384103', GAL2='1.20', EG2='0.98', return_code2='102', photon_flux_error2='6.61e-07', ts2='2.14', photon_index='2.48' WHERE bin_id='1017' AND source_name='4FGL J0225.6-4502' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 15 21:47:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0086>
Subject: Job 384103: <4FGL_J0225.6-4502_daily_bin1017> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0225.6-4502_daily_bin1017 36.4048 -45.0366 502934401 503193601 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 :                                   706.15 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             295.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   950 sec.
    Turnaround time :                            992 sec.

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

