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


Performing analysis on: 4FGL_J1224.4+2436_daily_bin365
RA = 186.116, Dec = 24.6142
tmin = 333936001, tmax = 334195201
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='579276', job_status='RUN', time_executed='2021-09-05 12:21:09.807804', time_epoch_executed='1630869669.81' WHERE source_name='4FGL J1224.4+2436' and cadence='daily' and bin_id='365'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/579276

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/579276/ft1_4FGL_J1224.4+2436_daily_bin365.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/579276/ft2_4FGL_J1224.4+2436_daily_bin365.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/579276/ft1_4FGL_J1224.4+2436_daily_bin365.fits outfile=/scratch/kocevski/579276/ft1_filteredMKT_4FGL_J1224.4+2436_daily_bin365.fits ra=186.116 dec=24.6142 rad=12.0 tmin=333936001.0 tmax=334195201.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 3.55
user 3.30
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/579276/ft1_filtered_4FGL_J1224.4+2436_daily_bin365.fits" evtable="EVENTS" scfile=/scratch/kocevski/579276/ft2_4FGL_J1224.4+2436_daily_bin365.fits sctable="SC_DATA" outfile=/scratch/kocevski/579276/ltcube_333936001_334195201_4FGL_J1224.4+2436_daily_bin365.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/579276/ft2_4FGL_J1224.4+2436_daily_bin365.fits
.....................!
real 11.95
user 11.56
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/579276/ft1_filtered_4FGL_J1224.4+2436_daily_bin365.fits evtable="EVENTS" scfile=/scratch/kocevski/579276/ft2_4FGL_J1224.4+2436_daily_bin365.fits sctable="SC_DATA" expcube=/scratch/kocevski/579276/ltcube_333936001_334195201_4FGL_J1224.4+2436_daily_bin365.fits outfile=/scratch/kocevski/579276/expmap_333936001_334195201_4FGL_J1224.4+2436_daily_bin365.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/579276/ltcube_333936001_334195201_4FGL_J1224.4+2436_daily_bin365.fits
.....................!
real 191.39
user 185.29
sys 5.36

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/579276/ft1_filtered_4FGL_J1224.4+2436_daily_bin365.fits scfile=/scratch/kocevski/579276/ft2_4FGL_J1224.4+2436_daily_bin365.fits outfile=/scratch/kocevski/579276/cmap_333936001_334195201_4FGL_J1224.4+2436_daily_bin365.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.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/579276/ft1_filtered_4FGL_J1224.4+2436_daily_bin365.fits scfile=/scratch/kocevski/579276/ft2_4FGL_J1224.4+2436_daily_bin365.fits outfile=/scratch/kocevski/579276/cmap_HighResolution_333936001_334195201_4FGL_J1224.4+2436_daily_bin365.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/579276/ft1_filtered_4FGL_J1224.4+2436_daily_bin365.fits evtable="EVENTS" scfile=/scratch/kocevski/579276/ft2_4FGL_J1224.4+2436_daily_bin365.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/579276/Model_4FGL_J1224.4+2436_daily_bin365.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/579276/ft1_filtered_4FGL_J1224.4+2436_daily_bin365.fits.....................!
real 59.61
user 58.24
sys 1.24

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .58488       1.0000         .10000E-03   10000.    
     4 'Prefactor '    41.016       1.0000         .10000E-03   10000.    
     5 'norm      '    2.2235       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10103E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.8162       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .20775E-02   1.0000         .10000E-03   10000.    
    10 'norm      '    2.2270       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.3179       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    2.1310       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    18.546       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .12067       1.0000         .10000E-03   10000.    
    21 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .67093       1.0000         .10000E-03   10000.    
    23 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.3981       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .86271       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=   6302.003     FROM MIGRAD    STATUS=CONVERGED    636 CALLS     2937 TOTAL
                     EDM=   .24E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    66.204       -.61620E-06** at limit **
   2  Prefactor     .10000E-03    4.9274       -.88264E-09** at limit **
   3  Prefactor     .58349        1.6124        .40882E-06   -.30617E-03
   4  Prefactor     40.998        32.625       -.28182E-05   -.29516E-03
   5  norm          2.2227        1.3747        .63434E-07   -.65813E-05
   6  Prefactor     .10000E-03    2.9460       -.35903E-07** at limit **
   7  Prefactor     .10000E-03    17.822       -.47248E-07** at limit **
   8  Prefactor     1.8101        3.7291        .43271E-06   -.14308E-03
   9  Prefactor     .10000E-03    1.9888       -.12449E-06** at limit **
  10  norm          2.2267        2.0654        .49122E-08    .28780E-04
  11  Prefactor     .10000E-03    2.5775        .58587E-08** at limit **
  12  Prefactor     .10000E-03    .80633        .57538E-08** at limit **
  13  Prefactor     3.3174        2.2871        .27342E-07   -.97241E-05
  14  Prefactor     .10000E-03    2.0941        .11184E-07** at limit **
  15  norm          2.1308        .41200       -.37201E-08    .11588E-03
  16  norm          .10000E-03    1.1288        .50730E-08** at limit **
  17  Prefactor     18.543        11.754       -.12228E-06   -.57153E-04
  18  Prefactor     .10000E-03    10.659        .21960E-07** at limit **
  19  Prefactor     .10000E-03    42.756        .81457E-07** at limit **
  20  Prefactor     .33062E-01    5.8578       -.14890E-06   -.25967E-04
  21  norm          .10000E-03    4.1045        .45274E-07** at limit **
  22  norm          .67320        4.2176        .15491E-05   -.39476E-03
  23  norm          .10000E-03    9.3873       -.35686E-07** at limit **
  24  Normalizat    1.3983        .20058        .21038E-06   -.43813E-04
  25  Prefactor     .86262        .20132       -.68914E-06    .16635E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.583493
  Prefactor  = 40.9981
  norm       = 2.22265
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.81014
  Prefactor  = 0.0001
  norm       = 2.22675
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.31743
  Prefactor  = 0.0001
  norm       = 2.13082
  norm       = 0.0001
  Prefactor  = 18.5434
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0330617
  norm       = 0.0001
  norm       = 0.673203
  norm       = 0.0001
  Normalizat = 1.39831
  Prefactor  = 0.862621
 **********
 **   18 **HESSE 
 **********

 FCN=   6302.003     FROM HESSE     STATUS=OK           431 CALLS     3368 TOTAL
                     EDM=   .78E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    67.364        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    4.9383        .17209E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .58349        1.6211        .16419E-03   -1.5555    
   4  Prefactor     40.998        35.673        .62591E-04   -1.4426    
   5  norm          2.2227        1.3684        .69685E-04   -1.5410    
   6  Prefactor     .10000E-03    2.9876        .13282E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    17.846        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     1.8101        3.5516        .19602E-03   -1.5439    
   9  Prefactor     .10000E-03    17.298        .19906E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          2.2267        2.0701        .10591E-03   -1.5410    
  11  Prefactor     .10000E-03    2.5845        .12447E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    .81081        .69558E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     3.3174        2.2855        .94461E-04   -1.5344    
  14  Prefactor     .10000E-03    2.1012        .11218E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          2.1308        .41231        .21213E-04   -1.5416    
  16  norm          .10000E-03    1.1306        .82363E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     18.543        11.772        .93003E-04   -1.4846    
  18  Prefactor     .10000E-03    10.681        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    42.775        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .33062E-01    7.0098        .58573E-01   -1.5672    
  21  norm          .10000E-03    4.1439        .15703E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .67320        5.2706        .33962E-03   -1.5544    
  23  norm          .10000E-03    9.3924        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.3983        .23948        .24875E-03   -.80678    
  25  Prefactor     .86262        .23741        .31759E-03   -.97460    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.84018e-10
Minuit parameter uncertainties:
  1  0.000126943
  2  1.63203e-06
  3  1.62118
  4  35.6918
  5  1.36845
  6  4.23917e-06
  7  3.56229e-05
  8  3.55201
  9  5.30597e-05
  10  2.07015
  11  8.91267e-07
  12  3.06296e-07
  13  2.28555
  14  3.0963e-07
  15  0.412312
  16  7.17636e-08
  17  11.7734
  18  9.62312e-07
  19  1.08912e-05
  20  0.961479
  21  1.7993e-08
  22  3.76752
  23  4.60092e-06
  24  0.239667
  25  0.237696
Done.

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

Extracting fit parameters...

4FGL J1224.4+2436
   Spectrum: PowerLaw
328    Prefactor:  1.000e-04  3.096e-07  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:  8.626e-01  2.377e-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.398e+00  2.397e-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: 4.37e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.25e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/579276/likelihoodResults_333936001_334195201_4FGL_J1224.4+2436_daily_bin365.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) = 6302.00486315
delta logL = -0.00219137283148

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6302.00267175
delta logL = 2.46800482273e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10128E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.9066       1.0000          .0000       10.000    
     3 'Normalizat'    1.3983       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86261       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=   6302.003     FROM MIGRAD    STATUS=FAILED        86 CALLS      241 TOTAL
                     EDM=   .21E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10087E-03    29.107        .11376E-02** at limit **
   2  Index         1.8613        8.6927        .50000        .57909E-04
   3  Normalizat    1.3983        .18267E-01    .24875E-03    .74387E-04
   4  Prefactor     .86262        .18925E-01    .31759E-03    .34615E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6302.003     FROM SIMPLEX   STATUS=PROGRESS     128 CALLS      369 TOTAL
                     EDM=   .58E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10080E-03    29.107        .19533E-03** at limit **
   2  Index         1.8592        8.6927        .75180E-03    .57909E-04
   3  Normalizat    1.3983        .18267E-01    .35300E-05    .74387E-04
   4  Prefactor     .86261        .18925E-01    .39901E-05    .34615E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6302.003     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      419 TOTAL
                     EDM=   .62E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    25.205        .22753E-02** at limit **
   2  Index         1.6026        7.8393        .50000        .97684E-06
   3  Normalizat    1.3983        .16232E-01    .49749E-04   -.72760E-04
   4  Prefactor     .86262        .16817E-01    .12704E-04   -.58706E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Index      = 1.6026
  Normalizat = 1.39831
  Prefactor  = 0.86262
 **********
 **   18 **HESSE 
 **********

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

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    117.40        .45506E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.6026        5.1845        .50000       -.74706    
   3  Normalizat    1.3983        .36714E-01    .99499E-05   -.80678    
   4  Prefactor     .86262        .38038E-01    .25407E-05   -.97460    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.92222e-09
Minuit parameter uncertainties:
  1  0.000795491
  2  421.291
  3  0.0367152
  4  0.0380389
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/579276': 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) = 6302.00266883
delta logL = 2.94330675388e-06

Extracting fit parameters...

4FGL J1224.4+2436
   Spectrum: PowerLaw
328    Prefactor:  1.000e-04  7.955e-04  1.000e-04  1.000e+04 ( 1.000e-13)
329        Index:  1.603e+00  4.213e+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:  8.626e-01  3.804e-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.398e+00  3.672e-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/579276/cmap_HighResolution_333936001_334195201_4FGL_J1224.4+2436_daily_bin365.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.25e-03', job_status='DONE', photon_flux_upper_limit='4.37e-08', time_completed='2021-09-05 12:33:40.828094', job_id='579276', GAL2='0.86', fit_tolerance='1e-08', EG2='1.40', EG='1.40', time_epoch_completed='1630870420.83', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.86', dlogl='2.94e-06', ts2='-0.00', photon_index_error='0.00', photon_index='1.93' WHERE bin_id='365' AND source_name='4FGL J1224.4+2436' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 12:33:40 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0130>
Subject: Job 579276: <4FGL_J1224.4+2436_daily_bin365> in cluster <slac> Done

Job <4FGL_J1224.4+2436_daily_bin365> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sun Sep  5 12:20:51 2021
Job was executed on host(s) <bullet0130>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 12:20:52 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:20:52 2021
Terminated at Sun Sep  5 12:33:41 2021
Results reported at Sun Sep  5 12:33:41 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1224.4+2436_daily_bin365 186.116 24.6142 333936001 334195201 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 :                                   746.22 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             348.28 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   769 sec.
    Turnaround time :                            770 sec.

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

