/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 3 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 = 7391
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0225.1-2604_daily_bin123
RA = 36.2829, Dec = -26.0774
tmin = 271209601, tmax = 271468801
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='372971', job_status='RUN', time_executed='2021-08-15 20:59:13.517525', time_epoch_executed='1629086353.52' WHERE source_name='4FGL J0225.1-2604' and cadence='daily' and bin_id='123'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/372971

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/372971/ft1_4FGL_J0225.1-2604_daily_bin123.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/372971/ft2_4FGL_J0225.1-2604_daily_bin123.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/372971/ft1_4FGL_J0225.1-2604_daily_bin123.fits outfile=/scratch/kocevski/372971/ft1_filteredMKT_4FGL_J0225.1-2604_daily_bin123.fits ra=36.2829 dec=-26.0774 rad=12.0 tmin=271209601.0 tmax=271468801.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 8.03
user 1.45
sys 4.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/372971/ft2_4FGL_J0225.1-2604_daily_bin123.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/372971/ft2_4FGL_J0225.1-2604_daily_bin123.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/372971/ft1_filteredMKT_4FGL_J0225.1-2604_daily_bin123.fits evtable="EVENTS" outfile="/scratch/kocevski/372971/ft1_filtered_4FGL_J0225.1-2604_daily_bin123.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 4.62
user 0.35
sys 4.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/372971/ft1_filtered_4FGL_J0225.1-2604_daily_bin123.fits" evtable="EVENTS" scfile=/scratch/kocevski/372971/ft2_4FGL_J0225.1-2604_daily_bin123.fits sctable="SC_DATA" outfile=/scratch/kocevski/372971/ltcube_271209601_271468801_4FGL_J0225.1-2604_daily_bin123.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/372971/ft2_4FGL_J0225.1-2604_daily_bin123.fits
.....................!
real 21.29
user 15.63
sys 4.78

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/372971/ft1_filtered_4FGL_J0225.1-2604_daily_bin123.fits evtable="EVENTS" scfile=/scratch/kocevski/372971/ft2_4FGL_J0225.1-2604_daily_bin123.fits sctable="SC_DATA" expcube=/scratch/kocevski/372971/ltcube_271209601_271468801_4FGL_J0225.1-2604_daily_bin123.fits outfile=/scratch/kocevski/372971/expmap_271209601_271468801_4FGL_J0225.1-2604_daily_bin123.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/372971/ltcube_271209601_271468801_4FGL_J0225.1-2604_daily_bin123.fits
.....................!
real 197.51
user 186.77
sys 10.06

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.1-2604 @ 36.2829 -26.0774

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/372971/ft1_filtered_4FGL_J0225.1-2604_daily_bin123.fits scfile=/scratch/kocevski/372971/ft2_4FGL_J0225.1-2604_daily_bin123.fits outfile=/scratch/kocevski/372971/cmap_271209601_271468801_4FGL_J0225.1-2604_daily_bin123.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.2829 yref=-26.0774 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 4.51
user 0.40
sys 4.06

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/372971/ft1_filtered_4FGL_J0225.1-2604_daily_bin123.fits scfile=/scratch/kocevski/372971/ft2_4FGL_J0225.1-2604_daily_bin123.fits outfile=/scratch/kocevski/372971/cmap_HighResolution_271209601_271468801_4FGL_J0225.1-2604_daily_bin123.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.2829 yref=-26.0774 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 4.53
user 0.40
sys 4.08

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/372971/ft1_filtered_4FGL_J0225.1-2604_daily_bin123.fits evtable="EVENTS" scfile=/scratch/kocevski/372971/ft2_4FGL_J0225.1-2604_daily_bin123.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/372971/Model_4FGL_J0225.1-2604_daily_bin123.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/372971/ft1_filtered_4FGL_J0225.1-2604_daily_bin123.fits.....................!
real 117.76
user 109.95
sys 6.54

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/372971/ft1_filtered_4FGL_J0225.1-2604_daily_bin123.fits', '/scratch/kocevski/372971/ft2_4FGL_J0225.1-2604_daily_bin123.fits', expMap='/scratch/kocevski/372971/expmap_271209601_271468801_4FGL_J0225.1-2604_daily_bin123.fits', expCube='/scratch/kocevski/372971/ltcube_271209601_271468801_4FGL_J0225.1-2604_daily_bin123.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/372971/Model_4FGL_J0225.1-2604_daily_bin123.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0225.1-2604'

4FGL J0225.1-2604
   Spectrum: PowerLaw
281    Prefactor:  3.561e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
282        Index:  2.518e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
283        Scale:  5.724e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/372971/ft1_filtered_4FGL_J0225.1-2604_daily_bin123.fits
Spacecraft file(s): /scratch/kocevski/372971/ft2_4FGL_J0225.1-2604_daily_bin123.fits
Exposure map: /scratch/kocevski/372971/expmap_271209601_271468801_4FGL_J0225.1-2604_daily_bin123.fits
Exposure cube: /scratch/kocevski/372971/ltcube_271209601_271468801_4FGL_J0225.1-2604_daily_bin123.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/372971/Model_4FGL_J0225.1-2604_daily_bin123.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) = 5801.75863982

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.5405       1.0000         .10000E-03   10000.    
     2 'norm      '    9.9332       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    1.9959       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    5.6867       1.0000         .10000E-03   10000.    
     8 'norm      '    .14615E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .75068       1.0000         .10000E-03   10000.    
    10 'Prefactor '    42.855       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    2.5058       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10194E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    3.0990       1.0000         .10000E-03   10000.    
    18 'Prefactor '    18.449       1.0000         .10000E-03   10000.    
    19 'norm      '    .35983E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    .57021       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.2113       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5730E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5801.754     FROM MIGRAD    STATUS=CONVERGED    463 CALLS     2207 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.5405        2.3993       -.88938E-08   -.35977E-05
   2  norm          9.9334        3.4857       -.73435E-07   -.11803E-04
   3  Prefactor     .10000E-03    12.815       -.12641E-05** at limit **
   4  norm          1.9960        1.7886       -.16112E-06   -.33871E-03
   5  Prefactor     .10000E-03    2.8124       -.16097E-07** at limit **
   6  Prefactor     .10000E-03    3.0539       -.14563E-07** at limit **
   7  Prefactor     5.6706        6.0779        .29042E-05    .37049E-03
   8  norm          .10000E-03    50.928       -.23898E-04** at limit **
   9  Prefactor     .75271        4.0082       -.80576E-06   -.56901E-03
  10  Prefactor     42.846        38.530       -.92173E-05    .57668E-04
  11  Prefactor     .10000E-03    19.486       -.63776E-05** at limit **
  12  norm          2.5058        1.9061       -.48262E-07   -.48593E-04
  13  Prefactor     .10000E-03    20.199       -.76676E-05** at limit **
  14  Prefactor     .10000E-03    14.531        .81747E-05** at limit **
  15  Prefactor     .10000E-03    1.4654       -.94082E-07** at limit **
  16  Prefactor     .10000E-03    36.454        .28064E-04** at limit **
  17  norm          3.0994        1.9068        .52039E-07    .27415E-03
  18  Prefactor     18.450        14.588       -.38873E-06    .39072E-05
  19  norm          .10024E-03    1.5671       -.14167E-05** at limit **
  20  Normalizat    .57018        .15320        .10433E-05    .22934E-03
  21  Prefactor     1.2113        .17158        .31721E-06    .36368E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 5.54054
  norm       = 9.93335
  Prefactor  = 0.0001
  norm       = 1.99595
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.67055
  norm       = 0.000100001
  Prefactor  = 0.752712
  Prefactor  = 42.8455
  Prefactor  = 0.0001
  norm       = 2.50577
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.09941
  Prefactor  = 18.4495
  norm       = 0.000100242
  Normalizat = 0.570182
  Prefactor  = 1.21132
 **********
 **   18 **HESSE 
 **********

 FCN=   5801.754     FROM HESSE     STATUS=OK           317 CALLS     2524 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.5405        2.3988        .74341E-04   -1.5237    
   2  norm          9.9334        3.4908        .79741E-04   -1.5078    
   3  Prefactor     .10000E-03    12.818        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          1.9960        1.7764        .91988E-04   -1.5425    
   5  Prefactor     .10000E-03    2.8150        .12474E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    3.0865        .12977E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     5.6706        6.0942        .16844E-03   -1.5232    
   8  norm          .10000E-03    51.656        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .75271        7.4502        .28179E-02   -1.5534    
  10  Prefactor     42.846        38.437        .61238E-04   -1.4398    
  11  Prefactor     .10000E-03    19.510        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          2.5058        1.8997        .88678E-04   -1.5391    
  13  Prefactor     .10000E-03    20.526        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    14.553        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    1.5000        .90027E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    36.279        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          3.0994        1.8936        .77555E-04   -1.5356    
  18  Prefactor     18.450        14.538        .93247E-04   -1.4849    
  19  norm          .10024E-03    12.938        .17927E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    .57018        .17988        .25793E-03   -1.0927    
  21  Prefactor     1.2113        .20442        .21787E-03   -.85984    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.92213e-08
Minuit parameter uncertainties:
  1  2.39883
  2  3.4909
  3  1.79058e-06
  4  1.77648
  5  7.76755e-07
  6  1.63363e-05
  7  6.09482
  8  0.000353293
  9  4.73664
  10  38.4588
  11  5.05846e-06
  12  1.89977
  13  4.63937e-05
  14  1.4473e-05
  15  1.73603e-06
  16  7.83527e-05
  17  1.89361
  18  14.5407
  19  0.0035429
  20  0.180064
  21  0.204553
Done.

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

Extracting fit parameters...

4FGL J0225.1-2604
   Spectrum: PowerLaw
281    Prefactor:  7.527e-01  4.737e+00  1.000e-04  1.000e+04 ( 1.000e-12)
282        Index:  2.518e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
283        Scale:  5.724e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
570    Prefactor:  1.211e+00  2.046e-01  0.000e+00  1.000e+01 ( 1.000e+00)
571        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
572        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
566   Normalization:  5.702e-01  1.801e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.03
Ra Dec: 36.283 -26.077
Photon Flux Upper Limit: 6.78e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.28e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/372971/likelihoodResults_271209601_271468801_4FGL_J0225.1-2604_daily_bin123.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) = 5801.3332669
delta logL = 0.420675490403

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5801.29213159
delta logL = 0.461810792699

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .67805       1.0000         .10000E-03   10000.    
     2 'Index     '    4.2265       1.0000          .0000       10.000    
     3 'Normalizat'    .52463       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2445       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5730E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5801.292     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      225 TOTAL
                     EDM=   .19E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .67739        13.072        .11977E-01    .10718E-02
   2  Index         4.2268        3.7112        .20395        .88384E-04
   3  Normalizat    .52463        .29852E-01    .60687E-01    .29934E-04
   4  Prefactor     1.2445        .35771E-01    .48719E-01    .77281E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.677387
  Index      = 4.22682
  Normalizat = 0.524634
  Prefactor  = 1.24449
 **********
 **   18 **HESSE 
 **********

 FCN=   5801.292     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      260 TOTAL
                     EDM=   .99E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .67739        41.812        .69208E-03   -1.5543    
   2  Index         4.2268        6.5152        .81326E-02   -.15526    
   3  Normalizat    .52463        .13896        .26851E-03   -1.1129    
   4  Prefactor     1.2445        .16399        .21537E-03   -.84973    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 9.93969e-11
Minuit parameter uncertainties:
  1  10.6508
  2  10.4819
  3  0.139049
  4  0.164062
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/372971': 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) = 5801.29213148
delta logL = 0.461810911437

Extracting fit parameters...

4FGL J0225.1-2604
   Spectrum: PowerLaw
281    Prefactor:  6.774e-01  1.065e+01  1.000e-04  1.000e+04 ( 1.000e-12)
282        Index:  4.227e+00  1.048e+01  0.000e+00  1.000e+01 (-1.000e+00)
283        Scale:  5.724e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
570    Prefactor:  1.244e+00  1.641e-01  0.000e+00  1.000e+01 ( 1.000e+00)
571        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
572        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
566   Normalization:  5.246e-01  1.390e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.02
Ra Dec: 36.283 -26.077
Photon Index (Free Index): 4.23 +/- 10.48
Photon Flux (Free Index): 3.36e-08 +/- 4.28e-08
Energy Flux (Free Index): 4.86e-06 +/- 1.15e-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/372971/cmap_HighResolution_271209601_271468801_4FGL_J0225.1-2604_daily_bin123.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.28e-03', comment='SUCCESS', energy_flux2='4.86e-06', dlogl='4.62e-01', photon_flux2='3.36e-08', job_status='DONE', time_completed='2021-08-15 21:11:23.708277', photon_index_error2='10.48', photon_index2='4.23', ts='0.03', fit_tolerance='1e-08', GAL='1.21', photon_index_error='0.00', photon_flux_upper_limit='6.78e-08', energy_flux_error2='1.15e-05', EG='0.57', time_epoch_completed='1629087083.71', return_code='0', job_id='372971', GAL2='1.24', EG2='0.52', return_code2='102', photon_flux_error2='4.28e-08', ts2='1.02', photon_index='2.52' WHERE bin_id='123' AND source_name='4FGL J0225.1-2604' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 15 21:11:23 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0297>
Subject: Job 372971: <4FGL_J0225.1-2604_daily_bin123> in cluster <slac> Done

Job <4FGL_J0225.1-2604_daily_bin123> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Sun Aug 15 20:55:39 2021
Job was executed on host(s) <bullet0297>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 15 20:57:58 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Aug 15 20:57:58 2021
Terminated at Sun Aug 15 21:11:24 2021
Results reported at Sun Aug 15 21:11:24 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0225.1-2604_daily_bin123 36.2829 -26.0774 271209601 271468801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0225.1-2604 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   782.43 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             336.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   809 sec.
    Turnaround time :                            945 sec.

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

