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


Performing analysis on: 4FGL_J0225.6-4502_daily_bin1075
RA = 36.4048, Dec = -45.0366
tmin = 517968001, tmax = 518227201
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='384198', job_status='RUN', time_executed='2021-08-15 21:32:16.342648', time_epoch_executed='1629088336.34' WHERE source_name='4FGL J0225.6-4502' and cadence='daily' and bin_id='1075'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/384198

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/384198/ft1_4FGL_J0225.6-4502_daily_bin1075.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/384198/ft2_4FGL_J0225.6-4502_daily_bin1075.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/384198/ft1_4FGL_J0225.6-4502_daily_bin1075.fits outfile=/scratch/kocevski/384198/ft1_filteredMKT_4FGL_J0225.6-4502_daily_bin1075.fits ra=36.4048 dec=-45.0366 rad=12.0 tmin=517968001.0 tmax=518227201.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.76
user 3.55
sys 1.12

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/384198/ft2_4FGL_J0225.6-4502_daily_bin1075.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/384198/ft1_filteredMKT_4FGL_J0225.6-4502_daily_bin1075.fits evtable="EVENTS" outfile="/scratch/kocevski/384198/ft1_filtered_4FGL_J0225.6-4502_daily_bin1075.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.42
user 0.34
sys 1.06

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/384198/ft1_filtered_4FGL_J0225.6-4502_daily_bin1075.fits" evtable="EVENTS" scfile=/scratch/kocevski/384198/ft2_4FGL_J0225.6-4502_daily_bin1075.fits sctable="SC_DATA" outfile=/scratch/kocevski/384198/ltcube_517968001_518227201_4FGL_J0225.6-4502_daily_bin1075.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/384198/ft2_4FGL_J0225.6-4502_daily_bin1075.fits
.....................!
real 13.47
user 11.83
sys 1.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/384198/ft1_filtered_4FGL_J0225.6-4502_daily_bin1075.fits evtable="EVENTS" scfile=/scratch/kocevski/384198/ft2_4FGL_J0225.6-4502_daily_bin1075.fits sctable="SC_DATA" expcube=/scratch/kocevski/384198/ltcube_517968001_518227201_4FGL_J0225.6-4502_daily_bin1075.fits outfile=/scratch/kocevski/384198/expmap_517968001_518227201_4FGL_J0225.6-4502_daily_bin1075.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/384198/ltcube_517968001_518227201_4FGL_J0225.6-4502_daily_bin1075.fits
.....................!
real 195.82
user 187.93
sys 7.00

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/384198/ft1_filtered_4FGL_J0225.6-4502_daily_bin1075.fits scfile=/scratch/kocevski/384198/ft2_4FGL_J0225.6-4502_daily_bin1075.fits outfile=/scratch/kocevski/384198/cmap_517968001_518227201_4FGL_J0225.6-4502_daily_bin1075.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.45
user 0.38
sys 1.05

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/384198/ft1_filtered_4FGL_J0225.6-4502_daily_bin1075.fits scfile=/scratch/kocevski/384198/ft2_4FGL_J0225.6-4502_daily_bin1075.fits outfile=/scratch/kocevski/384198/cmap_HighResolution_517968001_518227201_4FGL_J0225.6-4502_daily_bin1075.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.45
user 0.38
sys 1.06

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/384198/ft1_filtered_4FGL_J0225.6-4502_daily_bin1075.fits evtable="EVENTS" scfile=/scratch/kocevski/384198/ft2_4FGL_J0225.6-4502_daily_bin1075.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/384198/Model_4FGL_J0225.6-4502_daily_bin1075.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/384198/ft1_filtered_4FGL_J0225.6-4502_daily_bin1075.fits.....................!
real 102.69
user 100.06
sys 2.43

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10505E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10732E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .11121E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.6605       1.0000         .10000E-03   10000.    
    11 'norm      '    1.5261       1.0000         .10000E-03   10000.    
    12 'Prefactor '    5.5598       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .13277E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10038E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    6.6575       1.0000         .10000E-03   10000.    
    16 'Prefactor '    18.695       1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.8554       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    3.6464       1.0000         .10000E-03   10000.    
    20 'Prefactor '    4.2407       1.0000         .10000E-03   10000.    
    21 'Prefactor '    10.345       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10057E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .29017       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .25292E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.4204       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .80722       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=   4940.491     FROM MIGRAD    STATUS=CONVERGED   1131 CALLS     3776 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    37.235        .18142E-02** at limit **
   2  norm          .10000E-03    2.5246        .10904E-02** at limit **
   3  Prefactor     .10000E-03    20.041        .18142E-02** at limit **
   4  Prefactor     .10000E-03    12.228        .36285E-02** at limit **
   5  Prefactor     .10000E-03    5.9266        .16648E-02** at limit **
   6  norm          .10000E-03    17.790        .18142E-02** at limit **
   7  norm          .10000E-03    3.4162        .12624E-02** at limit **
   8  Prefactor     .10000E-03    23.348        .18142E-02** at limit **
   9  Prefactor     .10000E-03    21.029        .18142E-02** at limit **
  10  Prefactor     3.6607        3.9213        .13786E-03   -.71747E-05
  11  norm          1.5259        1.5348        .82942E-04   -.38379E-05
  12  Prefactor     5.5547        20.425        .17039E-03   -.11877E-04
  13  Prefactor     .10000E-03    18.159        .18142E-02** at limit **
  14  norm          .10000E-03    1.4331        .16113E-03** at limit **
  15  norm          6.6579        3.9706        .10242E-03   -.21500E-03
  16  Prefactor     18.694        16.575        .92632E-04   -.40869E-04
  17  Prefactor     1.8552        55.823        .15300E-02   -.30138E-04
  18  Prefactor     .10000E-03    20.557        .18142E-02** at limit **
  19  norm          3.6465        1.8567        .63006E-04   -.11999E-03
  20  Prefactor     4.8358        1453.2        .19567E-02    .29522E-04
  21  Prefactor     10.349        7.3718        .62287E-03   -.28711E-04
  22  Prefactor     .10000E-03    27.209        .18142E-02** at limit **
  23  Prefactor     .10000E-03    10.313        .18142E-02** at limit **
  24  Prefactor     .27895        21.447        .32077E-02    .39577E-03
  25  Prefactor     .10003E-03    133.29        .54799E-02** at limit **
  26  Normalizat    1.4203        .25043        .22629E-03    .23403E-03
  27  Prefactor     .80715        .25281        .30391E-03   -.19497E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.66072
  norm       = 1.52592
  Prefactor  = 5.55469
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 6.65789
  Prefactor  = 18.6943
  Prefactor  = 1.8552
  Prefactor  = 0.0001
  norm       = 3.64651
  Prefactor  = 4.8358
  Prefactor  = 10.3488
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.278947
  Prefactor  = 0.000100031
  Normalizat = 1.42025
  Prefactor  = 0.807149
 **********
 **   18 **HESSE 
 **********

 FCN=   4940.491     FROM HESSE     STATUS=OK           466 CALLS     4242 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    37.247        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    2.5246        .21808E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    20.042        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    12.319        .72569E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    5.9280        .33297E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    17.790        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    3.4168        .25249E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    23.360        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    21.031        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     3.6607        3.9211        .55143E-05   -1.5325    
  11  norm          1.5259        1.5346        .33177E-05   -1.5461    
  12  Prefactor     5.5547        20.418        .68154E-05   -1.5237    
  13  Prefactor     .10000E-03    18.159        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    1.4331        .32226E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          6.6579        3.9690        .40969E-05   -1.5192    
  16  Prefactor     18.694        16.574        .37053E-05   -1.4843    
  17  Prefactor     1.8552        55.746        .61201E-04   -1.5436    
  18  Prefactor     .10000E-03    20.557        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          3.6465        1.8566        .25203E-05   -1.5326    
  20  Prefactor     4.8358        1452.2        .78267E-04   -1.5268    
  21  Prefactor     10.349        7.3708        .24915E-04   -1.5064    
  22  Prefactor     .10000E-03    27.222        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    10.313        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .27895        21.663        .12831E-03   -1.5602    
  25  Prefactor     .10003E-03    135.17        .10960E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    1.4203        .25054        .45258E-04   -.80045    
  27  Prefactor     .80715        .25286        .12156E-04   -.99465    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.94241e-09
Minuit parameter uncertainties:
  1  0.000130239
  2  1.98291e-06
  3  2.5268e-05
  4  7.02585e-05
  5  1.46153e-05
  6  5.68052e-06
  7  8.6096e-06
  8  7.83375e-05
  9  4.39753e-05
  10  3.9214
  11  1.53468
  12  20.4436
  13  8.93587e-06
  14  2.24809e-06
  15  3.96915
  16  16.5781
  17  20.3594
  18  3.91808e-07
  19  1.85665
  20  171.991
  21  7.37141
  22  3.3382e-06
  23  1.21966e-05
  24  4.91738
  25  0.00408543
  26  0.250761
  27  0.253227
Done.

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

Extracting fit parameters...

4FGL J0225.6-4502
   Spectrum: PowerLaw
284    Prefactor:  5.555e+00  2.044e+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:  8.071e-01  2.532e-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.420e+00  2.508e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/384198/likelihoodResults_517968001_518227201_4FGL_J0225.6-4502_daily_bin1075.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) = 4940.0791986
delta logL = 0.411311718158

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4940.05503504
delta logL = 0.435475273006

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.1312       1.0000         .10000E-03   10000.    
     2 'Index     '    3.6721       1.0000          .0000       10.000    
     3 'Normalizat'    1.3594       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84402       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=   4940.055     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      288 TOTAL
                     EDM=   .62E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.1308        41.969        .12650E-03   -.48236E-03
   2  Index         3.6723        3.3291        .60446E-02   -.10914E-03
   3  Normalizat    1.3594        .24901        .23020E-03   -.32785E-03
   4  Prefactor     .84403        .25486        .29771E-03   -.19456E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.1308
  Index      = 3.67228
  Normalizat = 1.35939
  Prefactor  = 0.844029
 **********
 **   18 **HESSE 
 **********

 FCN=   4940.055     FROM HESSE     STATUS=OK            25 CALLS      313 TOTAL
                     EDM=   .36E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.1308        8.1042        .50598E-05   -1.5354    
   2  Index         3.6723        1.2801        .24179E-03   -.26877    
   3  Normalizat    1.3594        .24886        .46040E-04   -.81810    
   4  Prefactor     .84403        .25337        .11909E-04   -.98125    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.59447e-10
Minuit parameter uncertainties:
  1  8.10699
  2  1.29567
  3  0.249082
  4  0.253718
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/384198': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4940.05503503
delta logL = 0.435475289165

Extracting fit parameters...

4FGL J0225.6-4502
   Spectrum: PowerLaw
284    Prefactor:  3.131e+00  8.107e+00  1.000e-04  1.000e+04 ( 1.000e-13)
285        Index:  3.672e+00  1.296e+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:  8.440e-01  2.537e-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.359e+00  2.491e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.01
Ra Dec: 36.405 -45.037
Photon Index (Free Index): 3.67 +/- 1.30
Photon Flux (Free Index): 6.78e-08 +/- 7.67e-08
Energy Flux (Free Index): 1.08e-05 +/- 1.20e-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/384198/cmap_HighResolution_517968001_518227201_4FGL_J0225.6-4502_daily_bin1075.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.60e-03', comment='SUCCESS', energy_flux2='1.08e-05', dlogl='4.35e-01', photon_flux2='6.78e-08', job_status='DONE', time_completed='2021-08-15 21:45:14.428263', photon_index_error2='1.30', photon_index2='3.67', ts='0.08', fit_tolerance='1e-08', GAL='0.81', photon_index_error='0.00', photon_flux_upper_limit='1.24e-07', energy_flux_error2='1.20e-05', EG='1.42', time_epoch_completed='1629089114.43', return_code='0', job_id='384198', GAL2='0.84', EG2='1.36', return_code2='0', photon_flux_error2='7.67e-08', ts2='1.01', photon_index='2.48' WHERE bin_id='1075' AND source_name='4FGL J0225.6-4502' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 15 21:45:14 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0040>
Subject: Job 384198: <4FGL_J0225.6-4502_daily_bin1075> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0225.6-4502_daily_bin1075 36.4048 -45.0366 517968001 518227201 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 :                                   788.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             316.39 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   806 sec.
    Turnaround time :                            871 sec.

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

