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


Performing analysis on: 4FGL_J1224.4+2436_daily_bin768
RA = 186.116, Dec = 24.6142
tmin = 438393601, tmax = 438652801
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='582321', job_status='RUN', time_executed='2021-09-05 12:30:54.337162', time_epoch_executed='1630870254.34' WHERE source_name='4FGL J1224.4+2436' and cadence='daily' and bin_id='768'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/582321

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/582321/ft1_4FGL_J1224.4+2436_daily_bin768.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/582321/ft2_4FGL_J1224.4+2436_daily_bin768.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/582321/ft1_4FGL_J1224.4+2436_daily_bin768.fits outfile=/scratch/kocevski/582321/ft1_filteredMKT_4FGL_J1224.4+2436_daily_bin768.fits ra=186.116 dec=24.6142 rad=12.0 tmin=438393601.0 tmax=438652801.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 6.41
user 6.10
sys 0.28

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/582321/ft2_4FGL_J1224.4+2436_daily_bin768.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/582321/ft1_filteredMKT_4FGL_J1224.4+2436_daily_bin768.fits evtable="EVENTS" outfile="/scratch/kocevski/582321/ft1_filtered_4FGL_J1224.4+2436_daily_bin768.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.49
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/582321/ft1_filtered_4FGL_J1224.4+2436_daily_bin768.fits" evtable="EVENTS" scfile=/scratch/kocevski/582321/ft2_4FGL_J1224.4+2436_daily_bin768.fits sctable="SC_DATA" outfile=/scratch/kocevski/582321/ltcube_438393601_438652801_4FGL_J1224.4+2436_daily_bin768.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/582321/ft2_4FGL_J1224.4+2436_daily_bin768.fits
.....................!
real 12.15
user 11.63
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/582321/ft1_filtered_4FGL_J1224.4+2436_daily_bin768.fits evtable="EVENTS" scfile=/scratch/kocevski/582321/ft2_4FGL_J1224.4+2436_daily_bin768.fits sctable="SC_DATA" expcube=/scratch/kocevski/582321/ltcube_438393601_438652801_4FGL_J1224.4+2436_daily_bin768.fits outfile=/scratch/kocevski/582321/expmap_438393601_438652801_4FGL_J1224.4+2436_daily_bin768.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/582321/ltcube_438393601_438652801_4FGL_J1224.4+2436_daily_bin768.fits
.....................!
real 191.55
user 185.90
sys 4.33

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/582321/ft1_filtered_4FGL_J1224.4+2436_daily_bin768.fits scfile=/scratch/kocevski/582321/ft2_4FGL_J1224.4+2436_daily_bin768.fits outfile=/scratch/kocevski/582321/cmap_438393601_438652801_4FGL_J1224.4+2436_daily_bin768.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.53
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/582321/ft1_filtered_4FGL_J1224.4+2436_daily_bin768.fits scfile=/scratch/kocevski/582321/ft2_4FGL_J1224.4+2436_daily_bin768.fits outfile=/scratch/kocevski/582321/cmap_HighResolution_438393601_438652801_4FGL_J1224.4+2436_daily_bin768.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.53
user 0.38
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/582321/ft1_filtered_4FGL_J1224.4+2436_daily_bin768.fits evtable="EVENTS" scfile=/scratch/kocevski/582321/ft2_4FGL_J1224.4+2436_daily_bin768.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/582321/Model_4FGL_J1224.4+2436_daily_bin768.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/582321/ft1_filtered_4FGL_J1224.4+2436_daily_bin768.fits.....................!
real 55.34
user 54.02
sys 1.16

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/582321/ft1_filtered_4FGL_J1224.4+2436_daily_bin768.fits', '/scratch/kocevski/582321/ft2_4FGL_J1224.4+2436_daily_bin768.fits', expMap='/scratch/kocevski/582321/expmap_438393601_438652801_4FGL_J1224.4+2436_daily_bin768.fits', expCube='/scratch/kocevski/582321/ltcube_438393601_438652801_4FGL_J1224.4+2436_daily_bin768.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/582321/Model_4FGL_J1224.4+2436_daily_bin768.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/582321/ft1_filtered_4FGL_J1224.4+2436_daily_bin768.fits
Spacecraft file(s): /scratch/kocevski/582321/ft2_4FGL_J1224.4+2436_daily_bin768.fits
Exposure map: /scratch/kocevski/582321/expmap_438393601_438652801_4FGL_J1224.4+2436_daily_bin768.fits
Exposure cube: /scratch/kocevski/582321/ltcube_438393601_438652801_4FGL_J1224.4+2436_daily_bin768.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/582321/Model_4FGL_J1224.4+2436_daily_bin768.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) = 5941.83716111

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 'Prefactor '    .10094E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    1.7365       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10253       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .12478E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    9.9020       1.0000         .10000E-03   10000.    
    11 'Prefactor '    11.725       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .33876E-02   1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.1467       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    2.6440       1.0000         .10000E-03   10000.    
    16 'norm      '    17.260       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    41.825       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10061E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10184E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .21774       1.0000         .10000E-03   10000.    
    23 'norm      '    19.984       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.0908       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.1288       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=   5941.834     FROM MIGRAD    STATUS=CONVERGED    591 CALLS     2917 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  8.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    12.157       -.43062E-06** at limit **
   2  Prefactor     .10000E-03    8.7897        .73292E-06** at limit **
   3  Prefactor     .10000E-03    .72752        .16002E-06** at limit **
   4  Prefactor     .10000E-03    15.442        .47684E-06** at limit **
   5  norm          1.7364        1.4026        .64953E-07    .83120E-04
   6  Prefactor     .79341E-01    26.998       -.10704E-04    .11739E-03
   7  Prefactor     .10000E-03    14.203       -.15574E-06** at limit **
   8  Prefactor     .10001E-03    3.7374       -.35427E-05** at limit **
   9  Prefactor     .10000E-03    1.0784        .54612E-08** at limit **
  10  norm          9.8990        4.7509        .77372E-06    .17177E-02
  11  Prefactor     11.727        10.463        .30766E-06    .66399E-04
  12  Prefactor     .10000E-03    12.157        .70755E-05** at limit **
  13  Prefactor     4.1453        3.1836        .41896E-06    .79849E-03
  14  Prefactor     .10000E-03    1.6442        .65753E-07** at limit **
  15  norm          2.6442        .48913       -.46664E-07   -.21401E-02
  16  norm          17.259        7.0462        .14319E-06   -.40849E-04
  17  Prefactor     .10000E-03    3.9316       -.12096E-06** at limit **
  18  Prefactor     .10000E-03    9.3336        .30195E-06** at limit **
  19  Prefactor     41.741        75.935       -.85013E-06   -.86016E-07
  20  Prefactor     .10000E-03    5.3481        .39042E-06** at limit **
  21  norm          .10000E-03    2.9763       -.23828E-06** at limit **
  22  norm          .23409        2.8281       -.94089E-06   -.24184E-03
  23  norm          19.974        17.988       -.61100E-06   -.21451E-03
  24  Normalizat    1.0909        .22453       -.64633E-05   -.46693E-03
  25  Prefactor     1.1288        .22694        .44918E-05   -.22780E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.73637
  Prefactor  = 0.0793408
  Prefactor  = 0.0001
  Prefactor  = 0.000100005
  Prefactor  = 0.0001
  norm       = 9.899
  Prefactor  = 11.7273
  Prefactor  = 0.0001
  Prefactor  = 4.1453
  Prefactor  = 0.0001
  norm       = 2.6442
  norm       = 17.2591
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 41.7414
  Prefactor  = 0.0001
  norm       = 0.000100002
  norm       = 0.234094
  norm       = 19.9738
  Normalizat = 1.09094
  Prefactor  = 1.12878
 **********
 **   18 **HESSE 
 **********

 FCN=   5941.834     FROM HESSE     STATUS=OK           423 CALLS     3340 TOTAL
                     EDM=   .39E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    12.189        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    8.8534        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    .73589        .64245E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    15.454        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          1.7364        1.4052        .79009E-04   -1.5444    
   6  Prefactor     .79341E-01    44.391        .23746E-02   -1.5652    
   7  Prefactor     .10000E-03    14.207        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10001E-03    4.2765        .21890E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    1.0853        .78093E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          9.8990        4.5064        .10274E-03   -1.5079    
  11  Prefactor     11.727        10.469        .11699E-03   -1.5023    
  12  Prefactor     .10000E-03    26.064        .19548E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     4.1453        3.1725        .11180E-03   -1.5301    
  14  Prefactor     .10000E-03    1.6450        .96527E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          2.6442        .49080        .21691E-04   -1.5383    
  16  norm          17.259        7.0490        .96405E-04   -1.4877    
  17  Prefactor     .10000E-03    3.9334        .14924E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    9.3426        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     41.741        76.102        .61984E-04   -1.4415    
  20  Prefactor     .10000E-03    5.3989        .17419E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    2.9596        .12869E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .23409        19.523        .21715E-02   -1.5611    
  23  norm          19.974        18.040        .89597E-04   -1.4814    
  24  Normalizat    1.0909        .25864        .27967E-03   -.90043    
  25  Prefactor     1.1288        .26085        .29305E-03   -.88552    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.88023e-09
Minuit parameter uncertainties:
  1  3.48852e-05
  2  6.31759e-05
  3  4.2154e-06
  4  5.66665e-05
  5  1.40522
  6  3.75382
  7  1.43583e-05
  8  0.00029272
  9  7.91214e-06
  10  4.50655
  11  10.4706
  12  4.79308e-05
  13  3.17258
  14  4.73434e-06
  15  0.490802
  16  7.04933
  17  3.19947e-06
  18  2.99957e-05
  19  76.28
  20  3.95627e-05
  21  0.000142395
  22  4.27614
  23  18.0444
  24  0.258939
  25  0.261143
Done.

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

Extracting fit parameters...

4FGL J1224.4+2436
   Spectrum: PowerLaw
328    Prefactor:  1.000e-04  4.734e-06  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:  1.129e+00  2.611e-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.091e+00  2.589e-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: 3.98e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.97e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/582321/likelihoodResults_438393601_438652801_4FGL_J1224.4+2436_daily_bin768.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) = 5941.83599644
delta logL = -0.00223565690885

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5941.83376053
delta logL = 2.57069586951e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.9113       1.0000          .0000       10.000    
     3 'Normalizat'    1.0910       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1287       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=   5941.834     FROM MIGRAD    STATUS=FAILED        88 CALLS      242 TOTAL
                     EDM=   .99E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10150E-03    37.907        .97591E-03** at limit **
   2  Index         1.8442        9.0493        .50000        .68514E-04
   3  Normalizat    1.0910        .24623E-01    .27966E-03    .16789E-04
   4  Prefactor     1.1288        .26310E-01    .29305E-03   -.41122E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5941.834     FROM SIMPLEX   STATUS=PROGRESS     130 CALLS      372 TOTAL
                     EDM=   .64E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10071E-03    37.907        .16430E-03** at limit **
   2  Index         1.8420        9.0493        .76585E-03    .68514E-04
   3  Normalizat    1.0909        .24623E-01    .51666E-05    .16789E-04
   4  Prefactor     1.1288        .26310E-01    .47889E-05   -.41122E-05
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5941.834     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      423 TOTAL
                     EDM=   .55E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    38.984        .19518E-02** at limit **
   2  Index         1.5059        6.0437        .50000        .75966E-07
   3  Normalizat    1.0910        .23623E-01    .11186E-04    .19736E-03
   4  Prefactor     1.1288        .25243E-01    .11722E-04    .18835E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.50586
  Normalizat = 1.09095
  Prefactor  = 1.12877
 **********
 **   18 **HESSE 
 **********

 FCN=   5941.834     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      452 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    168.55        .39036E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.5059        5.6599        .50000       -.77376    
   3  Normalizat    1.0910        .54028E-01    .22373E-05   -.90043    
   4  Prefactor     1.1288        .57724E-01    .23444E-05   -.88552    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.40765e-09
Minuit parameter uncertainties:
  1  0.000247324
  2  717.929
  3  0.0540309
  4  0.0577275
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/582321': 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) = 5941.83375627
delta logL = 4.51081996289e-06

Extracting fit parameters...

4FGL J1224.4+2436
   Spectrum: PowerLaw
328    Prefactor:  1.000e-04  2.473e-04  1.000e-04  1.000e+04 ( 1.000e-13)
329        Index:  1.506e+00  7.179e+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:  1.129e+00  5.773e-02  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.091e+00  5.403e-02  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/582321/cmap_HighResolution_438393601_438652801_4FGL_J1224.4+2436_daily_bin768.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.97e-03', job_status='DONE', photon_flux_upper_limit='3.98e-08', time_completed='2021-09-05 12:43:08.729102', job_id='582321', GAL2='1.13', fit_tolerance='1e-08', EG2='1.09', EG='1.09', time_epoch_completed='1630870988.73', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.13', dlogl='4.51e-06', ts2='-0.00', photon_index_error='0.00', photon_index='1.93' WHERE bin_id='768' AND source_name='4FGL J1224.4+2436' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 12:43:08 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0120>
Subject: Job 582321: <4FGL_J1224.4+2436_daily_bin768> in cluster <slac> Done

Job <4FGL_J1224.4+2436_daily_bin768> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sun Sep  5 12:30:34 2021
Job was executed on host(s) <bullet0120>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 12:30:35 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep  5 12:30:35 2021
Terminated at Sun Sep  5 12:43:09 2021
Results reported at Sun Sep  5 12:43:09 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1224.4+2436_daily_bin768 186.116 24.6142 438393601 438652801 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 :                                   729.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             292.16 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   753 sec.
    Turnaround time :                            755 sec.

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

