aklog: Couldn't determine realm of user:aklog: unknown RPC error (-1765328189)  while getting realm
/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
User defined signal 2
Repository/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 52 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 = 17300
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0225.6-4502_weekly_bin433
RA = 36.4048, Dec = -45.0366
tmin = 500860801, tmax = 501465601
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='514025', job_status='RUN', time_executed='2021-07-04 16:52:06.083411', time_epoch_executed='1625442726.08' WHERE source_name='4FGL J0225.6-4502' and cadence='weekly' and bin_id='433'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/514025

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/514025/ft1_4FGL_J0225.6-4502_weekly_bin433.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/514025/ft2_4FGL_J0225.6-4502_weekly_bin433.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/514025/ft1_4FGL_J0225.6-4502_weekly_bin433.fits outfile=/scratch/kocevski/514025/ft1_filteredMKT_4FGL_J0225.6-4502_weekly_bin433.fits ra=36.4048 dec=-45.0366 rad=12.0 tmin=500860801.0 tmax=501465601.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 9.97
user 8.13
sys 0.31

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/514025/ft2_4FGL_J0225.6-4502_weekly_bin433.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/514025/ft1_filteredMKT_4FGL_J0225.6-4502_weekly_bin433.fits evtable="EVENTS" outfile="/scratch/kocevski/514025/ft1_filtered_4FGL_J0225.6-4502_weekly_bin433.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 2.03
user 0.37
sys 0.18

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/514025/ft1_filtered_4FGL_J0225.6-4502_weekly_bin433.fits" evtable="EVENTS" scfile=/scratch/kocevski/514025/ft2_4FGL_J0225.6-4502_weekly_bin433.fits sctable="SC_DATA" outfile=/scratch/kocevski/514025/ltcube_500860801_501465601_4FGL_J0225.6-4502_weekly_bin433.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/514025/ft2_4FGL_J0225.6-4502_weekly_bin433.fits
.....................!
real 27.09
user 25.79
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/514025/ft1_filtered_4FGL_J0225.6-4502_weekly_bin433.fits evtable="EVENTS" scfile=/scratch/kocevski/514025/ft2_4FGL_J0225.6-4502_weekly_bin433.fits sctable="SC_DATA" expcube=/scratch/kocevski/514025/ltcube_500860801_501465601_4FGL_J0225.6-4502_weekly_bin433.fits outfile=/scratch/kocevski/514025/expmap_500860801_501465601_4FGL_J0225.6-4502_weekly_bin433.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/514025/ltcube_500860801_501465601_4FGL_J0225.6-4502_weekly_bin433.fits
.....................!
real 201.76
user 187.82
sys 4.92

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/514025/ft1_filtered_4FGL_J0225.6-4502_weekly_bin433.fits scfile=/scratch/kocevski/514025/ft2_4FGL_J0225.6-4502_weekly_bin433.fits outfile=/scratch/kocevski/514025/cmap_500860801_501465601_4FGL_J0225.6-4502_weekly_bin433.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.76
user 0.41
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/514025/ft1_filtered_4FGL_J0225.6-4502_weekly_bin433.fits scfile=/scratch/kocevski/514025/ft2_4FGL_J0225.6-4502_weekly_bin433.fits outfile=/scratch/kocevski/514025/cmap_HighResolution_500860801_501465601_4FGL_J0225.6-4502_weekly_bin433.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.38
user 0.43
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/514025/ft1_filtered_4FGL_J0225.6-4502_weekly_bin433.fits evtable="EVENTS" scfile=/scratch/kocevski/514025/ft2_4FGL_J0225.6-4502_weekly_bin433.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/514025/Model_4FGL_J0225.6-4502_weekly_bin433.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/514025/ft1_filtered_4FGL_J0225.6-4502_weekly_bin433.fits.....................!
real 276.27
user 261.48
sys 1.33

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.478       1.0000         .10000E-03   10000.    
     2 'norm      '    1.2265       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    6.1590       1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.0972       1.0000         .10000E-03   10000.    
     6 'norm      '    21.399       1.0000         .10000E-03   10000.    
     7 'norm      '    3.5590       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .62622E-02   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.2241       1.0000         .10000E-03   10000.    
    11 'norm      '    14.005       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .84062       1.0000         .10000E-03   10000.    
    13 'Prefactor '    15.310       1.0000         .10000E-03   10000.    
    14 'norm      '    1.0946       1.0000         .10000E-03   10000.    
    15 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    4.6001       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    44.969       1.0000         .10000E-03   10000.    
    19 'norm      '    .26190       1.0000         .10000E-03   10000.    
    20 'Prefactor '    25.092       1.0000         .10000E-03   10000.    
    21 'Prefactor '    7.5721       1.0000         .10000E-03   10000.    
    22 'Prefactor '    6.4517       1.0000         .10000E-03   10000.    
    23 'Prefactor '    11.963       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .16391       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    .91020       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .90551       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=   14204.21     FROM MIGRAD    STATUS=CONVERGED    678 CALLS     3910 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.480        12.819       -.49820E-06   -.14232E-03
   2  norm          1.2262        4.7921       -.28070E-06   -.60100E-03
   3  Prefactor     .10000E-03    6.6360        .82611E-07** at limit **
   4  Prefactor     6.1594        2.8941        .10065E-05   -.27949E-02
   5  Prefactor     2.0972        2.1281       -.26024E-07    .37987E-04
   6  norm          21.402        24.956       -.25279E-06   -.28700E-04
   7  norm          3.5594        2.4034        .55030E-07   -.23329E-03
   8  Prefactor     .10023E-03    2.2165       -.12911E-06** at limit **
   9  Prefactor     .10000E-03    23.543       -.78485E-08** at limit **
  10  Prefactor     1.2241        1.8242        .13395E-06   -.16068E-03
  11  norm          14.005        1.5623        .59320E-08   -.79142E-03
  12  Prefactor     .83710        8.0512        .28258E-05   -.10081E-02
  13  Prefactor     15.315        13.392       -.14973E-05   -.92448E-03
  14  norm          1.0946        .78622        .18699E-07    .17638E-05
  15  norm          .10000E-03    .44505        .78398E-07** at limit **
  16  Prefactor     4.6019        5.7238        .16239E-06   -.38551E-03
  17  Prefactor     .10000E-03    9.0257        .44547E-06** at limit **
  18  Prefactor     44.970        22.833       -.25953E-06   -.11413E-03
  19  norm          .26182        .43666        .15920E-06   -.17456E-02
  20  Prefactor     25.104        78.983        .75223E-05    .63127E-04
  21  Prefactor     7.5720        3.2333        .44222E-07   -.11947E-03
  22  Prefactor     6.4499        6.1805       -.42185E-06   -.14862E-03
  23  Prefactor     11.959        10.902        .29690E-05    .80535E-03
  24  Prefactor     .17004        2.5456       -.52576E-08   -.53158E-03
  25  Prefactor     .10000E-03    7.6719       -.33029E-06** at limit **
  26  Normalizat    .91025        .10486       -.69887E-06   -.56432E-03
  27  Prefactor     .90547        .11374       -.27518E-06   -.43047E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.4801
  norm       = 1.22617
  Prefactor  = 0.0001
  Prefactor  = 6.15936
  Prefactor  = 2.09724
  norm       = 21.4017
  norm       = 3.5594
  Prefactor  = 0.000100225
  Prefactor  = 0.0001
  Prefactor  = 1.22408
  norm       = 14.0048
  Prefactor  = 0.837103
  Prefactor  = 15.3149
  norm       = 1.09462
  norm       = 0.0001
  Prefactor  = 4.60187
  Prefactor  = 0.0001
  Prefactor  = 44.9699
  norm       = 0.261818
  Prefactor  = 25.1035
  Prefactor  = 7.57202
  Prefactor  = 6.44992
  Prefactor  = 11.959
  Prefactor  = 0.170044
  Prefactor  = 0.0001
  Normalizat = 0.910245
  Prefactor  = 0.905468
 **********
 **   18 **HESSE 
 **********

 FCN=   14204.21     FROM HESSE     STATUS=OK           506 CALLS     4416 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.480        12.819        .11825E-03   -1.5030    
   2  norm          1.2262        5.3190        .40653E-03   -1.5487    
   3  Prefactor     .10000E-03    6.6696        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     6.1594        3.2172        .74581E-03   -1.5212    
   5  Prefactor     2.0972        2.1360        .16982E-03   -1.5418    
   6  norm          21.402        24.964        .86586E-04   -1.4782    
   7  norm          3.5594        2.3959        .14636E-03   -1.5331    
   8  Prefactor     .10023E-03    2.3606        .63372E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    23.927        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     1.2241        1.7833        .18900E-03   -1.5487    
  11  norm          14.005        1.5575        .46843E-04   -1.4959    
  12  Prefactor     .83710        41.866        .46497E-02   -1.5525    
  13  Prefactor     15.315        16.897        .10236E-03   -1.4925    
  14  norm          1.0946        .79666        .87015E-04   -1.5499    
  15  norm          .10000E-03    1.9748        .15237E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     4.6019        5.6384        .18767E-03   -1.5279    
  17  Prefactor     .10000E-03    9.3784        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     44.970        22.820        .29894E-03   -1.4366    
  19  norm          .26182        .42428        .95890E-04   -1.5606    
  20  Prefactor     25.104        79.204        .79969E-04   -1.4705    
  21  Prefactor     7.5720        3.2296        .13366E-03   -1.5158    
  22  Prefactor     6.4499        6.1480        .15801E-03   -1.5200    
  23  Prefactor     11.959        11.873        .11582E-03   -1.5016    
  24  Prefactor     .17004        21.926        .34704E-02   -1.5626    
  25  Prefactor     .10000E-03    7.7202        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .91025        .12203        .22803E-03   -.96101    
  27  Prefactor     .90547        .13331        .25548E-03   -.95950    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.17255e-08
Minuit parameter uncertainties:
  1  12.8223
  2  5.1082
  3  4.35595e-06
  4  3.21734
  5  2.13605
  6  24.976
  7  2.39592
  8  0.00145913
  9  2.30005e-06
  10  1.78337
  11  1.55752
  12  11.848
  13  16.9023
  14  0.796664
  15  7.64861e-07
  16  5.63903
  17  2.74309e-05
  18  22.8248
  19  0.424282
  20  79.5382
  21  3.22967
  22  6.14857
  23  11.8752
  24  3.86209
  25  2.49315e-05
  26  0.122064
  27  0.133361
Done.

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

Extracting fit parameters...

4FGL J0225.6-4502
   Spectrum: PowerLaw
284    Prefactor:  8.371e-01  1.185e+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:  9.055e-01  1.334e-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:  9.102e-01  1.221e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/514025/likelihoodResults_500860801_501465601_4FGL_J0225.6-4502_weekly_bin433.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): 0
logL (Free Index) = 14204.2062789
delta logL = 0.00299714696303

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 14204.2050228
delta logL = 0.00425319813985

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.2760       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2452       1.0000          .0000       10.000    
     3 'Normalizat'    .91042       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90512       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   14204.21     FROM MIGRAD    STATUS=CONVERGED    104 CALLS      276 TOTAL
                     EDM=   .19E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.2739        17.393        .19669E-02    .24901E-04
   2  Index         2.2461        2.2296        .14786E-01   -.23543E-05
   3  Normalizat    .91049        .11766        .22801E-03    .16993E-03
   4  Prefactor     .90509        .13185        .25553E-03    .15821E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.27394
  Index      = 2.24612
  Normalizat = 0.910494
  Prefactor  = 0.905088
 **********
 **   18 **HESSE 
 **********

 FCN=   14204.21     FROM HESSE     STATUS=OK            27 CALLS      303 TOTAL
                     EDM=   .16E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.2739        15.495        .78674E-04   -1.5482    
   2  Index         2.2461        2.1191        .59144E-03   -.58329    
   3  Normalizat    .91049        .11780        .91202E-05   -.96092    
   4  Prefactor     .90509        .13196        .10221E-04   -.95964    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.59423e-11
Minuit parameter uncertainties:
  1  8.88849
  2  2.22268
  3  0.117833
  4  0.132011
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/514025': 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) = 14204.2050224
delta logL = 0.00425366902346

Extracting fit parameters...

4FGL J0225.6-4502
   Spectrum: PowerLaw
284    Prefactor:  1.274e+00  8.888e+00  1.000e-04  1.000e+04 ( 1.000e-13)
285        Index:  2.246e+00  2.223e+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:  9.051e-01  1.320e-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:  9.105e-01  1.178e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/514025/cmap_HighResolution_500860801_501465601_4FGL_J0225.6-4502_weekly_bin433.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.39e-03', job_status='DONE', photon_flux_upper_limit='4.36e-08', time_completed='2021-07-04 17:22:17.469739', job_id='514025', GAL2='0.91', fit_tolerance='1e-08', EG2='0.91', EG='0.91', time_epoch_completed='1625444537.47', return_code2='0', ts='0.01', comment='SUCCESS', return_code='0', GAL='0.91', dlogl='4.25e-03', ts2='0.02', photon_index_error='0.00', photon_index='2.48' WHERE bin_id='433' AND source_name='4FGL J0225.6-4502' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Sun Jul  4 17:22:17 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0007>
Subject: Job 514025: <4FGL_J0225.6-4502_weekly_bin433> in cluster <slac> Done

Job <4FGL_J0225.6-4502_weekly_bin433> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Sun Jul  4 16:46:53 2021
Job was executed on host(s) <bullet0007>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Jul  4 16:46:54 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Jul  4 16:46:54 2021
Terminated at Sun Jul  4 17:22:24 2021
Results reported at Sun Jul  4 17:22:24 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0225.6-4502_weekly_bin433 36.4048 -45.0366 500860801 501465601 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 :                                   1702.06 sec.
    Max Memory :                                 1103 MB
    Average Memory :                             285.31 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   3409 MB
    Max Processes :                              6
    Max Threads :                                21
    Run time :                                   2130 sec.
    Turnaround time :                            2131 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0113>
Subject: Job 514075: <4FGL_J0225.6-4502_weekly_bin433> in cluster <slac> Exited

Job <4FGL_J0225.6-4502_weekly_bin433> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Sun Jul  4 16:46:57 2021
Job was executed on host(s) <bullet0113>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Jul  4 16:46:59 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Jul  4 16:46:59 2021
Terminated at Mon Jul  5 09:27:11 2021
Results reported at Mon Jul  5 09:27:11 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0225.6-4502_weekly_bin433 36.4048 -45.0366 500860801 501465601 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
------------------------------------------------------------

TERM_RUNLIMIT: job killed after reaching LSF run time limit.
Exited with exit code 140.

Resource usage summary:

    CPU time :                                   26.70 sec.
    Max Memory :                                 56 MB
    Average Memory :                             47.92 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   1099 MB
    Max Processes :                              4
    Max Threads :                                19
    Run time :                                   60012 sec.
    Turnaround time :                            60014 sec.

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

