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


Performing analysis on: 4FGL_J1224.4+2436_daily_bin94
RA = 186.116, Dec = 24.6142
tmin = 263692801, tmax = 263952001
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='577414', job_status='RUN', time_executed='2021-09-05 12:19:09.874491', time_epoch_executed='1630869549.87' WHERE source_name='4FGL J1224.4+2436' and cadence='daily' and bin_id='94'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/577414

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/577414/ft1_4FGL_J1224.4+2436_daily_bin94.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/577414/ft2_4FGL_J1224.4+2436_daily_bin94.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/577414/ft1_4FGL_J1224.4+2436_daily_bin94.fits outfile=/scratch/kocevski/577414/ft1_filteredMKT_4FGL_J1224.4+2436_daily_bin94.fits ra=186.116 dec=24.6142 rad=12.0 tmin=263692801.0 tmax=263952001.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.65
user 1.48
sys 0.16

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/577414/ft2_4FGL_J1224.4+2436_daily_bin94.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/577414/ft1_filteredMKT_4FGL_J1224.4+2436_daily_bin94.fits evtable="EVENTS" outfile="/scratch/kocevski/577414/ft1_filtered_4FGL_J1224.4+2436_daily_bin94.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/577414/ft1_filtered_4FGL_J1224.4+2436_daily_bin94.fits" evtable="EVENTS" scfile=/scratch/kocevski/577414/ft2_4FGL_J1224.4+2436_daily_bin94.fits sctable="SC_DATA" outfile=/scratch/kocevski/577414/ltcube_263692801_263952001_4FGL_J1224.4+2436_daily_bin94.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/577414/ft2_4FGL_J1224.4+2436_daily_bin94.fits
.....................!
real 15.52
user 15.12
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/577414/ft1_filtered_4FGL_J1224.4+2436_daily_bin94.fits evtable="EVENTS" scfile=/scratch/kocevski/577414/ft2_4FGL_J1224.4+2436_daily_bin94.fits sctable="SC_DATA" expcube=/scratch/kocevski/577414/ltcube_263692801_263952001_4FGL_J1224.4+2436_daily_bin94.fits outfile=/scratch/kocevski/577414/expmap_263692801_263952001_4FGL_J1224.4+2436_daily_bin94.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/577414/ltcube_263692801_263952001_4FGL_J1224.4+2436_daily_bin94.fits
.....................!
real 189.67
user 185.01
sys 4.12

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/577414/ft1_filtered_4FGL_J1224.4+2436_daily_bin94.fits scfile=/scratch/kocevski/577414/ft2_4FGL_J1224.4+2436_daily_bin94.fits outfile=/scratch/kocevski/577414/cmap_263692801_263952001_4FGL_J1224.4+2436_daily_bin94.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.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/577414/ft1_filtered_4FGL_J1224.4+2436_daily_bin94.fits scfile=/scratch/kocevski/577414/ft2_4FGL_J1224.4+2436_daily_bin94.fits outfile=/scratch/kocevski/577414/cmap_HighResolution_263692801_263952001_4FGL_J1224.4+2436_daily_bin94.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/577414/ft1_filtered_4FGL_J1224.4+2436_daily_bin94.fits evtable="EVENTS" scfile=/scratch/kocevski/577414/ft2_4FGL_J1224.4+2436_daily_bin94.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/577414/Model_4FGL_J1224.4+2436_daily_bin94.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/577414/ft1_filtered_4FGL_J1224.4+2436_daily_bin94.fits.....................!
real 52.61
user 51.28
sys 1.16

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    16.312       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.1415       1.0000         .10000E-03   10000.    
     4 'Prefactor '    15.108       1.0000         .10000E-03   10000.    
     5 'norm      '    .76540       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .45114E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    40.835       1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.0757       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .91009E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    1.5752       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .18841E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.5506       1.0000         .10000E-03   10000.    
    13 'Prefactor '    6.6818       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .41455       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    20.542       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .12933E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    10.157       1.0000         .10000E-03   10000.    
    23 'norm      '    24.714       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .89351       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0917       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=   5755.806     FROM MIGRAD    STATUS=CONVERGED    601 CALLS     2967 TOTAL
                     EDM=   .55E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     16.313        17.123        .24792E-02    .10283E-03
   2  Prefactor     .10000E-03    3.2000        .90712E-02** at limit **
   3  Prefactor     2.1415        1.7250        .70410E-02    .23963E-03
   4  Prefactor     15.104        27.826        .25761E-02    .75142E-03
   5  norm          .76466        1.0852        .19078E-01    .10917E-02
   6  Prefactor     .10000E-03    1.8217        .55094E-01** at limit **
   7  Prefactor     40.832        32.928        .15682E-02    .10893E-02
   8  Prefactor     1.0802        2.0889        .27950E-01    .51551E-03
   9  Prefactor     .10000E-03    1.4995        .55869E-01** at limit **
  10  norm          1.5752        1.6470        .84641E-02   -.12783E-03
  11  Prefactor     .10000E-03    5.3146        .90712E-01** at limit **
  12  Prefactor     1.5506        1.7042        .85513E-02    .27980E-04
  13  Prefactor     6.6815        2.7551        .38809E-02    .45426E-04
  14  Prefactor     .10000E-03    1.6957        .90712E-02** at limit **
  15  norm          .41456        .22392        .56056E-02   -.16146E-03
  16  norm          .10000E-03    1.0713        .90712E-02** at limit **
  17  Prefactor     20.541        10.664        .22093E-02    .52868E-04
  18  Prefactor     .10000E-03    72.656        .90712E-02** at limit **
  19  Prefactor     .10000E-03    23.575        .90712E-02** at limit **
  20  Prefactor     .10000E-03    3.8319        .90712E-02** at limit **
  21  norm          .10000E-03    2.1920        .90712E-02** at limit **
  22  norm          10.156        4.6907        .31432E-02   -.20639E-02
  23  norm          24.712        21.022        .20145E-02    .67847E-04
  24  Normalizat    .89370        .18155        .44819E-01    .61455E-04
  25  Prefactor     1.0916        .18891        .58100E-01    .59097E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 16.3131
  Prefactor  = 0.0001
  Prefactor  = 2.14155
  Prefactor  = 15.1037
  norm       = 0.764663
  Prefactor  = 0.0001
  Prefactor  = 40.8319
  Prefactor  = 1.08024
  Prefactor  = 0.0001
  norm       = 1.57523
  Prefactor  = 0.0001
  Prefactor  = 1.55061
  Prefactor  = 6.68146
  Prefactor  = 0.0001
  norm       = 0.414557
  norm       = 0.0001
  Prefactor  = 20.541
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 10.1561
  norm       = 24.7125
  Normalizat = 0.893703
  Prefactor  = 1.09157
 **********
 **   18 **HESSE 
 **********

 FCN=   5755.806     FROM HESSE     STATUS=OK           431 CALLS     3398 TOTAL
                     EDM=   .73E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     16.313        17.055        .99166E-04   -1.4900    
   2  Prefactor     .10000E-03    3.2174        .13253E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     2.1415        1.7118        .84614E-04   -1.5415    
   4  Prefactor     15.104        27.796        .10305E-03   -1.4931    
   5  norm          .76466        .97992        .88338E-03   -1.5533    
   6  Prefactor     .10000E-03    8.1104        .19445E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     40.832        32.731        .62728E-04   -1.4429    
   8  Prefactor     1.0802        1.7039        .13854E-02   -1.5500    
   9  Prefactor     .10000E-03    10.018        .17065E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          1.5752        1.6551        .95660E-04   -1.5457    
  11  Prefactor     .10000E-03    31.693        .33192E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     1.5506        1.6990        .99188E-04   -1.5459    
  13  Prefactor     6.6815        2.7475        .76041E-04   -1.5191    
  14  Prefactor     .10000E-03    1.7000        .96470E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .41456        .22073        .25058E-04   -1.5579    
  16  norm          .10000E-03    1.0732        .76678E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     20.541        10.660        .88372E-04   -1.4801    
  18  Prefactor     .10000E-03    74.947        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    23.580        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    3.8561        .14500E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    2.2144        .10967E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          10.156        4.6856        .10710E-03   -1.5070    
  23  norm          24.712        21.017        .80579E-04   -1.4713    
  24  Normalizat    .89370        .20786        .25218E-03   -.96682    
  25  Prefactor     1.0916        .22134        .25692E-03   -.89736    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.25525e-09
Minuit parameter uncertainties:
  1  17.0602
  2  1.70494e-05
  3  1.71184
  4  27.82
  5  0.97994
  6  2.02456e-06
  7  32.7458
  8  1.70398
  9  6.6637e-07
  10  1.65514
  11  5.43763e-05
  12  1.69908
  13  2.74752
  14  1.28172e-06
  15  0.220726
  16  2.55891e-06
  17  10.6611
  18  9.65912e-05
  19  2.68647e-05
  20  9.42132e-06
  21  4.64399e-06
  22  4.68572
  23  21.0231
  24  0.208047
  25  0.221526
Done.

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

Extracting fit parameters...

4FGL J1224.4+2436
   Spectrum: PowerLaw
328    Prefactor:  1.000e-04  1.282e-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.092e+00  2.215e-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:  8.937e-01  2.080e-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.71e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.77e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/577414/likelihoodResults_263692801_263952001_4FGL_J1224.4+2436_daily_bin94.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) = 5755.80922347
delta logL = -0.00272993275485

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5755.80649344
delta logL = 9.19972080737e-08

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 'Index     '    1.9160       1.0000          .0000       10.000    
     3 'Normalizat'    .89371       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0916       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=   5755.806     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      201 TOTAL
                     EDM=   .20E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    19.224        .90712E-02** at limit **
   2  Index         1.9066        8.4786        .50000        .41970E-04
   3  Normalizat    .89370        .14648E-01    .44821E-01    .31651E-04
   4  Prefactor     1.0916        .16404E-01    .58100E-01    .25001E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.90663
  Normalizat = 0.893703
  Prefactor  = 1.09157
 **********
 **   18 **HESSE 
 **********

 FCN=   5755.806     FROM HESSE     STATUS=OK            33 CALLS      234 TOTAL
                     EDM=   .49E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.7447        .96814E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9066        5.2624        .50000       -.66705    
   3  Normalizat    .89370        .19493        .25218E-03   -.96682    
   4  Prefactor     1.0916        .21825        .25692E-03   -.89736    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.94498e-09
Minuit parameter uncertainties:
  1  1.79036e-06
  2  6.54249
  3  0.195083
  4  0.218428
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/577414': 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) = 5755.80649333
delta logL = 2.02242517844e-07

Extracting fit parameters...

4FGL J1224.4+2436
   Spectrum: PowerLaw
328    Prefactor:  1.000e-04  1.790e-06  1.000e-04  1.000e+04 ( 1.000e-13)
329        Index:  1.907e+00  6.542e+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:  1.092e+00  2.184e-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:  8.937e-01  1.951e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/577414/cmap_HighResolution_263692801_263952001_4FGL_J1224.4+2436_daily_bin94.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.77e-03', job_status='DONE', photon_flux_upper_limit='3.71e-08', time_completed='2021-09-05 12:30:52.837806', job_id='577414', GAL2='1.09', fit_tolerance='1e-08', EG2='0.89', EG='0.89', time_epoch_completed='1630870252.84', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.09', dlogl='2.02e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.93' WHERE bin_id='94' AND source_name='4FGL J1224.4+2436' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 12:30:52 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0091>
Subject: Job 577414: <4FGL_J1224.4+2436_daily_bin94> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1224.4+2436_daily_bin94 186.116 24.6142 263692801 263952001 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 :                                   700.23 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             275.18 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   900 sec.
    Turnaround time :                            902 sec.

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

