/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 2 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 = 7548
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0225.6-4502_daily_bin149
RA = 36.4048, Dec = -45.0366
tmin = 277948801, tmax = 278208001
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='381112', job_status='RUN', time_executed='2021-08-15 21:21:47.646074', time_epoch_executed='1629087707.65' WHERE source_name='4FGL J0225.6-4502' and cadence='daily' and bin_id='149'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/381112

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/381112/ft1_4FGL_J0225.6-4502_daily_bin149.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/381112/ft2_4FGL_J0225.6-4502_daily_bin149.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/381112/ft1_4FGL_J0225.6-4502_daily_bin149.fits outfile=/scratch/kocevski/381112/ft1_filteredMKT_4FGL_J0225.6-4502_daily_bin149.fits ra=36.4048 dec=-45.0366 rad=12.0 tmin=277948801.0 tmax=278208001.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.75
user 3.96
sys 0.75

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/381112/ft1_filtered_4FGL_J0225.6-4502_daily_bin149.fits" evtable="EVENTS" scfile=/scratch/kocevski/381112/ft2_4FGL_J0225.6-4502_daily_bin149.fits sctable="SC_DATA" outfile=/scratch/kocevski/381112/ltcube_277948801_278208001_4FGL_J0225.6-4502_daily_bin149.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/381112/ft2_4FGL_J0225.6-4502_daily_bin149.fits
.....................!
real 16.11
user 15.10
sys 0.84

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/381112/ft1_filtered_4FGL_J0225.6-4502_daily_bin149.fits evtable="EVENTS" scfile=/scratch/kocevski/381112/ft2_4FGL_J0225.6-4502_daily_bin149.fits sctable="SC_DATA" expcube=/scratch/kocevski/381112/ltcube_277948801_278208001_4FGL_J0225.6-4502_daily_bin149.fits outfile=/scratch/kocevski/381112/expmap_277948801_278208001_4FGL_J0225.6-4502_daily_bin149.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/381112/ltcube_277948801_278208001_4FGL_J0225.6-4502_daily_bin149.fits
.....................!
real 192.55
user 187.11
sys 4.68

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/381112/ft1_filtered_4FGL_J0225.6-4502_daily_bin149.fits scfile=/scratch/kocevski/381112/ft2_4FGL_J0225.6-4502_daily_bin149.fits outfile=/scratch/kocevski/381112/cmap_277948801_278208001_4FGL_J0225.6-4502_daily_bin149.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.03
user 0.40
sys 0.61

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/381112/ft1_filtered_4FGL_J0225.6-4502_daily_bin149.fits scfile=/scratch/kocevski/381112/ft2_4FGL_J0225.6-4502_daily_bin149.fits outfile=/scratch/kocevski/381112/cmap_HighResolution_277948801_278208001_4FGL_J0225.6-4502_daily_bin149.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.07
user 0.40
sys 0.66

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/381112/ft1_filtered_4FGL_J0225.6-4502_daily_bin149.fits evtable="EVENTS" scfile=/scratch/kocevski/381112/ft2_4FGL_J0225.6-4502_daily_bin149.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/381112/Model_4FGL_J0225.6-4502_daily_bin149.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/381112/ft1_filtered_4FGL_J0225.6-4502_daily_bin149.fits.....................!
real 91.78
user 89.39
sys 1.92

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10077E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.0070       1.0000         .10000E-03   10000.    
     6 'norm      '    .10205E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    3.6101       1.0000         .10000E-03   10000.    
     8 'Prefactor '    21.722       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    1.2733       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .83328       1.0000         .10000E-03   10000.    
    13 'Prefactor '    18.069       1.0000         .10000E-03   10000.    
    14 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10243E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    47.632       1.0000         .10000E-03   10000.    
    18 'Prefactor '    45.974       1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    4.6916       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    3.7614       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.4316       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .54677       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=   4439.867     FROM MIGRAD    STATUS=CONVERGED    655 CALLS     3305 TOTAL
                     EDM=   .75E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7.1165        .40414E-07** at limit **
   2  norm          .10000E-03    4.4643       -.20825E-07** at limit **
   3  Prefactor     .10000E-03    11.320       -.38776E-06** at limit **
   4  Prefactor     .10000E-03    1.7996       -.10565E-07** at limit **
   5  Prefactor     4.0075        7.4452       -.46937E-07    .22301E-04
   6  norm          .10000E-03    38.165        .85741E-06** at limit **
   7  norm          3.6098        4.4979       -.61268E-07    .39408E-04
   8  Prefactor     21.724        13.719       -.15217E-06    .22791E-04
   9  Prefactor     .10000E-03    21.866       -.56514E-06** at limit **
  10  Prefactor     .10000E-03    4.0175       -.13288E-06** at limit **
  11  norm          1.2734        1.3238       -.29980E-07    .49704E-04
  12  Prefactor     .73392        331.27       -.10292E-04    .14068E-04
  13  Prefactor     18.098        42.883        .45746E-05    .81934E-04
  14  norm          .10000E-03    .74999        .51196E-07** at limit **
  15  norm          .10000E-03    1.4079       -.73170E-07** at limit **
  16  Prefactor     .10000E-03    19.530       -.48497E-06** at limit **
  17  Prefactor     47.604        38.713       -.10776E-05    .41189E-05
  18  Prefactor     46.017        41.625        .23104E-05   -.11366E-04
  19  norm          .10000E-03    .52746        .36402E-07** at limit **
  20  Prefactor     4.8796        8039.9        .11242E-04    .23864E-05
  21  Prefactor     .10000E-03    2.6211       -.53011E-06** at limit **
  22  Prefactor     3.7613        12.551        .14004E-06   -.24365E-04
  23  Prefactor     .10000E-03    45.444       -.16456E-05** at limit **
  24  Prefactor     .10000E-03    4.7818       -.72281E-06** at limit **
  25  Prefactor     .10000E-03    14.319        .73653E-06** at limit **
  26  Normalizat    1.4314        .21205        .30809E-05   -.83277E-04
  27  Prefactor     .54687        .21230       -.36473E-05    .47190E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.00748
  norm       = 0.0001
  norm       = 3.60978
  Prefactor  = 21.7237
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.27336
  Prefactor  = 0.733921
  Prefactor  = 18.0981
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 47.6038
  Prefactor  = 46.0166
  norm       = 0.0001
  Prefactor  = 4.87962
  Prefactor  = 0.0001
  Prefactor  = 3.76128
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.43145
  Prefactor  = 0.546868
 **********
 **   18 **HESSE 
 **********

 FCN=   4439.867     FROM HESSE     STATUS=OK           490 CALLS     3795 TOTAL
                     EDM=   .67E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7.1257        .17362E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    4.4973        .13751E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    11.327        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    1.8035        .87296E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     4.0075        7.4065        .20147E-03   -1.5308    
   6  norm          .10000E-03    38.199        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          3.6098        4.4786        .14799E-03   -1.5328    
   8  Prefactor     21.724        13.722        .85941E-04   -1.4775    
   9  Prefactor     .10000E-03    21.924        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    4.0624        .13030E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          1.2734        1.2975        .74366E-04   -1.5482    
  12  Prefactor     .73392        1235.1        .49871E-02   -1.5537    
  13  Prefactor     18.098        95.848        .94221E-04   -1.4857    
  14  norm          .10000E-03    1.0987        .11217E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    1.4194        .77053E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    19.917        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     47.604        38.793        .58100E-04   -1.4327    
  18  Prefactor     46.017        41.603        .29567E-03   -1.4350    
  19  norm          .10000E-03    .77741        .93070E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     4.8796        8006.0        .18579E-02   -1.5266    
  21  Prefactor     .10000E-03    2.6573        .10558E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     3.7613        12.631        .10408E-02   -1.5320    
  23  Prefactor     .10000E-03    46.300        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    4.8350        .14245E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    14.348        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    1.4314        .24584        .19446E-03   -.79723    
  27  Prefactor     .54687        .23675        .31546E-03   -1.0987    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.69423e-10
Minuit parameter uncertainties:
  1  7.00632e-08
  2  4.10275e-06
  3  5.6454e-06
  4  4.31286e-07
  5  7.40822
  6  3.44945e-06
  7  4.47899
  8  13.7243
  9  1.18496e-05
  10  8.5945e-06
  11  1.29756
  12  61.5271
  13  83.5081
  14  1.43985e-06
  15  7.65832e-06
  16  1.57539e-05
  17  38.8131
  18  41.6291
  19  8.04868e-06
  20  401.888
  21  3.3963e-06
  22  12.6398
  23  5.23344e-05
  24  5.46769e-08
  25  1.19377e-05
  26  0.246049
  27  0.23718
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
568    Prefactor:  5.469e-01  2.372e-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.431e+00  2.460e-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: 1.00e-07 ph cm-2 s-1
Energy Flux Upper Limit: 7.77e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/381112/likelihoodResults_277948801_278208001_4FGL_J0225.6-4502_daily_bin149.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) = 4439.81861338
delta logL = 0.0484202383241

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4439.28416869
delta logL = 0.582864929615

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     '    8.3974       1.0000          .0000       10.000    
     3 'Normalizat'    1.3637       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .59602       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=   4439.868     FROM MIGRAD    STATUS=CONVERGED     94 CALLS      398 TOTAL
                     EDM=   .49E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    7563.0        .90712E-02** at limit **
   2  Index         2.0105        7.0962        .50000       -.13121E-04
   3  Normalizat    1.4329        .67560E-01    .31752E-01   -.22153E-03
   4  Prefactor     .54649        .71298E-01    .71292E-01   -.84952E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100011
  Index      = 2.01047
  Normalizat = 1.43286
  Prefactor  = 0.546485
 **********
 **   18 **HESSE 
 **********

 FCN=   4439.868     FROM HESSE     STATUS=OK            31 CALLS      429 TOTAL
                     EDM=   .26E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    217.90        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0105        5.6439        .50000       -.64089    
   3  Normalizat    1.4329        .21162        .19435E-03   -.79683    
   4  Prefactor     .54649        .22281        .31559E-03   -1.0989    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.64973e-10
Minuit parameter uncertainties:
  1  0.00308766
  2  8.63056
  3  0.211751
  4  0.22317
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/381112': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4439.86803092
delta logL = -0.000997299403025

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
568    Prefactor:  5.465e-01  2.232e-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.433e+00  2.118e-01  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/381112/cmap_HighResolution_277948801_278208001_4FGL_J0225.6-4502_daily_bin149.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.77e-03', job_status='DONE', photon_flux_upper_limit='1.00e-07', time_completed='2021-08-15 21:33:52.077513', job_id='381112', GAL2='0.55', fit_tolerance='1e-08', EG2='1.43', EG='1.43', time_epoch_completed='1629088432.08', return_code2='0', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.55', dlogl='-9.97e-04', ts2='-0.00', photon_index_error='0.00', photon_index='2.48' WHERE bin_id='149' AND source_name='4FGL J0225.6-4502' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 15 21:33:52 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0194>
Subject: Job 381112: <4FGL_J0225.6-4502_daily_bin149> in cluster <slac> Done

Job <4FGL_J0225.6-4502_daily_bin149> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sun Aug 15 21:20:39 2021
Job was executed on host(s) <bullet0194>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 15 21:21:28 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:21:28 2021
Terminated at Sun Aug 15 21:33:52 2021
Results reported at Sun Aug 15 21:33:52 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0225.6-4502_daily_bin149 36.4048 -45.0366 277948801 278208001 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 :                                   728.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             337.68 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   744 sec.
    Turnaround time :                            793 sec.

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

