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


Performing analysis on: 4FGL_J1224.4+2436_weekly_bin525
RA = 186.116, Dec = 24.6142
tmin = 556502401, tmax = 557107201
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='237911', job_status='RUN', time_executed='2021-07-19 01:36:49.936259', time_epoch_executed='1626683809.94' WHERE source_name='4FGL J1224.4+2436' and cadence='weekly' and bin_id='525'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/237911

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/237911/ft1_4FGL_J1224.4+2436_weekly_bin525.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/237911/ft2_4FGL_J1224.4+2436_weekly_bin525.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/237911/ft1_4FGL_J1224.4+2436_weekly_bin525.fits outfile=/scratch/kocevski/237911/ft1_filteredMKT_4FGL_J1224.4+2436_weekly_bin525.fits ra=186.116 dec=24.6142 rad=12.0 tmin=556502401.0 tmax=557107201.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 7.86
user 7.48
sys 0.28

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/237911/ft2_4FGL_J1224.4+2436_weekly_bin525.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/237911/ft2_4FGL_J1224.4+2436_weekly_bin525.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/237911/ft1_filteredMKT_4FGL_J1224.4+2436_weekly_bin525.fits evtable="EVENTS" outfile="/scratch/kocevski/237911/ft1_filtered_4FGL_J1224.4+2436_weekly_bin525.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.59
user 0.39
sys 0.18

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/237911/ft1_filtered_4FGL_J1224.4+2436_weekly_bin525.fits" evtable="EVENTS" scfile=/scratch/kocevski/237911/ft2_4FGL_J1224.4+2436_weekly_bin525.fits sctable="SC_DATA" outfile=/scratch/kocevski/237911/ltcube_556502401_557107201_4FGL_J1224.4+2436_weekly_bin525.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/237911/ft2_4FGL_J1224.4+2436_weekly_bin525.fits
.....................!
real 36.33
user 35.85
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/237911/ft1_filtered_4FGL_J1224.4+2436_weekly_bin525.fits evtable="EVENTS" scfile=/scratch/kocevski/237911/ft2_4FGL_J1224.4+2436_weekly_bin525.fits sctable="SC_DATA" expcube=/scratch/kocevski/237911/ltcube_556502401_557107201_4FGL_J1224.4+2436_weekly_bin525.fits outfile=/scratch/kocevski/237911/expmap_556502401_557107201_4FGL_J1224.4+2436_weekly_bin525.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/237911/ltcube_556502401_557107201_4FGL_J1224.4+2436_weekly_bin525.fits
.....................!
real 192.53
user 187.02
sys 5.01

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
Added 190 point sources and 0 extended sources

Setting source of interest to:
4FGL J1224.4+2436 @ 186.116 24.6142

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/237911/ft1_filtered_4FGL_J1224.4+2436_weekly_bin525.fits scfile=/scratch/kocevski/237911/ft2_4FGL_J1224.4+2436_weekly_bin525.fits outfile=/scratch/kocevski/237911/cmap_556502401_557107201_4FGL_J1224.4+2436_weekly_bin525.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=186.116 yref=24.6142 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.59
user 0.40
sys 0.18

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/237911/ft1_filtered_4FGL_J1224.4+2436_weekly_bin525.fits scfile=/scratch/kocevski/237911/ft2_4FGL_J1224.4+2436_weekly_bin525.fits outfile=/scratch/kocevski/237911/cmap_HighResolution_556502401_557107201_4FGL_J1224.4+2436_weekly_bin525.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=186.116 yref=24.6142 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.59
user 0.42
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/237911/ft1_filtered_4FGL_J1224.4+2436_weekly_bin525.fits evtable="EVENTS" scfile=/scratch/kocevski/237911/ft2_4FGL_J1224.4+2436_weekly_bin525.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/237911/Model_4FGL_J1224.4+2436_weekly_bin525.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 GAL_V02
Working on...
/scratch/kocevski/237911/ft1_filtered_4FGL_J1224.4+2436_weekly_bin525.fits......................!
real 32.15
user 30.81
sys 1.24

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/237911/ft1_filtered_4FGL_J1224.4+2436_weekly_bin525.fits', '/scratch/kocevski/237911/ft2_4FGL_J1224.4+2436_weekly_bin525.fits', expMap='/scratch/kocevski/237911/expmap_556502401_557107201_4FGL_J1224.4+2436_weekly_bin525.fits', expCube='/scratch/kocevski/237911/ltcube_556502401_557107201_4FGL_J1224.4+2436_weekly_bin525.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/237911/Model_4FGL_J1224.4+2436_weekly_bin525.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1224.4+2436'

4FGL J1224.4+2436
   Spectrum: PowerLaw
328    Prefactor:  2.506e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
329        Index:  1.925e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
330        Scale:  2.216e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/237911/ft1_filtered_4FGL_J1224.4+2436_weekly_bin525.fits
Spacecraft file(s): /scratch/kocevski/237911/ft2_4FGL_J1224.4+2436_weekly_bin525.fits
Exposure map: /scratch/kocevski/237911/expmap_556502401_557107201_4FGL_J1224.4+2436_weekly_bin525.fits
Exposure cube: /scratch/kocevski/237911/ltcube_556502401_557107201_4FGL_J1224.4+2436_weekly_bin525.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/237911/Model_4FGL_J1224.4+2436_weekly_bin525.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) = 2606.78671211

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    101.65       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .45147E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    2.2314       1.0000         .10000E-03   10000.    
     6 'Prefactor '    32.063       1.0000         .10000E-03   10000.    
     7 'Prefactor '    104.63       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    6.3900       1.0000         .10000E-03   10000.    
    10 'norm      '    4.1411       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .76723E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .31252       1.0000         .10000E-03   10000.    
    16 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    8.3444       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    4.7508       1.0000         .10000E-03   10000.    
    21 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    4.3057       1.0000         .10000E-03   10000.    
    23 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.4820       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .92137       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6050E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   2606.776     FROM MIGRAD    STATUS=CONVERGED    554 CALLS     2855 TOTAL
                     EDM=   .43E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     101.69        90.463        .11390E-05    .68365E-04
   2  Prefactor     .10000E-03    16.041        .79150E-08** at limit **
   3  Prefactor     .10000E-03    3.2450        .39303E-06** at limit **
   4  Prefactor     .10002E-03    232.83        .20656E-05** at limit **
   5  norm          2.2311        2.3989        .74962E-07   -.33864E-06
   6  Prefactor     32.063        16.011        .10570E-06   -.19580E-04
   7  Prefactor     104.70        123.88        .43151E-06    .44618E-04
   8  Prefactor     .10000E-03    6.8153       -.17298E-06** at limit **
   9  Prefactor     6.3902        8.6899        .47365E-06   -.62693E-05
  10  norm          4.1393        5.0083        .24270E-06   -.46722E-05
  11  Prefactor     .10000E-03    7.7786        .30284E-06** at limit **
  12  Prefactor     .10000E-03    4.2700       -.53739E-07** at limit **
  13  Prefactor     .10001E-03    3.3343       -.40361E-07** at limit **
  14  Prefactor     .10000E-03    6.4507       -.75507E-07** at limit **
  15  norm          .31249        .50272        .13483E-06    .36187E-04
  16  norm          .10000E-03    7.0748       -.41951E-06** at limit **
  17  Prefactor     .10000E-03    10.134       -.33459E-07** at limit **
  18  Prefactor     8.3975        92.372        .50963E-05    .62733E-04
  19  Prefactor     .10000E-03    37.302       -.21303E-07** at limit **
  20  Prefactor     4.7509        10.896        .78661E-05    .14554E-03
  21  norm          .10000E-03    3.7489       -.24225E-06** at limit **
  22  norm          4.3060        4.9671       -.14482E-06   -.77610E-04
  23  norm          .10000E-03    13.104       -.24652E-06** at limit **
  24  Normalizat    1.4820        .34364       -.77224E-05    .10934E-03
  25  Prefactor     .92125        .33447        .62547E-05   -.10551E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 101.69
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100024
  norm       = 2.23109
  Prefactor  = 32.0629
  Prefactor  = 104.697
  Prefactor  = 0.0001
  Prefactor  = 6.39025
  norm       = 4.13925
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100009
  Prefactor  = 0.0001
  norm       = 0.312488
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.39748
  Prefactor  = 0.0001
  Prefactor  = 4.7509
  norm       = 0.0001
  norm       = 4.30601
  norm       = 0.0001
  Normalizat = 1.48204
  Prefactor  = 0.921254
 **********
 **   18 **HESSE 
 **********

 FCN=   2606.776     FROM HESSE     STATUS=OK           425 CALLS     3280 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     101.69        90.404        .19939E-03   -1.3688    
   2  Prefactor     .10000E-03    16.044        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    3.2600        .89800E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10002E-03    232.90        .21207E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          2.2311        2.3989        .79187E-04   -1.5409    
   6  Prefactor     32.063        15.988        .70764E-04   -1.4575    
   7  Prefactor     104.70        124.45        .19656E-03   -1.3658    
   8  Prefactor     .10000E-03    6.8609        .12985E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     6.3902        8.6505        .15878E-03   -1.5202    
  10  norm          4.1393        4.9524        .12010E-03   -1.5301    
  11  Prefactor     .10000E-03    7.7830        .13909E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    4.2927        .10265E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10001E-03    16.903        .17717E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    6.4672        .12663E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .31249        .47839        .42259E-03   -1.5596    
  16  norm          .10000E-03    7.1331        .13254E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    10.154        .15874E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     8.3975        91.705        .13878E-03   -1.5128    
  19  Prefactor     .10000E-03    37.311        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     4.7509        11.053        .92299E-03   -1.5272    
  21  norm          .10000E-03    3.7845        .96501E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          4.3060        4.9638        .11585E-03   -1.5293    
  23  norm          .10000E-03    13.117        .18054E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.4820        .37994        .25285E-03   -.78284    
  25  Prefactor     .92125        .37489        .32419E-03   -.95402    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.36654e-09
Minuit parameter uncertainties:
  1  90.5265
  2  5.95932e-06
  3  4.09472e-06
  4  0.00475708
  5  2.39901
  6  15.99
  7  124.764
  8  1.3051e-05
  9  8.65223
  10  4.95289
  11  1.1935e-05
  12  2.08619e-06
  13  0.000760462
  14  1.38134e-05
  15  0.478394
  16  5.63454e-06
  17  4.17041e-05
  18  55.6094
  19  8.16148e-05
  20  11.0573
  21  6.14478e-06
  22  4.96428
  23  4.26121e-05
  24  0.380673
  25  0.375943
Done.

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

Extracting fit parameters...

4FGL J1224.4+2436
   Spectrum: PowerLaw
328    Prefactor:  1.000e-04  1.381e-05  1.000e-04  1.000e+04 ( 1.000e-13)
329        Index:  1.925e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
330        Scale:  2.216e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
602    Prefactor:  9.213e-01  3.759e-01  0.000e+00  1.000e+01 ( 1.000e+00)
603        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
604        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
601   Normalization:  1.482e+00  3.807e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 186.116 24.614
Photon Flux Upper Limit: 1.14e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.47e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/237911/likelihoodResults_556502401_557107201_4FGL_J1224.4+2436_weekly_bin525.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) = 2606.77683378
delta logL = -0.000726278494312

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2606.77610746
delta logL = 3.44080035575e-08

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 'Index     '    1.9072       1.0000          .0000       10.000    
     3 'Normalizat'    1.4820       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92129       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6050E+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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   2606.776     FROM MIGRAD    STATUS=FAILED        85 CALLS      241 TOTAL
                     EDM=   .49E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10248E-03    246.63        .12824E-01** at limit **
   2  Index         1.7472        8.8579        .20000E-01    .99841E-05
   3  Normalizat    1.4820        .49270E-01    .25286E-03    .58674E-05
   4  Prefactor     .92126        .51533E-01    .32419E-03    .16307E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   2606.776     FROM SIMPLEX   STATUS=UNCHANGED    140 CALLS      381 TOTAL
                     EDM=   .10E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10248E-03    246.63        .43692E-03** at limit **
   2  Index         1.7472        8.8579        .13179E-03    .99841E-05
   3  Normalizat    1.4820        .49270E-01    .23412E-05    .58674E-05
   4  Prefactor     .92126        .51533E-01    .24163E-05    .16307E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   2606.776     FROM MIGRAD    STATUS=CONVERGED     39 CALLS      420 TOTAL
                     EDM=   .69E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    11.063        .13299E-02** at limit **
   2  Index         1.6032        7.6889        .40000E-01    .87397E-07
   3  Normalizat    1.4820        .35318        .10114E-04   -.14050E-04
   4  Prefactor     .92126        .36898        .12968E-04   -.21918E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.60316
  Normalizat = 1.48203
  Prefactor  = 0.921262
 **********
 **   18 **HESSE 
 **********

 FCN=   2606.776     FROM HESSE     STATUS=OK            23 CALLS      443 TOTAL
                     EDM=   .99E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7.3437        .26598E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.6032        5.6838        .16000E-02   -.74690    
   3  Normalizat    1.4820        .35344        .20229E-05   -.78284    
   4  Prefactor     .92126        .36928        .25935E-05   -.95402    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.90522e-11
Minuit parameter uncertainties:
  1  0.000120274
  2  234.683
  3  0.354032
  4  0.370292
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/237911': 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) = 2606.77610657
delta logL = 9.22320396057e-07

Extracting fit parameters...

4FGL J1224.4+2436
   Spectrum: PowerLaw
328    Prefactor:  1.000e-04  1.203e-04  1.000e-04  1.000e+04 ( 1.000e-13)
329        Index:  1.603e+00  2.347e+02  0.000e+00  1.000e+01 (-1.000e+00)
330        Scale:  2.216e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
602    Prefactor:  9.213e-01  3.703e-01  0.000e+00  1.000e+01 ( 1.000e+00)
603        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
604        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
601   Normalization:  1.482e+00  3.540e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 186.116 24.614

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/237911/cmap_HighResolution_556502401_557107201_4FGL_J1224.4+2436_weekly_bin525.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.47e-03', job_status='DONE', photon_flux_upper_limit='1.14e-07', time_completed='2021-07-19 01:46:31.438197', job_id='237911', GAL2='0.92', fit_tolerance='1e-08', EG2='1.48', EG='1.48', time_epoch_completed='1626684391.44', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.92', dlogl='9.22e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.93' WHERE bin_id='525' AND source_name='4FGL J1224.4+2436' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Mon Jul 19 01:46:31 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0139>
Subject: Job 237911: <4FGL_J1224.4+2436_weekly_bin525> in cluster <slac> Done

Job <4FGL_J1224.4+2436_weekly_bin525> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Mon Jul 19 01:31:02 2021
Job was executed on host(s) <bullet0139>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Jul 19 01:33:04 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Jul 19 01:33:04 2021
Terminated at Mon Jul 19 01:46:32 2021
Results reported at Mon Jul 19 01:46:32 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1224.4+2436_weekly_bin525 186.116 24.6142 556502401 557107201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1224.4+2436 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   561.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             258.66 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   39 MB
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   810 sec.
    Turnaround time :                            930 sec.

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

