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


Performing analysis on: 4FGL_J1224.4+2436_daily_bin1165
RA = 186.116, Dec = 24.6142
tmin = 541296001, tmax = 541555201
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='584354', job_status='RUN', time_executed='2021-09-05 12:36:08.982939', time_epoch_executed='1630870568.98' WHERE source_name='4FGL J1224.4+2436' and cadence='daily' and bin_id='1165'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/584354

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/584354/ft1_4FGL_J1224.4+2436_daily_bin1165.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/584354/ft2_4FGL_J1224.4+2436_daily_bin1165.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/584354/ft1_4FGL_J1224.4+2436_daily_bin1165.fits outfile=/scratch/kocevski/584354/ft1_filteredMKT_4FGL_J1224.4+2436_daily_bin1165.fits ra=186.116 dec=24.6142 rad=12.0 tmin=541296001.0 tmax=541555201.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.71
user 3.52
sys 0.17

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/584354/ft1_filtered_4FGL_J1224.4+2436_daily_bin1165.fits evtable="EVENTS" scfile=/scratch/kocevski/584354/ft2_4FGL_J1224.4+2436_daily_bin1165.fits sctable="SC_DATA" expcube=/scratch/kocevski/584354/ltcube_541296001_541555201_4FGL_J1224.4+2436_daily_bin1165.fits outfile=/scratch/kocevski/584354/expmap_541296001_541555201_4FGL_J1224.4+2436_daily_bin1165.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/584354/ltcube_541296001_541555201_4FGL_J1224.4+2436_daily_bin1165.fits
.....................!
real 193.56
user 186.87
sys 6.07

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/584354/ft1_filtered_4FGL_J1224.4+2436_daily_bin1165.fits scfile=/scratch/kocevski/584354/ft2_4FGL_J1224.4+2436_daily_bin1165.fits outfile=/scratch/kocevski/584354/cmap_541296001_541555201_4FGL_J1224.4+2436_daily_bin1165.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.54
user 0.36
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/584354/ft1_filtered_4FGL_J1224.4+2436_daily_bin1165.fits scfile=/scratch/kocevski/584354/ft2_4FGL_J1224.4+2436_daily_bin1165.fits outfile=/scratch/kocevski/584354/cmap_HighResolution_541296001_541555201_4FGL_J1224.4+2436_daily_bin1165.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.54
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10062E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    17.424       1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.9573       1.0000         .10000E-03   10000.    
     7 'Prefactor '    14.144       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.1362       1.0000         .10000E-03   10000.    
    10 'norm      '    6.5681       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .51255       1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.4056       1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.3667       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .90150E-01   1.0000         .10000E-03   10000.    
    16 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    3.3227       1.0000         .10000E-03   10000.    
    18 'Prefactor '    29.742       1.0000         .10000E-03   10000.    
    19 'Prefactor '    16.532       1.0000         .10000E-03   10000.    
    20 'Prefactor '    2.1100       1.0000         .10000E-03   10000.    
    21 'norm      '    4.2178       1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .97468       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.2999       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=   7102.656     FROM MIGRAD    STATUS=CONVERGED    572 CALLS     2590 TOTAL
                     EDM=   .88E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    9.6082        .82113E-08** at limit **
   2  Prefactor     .10000E-03    5.1770        .60502E-07** at limit **
   3  Prefactor     .10000E-03    .35907        .12005E-07** at limit **
   4  Prefactor     .10000E-03    40.874        .69101E-06** at limit **
   5  norm          17.424        2.5652        .11325E-06   -.55205E-04
   6  Prefactor     1.9562        4.5117        .25681E-06    .26815E-05
   7  Prefactor     14.157        43.009       -.28680E-05   -.26386E-04
   8  Prefactor     .10000E-03    1.7405        .17697E-06** at limit **
   9  Prefactor     2.1357        2.6010        .13421E-06    .18250E-04
  10  norm          6.5681        3.4018        .10278E-06   -.44272E-04
  11  Prefactor     .48058        6.6613        .12667E-05   -.20105E-03
  12  Prefactor     3.4056        2.3121       -.64628E-07   -.45105E-04
  13  Prefactor     2.3665        1.8855       -.41737E-07   -.38961E-04
  14  Prefactor     .10000E-03    1.7118        .32158E-07** at limit **
  15  norm          .90161E-01    .17600        .51146E-07   -.20035E-03
  16  norm          .10000E-03    1.3120        .52172E-08** at limit **
  17  Prefactor     3.3221        9.7019        .30105E-05   -.25680E-04
  18  Prefactor     29.733        35.302        .20730E-05    .34764E-05
  19  Prefactor     16.422        125.97        .30440E-04   -.19501E-05
  20  Prefactor     2.1079        8.7312        .86819E-05    .94006E-05
  21  norm          4.2185        5.3146       -.95617E-06   -.16936E-03
  22  norm          .10000E-03    1.2407        .73281E-07** at limit **
  23  norm          .10000E-03    18.020        .95579E-07** at limit **
  24  Normalizat    .97456        .19460       -.76547E-06    .80616E-05
  25  Prefactor     1.3002        .19916       -.18789E-05   -.35197E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 17.4244
  Prefactor  = 1.95618
  Prefactor  = 14.1566
  Prefactor  = 0.0001
  Prefactor  = 2.13571
  norm       = 6.56811
  Prefactor  = 0.480585
  Prefactor  = 3.4056
  Prefactor  = 2.36655
  Prefactor  = 0.0001
  norm       = 0.0901605
  norm       = 0.0001
  Prefactor  = 3.32206
  Prefactor  = 29.7334
  Prefactor  = 16.4217
  Prefactor  = 2.10795
  norm       = 4.2185
  norm       = 0.0001
  norm       = 0.0001
  Normalizat = 0.974557
  Prefactor  = 1.30016
 **********
 **   18 **HESSE 
 **********

 FCN=   7102.656     FROM HESSE     STATUS=OK           437 CALLS     3027 TOTAL
                     EDM=   .61E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    9.6301        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    5.2098        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    .35981        .49313E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    41.032        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          17.424        2.5683        .49023E-04   -1.4873    
   6  Prefactor     1.9562        4.4878        .25299E-03   -1.5428    
   7  Prefactor     14.157        42.899        .10650E-03   -1.4955    
   8  Prefactor     .10000E-03    1.7673        .10822E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     2.1357        2.5827        .14303E-03   -1.5416    
  10  norm          6.5681        3.4018        .10396E-03   -1.5195    
  11  Prefactor     .48058        31.474        .40873E-02   -1.5569    
  12  Prefactor     3.4056        2.3152        .98765E-04   -1.5339    
  13  Prefactor     2.3665        1.8790        .98340E-04   -1.5400    
  14  Prefactor     .10000E-03    1.7141        .10767E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .90161E-01    .15498        .46668E-03   -1.5648    
  16  norm          .10000E-03    1.3187        .94256E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     3.3221        9.6926        .11103E-02   -1.5343    
  18  Prefactor     29.733        35.321        .73465E-04   -1.4617    
  19  Prefactor     16.422        126.05        .98505E-04   -1.4897    
  20  Prefactor     2.1079        8.7752        .14201E-02   -1.5418    
  21  norm          4.2185        5.3111        .19621E-03   -1.5297    
  22  norm          .10000E-03    1.2440        .91652E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    18.124        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .97456        .23298        .29485E-03   -.93888    
  25  Prefactor     1.3002        .23856        .27833E-03   -.83302    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.06636e-09
Minuit parameter uncertainties:
  1  2.75505e-06
  2  8.20411e-06
  3  3.28432e-07
  4  0.000179645
  5  2.56835
  6  4.48858
  7  42.9927
  8  8.755e-06
  9  2.58284
  10  3.40189
  11  7.7819
  12  2.31528
  13  1.879
  14  6.97239e-07
  15  0.154981
  16  1.31713e-07
  17  9.69716
  18  35.3456
  19  91.2601
  20  8.60374
  21  5.31172
  22  1.20699e-06
  23  1.9611e-06
  24  0.233221
  25  0.238764
Done.

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

Extracting fit parameters...

4FGL J1224.4+2436
   Spectrum: PowerLaw
328    Prefactor:  1.000e-04  6.972e-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:  1.300e+00  2.388e-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:  9.746e-01  2.332e-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.89e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.90e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/584354/likelihoodResults_541296001_541555201_4FGL_J1224.4+2436_daily_bin1165.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) = 7102.65849757
delta logL = -0.00269047305574

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7102.65580695
delta logL = 1.4354736777e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.9100       1.0000          .0000       10.000    
     3 'Normalizat'    .97455       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3002       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=   7102.656     FROM MIGRAD    STATUS=FAILED        90 CALLS      245 TOTAL
                     EDM=   .71E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10200E-03    54.982        .10869E-02** at limit **
   2  Index         1.8113        5.6955        .50000        .50046E-04
   3  Normalizat    .97456        .26772E-01    .29484E-03    .32003E-04
   4  Prefactor     1.3002        .28820E-01    .27833E-03    .39906E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

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

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10013E-03    54.982        .18698E-03** at limit **
   2  Index         1.8104        5.6955        .34031E-03    .50046E-04
   3  Normalizat    .97455        .26772E-01    .41521E-05    .32003E-04
   4  Prefactor     1.3001        .28820E-01    .46509E-05    .39906E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7102.656     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      425 TOTAL
                     EDM=   .96E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    44.066        .21738E-02** at limit **
   2  Index         1.5617        8.3335        .50000       -.20655E-06
   3  Normalizat    .97456        .23050E-01    .11794E-04    .17178E-03
   4  Prefactor     1.3002        .24818E-01    .11133E-04    .15889E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.56169
  Normalizat = 0.974557
  Prefactor  = 1.30016
 **********
 **   18 **HESSE 
 **********

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

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    195.76        .43476E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.5617        5.6246        .50000       -.75827    
   3  Normalizat    .97456        .54677E-01    .23587E-05   -.93888    
   4  Prefactor     1.3002        .58827E-01    .22267E-05   -.83302    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.29929e-09
Minuit parameter uncertainties:
  1  5.65262e-05
  2  891.207
  3  0.0546799
  4  0.0588297
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/584354': 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) = 7102.65580372
delta logL = 3.37305846188e-06

Extracting fit parameters...

4FGL J1224.4+2436
   Spectrum: PowerLaw
328    Prefactor:  1.000e-04  5.653e-05  1.000e-04  1.000e+04 ( 1.000e-13)
329        Index:  1.562e+00  8.912e+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.300e+00  5.883e-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:  9.746e-01  5.468e-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 -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/584354/cmap_HighResolution_541296001_541555201_4FGL_J1224.4+2436_daily_bin1165.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.90e-03', job_status='DONE', photon_flux_upper_limit='3.89e-08', time_completed='2021-09-05 12:49:07.171119', job_id='584354', GAL2='1.30', fit_tolerance='1e-08', EG2='0.97', EG='0.97', time_epoch_completed='1630871347.17', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.30', dlogl='3.37e-06', ts2='-0.00', photon_index_error='0.00', photon_index='1.93' WHERE bin_id='1165' AND source_name='4FGL J1224.4+2436' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 12:49:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0052>
Subject: Job 584354: <4FGL_J1224.4+2436_daily_bin1165> in cluster <slac> Done

Job <4FGL_J1224.4+2436_daily_bin1165> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sun Sep  5 12:35:50 2021
Job was executed on host(s) <bullet0052>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 12:35: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:35:52 2021
Terminated at Sun Sep  5 12:49:07 2021
Results reported at Sun Sep  5 12:49:07 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1224.4+2436_daily_bin1165 186.116 24.6142 541296001 541555201 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 :                                   764.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             333.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   795 sec.
    Turnaround time :                            797 sec.

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

