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


Performing analysis on: 4FGL_J0225.6-4502_daily_bin1276
RA = 36.4048, Dec = -45.0366
tmin = 570067201, tmax = 570326401
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='385536', job_status='RUN', time_executed='2021-08-15 21:37:36.654415', time_epoch_executed='1629088656.65' WHERE source_name='4FGL J0225.6-4502' and cadence='daily' and bin_id='1276'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/385536

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/385536/ft1_4FGL_J0225.6-4502_daily_bin1276.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/385536/ft2_4FGL_J0225.6-4502_daily_bin1276.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/385536/ft1_4FGL_J0225.6-4502_daily_bin1276.fits outfile=/scratch/kocevski/385536/ft1_filteredMKT_4FGL_J0225.6-4502_daily_bin1276.fits ra=36.4048 dec=-45.0366 rad=12.0 tmin=570067201.0 tmax=570326401.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.68
user 3.43
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/385536/ft1_filtered_4FGL_J0225.6-4502_daily_bin1276.fits" evtable="EVENTS" scfile=/scratch/kocevski/385536/ft2_4FGL_J0225.6-4502_daily_bin1276.fits sctable="SC_DATA" outfile=/scratch/kocevski/385536/ltcube_570067201_570326401_4FGL_J0225.6-4502_daily_bin1276.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/385536/ft2_4FGL_J0225.6-4502_daily_bin1276.fits
.....................!
real 13.28
user 12.89
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/385536/ft1_filtered_4FGL_J0225.6-4502_daily_bin1276.fits evtable="EVENTS" scfile=/scratch/kocevski/385536/ft2_4FGL_J0225.6-4502_daily_bin1276.fits sctable="SC_DATA" expcube=/scratch/kocevski/385536/ltcube_570067201_570326401_4FGL_J0225.6-4502_daily_bin1276.fits outfile=/scratch/kocevski/385536/expmap_570067201_570326401_4FGL_J0225.6-4502_daily_bin1276.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/385536/ltcube_570067201_570326401_4FGL_J0225.6-4502_daily_bin1276.fits
.....................!
real 193.46
user 186.87
sys 4.96

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/385536/ft1_filtered_4FGL_J0225.6-4502_daily_bin1276.fits scfile=/scratch/kocevski/385536/ft2_4FGL_J0225.6-4502_daily_bin1276.fits outfile=/scratch/kocevski/385536/cmap_570067201_570326401_4FGL_J0225.6-4502_daily_bin1276.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.62
user 0.37
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/385536/ft1_filtered_4FGL_J0225.6-4502_daily_bin1276.fits scfile=/scratch/kocevski/385536/ft2_4FGL_J0225.6-4502_daily_bin1276.fits outfile=/scratch/kocevski/385536/cmap_HighResolution_570067201_570326401_4FGL_J0225.6-4502_daily_bin1276.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.65
user 0.38
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/385536/ft1_filtered_4FGL_J0225.6-4502_daily_bin1276.fits evtable="EVENTS" scfile=/scratch/kocevski/385536/ft2_4FGL_J0225.6-4502_daily_bin1276.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/385536/Model_4FGL_J0225.6-4502_daily_bin1276.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/385536/ft1_filtered_4FGL_J0225.6-4502_daily_bin1276.fits.....................!
real 104.71
user 102.93
sys 1.29

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    75.010       1.0000         .10000E-03   10000.    
     2 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    17.619       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .36753E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10074E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    33.591       1.0000         .10000E-03   10000.    
     7 'norm      '    5.3363       1.0000         .10000E-03   10000.    
     8 'Prefactor '    27.864       1.0000         .10000E-03   10000.    
     9 'Prefactor '    27.952       1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.4528       1.0000         .10000E-03   10000.    
    11 'norm      '    18.082       1.0000         .10000E-03   10000.    
    12 'Prefactor '    11.575       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10721E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    54.826       1.0000         .10000E-03   10000.    
    15 'norm      '    3.8043       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .64086       1.0000         .10000E-03   10000.    
    20 'Prefactor '    344.58       1.0000         .10000E-03   10000.    
    21 'Prefactor '    15.042       1.0000         .10000E-03   10000.    
    22 'Prefactor '    1.6144       1.0000         .10000E-03   10000.    
    23 'Prefactor '    5.5970       1.0000         .10000E-03   10000.    
    24 'Prefactor '    3.1438       1.0000         .10000E-03   10000.    
    25 'Prefactor '    48.370       1.0000         .10000E-03   10000.    
    26 'Normalizat'    .90610       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .38097       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=   5040.873     FROM MIGRAD    STATUS=CONVERGED    618 CALLS     3271 TOTAL
                     EDM=   .44E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     75.013        28.932        .45184E-06    .15593E-03
   2  norm          .10000E-03    4.6588        .15604E-07** at limit **
   3  Prefactor     17.607        22.179       -.26761E-05   -.39479E-03
   4  Prefactor     .10001E-03    2.6873       -.23647E-07** at limit **
   5  Prefactor     .10000E-03    17.173        .12856E-05** at limit **
   6  norm          33.590        64.228       -.74464E-06   -.10168E-04
   7  norm          5.3345        5.9800        .46237E-06    .89995E-04
   8  Prefactor     27.862        12.822       -.72460E-08   -.72324E-04
   9  Prefactor     27.949        36.022       -.76344E-06   -.62520E-04
  10  Prefactor     3.4527        4.8432        .22662E-05   -.59841E-03
  11  norm          18.082        3.1330       -.14629E-06   -.13396E-03
  12  Prefactor     11.563        11.378       -.23923E-06   -.15323E-04
  13  Prefactor     .10000E-03    18.941       -.90476E-06** at limit **
  14  norm          54.826        6.4911       -.36320E-07   -.74671E-04
  15  norm          3.8045        2.5033        .11598E-07   -.24620E-04
  16  Prefactor     .10000E-03    3.0610       -.29332E-08** at limit **
  17  Prefactor     .10000E-03    9.7524        .39698E-06** at limit **
  18  Prefactor     .10000E-03    10.495       -.52961E-06** at limit **
  19  norm          .64084        .67185        .50425E-08   -.40377E-04
  20  Prefactor     344.59        224.63        .13053E-05    .36975E-04
  21  Prefactor     15.042        7.9293       -.11433E-06   -.47164E-04
  22  Prefactor     1.6158        16.871        .12208E-05   -.56632E-04
  23  Prefactor     5.5962        15.684       -.34795E-06   -.26933E-04
  24  Prefactor     3.1444        9.3311        .32184E-06   -.74252E-04
  25  Prefactor     48.372        31.633        .15961E-06    .64293E-04
  26  Normalizat    .90612        .18660        .65599E-06   -.77372E-04
  27  Prefactor     .38091        .19041       -.81832E-06   -.16915E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 75.0132
  norm       = 0.0001
  Prefactor  = 17.6075
  Prefactor  = 0.000100007
  Prefactor  = 0.0001
  norm       = 33.5903
  norm       = 5.33448
  Prefactor  = 27.8617
  Prefactor  = 27.9487
  Prefactor  = 3.45272
  norm       = 18.0822
  Prefactor  = 11.5634
  Prefactor  = 0.0001
  norm       = 54.8259
  norm       = 3.80445
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.640844
  Prefactor  = 344.595
  Prefactor  = 15.0423
  Prefactor  = 1.61579
  Prefactor  = 5.59618
  Prefactor  = 3.14438
  Prefactor  = 48.3718
  Normalizat = 0.906117
  Prefactor  = 0.38091
 **********
 **   18 **HESSE 
 **********

 FCN=   5040.873     FROM HESSE     STATUS=OK           492 CALLS     3763 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     75.013        29.107        .23180E-03   -1.3974    
   2  norm          .10000E-03    4.6892        .14965E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     17.607        23.601        .95416E-04   -1.4868    
   4  Prefactor     .10001E-03    16.010        .22381E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    17.673        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          33.590        64.309        .69140E-04   -1.4548    
   7  norm          5.3345        5.9566        .15729E-03   -1.5246    
   8  Prefactor     27.862        12.828        .75896E-04   -1.4652    
   9  Prefactor     27.949        36.170        .75775E-04   -1.4650    
  10  Prefactor     3.4527        5.0184        .90939E-03   -1.5336    
  11  norm          18.082        3.1381        .48520E-04   -1.4857    
  12  Prefactor     11.563        11.347        .11775E-03   -1.5028    
  13  Prefactor     .10000E-03    18.991        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          54.826        6.4890        .54173E-04   -1.4226    
  15  norm          3.8045        2.5045        .86787E-04   -1.5318    
  16  Prefactor     .10000E-03    3.0639        .12130E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    9.7718        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    10.523        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .64084        .63178        .57643E-03   -1.5548    
  20  Prefactor     344.59        225.13        .10965E-03   -1.1974    
  21  Prefactor     15.042        7.8926        .10327E-03   -1.4932    
  22  Prefactor     1.6158        16.519        .33327E-03   -1.5454    
  23  Prefactor     5.5962        15.847        .16981E-03   -1.5235    
  24  Prefactor     3.1444        9.3656        .22862E-03   -1.5353    
  25  Prefactor     48.372        31.805        .57656E-04   -1.4316    
  26  Normalizat    .90612        .21511        .22830E-03   -.96246    
  27  Prefactor     .38091        .21492        .36353E-03   -1.1779    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.35832e-09
Minuit parameter uncertainties:
  1  29.1128
  2  4.04536e-06
  3  23.6132
  4  0.000663895
  5  0.000116301
  6  64.4422
  7  5.95724
  8  12.8289
  9  36.1979
  10  5.01901
  11  3.1381
  12  11.3494
  13  0.000107015
  14  6.48905
  15  2.50455
  16  1.93864e-08
  17  4.42139e-05
  18  6.95001e-05
  19  0.631783
  20  225.707
  21  7.89317
  22  10.336
  23  15.8593
  24  9.36997
  25  31.8158
  26  0.215313
  27  0.215375
Done.

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

Extracting fit parameters...

4FGL J0225.6-4502
   Spectrum: PowerLaw
284    Prefactor:  1.156e+01  1.135e+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:  3.809e-01  2.154e-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.061e-01  2.153e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.64
Ra Dec: 36.405 -45.037
Photon Index (Fixed Index): 2.48 +/- 0.00
Photon Flux (Fixed Index): 2.70e-08 +/- 2.65e-08
Energy Flux (Fixed Index): 8.04e-06 +/- 7.89e-06

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

Saving results to:
/scratch/kocevski/385536/likelihoodResults_570067201_570326401_4FGL_J0225.6-4502_daily_bin1276.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) = 5040.86842093
delta logL = 0.00447088272722

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5040.86513055
delta logL = 0.00776126142591

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    12.649       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3306       1.0000          .0000       10.000    
     3 'Normalizat'    .91187       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .37705       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=   5040.865     FROM MIGRAD    STATUS=CONVERGED     80 CALLS      236 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     12.653        15.390        .11263E-03   -.13263E-03
   2  Index         2.3298        1.2113        .89677E-02   -.29148E-04
   3  Normalizat    .91192        .20456        .22765E-03    .90272E-03
   4  Prefactor     .37702        .21285        .36530E-03    .64469E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 12.6534
  Index      = 2.32984
  Normalizat = 0.911916
  Prefactor  = 0.37702
 **********
 **   18 **HESSE 
 **********

 FCN=   5040.865     FROM HESSE     STATUS=OK            25 CALLS      261 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     12.653        14.844        .22526E-04   -1.4996    
   2  Index         2.3298        1.1671        .35871E-03   -.56336    
   3  Normalizat    .91192        .20411        .45530E-04   -.96043    
   4  Prefactor     .37702        .21271        .14612E-04   -1.1800    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.33446e-09
Minuit parameter uncertainties:
  1  14.8483
  2  1.18251
  3  0.204282
  4  0.213153
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/385536': 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) = 5040.86513035
delta logL = 0.00776146753469

Extracting fit parameters...

4FGL J0225.6-4502
   Spectrum: PowerLaw
284    Prefactor:  1.265e+01  1.485e+01  1.000e-04  1.000e+04 ( 1.000e-13)
285        Index:  2.330e+00  1.183e+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:  3.770e-01  2.132e-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.119e-01  2.043e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.63
Ra Dec: 36.405 -45.037
Photon Index (Free Index): 2.33 +/- 1.18
Photon Flux (Free Index): 2.32e-08 +/- 3.80e-08
Energy Flux (Free Index): 8.38e-06 +/- 9.30e-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/385536/cmap_HighResolution_570067201_570326401_4FGL_J0225.6-4502_daily_bin1276.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.48e-03', comment='SUCCESS', photon_flux='2.70e-08', energy_flux2='8.38e-06', photon_flux_error='2.65e-08', dlogl='7.76e-03', energy_flux='8.04e-06', photon_flux2='2.32e-08', job_status='DONE', time_completed='2021-08-15 21:50:31.424832', photon_index_error2='1.18', photon_index2='2.33', ts='2.64', fit_tolerance='1e-08', GAL='0.38', photon_index_error='0.00', photon_flux_upper_limit='9.63e-08', energy_flux_error2='9.30e-06', EG='0.91', time_epoch_completed='1629089431.42', return_code='0', job_id='385536', GAL2='0.38', EG2='0.91', return_code2='0', energy_flux_error='7.89e-06', photon_flux_error2='3.80e-08', ts2='2.63', photon_index='2.48' WHERE bin_id='1276' AND source_name='4FGL J0225.6-4502' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 15 21:50:31 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0246>
Subject: Job 385536: <4FGL_J0225.6-4502_daily_bin1276> in cluster <slac> Done

Job <4FGL_J0225.6-4502_daily_bin1276> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Sun Aug 15 21:35:36 2021
Job was executed on host(s) <bullet0246>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 15 21:36:19 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:36:19 2021
Terminated at Sun Aug 15 21:50:32 2021
Results reported at Sun Aug 15 21:50:32 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0225.6-4502_daily_bin1276 36.4048 -45.0366 570067201 570326401 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 :                                   769.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             329.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   852 sec.
    Turnaround time :                            896 sec.

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

