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


Performing analysis on: 4FGL_J0225.6-4502_daily_bin1180
RA = 36.4048, Dec = -45.0366
tmin = 545184001, tmax = 545443201
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='385395', job_status='RUN', time_executed='2021-08-15 21:35:40.021094', time_epoch_executed='1629088540.02' WHERE source_name='4FGL J0225.6-4502' and cadence='daily' and bin_id='1180'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/385395

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/385395/ft1_4FGL_J0225.6-4502_daily_bin1180.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/385395/ft2_4FGL_J0225.6-4502_daily_bin1180.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/385395/ft1_4FGL_J0225.6-4502_daily_bin1180.fits outfile=/scratch/kocevski/385395/ft1_filteredMKT_4FGL_J0225.6-4502_daily_bin1180.fits ra=36.4048 dec=-45.0366 rad=12.0 tmin=545184001.0 tmax=545443201.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.03
user 3.76
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/385395/ft1_filtered_4FGL_J0225.6-4502_daily_bin1180.fits" evtable="EVENTS" scfile=/scratch/kocevski/385395/ft2_4FGL_J0225.6-4502_daily_bin1180.fits sctable="SC_DATA" outfile=/scratch/kocevski/385395/ltcube_545184001_545443201_4FGL_J0225.6-4502_daily_bin1180.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/385395/ft2_4FGL_J0225.6-4502_daily_bin1180.fits
.....................!
real 14.09
user 13.71
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/385395/ft1_filtered_4FGL_J0225.6-4502_daily_bin1180.fits evtable="EVENTS" scfile=/scratch/kocevski/385395/ft2_4FGL_J0225.6-4502_daily_bin1180.fits sctable="SC_DATA" expcube=/scratch/kocevski/385395/ltcube_545184001_545443201_4FGL_J0225.6-4502_daily_bin1180.fits outfile=/scratch/kocevski/385395/expmap_545184001_545443201_4FGL_J0225.6-4502_daily_bin1180.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/385395/ltcube_545184001_545443201_4FGL_J0225.6-4502_daily_bin1180.fits
.....................!
real 191.67
user 186.31
sys 4.81

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/385395/ft1_filtered_4FGL_J0225.6-4502_daily_bin1180.fits scfile=/scratch/kocevski/385395/ft2_4FGL_J0225.6-4502_daily_bin1180.fits outfile=/scratch/kocevski/385395/cmap_545184001_545443201_4FGL_J0225.6-4502_daily_bin1180.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.55
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/385395/ft1_filtered_4FGL_J0225.6-4502_daily_bin1180.fits scfile=/scratch/kocevski/385395/ft2_4FGL_J0225.6-4502_daily_bin1180.fits outfile=/scratch/kocevski/385395/cmap_HighResolution_545184001_545443201_4FGL_J0225.6-4502_daily_bin1180.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.55
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/385395/ft1_filtered_4FGL_J0225.6-4502_daily_bin1180.fits evtable="EVENTS" scfile=/scratch/kocevski/385395/ft2_4FGL_J0225.6-4502_daily_bin1180.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/385395/Model_4FGL_J0225.6-4502_daily_bin1180.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/385395/ft1_filtered_4FGL_J0225.6-4502_daily_bin1180.fits.....................!
real 155.63
user 154.02
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.2061       1.0000         .10000E-03   10000.    
     2 'norm      '    15.249       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10068E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10282E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    4.8440       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .48575E-02   1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.6363       1.0000         .10000E-03   10000.    
    11 'norm      '    3.9296       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    7.9490       1.0000         .10000E-03   10000.    
    15 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    38.784       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10083E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .11254E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .11549E-01   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    7.0224       1.0000         .10000E-03   10000.    
    23 'Prefactor '    9.9604       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    3.9199       1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.5742       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .62267       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=   7991.545     FROM MIGRAD    STATUS=CONVERGED    654 CALLS     2806 TOTAL
                     EDM=   .93E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.2090        10.354        .32522E-06   -.17582E-05
   2  norm          15.250        7.3687        .13444E-06   -.41660E-05
   3  Prefactor     .10000E-03    14.927        .17073E-06** at limit **
   4  Prefactor     .10000E-03    2.4755        .85515E-07** at limit **
   5  Prefactor     .10000E-03    2.9898       -.31665E-07** at limit **
   6  norm          .10000E-03    10.379       -.37472E-07** at limit **
   7  norm          4.8284        4.6127        .70772E-06   -.31793E-04
   8  Prefactor     .10000E-03    5.5779        .10762E-06** at limit **
   9  Prefactor     .10000E-03    117.63        .42201E-06** at limit **
  10  Prefactor     1.6361        2.3153        .12385E-06    .91513E-05
  11  norm          3.9301        1.3741        .61418E-07   -.43613E-04
  12  Prefactor     .10000E-03    4.5653        .24410E-07** at limit **
  13  Prefactor     .10000E-03    4.6229        .20201E-07** at limit **
  14  norm          7.9503        2.3186        .63311E-07   -.32355E-04
  15  norm          .10000E-03    .60236        .15758E-07** at limit **
  16  Prefactor     38.792        14.397        .26295E-06   -.17052E-04
  17  Prefactor     .10000E-03    9.2173        .16769E-07** at limit **
  18  Prefactor     .10000E-03    19.661       -.44399E-07** at limit **
  19  norm          .10000E-03    .37171       -.24700E-07** at limit **
  20  Prefactor     .10020E-03    1234.1       -.15417E-04** at limit **
  21  Prefactor     .10000E-03    1.3391       -.64125E-07** at limit **
  22  Prefactor     7.0242        9.8560        .41444E-05   -.36959E-04
  23  Prefactor     9.9626        10.314       -.24289E-06   -.11598E-04
  24  Prefactor     .10000E-03    2.0590       -.11234E-06** at limit **
  25  Prefactor     3.9255        10.795        .78200E-05   -.29894E-04
  26  Normalizat    1.5739        .16871       -.45644E-06   -.48624E-04
  27  Prefactor     .62272        .17188       -.24148E-05   -.29111E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.20902
  norm       = 15.2499
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 4.82842
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.63609
  norm       = 3.93008
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 7.95029
  norm       = 0.0001
  Prefactor  = 38.7925
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001002
  Prefactor  = 0.0001
  Prefactor  = 7.02416
  Prefactor  = 9.96258
  Prefactor  = 0.0001
  Prefactor  = 3.92552
  Normalizat = 1.57387
  Prefactor  = 0.622722
 **********
 **   18 **HESSE 
 **********

 FCN=   7991.545     FROM HESSE     STATUS=OK           486 CALLS     3292 TOTAL
                     EDM=   .19E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.2090        10.347        .16114E-03   -1.5210    
   2  norm          15.250        7.3691        .10257E-03   -1.4927    
   3  Prefactor     .10000E-03    14.955        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    2.4923        .13736E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    3.0018        .15087E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    10.380        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          4.8284        4.5953        .17992E-03   -1.5268    
   8  Prefactor     .10000E-03    5.5981        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    120.03        .38484E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     1.6361        2.2913        .15563E-03   -1.5452    
  11  norm          3.9301        1.3708        .58701E-04   -1.5311    
  12  Prefactor     .10000E-03    4.5841        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    4.6282        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          7.9503        2.3176        .70773E-04   -1.5144    
  15  norm          .10000E-03    .60463        .67751E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     38.792        14.238        .64360E-04   -1.4461    
  17  Prefactor     .10000E-03    9.2326        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    19.669        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    .59586        .10370E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10020E-03    1245.7        .18161E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    1.3466        .10100E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     7.0242        9.8724        .75692E-03   -1.5178    
  23  Prefactor     9.9626        10.313        .12697E-03   -1.5077    
  24  Prefactor     .10000E-03    2.0699        .12526E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     3.9255        10.786        .10188E-02   -1.5312    
  26  Normalizat    1.5739        .19792        .22077E-03   -.75723    
  27  Prefactor     .62272        .19956        .34486E-03   -1.0664    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.91336e-10
Minuit parameter uncertainties:
  1  10.3497
  2  7.36956
  3  3.4081e-05
  4  4.33079e-06
  5  6.58181e-07
  6  1.39914e-05
  7  4.59565
  8  8.78894e-06
  9  0.000202324
  10  2.29138
  11  1.37077
  12  4.0752e-06
  13  3.24879e-06
  14  2.31759
  15  1.3297e-06
  16  14.239
  17  1.90428e-05
  18  5.19802e-06
  19  5.28729e-06
  20  0.032268
  21  4.25291e-06
  22  9.87466
  23  10.3148
  24  8.85032e-06
  25  10.791
  26  0.19802
  27  0.199787
Done.

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

Extracting fit parameters...

4FGL J0225.6-4502
   Spectrum: PowerLaw
284    Prefactor:  1.000e-04  4.075e-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:  6.227e-01  1.998e-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.574e+00  1.980e-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: 4.60e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.57e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/385395/likelihoodResults_545184001_545443201_4FGL_J0225.6-4502_daily_bin1180.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) = 7991.54609106
delta logL = -0.00103397625571

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7991.54505691
delta logL = 1.73970875039e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4575       1.0000          .0000       10.000    
     3 'Normalizat'    1.5739       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .62272       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=   7991.545     FROM MIGRAD    STATUS=CONVERGED     94 CALLS      250 TOTAL
                     EDM=   .90E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10282E-03    3.9920        .18142E-01** at limit **
   2  Index         2.3613        6.7336        .50000        .30993E-04
   3  Normalizat    1.5739        .36827E-02    .22077E-03    .24718E-05
   4  Prefactor     .62272        .38208E-02    .34486E-03    .26043E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000102823
  Index      = 2.36133
  Normalizat = 1.57387
  Prefactor  = 0.622723
 **********
 **   18 **HESSE 
 **********

 FCN=   7991.545     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      279 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10282E-03    59.269        .19439E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3613        6.1804        .50000       -.55593    
   3  Normalizat    1.5739        .14261E-01    .88309E-05   -.75723    
   4  Prefactor     .62272        .14796E-01    .13794E-04   -1.0664    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.36008e-08
Minuit parameter uncertainties:
  1  0.0258944
  2  351.274
  3  0.0142614
  4  0.0147963
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/385395': 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) = 7991.5450564
delta logL = 6.84924998495e-07

Extracting fit parameters...

4FGL J0225.6-4502
   Spectrum: PowerLaw
284    Prefactor:  1.028e-04  2.589e-02  1.000e-04  1.000e+04 ( 1.000e-13)
285        Index:  2.361e+00  3.513e+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:  6.227e-01  1.480e-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.574e+00  1.426e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/385395/cmap_HighResolution_545184001_545443201_4FGL_J0225.6-4502_daily_bin1180.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.57e-03', job_status='DONE', photon_flux_upper_limit='4.60e-08', time_completed='2021-08-15 21:51:25.238440', job_id='385395', GAL2='0.62', fit_tolerance='1e-08', EG2='1.57', EG='1.57', time_epoch_completed='1629089485.24', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.62', dlogl='6.85e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.48' WHERE bin_id='1180' AND source_name='4FGL J0225.6-4502' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 15 21:51:25 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0256>
Subject: Job 385395: <4FGL_J0225.6-4502_daily_bin1180> in cluster <slac> Done

Job <4FGL_J0225.6-4502_daily_bin1180> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Sun Aug 15 21:35:27 2021
Job was executed on host(s) <bullet0256>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 15 21:35: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 21:35:30 2021
Terminated at Sun Aug 15 21:51:26 2021
Results reported at Sun Aug 15 21:51:26 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0225.6-4502_daily_bin1180 36.4048 -45.0366 545184001 545443201 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 :                                   941.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             349.35 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   957 sec.
    Turnaround time :                            959 sec.

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

