/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 186 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 make4FGLDR3xml version 01r09.
The default diffuse model files and names are for P8R3, 4FGL DRs, and the default fermitools directory locations.

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 = 7534
number of fields = 31
RA_SUN column already exists. File will not be monumber oDone.


Performing analysis on: 4FGL_J0225.6-4502_daily_bin1721
RA = 36.4048, Dec = -45.0366
tmin = 685411201, tmax = 685670401
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='48891', job_status='RUN', time_executed='2022-09-24 00:09:09.806835', time_epoch_executed='1664003349.81' WHERE source_name='4FGL J0225.6-4502' and cadence='daily' and bin_id='1721'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/48891

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/48891/ft1_4FGL_J0225.6-4502_daily_bin1721.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/48891/ft2_4FGL_J0225.6-4502_daily_bin1721.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/48891/ft1_4FGL_J0225.6-4502_daily_bin1721.fits outfile=/scratch/kocevski/48891/ft1_filteredMKT_4FGL_J0225.6-4502_daily_bin1721.fits ra=36.4048 dec=-45.0366 rad=12.0 tmin=685411201.0 tmax=685670401.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 5.41
user 4.99
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/48891/ft2_4FGL_J0225.6-4502_daily_bin1721.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/48891/ft1_filteredMKT_4FGL_J0225.6-4502_daily_bin1721.fits evtable="EVENTS" outfile="/scratch/kocevski/48891/ft1_filtered_4FGL_J0225.6-4502_daily_bin1721.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.49
user 0.32
sys 0.16

Number of photons that the gtmktime cut: 586

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/48891/ft1_filtered_4FGL_J0225.6-4502_daily_bin1721.fits" evtable="EVENTS" scfile=/scratch/kocevski/48891/ft2_4FGL_J0225.6-4502_daily_bin1721.fits sctable="SC_DATA" outfile=/scratch/kocevski/48891/ltcube_685411201_685670401_4FGL_J0225.6-4502_daily_bin1721.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/48891/ft2_4FGL_J0225.6-4502_daily_bin1721.fits
.....................!
real 12.90
user 12.46
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/48891/ft1_filtered_4FGL_J0225.6-4502_daily_bin1721.fits evtable="EVENTS" scfile=/scratch/kocevski/48891/ft2_4FGL_J0225.6-4502_daily_bin1721.fits sctable="SC_DATA" expcube=/scratch/kocevski/48891/ltcube_685411201_685670401_4FGL_J0225.6-4502_daily_bin1721.fits outfile=/scratch/kocevski/48891/expmap_685411201_685670401_4FGL_J0225.6-4502_daily_bin1721.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/48891/ltcube_685411201_685670401_4FGL_J0225.6-4502_daily_bin1721.fits
.....................!
real 192.68
user 185.45
sys 6.14

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_8years/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/48891/ft1_filtered_4FGL_J0225.6-4502_daily_bin1721.fits scfile=/scratch/kocevski/48891/ft2_4FGL_J0225.6-4502_daily_bin1721.fits outfile=/scratch/kocevski/48891/cmap_685411201_685670401_4FGL_J0225.6-4502_daily_bin1721.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.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/48891/ft1_filtered_4FGL_J0225.6-4502_daily_bin1721.fits scfile=/scratch/kocevski/48891/ft2_4FGL_J0225.6-4502_daily_bin1721.fits outfile=/scratch/kocevski/48891/cmap_HighResolution_685411201_685670401_4FGL_J0225.6-4502_daily_bin1721.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/48891/ft1_filtered_4FGL_J0225.6-4502_daily_bin1721.fits evtable="EVENTS" scfile=/scratch/kocevski/48891/ft2_4FGL_J0225.6-4502_daily_bin1721.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/48891/Model_4FGL_J0225.6-4502_daily_bin1721.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/48891/ft1_filtered_4FGL_J0225.6-4502_daily_bin1721.fits.....................!
real 124.96
user 123.16
sys 1.20

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/48891/ft1_filtered_4FGL_J0225.6-4502_daily_bin1721.fits', '/scratch/kocevski/48891/ft2_4FGL_J0225.6-4502_daily_bin1721.fits', expMap='/scratch/kocevski/48891/expmap_685411201_685670401_4FGL_J0225.6-4502_daily_bin1721.fits', expCube='/scratch/kocevski/48891/ltcube_685411201_685670401_4FGL_J0225.6-4502_daily_bin1721.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/48891/Model_4FGL_J0225.6-4502_daily_bin1721.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  0.000e+00  1.000e+06 ( 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/48891/ft1_filtered_4FGL_J0225.6-4502_daily_bin1721.fits
Spacecraft file(s): /scratch/kocevski/48891/ft2_4FGL_J0225.6-4502_daily_bin1721.fits
Exposure map: /scratch/kocevski/48891/expmap_685411201_685670401_4FGL_J0225.6-4502_daily_bin1721.fits
Exposure cube: /scratch/kocevski/48891/ltcube_685411201_685670401_4FGL_J0225.6-4502_daily_bin1721.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/48891/Model_4FGL_J0225.6-4502_daily_bin1721.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) = 6382.56454964

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    55.007       1.0000          .0000       .10000E+07
     2 'Prefactor '    17.140       1.0000          .0000       .10000E+07
     3 'Prefactor '    8.0356       1.0000          .0000       .10000E+07
     4 'Prefactor '    .70745E-05   1.0000          .0000       .10000E+07
     5 'norm      '    .24379E-01   1.0000          .0000       .10000E+07
     6 'norm      '    .31883E-03   1.0000          .0000       .10000E+07
     7 'Prefactor '    .31455E-04   1.0000          .0000       .10000E+07
     8 'Prefactor '    .13822E-07   1.0000          .0000       .10000E+07
     9 'Prefactor '    4.0428       1.0000          .0000       .10000E+07
    10 'norm      '    3.2224       1.0000          .0000       .10000E+07
    11 'Prefactor '    26.372       1.0000          .0000       .10000E+07
    12 'Prefactor '    .11074E-02   1.0000          .0000       .10000E+07
    13 'norm      '    .79984       1.0000          .0000       .10000E+07
    14 'norm      '    .35517E-05   1.0000          .0000       .10000E+07
    15 'Prefactor '    .76713       1.0000          .0000       .10000E+07
    16 'Prefactor '    .18166E-02   1.0000          .0000       .10000E+07
    17 'Prefactor '    10.092       1.0000          .0000       .10000E+07
    18 'norm      '    .15922E-05   1.0000          .0000       .10000E+07
    19 'Prefactor '    7.3890       1.0000          .0000       .10000E+07
    20 'Prefactor '     .0000       1.0000          .0000       .10000E+07
    21 'Prefactor '    .33524E-02   1.0000          .0000       .10000E+07
    22 'Prefactor '    10.140       1.0000          .0000       .10000E+07
    23 'Prefactor '    39.066       1.0000          .0000       .10000E+07
    24 'Normalizat'    .72319       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.2300       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5710E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6382.550     FROM MIGRAD    STATUS=CONVERGED    166 CALLS     2184 TOTAL
                     EDM=   .27E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          55.025        1.6128        .27439E-08    .25611E-02
   2  Prefactor     17.272        1.5868       -.84701E-07   -.11107E-02
   3  Prefactor     8.0150        4.8526        .19575E-07   -.90652E-03
   4  Prefactor     .16653E-09    1.8688        .25487E-06** at limit **
   5  norm          .55511E-10    23.849        .18755E-05** at limit **
   6  norm          .10614E-06    12.434        .10510E-05** at limit **
   7  Prefactor     .17408E-06    59.291        .41941E-05** at limit **
   8  Prefactor     .14289E-06    77.376       -.22591E-05** at limit **
   9  Prefactor     3.9967        3.7593        .13089E-06   -.55617E-03
  10  norm          3.2257        1.5228       -.12121E-06    .78093E-03
  11  Prefactor     26.338        2.1320       -.43008E-07    .63727E-02
  12  Prefactor     .14988E-08    8.2117       -.93374E-07** at limit **
  13  norm          .80910        1.7046       -.16104E-07   -.85862E-03
  14  norm           .0000        10.394        .14624E-06** at limit **
  15  Prefactor     .75628        1.3471        .77203E-07   -.15268E-01
  16  Prefactor     .46629E-08    6.0994       -.48822E-06** at limit **
  17  Prefactor     10.011        1.6081       -.24437E-07    .12154E-01
  18  norm           .0000        .56793        .14647E-06** at limit **
  19  Prefactor     7.3701        5.1273        .20977E-07   -.88239E-03
  20  Prefactor     .49960E-09    3.3111       -.17609E-06** at limit **
  21  Prefactor      .0000        10.120        .54153E-06** at limit **
  22  Prefactor     10.136        7.7774       -.27894E-06    .15586E-02
  23  Prefactor     39.217        5.6178       -.59332E-07   -.10605    
  24  Normalizat    .72328        .19176        .16409E-04    .21680E-04
  25  Prefactor     1.2300        .21627       -.37335E-05    .44351E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 55.0252
  Prefactor  = 17.2719
  Prefactor  = 8.01503
  Prefactor  = 1.66533e-10
  norm       = 5.55112e-11
  norm       = 1.06137e-07
  Prefactor  = 1.74083e-07
  Prefactor  = 1.42886e-07
  Prefactor  = 3.99666
  norm       = 3.22568
  Prefactor  = 26.3385
  Prefactor  = 1.4988e-09
  norm       = 0.809102
  norm       = 0
  Prefactor  = 0.756276
  Prefactor  = 4.66294e-09
  Prefactor  = 10.0105
  norm       = 0
  Prefactor  = 7.37015
  Prefactor  = 4.996e-10
  Prefactor  = 0
  Prefactor  = 10.1359
  Prefactor  = 39.2172
  Normalizat = 0.723283
  Prefactor  = 1.22996
 **********
 **   18 **HESSE 
 **********

 FCN=   6382.550     FROM HESSE     STATUS=OK        **********
 **   18 **HESSE 
 **********

 FCN=   6382.550     FROM HESSE     STATUS=OK           493 CALLS     2677 TOTAL
                     EDM=   .31E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          55.025        13.985        .13484E-03   -1.5560    
   2  Prefactor     17.272        31.774        .24164E-03   -1.5625    
   3  Prefactor     8.0150        4.9829        .35346E-03   -1.5651    
   4  Prefactor     .16653E-09    1.8692        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .55511E-10    23.853        .16764E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10614E-06    2.4689        .42118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .17408E-06    6.3799        .67725E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .14289E-06    78.195        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     3.9967        3.7633        .50125E-03   -1.5668    
  10  norm          3.2257        1.5376        .56408E-03   -1.5672    
  11  Prefactor     26.338        16.174        .19477E-03   -1.5605    
  12  Prefactor     .14988E-08    8.2658        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .80910        1.7232        .52947E-03   -1.5690    
  14  norm           .0000        .90058        .42118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .75628        44.885        .55418E-03   -1.5691    
  16  Prefactor     .46629E-08    6.1351        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     10.011        25.166        .31518E-03   -1.5645    
  18  norm           .0000        .56078        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     7.3701        5.1464        .36873E-03   -1.5654    
  20  Prefactor     .49960E-09    3.3285        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor      .0000        10.204        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     10.136        7.8336        .31442E-03   -1.5644    
  23  Prefactor     39.217        29.318        .16001E-03   -1.5583    
  24  Normalizat    .72328        .17139        .42599E-01   -1.0298    
  25  Prefactor     1.2300        .18291        .53717E-01   -.85414    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.11707e-07
Minuit parameter uncertainties:
  1  13.9854
  2  31.7739
  3  4.98293
  4  3.46343e-05
  5  5.77637e-05
  6  0.00102388
  7  0.00210789
  8  0.0066851
  9  3.76329
  10  1.53764
  11  16.1737
  12  0.000223221
  13  1.72316
  14  9.33314e-06
  15  11.6527
  16  0.000338711
  17  25.1666
  18  1.01597e-06
  19  5.14638
  20  8.24515e-05
  21  2.24186e-05
  22  7.83364
  23  29.3179
  24  0.171516
  25  0.183001
Done.

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

Extracting fit parameters...

4FGL J0225.6-4502
   Spectrum: PowerLaw
284    Prefactor:  2.634e+01  1.617e+01  0.000e+00  1.000e+06 ( 1.000e-13)
285        Index:  2.479e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
286        Scale:  1.057e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
568    Prefactor:  1.230e+00  1.830e-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:  7.233e-01  1.715e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.10
Ra Dec: 36.405 -45.037
Photon Index (Fixed Index): 2.48 +/- 0.00
Photon Flux (Fixed Index): 6.16e-08 +/- 3.78e-08
Energy Flux (Fixed Index): 1.83e-05 +/- 1.12e-05

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) = 6382.53891281
delta logL = 0.0107384890971

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6382.52972658
delta logL = 0.0199247253622

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    28.929       1.0000          .0000       .10000E+07
     2 'Index     '    2.3797       1.0000          .0000       10.000    
     3 'Normalizat'    .72912       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2258       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=   6382.530     FROM MIGRAD    STATUS=CONVERGED     80 CALLS      241 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     28.933        21.731        .74381E-05   -.90434E-02
   2  Index         2.3796        .50964        .55298E-02   -.42400E-03
   3  Normalizat    .72915        .19281        .26509E-03    .43717E-03
   4  Prefactor     1.2258        .21608        .23785E-03    .61279E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 28.9329
  Index      = 2.37964
  Normalizat = 0.729148
  Prefactor  = 1.22581
 **********
 **   18 **HESSE 
 **********

 FCN=   6382.530     FROM HESSE     STATUS=OK            23 CALLS      264 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     28.933        20.962        .14876E-05   -1.5600    
   2  Index         2.3796        .49118        .22119E-03   -.55162    
   3  Normalizat    .72915        .19285        .53018E-04   -1.0275    
   4  Prefactor     1.2258        .21617        .47569E-04   -.85541    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.3743e-09
Minuit parameter uncertainties:
  1  20.9618
  2  0.492272
  3  0.193034
  4  0.216329
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/48872': No such file or directory
shell-init: error retDone.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6382.52972655
delta logL = 0.0199Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6382.52972655
delta logL = 0.0199247566761

Extracting fit parameters...

4FGL J0225.6-4502
   Spectrum: PowerLaw
284    Prefactor:  2.893e+01  2.096e+01  0.000e+00  1.000e+06 ( 1.000e-13)
285        Index:  2.380e+00  4.923e-01  0.000e+00  1.000e+01 (-1.000e+00)
286        Scale:  1.057e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
568    Prefactor:  1.226e+00  2.163e-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:  7.291e-01  1.930e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.09
Ra Dec: 36.405 -45.037
Photon Index (Free Index): 2.38 +/- 0.49
Photon Flux (Free Index): 5.74e-08 +/- 4.04e-08
Energy Flux (Free Index): 1.93e-05 +/- 1.27e-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/48872/cmap_HighResolution_685411201_685670401_4FGL_J0225.6-4502_daily_bin1721.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.16e-08', energy_flux2='1.93e-05', photon_flux_error='3.78e-08', dlogl='1.99e-02', energy_flux='1.83e-05', photon_flux2='5.74e-08', job_status='DONE', time_completed='2022-09-24 00:20:35.231974', photon_index_error2='0.49', photon_index2='2.38', ts='6.10', fit_tolerance='1e-08', GAL='1.23', photon_index_error='0.00', energy_flux_error2='1.27e-05', EG='0.72', time_epoch_completed='1664004035.23', return_code='0', job_id='48872', GAL2='1.23', EG2='0.73', return_code2='0', energy_flux_error='1.12e-05', photon_flux_error2='4.04e-08', ts2='6.09', photon_index='2.48' WHERE bin_id='1721' AND source_name='4FGL J0225.6-4502' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 24 00:20:35 PDT 2022

4>
Subject: Job 48891: <4FGL_J0225.6-4502_daily_bin1721> in cluster <slac> Done

Job <4FGL_J0225.6-4502_daily_bin1721> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Sat Sep 24 00:05:16 2022
Job was executed on host(s) <bullet0144>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 24 00:05:55 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep 24 00:05:55 2022
Terminated at Sat Sep 24 00:20:35 2022
Results reported at Sat Sep 24 00:20:35 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0225.6-4502_daily_bin1721 36.4048 -45.0366 685411201 685670401 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 :                                   685.00 sec.
    Max Memory :                                 618 MB
    Average Memory :                             265.97 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   880 sec.
    Turnaround time :                            919 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0170>
Subject: Job 48872: <4FGL_J0225.6-4502_daily_bin1721> in cluster <slac> Done

Job <4FGL_J0225.6-4502_daily_bin1721> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Sep 24 00:05:13 2022
Job was executed on host(s) <bullet0170>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 24 00:05:53 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep 24 00:05:53 2022
Terminated at Sat Sep 24 00:20:36 2022
Results reported at Sat Sep 24 00:20:36 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0225.6-4502_daily_bin1721 36.4048 -45.0366 685411201 685670401 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 :                                   684.25 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             297.61 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   882 sec.
    Turnaround time :                            923 sec.

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

