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


Performing analysis on: 4FGL_J0225.6-4502_daily_bin1339
RA = 36.4048, Dec = -45.0366
tmin = 586396801, tmax = 586656001
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='385628', job_status='RUN', time_executed='2021-08-15 21:38:55.033940', time_epoch_executed='1629088735.03' WHERE source_name='4FGL J0225.6-4502' and cadence='daily' and bin_id='1339'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/385628

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

Retrieving the FT1 file...

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

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

Retrieving 31 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/385628/ft1_4FGL_J0225.6-4502_daily_bin1339.fits


Retrieving the FT1 file...

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

Retrieving 31 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/385628/ft2_4FGL_J0225.6-4502_daily_bin1339.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/385628/ft1_4FGL_J0225.6-4502_daily_bin1339.fits outfile=/scratch/kocevski/385628/ft1_filteredMKT_4FGL_J0225.6-4502_daily_bin1339.fits ra=36.4048 dec=-45.0366 rad=12.0 tmin=586396801.0 tmax=586656001.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.21
user 2.43
sys 5.70

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/385628/ft2_4FGL_J0225.6-4502_daily_bin1339.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/385628/ft1_filteredMKT_4FGL_J0225.6-4502_daily_bin1339.fits evtable="EVENTS" outfile="/scratch/kocevski/385628/ft1_filtered_4FGL_J0225.6-4502_daily_bin1339.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 5.98
user 0.33
sys 5.61

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/385628/ft1_filtered_4FGL_J0225.6-4502_daily_bin1339.fits" evtable="EVENTS" scfile=/scratch/kocevski/385628/ft2_4FGL_J0225.6-4502_daily_bin1339.fits sctable="SC_DATA" outfile=/scratch/kocevski/385628/ltcube_586396801_586656001_4FGL_J0225.6-4502_daily_bin1339.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/385628/ft2_4FGL_J0225.6-4502_daily_bin1339.fits
.....................!
real 17.13
user 10.54
sys 6.53

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/385628/ft1_filtered_4FGL_J0225.6-4502_daily_bin1339.fits evtable="EVENTS" scfile=/scratch/kocevski/385628/ft2_4FGL_J0225.6-4502_daily_bin1339.fits sctable="SC_DATA" expcube=/scratch/kocevski/385628/ltcube_586396801_586656001_4FGL_J0225.6-4502_daily_bin1339.fits outfile=/scratch/kocevski/385628/expmap_586396801_586656001_4FGL_J0225.6-4502_daily_bin1339.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/385628/ltcube_586396801_586656001_4FGL_J0225.6-4502_daily_bin1339.fits
.....................!
real 199.50
user 186.96
sys 11.99

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/385628/ft1_filtered_4FGL_J0225.6-4502_daily_bin1339.fits scfile=/scratch/kocevski/385628/ft2_4FGL_J0225.6-4502_daily_bin1339.fits outfile=/scratch/kocevski/385628/cmap_586396801_586656001_4FGL_J0225.6-4502_daily_bin1339.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 5.99
user 0.37
sys 5.54

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/385628/ft1_filtered_4FGL_J0225.6-4502_daily_bin1339.fits scfile=/scratch/kocevski/385628/ft2_4FGL_J0225.6-4502_daily_bin1339.fits outfile=/scratch/kocevski/385628/cmap_HighResolution_586396801_586656001_4FGL_J0225.6-4502_daily_bin1339.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 5.95
user 0.39
sys 5.54

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/385628/ft1_filtered_4FGL_J0225.6-4502_daily_bin1339.fits evtable="EVENTS" scfile=/scratch/kocevski/385628/ft2_4FGL_J0225.6-4502_daily_bin1339.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/385628/Model_4FGL_J0225.6-4502_daily_bin1339.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/385628/ft1_filtered_4FGL_J0225.6-4502_daily_bin1339.fits.....................!
real 80.87
user 72.04
sys 8.50

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.533       1.0000         .10000E-03   10000.    
     2 'norm      '    .10187E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    15.632       1.0000         .10000E-03   10000.    
     7 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    12.438       1.0000         .10000E-03   10000.    
    11 'norm      '    11.167       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    2.0923       1.0000         .10000E-03   10000.    
    15 'norm      '    2.7527       1.0000         .10000E-03   10000.    
    16 'Prefactor '    100.91       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    1.2432       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .18274       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .58731       1.0000         .10000E-03   10000.    
    25 'Prefactor '    15.519       1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.1011       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .83771       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=   3265.082     FROM MIGRAD    STATUS=CONVERGED    660 CALLS     3310 TOTAL
                     EDM=   .85E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.554        48.281        .31868E-05    .40946E-04
   2  norm          .10000E-03    49.961        .27742E-06** at limit **
   3  Prefactor     .10000E-03    13.787       -.48821E-06** at limit **
   4  Prefactor     .10000E-03    2.2478       -.47360E-07** at limit **
   5  Prefactor     .10000E-03    7.1245       -.76371E-08** at limit **
   6  norm          15.672        86.308        .24322E-05    .61475E-04
   7  norm          .10000E-03    2.5787       -.37642E-07** at limit **
   8  Prefactor     .10000E-03    5.6833       -.95157E-07** at limit **
   9  Prefactor     .10000E-03    20.124        .39616E-06** at limit **
  10  Prefactor     12.437        9.0923       -.17282E-06   -.57254E-04
  11  norm          11.168        3.3811        .19816E-09   -.22655E-03
  12  Prefactor     .10000E-03    9.2355       -.48170E-07** at limit **
  13  Prefactor     .10000E-03    12.001        .78534E-07** at limit **
  14  norm          2.0922        3.0175        .38228E-05   -.50697E-04
  15  norm          2.7537        3.4449        .38138E-06   -.17706E-04
  16  Prefactor     100.93        29.671        .32168E-06    .24306E-04
  17  Prefactor     .10000E-03    11.928        .11725E-06** at limit **
  18  Prefactor     .10000E-03    58.983        .27744E-06** at limit **
  19  norm          1.2437        1.8283        .33400E-06    .25142E-04
  20  Prefactor     .10000E-03    90.179        .60069E-06** at limit **
  21  Prefactor     .22779        4.7710        .82790E-06   -.56454E-03
  22  Prefactor     .10000E-03    21.598       -.17977E-06** at limit **
  23  Prefactor     .10000E-03    24.994       -.47016E-06** at limit **
  24  Prefactor     .59478        8.0857        .12821E-06   -.30215E-04
  25  Prefactor     15.601        37.559        .31331E-05    .23878E-03
  26  Normalizat    1.1007        .25998       -.48465E-05    .72691E-05
  27  Prefactor     .83785        .26336        .25591E-05   -.17489E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.5539
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 15.6715
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 12.4373
  norm       = 11.1679
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.09222
  norm       = 2.7537
  Prefactor  = 100.931
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 1.24369
  Prefactor  = 0.000100001
  Prefactor  = 0.227793
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.594783
  Prefactor  = 15.601
  Normalizat = 1.10071
  Prefactor  = 0.837847
 **********
 **   18 **HESSE 
 **********

 FCN=   3265.082     FROM HESSE     STATUS=OK           480 CALLS     3790 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.554        48.567        .12345E-03   -1.5058    
   2  norm          .10000E-03    51.338        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    13.793        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    2.2491        .83667E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    7.1482        .14894E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          15.672        86.591        .10130E-03   -1.4916    
   7  norm          .10000E-03    2.5825        .89609E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    5.6870        .13304E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    20.166        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     12.437        9.0966        .11358E-03   -1.5002    
  11  norm          11.168        3.3857        .53547E-04   -1.5039    
  12  Prefactor     .10000E-03    9.2461        .16960E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    12.007        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          2.0922        3.0470        .57912E-03   -1.5419    
  15  norm          2.7537        3.4354        .11333E-03   -1.5376    
  16  Prefactor     100.93        29.519        .40021E-04   -1.3695    
  17  Prefactor     .10000E-03    11.933        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    59.071        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          1.2437        1.7791        .86471E-04   -1.5485    
  20  Prefactor     .10000E-03    90.192        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .22779        27.319        .23567E-02   -1.5613    
  22  Prefactor     .10000E-03    21.732        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    25.020        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .59478        40.335        .30762E-02   -1.5554    
  25  Prefactor     15.601        37.662        .10167E-03   -1.4918    
  26  Normalizat    1.1007        .31098        .24088E-03   -.89729    
  27  Prefactor     .83785        .31783        .29018E-03   -.98348    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.27829e-08
Minuit parameter uncertainties:
  1  45.3407
  2  0.000167284
  3  0.000150394
  4  2.40444e-06
  5  1.27146e-05
  6  73.8403
  7  2.02022e-06
  8  5.11599e-06
  9  0.000232386
  10  9.09762
  11  3.38579
  12  6.90225e-06
  13  4.40592e-05
  14  3.04727
  15  3.43568
  16  29.5235
  17  5.34362e-05
  18  0.000470341
  19  1.77914
  20  0.000621359
  21  4.9905
  22  0.000106592
  23  0.000281959
  24  9.8021
  25  37.719
  26  0.311496
  27  0.318535
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
568    Prefactor:  8.378e-01  3.185e-01  0.000e+00  1.000e+01 ( 1.000e+00)
569        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
570        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
564   Normalization:  1.101e+00  3.115e-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.69e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.53e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/385628/likelihoodResults_586396801_586656001_4FGL_J0225.6-4502_daily_bin1339.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) = 3265.08268075
delta logL = -0.00051184066524

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3265.08217062
delta logL = -1.70995417648e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11642E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4555       1.0000          .0000       10.000    
     3 'Normalizat'    1.1011       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .83743       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=   3265.082     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      249 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10447E-03    9.4741        .17302E-01** at limit **
   2  Index         2.3234        6.0913        .50000        .15247E-04
   3  Normalizat    1.1007        .57170E-02    .24088E-03    .32754E-04
   4  Prefactor     .83785        .61199E-02    .29017E-03    .23409E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000104472
  Index      = 2.32337
  Normalizat = 1.10071
  Prefactor  = 0.837854
 **********
 **   18 **HESSE 
 **********

 FCN=   3265.082     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      278 TOTAL
                     EDM=   .25E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10447E-03    160.35        .18058E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3234        7.8780        .50000       -.56489    
   3  Normalizat    1.1007        .23892E-01    .96353E-05   -.89729    
   4  Prefactor     .83785        .25576E-01    .11607E-04   -.98348    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.5031e-08
Minuit parameter uncertainties:
  1  0.0537
  2  677.067
  3  0.0238926
  4  0.0255763
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/385628': 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) = 3265.08216847
delta logL = 4.35941728938e-07

Extracting fit parameters...

4FGL J0225.6-4502
   Spectrum: PowerLaw
284    Prefactor:  1.045e-04  5.370e-02  1.000e-04  1.000e+04 ( 1.000e-13)
285        Index:  2.323e+00  6.771e+02  0.000e+00  1.000e+01 (-1.000e+00)
286        Scale:  1.057e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
568    Prefactor:  8.379e-01  2.558e-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:  1.101e+00  2.389e-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/385628/cmap_HighResolution_586396801_586656001_4FGL_J0225.6-4502_daily_bin1339.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.53e-03', job_status='DONE', photon_flux_upper_limit='9.69e-08', time_completed='2021-08-15 21:50:08.941660', job_id='385628', GAL2='0.84', fit_tolerance='1e-08', EG2='1.10', EG='1.10', time_epoch_completed='1629089408.94', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.84', dlogl='4.36e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.48' WHERE bin_id='1339' AND source_name='4FGL J0225.6-4502' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 15 21:50:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0182>
Subject: Job 385628: <4FGL_J0225.6-4502_daily_bin1339> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0225.6-4502_daily_bin1339 36.4048 -45.0366 586396801 586656001 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 :                                   756.00 sec.
    Max Memory :                                 1250 MB
    Average Memory :                             277.35 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   799 sec.
    Turnaround time :                            867 sec.

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

