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


Performing analysis on: 4FGL_J0225.6-4502_daily_bin1270
RA = 36.4048, Dec = -45.0366
tmin = 568512001, tmax = 568771201
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='385527', job_status='RUN', time_executed='2021-08-15 21:38:07.257693', time_epoch_executed='1629088687.26' WHERE source_name='4FGL J0225.6-4502' and cadence='daily' and bin_id='1270'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/385527

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/385527/ft1_4FGL_J0225.6-4502_daily_bin1270.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/385527/ft2_4FGL_J0225.6-4502_daily_bin1270.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/385527/ft1_4FGL_J0225.6-4502_daily_bin1270.fits outfile=/scratch/kocevski/385527/ft1_filteredMKT_4FGL_J0225.6-4502_daily_bin1270.fits ra=36.4048 dec=-45.0366 rad=12.0 tmin=568512001.0 tmax=568771201.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.86
user 3.45
sys 1.37

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/385527/ft2_4FGL_J0225.6-4502_daily_bin1270.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/385527/ft1_filteredMKT_4FGL_J0225.6-4502_daily_bin1270.fits evtable="EVENTS" outfile="/scratch/kocevski/385527/ft1_filtered_4FGL_J0225.6-4502_daily_bin1270.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.73
user 0.35
sys 1.34

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/385527/ft1_filtered_4FGL_J0225.6-4502_daily_bin1270.fits" evtable="EVENTS" scfile=/scratch/kocevski/385527/ft2_4FGL_J0225.6-4502_daily_bin1270.fits sctable="SC_DATA" outfile=/scratch/kocevski/385527/ltcube_568512001_568771201_4FGL_J0225.6-4502_daily_bin1270.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/385527/ft2_4FGL_J0225.6-4502_daily_bin1270.fits
.....................!
real 16.22
user 14.30
sys 1.77

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/385527/ft1_filtered_4FGL_J0225.6-4502_daily_bin1270.fits evtable="EVENTS" scfile=/scratch/kocevski/385527/ft2_4FGL_J0225.6-4502_daily_bin1270.fits sctable="SC_DATA" expcube=/scratch/kocevski/385527/ltcube_568512001_568771201_4FGL_J0225.6-4502_daily_bin1270.fits outfile=/scratch/kocevski/385527/expmap_568512001_568771201_4FGL_J0225.6-4502_daily_bin1270.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/385527/ltcube_568512001_568771201_4FGL_J0225.6-4502_daily_bin1270.fits
.....................!
real 192.95
user 186.10
sys 6.08

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/385527/ft1_filtered_4FGL_J0225.6-4502_daily_bin1270.fits scfile=/scratch/kocevski/385527/ft2_4FGL_J0225.6-4502_daily_bin1270.fits outfile=/scratch/kocevski/385527/cmap_568512001_568771201_4FGL_J0225.6-4502_daily_bin1270.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.73
user 0.37
sys 1.33

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/385527/ft1_filtered_4FGL_J0225.6-4502_daily_bin1270.fits scfile=/scratch/kocevski/385527/ft2_4FGL_J0225.6-4502_daily_bin1270.fits outfile=/scratch/kocevski/385527/cmap_HighResolution_568512001_568771201_4FGL_J0225.6-4502_daily_bin1270.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.78
user 0.40
sys 1.36

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/385527/ft1_filtered_4FGL_J0225.6-4502_daily_bin1270.fits evtable="EVENTS" scfile=/scratch/kocevski/385527/ft2_4FGL_J0225.6-4502_daily_bin1270.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/385527/Model_4FGL_J0225.6-4502_daily_bin1270.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/385527/ft1_filtered_4FGL_J0225.6-4502_daily_bin1270.fits.....................!
real 99.83
user 96.77
sys 2.72

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    29.437       1.0000         .10000E-03   10000.    
     3 'Prefactor '    12.959       1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.1953       1.0000         .10000E-03   10000.    
     5 'Prefactor '    6.0619       1.0000         .10000E-03   10000.    
     6 'norm      '    .10019E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    1.5786       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    82.670       1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.6446       1.0000         .10000E-03   10000.    
    11 'norm      '    15.604       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    16.194       1.0000         .10000E-03   10000.    
    15 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    8.5064       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    118.96       1.0000         .10000E-03   10000.    
    19 'norm      '    1.0980       1.0000         .10000E-03   10000.    
    20 'Prefactor '    170.90       1.0000         .10000E-03   10000.    
    21 'Prefactor '    7.3911       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .48335E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    .83780       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.1701       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=   4820.443     FROM MIGRAD    STATUS=CONVERGED    619 CALLS     3813 TOTAL
                     EDM=   .58E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    39.140       -.13642E-04** at limit **
   2  norm          29.436        15.089        .23374E-06    .14962E-04
   3  Prefactor     13.000        41.903        .86184E-04    .24406E-04
   4  Prefactor     5.1944        8.8556       -.79848E-05   -.38604E-03
   5  Prefactor     6.0619        7.5774        .56063E-06   -.43689E-04
   6  norm          .10000E-03    36.224        .15043E-04** at limit **
   7  norm          1.5791        4.9043        .32155E-05   -.41790E-03
   8  Prefactor     .10000E-03    4.2307       -.27834E-07** at limit **
   9  Prefactor     82.660        50.419       -.95895E-05   -.12068E-04
  10  Prefactor     5.6440        6.0488       -.11242E-06   -.14237E-03
  11  norm          15.604        3.1598        .51118E-07   -.61765E-04
  12  Prefactor     .10000E-03    11.730       -.52406E-05** at limit **
  13  Prefactor     .10000E-03    11.488       -.16402E-05** at limit **
  14  norm          16.195        4.4170        .59446E-06   -.67702E-04
  15  norm          .10000E-03    2.3722        .61272E-07** at limit **
  16  Prefactor     8.5099        16.004        .19275E-05   -.24344E-04
  17  Prefactor     .10000E-03    19.109       -.78454E-06** at limit **
  18  Prefactor     118.97        76.733        .36863E-05   -.20249E-05
  19  norm          1.0981        1.1241        .26975E-07   -.10825E-03
  20  Prefactor     170.85        252.00       -.40282E-04   -.17164E-05
  21  Prefactor     7.3917        7.0879        .13657E-06   -.22035E-03
  22  Prefactor     .10000E-03    4.0238        .72259E-07** at limit **
  23  Prefactor     .10000E-03    8.8752       -.13193E-05** at limit **
  24  Prefactor     .10011E-03    6.2852        .18805E-05** at limit **
  25  Prefactor     .10000E-03    10.746        .79612E-05** at limit **
  26  Normalizat    .83741        .22004       -.13601E-05   -.10691E-03
  27  Prefactor     1.1705        .22892       -.12656E-05   -.10455E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 29.4363
  Prefactor  = 12.9995
  Prefactor  = 5.19436
  Prefactor  = 6.06189
  norm       = 0.0001
  norm       = 1.57908
  Prefactor  = 0.0001
  Prefactor  = 82.6598
  Prefactor  = 5.64402
  norm       = 15.6039
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 16.1946
  norm       = 0.0001
  Prefactor  = 8.50986
  Prefactor  = 0.0001
  Prefactor  = 118.966
  norm       = 1.09813
  Prefactor  = 170.851
  Prefactor  = 7.39169
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100107
  Prefactor  = 0.0001
  Normalizat = 0.837409
  Prefactor  = 1.17054
 **********
 **   18 **HESSE 
 **********

 FCN=   4820.443     FROM HESSE     STATUS=OK           488 CALLS     4301 TOTAL
                     EDM=   .37E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    39.379        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          29.436        15.086        .73844E-04   -1.4622    
   3  Prefactor     13.000        41.940        .11127E-03   -1.4987    
   4  Prefactor     5.1944        8.8770        .17636E-03   -1.5252    
   5  Prefactor     6.0619        7.5650        .16307E-03   -1.5215    
   6  norm          .10000E-03    36.229        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          1.5791        4.8107        .23969E-03   -1.5457    
   8  Prefactor     .10000E-03    4.2318        .13947E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     82.660        50.288        .44177E-04   -1.3887    
  10  Prefactor     5.6440        6.0464        .16865E-03   -1.5233    
  11  norm          15.604        3.1594        .51977E-04   -1.4918    
  12  Prefactor     .10000E-03    11.756        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    11.497        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          16.195        4.4152        .72219E-04   -1.4903    
  15  norm          .10000E-03    2.4291        .20858E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     8.5099        15.948        .13744E-03   -1.5124    
  17  Prefactor     .10000E-03    19.138        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     118.97        76.722        .36894E-04   -1.3522    
  19  norm          1.0981        1.1145        .69604E-04   -1.5498    
  20  Prefactor     170.85        252.10        .15431E-03   -1.3086    
  21  Prefactor     7.3917        7.0833        .14753E-03   -1.5164    
  22  Prefactor     .10000E-03    4.0289        .13601E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    8.8789        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10011E-03    32.456        .33623E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    10.769        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .83741        .26318        .29187E-03   -.98696    
  27  Prefactor     1.1705        .27355        .27435E-03   -.87243    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.71953e-09
Minuit parameter uncertainties:
  1  0.000129333
  2  15.0876
  3  42.0349
  4  8.87926
  5  7.56621
  6  5.49964e-06
  7  4.81192
  8  8.31275e-06
  9  50.3143
  10  6.04704
  11  3.15944
  12  3.36366e-05
  13  1.65512e-05
  14  4.41525
  15  1.30928e-05
  16  15.9564
  17  5.09828e-05
  18  76.7862
  19  1.11455
  20  253.722
  21  7.08407
  22  7.00228e-08
  23  3.73311e-06
  24  0.00373576
  25  2.61356e-06
  26  0.263585
  27  0.273879
Done.

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

Extracting fit parameters...

4FGL J0225.6-4502
   Spectrum: PowerLaw
284    Prefactor:  1.000e-04  3.364e-05  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:  1.171e+00  2.739e-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:  8.374e-01  2.636e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/385527/likelihoodResults_568512001_568771201_4FGL_J0225.6-4502_daily_bin1270.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) = 4820.4435295
delta logL = -0.000405075888921

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4820.44312579
delta logL = -1.37208462547e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4794       1.0000          .0000       10.000    
     3 'Normalizat'    .83703       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1710       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.

 FCN=   4820.443     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      246 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1138.0        .90712E-02** at limit **
   2  Index         2.4723        8.5652        .50000        .54321E-05
   3  Normalizat    .83741        .61136E-01    .65977E-01    .13849E-04
   4  Prefactor     1.1705        .66975E-01    .62033E-01    .71772E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.47227
  Normalizat = 0.83741
  Prefactor  = 1.17054
 **********
 **   18 **HESSE 
 **********

 FCN=   4820.443     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      279 TOTAL
                     EDM=   .52E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1775.9        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4723        5.2821        .50000       -.53001    
   3  Normalizat    .83741        .89611E-01    .29187E-03   -.98696    
   4  Prefactor     1.1705        .98403E-01    .27435E-03   -.87243    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.19863e-09
Minuit parameter uncertainties:
  1  7.30396e-05
  2  54.801
  3  0.0896269
  4  0.0984181
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/385527': 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) = 4820.44312441
delta logL = 7.93806975707e-09

Extracting fit parameters...

4FGL J0225.6-4502
   Spectrum: PowerLaw
284    Prefactor:  1.000e-04  7.304e-05  1.000e-04  1.000e+04 ( 1.000e-13)
285        Index:  2.472e+00  5.480e+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.171e+00  9.842e-02  0.000e+00  1.000e+01 ( 1.000e+00)
569        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
570        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
564   Normalization:  8.374e-01  8.963e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 36.405 -45.037

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/385527/cmap_HighResolution_568512001_568771201_4FGL_J0225.6-4502_daily_bin1270.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.28e-03', job_status='DONE', photon_flux_upper_limit='9.37e-08', time_completed='2021-08-15 21:51:08.322746', job_id='385527', GAL2='1.17', fit_tolerance='1e-08', EG2='0.84', EG='0.84', time_epoch_completed='1629089468.32', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.17', dlogl='7.94e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.48' WHERE bin_id='1270' AND source_name='4FGL J0225.6-4502' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 15 21:51:08 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0025>
Subject: Job 385527: <4FGL_J0225.6-4502_daily_bin1270> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0225.6-4502_daily_bin1270 36.4048 -45.0366 568512001 568771201 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 :                                   793.27 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             303.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   891 sec.
    Turnaround time :                            934 sec.

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

