/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 181 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 = 7496
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1224.4+2436_daily_bin20
RA = 186.116, Dec = 24.6142
tmin = 244512001, tmax = 244771201
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='577275', job_status='RUN', time_executed='2021-09-05 12:18:57.285238', time_epoch_executed='1630869537.29' WHERE source_name='4FGL J1224.4+2436' and cadence='daily' and bin_id='20'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/577275

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/577275/ft1_4FGL_J1224.4+2436_daily_bin20.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/577275/ft2_4FGL_J1224.4+2436_daily_bin20.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/577275/ft1_4FGL_J1224.4+2436_daily_bin20.fits outfile=/scratch/kocevski/577275/ft1_filteredMKT_4FGL_J1224.4+2436_daily_bin20.fits ra=186.116 dec=24.6142 rad=12.0 tmin=244512001.0 tmax=244771201.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 1.43
user 1.27
sys 0.16

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/577275/ft2_4FGL_J1224.4+2436_daily_bin20.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/577275/ft1_filteredMKT_4FGL_J1224.4+2436_daily_bin20.fits evtable="EVENTS" outfile="/scratch/kocevski/577275/ft1_filtered_4FGL_J1224.4+2436_daily_bin20.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.32
sys 0.16

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/577275/ft1_filtered_4FGL_J1224.4+2436_daily_bin20.fits evtable="EVENTS" scfile=/scratch/kocevski/577275/ft2_4FGL_J1224.4+2436_daily_bin20.fits sctable="SC_DATA" expcube=/scratch/kocevski/577275/ltcube_244512001_244771201_4FGL_J1224.4+2436_daily_bin20.fits outfile=/scratch/kocevski/577275/expmap_244512001_244771201_4FGL_J1224.4+2436_daily_bin20.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/577275/ltcube_244512001_244771201_4FGL_J1224.4+2436_daily_bin20.fits
.....................!
real 191.76
user 185.37
sys 5.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/577275/ft1_filtered_4FGL_J1224.4+2436_daily_bin20.fits scfile=/scratch/kocevski/577275/ft2_4FGL_J1224.4+2436_daily_bin20.fits outfile=/scratch/kocevski/577275/cmap_244512001_244771201_4FGL_J1224.4+2436_daily_bin20.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.69
user 0.37
sys 0.18

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/577275/ft1_filtered_4FGL_J1224.4+2436_daily_bin20.fits scfile=/scratch/kocevski/577275/ft2_4FGL_J1224.4+2436_daily_bin20.fits outfile=/scratch/kocevski/577275/cmap_HighResolution_244512001_244771201_4FGL_J1224.4+2436_daily_bin20.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.62
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.0090       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .12751E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    1.5705       1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.8306       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10516E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .32400       1.0000         .10000E-03   10000.    
    10 'norm      '    5.9555       1.0000         .10000E-03   10000.    
    11 'Prefactor '    11.437       1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.2527       1.0000         .10000E-03   10000.    
    13 'Prefactor '    6.2139       1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.5943       1.0000         .10000E-03   10000.    
    15 'norm      '    .24387       1.0000         .10000E-03   10000.    
    16 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.0922       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10241E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    2.2117       1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10042E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.4500       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .48203       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.

 FCN=   4578.232     FROM MIGRAD    STATUS=CONVERGED   1014 CALLS     2916 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.9953        18.083        .15153E-03    .12379E-04
   2  Prefactor     .10000E-03    2.0295        .94133E-03** at limit **
   3  Prefactor     .10000E-03    .70498        .55067E-03** at limit **
   4  Prefactor     .10000E-03    30.644        .18142E-02** at limit **
   5  norm          1.5708        1.1314        .59389E-04    .93800E-05
   6  Prefactor     2.8306        3.5267        .13621E-03    .13605E-03
   7  Prefactor     .10000E-03    37.162        .18142E-02** at limit **
   8  Prefactor     .10000E-03    1.2287        .72756E-03** at limit **
   9  Prefactor     .32314        2.7048        .21374E-03    .13622E-03
  10  norm          5.9562        4.1916        .10497E-03   -.55346E-04
  11  Prefactor     11.437        8.4726        .11846E-03   -.27064E-04
  12  Prefactor     2.2526        2.2259        .92836E-04   -.23635E-04
  13  Prefactor     6.2144        3.0886        .78028E-04   -.61194E-05
  14  Prefactor     2.5932        4.2661        .17437E-03    .23602E-04
  15  norm          .24389        .19888        .26461E-04    .78797E-03
  16  norm          .10000E-03    2.0051        .93331E-03** at limit **
  17  Prefactor     .10000E-03    5.6259        .15649E-02** at limit **
  18  Prefactor     .98088        165.22        .69195E-02    .35203E-04
  19  Prefactor     .10000E-03    57.078        .18142E-02** at limit **
  20  Prefactor     .10000E-03    2.7395        .10926E-02** at limit **
  21  norm          2.2116        3.7008        .16443E-03    .89607E-04
  22  norm          .10000E-03    1.2632        .74029E-03** at limit **
  23  norm          .10000E-03    7.7773        .18142E-02** at limit **
  24  Normalizat    1.4500        .22755        .20139E-03    .13484E-03
  25  Prefactor     .48215        .22916        .34584E-03    .84450E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.99527
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.57078
  Prefactor  = 2.83063
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.323144
  norm       = 5.95616
  Prefactor  = 11.4375
  Prefactor  = 2.2526
  Prefactor  = 6.21442
  Prefactor  = 2.59325
  norm       = 0.243894
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.980877
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.21157
  norm       = 0.0001
  norm       = 0.0001
  Normalizat = 1.45002
  Prefactor  = 0.482149
 **********
 **   18 **HESSE 
 **********

 FCN=   4578.232     FROM HESSE     STATUS=OK           403 CALLS     3319 TOTAL
                     EDM=   .93E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.9953        18.080        .60612E-05   -1.5179    
   2  Prefactor     .10000E-03    2.0296        .18827E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    .70501        .11013E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    30.654        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          1.5708        1.1313        .23755E-05   -1.5457    
   6  Prefactor     2.8306        3.5262        .54483E-05   -1.5371    
   7  Prefactor     .10000E-03    37.170        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    1.2288        .14551E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .32314        2.7038        .85498E-05   -1.5594    
  10  norm          5.9562        4.1911        .41986E-05   -1.5220    
  11  Prefactor     11.437        8.4722        .47384E-05   -1.5031    
  12  Prefactor     2.2526        2.2258        .37134E-05   -1.5408    
  13  Prefactor     6.2144        3.0883        .31211E-05   -1.5209    
  14  Prefactor     2.5932        4.2657        .69749E-05   -1.5386    
  15  norm          .24389        .19888        .10584E-05   -1.5609    
  16  norm          .10000E-03    2.0052        .18666E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    5.6264        .31298E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .98088        167.23        .27678E-03   -1.5510    
  19  Prefactor     .10000E-03    57.082        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    2.7395        .21852E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          2.2116        3.7006        .65771E-05   -1.5411    
  22  norm          .10000E-03    1.2633        .14806E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    7.7774        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.4500        .22766        .40277E-04   -.79193    
  25  Prefactor     .48215        .22899        .13834E-04   -1.1280    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.26348e-11
Minuit parameter uncertainties:
  1  18.0944
  2  1.21484e-07
  3  1.33151e-06
  4  5.82848e-05
  5  1.13128
  6  3.52642
  7  1.30089e-05
  8  1.46963e-05
  9  1.86928
  10  4.19135
  11  8.47309
  12  2.22585
  13  3.08834
  14  4.26625
  15  0.198878
  16  3.92875e-06
  17  7.74723e-07
  18  25.6867
  19  0.000185023
  20  2.70117e-06
  21  3.70094
  22  1.31515e-06
  23  1.82508e-06
  24  0.227815
  25  0.229431
Done.

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

Extracting fit parameters...

4FGL J1224.4+2436
   Spectrum: PowerLaw
328    Prefactor:  2.593e+00  4.266e+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

GAL_V02
   Spectrum: PowerLaw
602    Prefactor:  4.821e-01  2.294e-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.450e+00  2.278e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.61
Ra Dec: 186.116 24.614
Photon Flux Upper Limit: 6.82e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.08e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/577275/likelihoodResults_244512001_244771201_4FGL_J1224.4+2436_daily_bin20.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) = 4578.23007334
delta logL = 0.00191442342748

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4578.22972607
delta logL = 0.00226168989593

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.6945       1.0000         .10000E-03   10000.    
     2 'Index     '    1.8249       1.0000          .0000       10.000    
     3 'Normalizat'    1.4521       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .48091       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.

 FCN=   4578.230     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      211 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.6985        147.12        .62047E-02    .19272E-03
   2  Index         1.8238        5.1886        .26906        .75469E-05
   3  Normalizat    1.4521        .68590E-01    .45534E-01   -.33321E-04
   4  Prefactor     .48098        .54598E-01    .78171E-01   -.11361E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.69849
  Index      = 1.82381
  Normalizat = 1.45205
  Prefactor  = 0.480983
 **********
 **   18 **HESSE 
 **********

 FCN=   4578.230     FROM HESSE     STATUS=OK            33 CALLS      244 TOTAL
                     EDM=   .23E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.6985        4.6721        .17906E-03   -1.5379    
   2  Index         1.8238        1.4223        .12203E-01   -.68832    
   3  Normalizat    1.4521        .21854        .20127E-03   -.79135    
   4  Prefactor     .48098        .22694        .34623E-03   -1.1286    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.27454e-11
Minuit parameter uncertainties:
  1  4.67275
  2  1.45662
  3  0.218683
  4  0.22737
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/577275': 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) = 4578.22972546
delta logL = 0.00226230119551

Extracting fit parameters...

4FGL J1224.4+2436
   Spectrum: PowerLaw
328    Prefactor:  2.698e+00  4.673e+00  1.000e-04  1.000e+04 ( 1.000e-13)
329        Index:  1.824e+00  1.457e+00  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:  4.810e-01  2.274e-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.452e+00  2.187e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.61
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/577275/cmap_HighResolution_244512001_244771201_4FGL_J1224.4+2436_daily_bin20.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.08e-03', job_status='DONE', photon_flux_upper_limit='6.82e-08', time_completed='2021-09-05 12:29:13.071870', job_id='577275', GAL2='0.48', fit_tolerance='1e-08', EG2='1.45', EG='1.45', time_epoch_completed='1630870153.07', return_code2='0', ts='0.61', comment='SUCCESS', return_code='0', GAL='0.48', dlogl='2.26e-03', ts2='0.62', photon_index_error='0.00', photon_index='1.93' WHERE bin_id='20' AND source_name='4FGL J1224.4+2436' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 12:29:13 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0250>
Subject: Job 577275: <4FGL_J1224.4+2436_daily_bin20> in cluster <slac> Done

Job <4FGL_J1224.4+2436_daily_bin20> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sun Sep  5 12:15:44 2021
Job was executed on host(s) <bullet0250>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 12:15:45 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:15:45 2021
Terminated at Sun Sep  5 12:29:13 2021
Results reported at Sun Sep  5 12:29:13 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1224.4+2436_daily_bin20 186.116 24.6142 244512001 244771201 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 :                                   612.27 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             273.46 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   808 sec.
    Turnaround time :                            809 sec.

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

