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


Performing analysis on: 4FGL_J1224.4+2436_daily_bin554
RA = 186.116, Dec = 24.6142
tmin = 382924801, tmax = 383184001
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='580878', job_status='RUN', time_executed='2021-09-05 12:25:47.299659', time_epoch_executed='1630869947.3' WHERE source_name='4FGL J1224.4+2436' and cadence='daily' and bin_id='554'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/580878

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/580878/ft1_4FGL_J1224.4+2436_daily_bin554.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/580878/ft2_4FGL_J1224.4+2436_daily_bin554.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/580878/ft1_4FGL_J1224.4+2436_daily_bin554.fits outfile=/scratch/kocevski/580878/ft1_filteredMKT_4FGL_J1224.4+2436_daily_bin554.fits ra=186.116 dec=24.6142 rad=12.0 tmin=382924801.0 tmax=383184001.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 4.44
user 4.21
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/580878/ft1_filtered_4FGL_J1224.4+2436_daily_bin554.fits evtable="EVENTS" scfile=/scratch/kocevski/580878/ft2_4FGL_J1224.4+2436_daily_bin554.fits sctable="SC_DATA" expcube=/scratch/kocevski/580878/ltcube_382924801_383184001_4FGL_J1224.4+2436_daily_bin554.fits outfile=/scratch/kocevski/580878/expmap_382924801_383184001_4FGL_J1224.4+2436_daily_bin554.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/580878/ltcube_382924801_383184001_4FGL_J1224.4+2436_daily_bin554.fits
.....................!
real 190.05
user 184.94
sys 4.74

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/580878/ft1_filtered_4FGL_J1224.4+2436_daily_bin554.fits scfile=/scratch/kocevski/580878/ft2_4FGL_J1224.4+2436_daily_bin554.fits outfile=/scratch/kocevski/580878/cmap_382924801_383184001_4FGL_J1224.4+2436_daily_bin554.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.68
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/580878/ft1_filtered_4FGL_J1224.4+2436_daily_bin554.fits scfile=/scratch/kocevski/580878/ft2_4FGL_J1224.4+2436_daily_bin554.fits outfile=/scratch/kocevski/580878/cmap_HighResolution_382924801_383184001_4FGL_J1224.4+2436_daily_bin554.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.57
user 0.37
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    4.0621       1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.7594       1.0000         .10000E-03   10000.    
     5 'norm      '    6.4374       1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.3662       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    8.3691       1.0000         .10000E-03   10000.    
    10 'norm      '    11.289       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.4658       1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.5992       1.0000         .10000E-03   10000.    
    14 'Prefactor '    8.7267       1.0000         .10000E-03   10000.    
    15 'norm      '    .49877       1.0000         .10000E-03   10000.    
    16 'norm      '    6.0040       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    13.659       1.0000         .10000E-03   10000.    
    20 'Prefactor '    4.4050       1.0000         .10000E-03   10000.    
    21 'norm      '    .10085E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    4.7536       1.0000         .10000E-03   10000.    
    23 'norm      '    .10652E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .82973       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0812       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6050E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5783.727     FROM MIGRAD    STATUS=CONVERGED    103 CALLS     2024 TOTAL
                     EDM=   .65E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 10.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6.1636        .19908E-05** at limit **
   2  Prefactor     .10000E-03    6.5086       -.37166E-06** at limit **
   3  Prefactor     4.0622        2.0196       -.74303E-06    .40649E-05
   4  Prefactor     5.7598        1.0057       -.43678E-07    .10199E-03
   5  norm          6.4375        1.6537        .25974E-06   -.55347E-04
   6  Prefactor     3.3665        2.7701       -.14738E-05   -.92851E-05
   7  Prefactor     .10008E-03    30.505       -.34948E-04** at limit **
   8  Prefactor     .10000E-03    .66807       -.83361E-06** at limit **
   9  Prefactor     8.3692        3.3439        .13833E-05    .13300E-03
  10  norm          11.290        1.2124        .14930E-09    .18934E-02
  11  Prefactor     .10000E-03    2.7705       -.28815E-05** at limit **
  12  Prefactor     4.4659        2.3929       -.87035E-06   -.38370E-03
  13  Prefactor     3.5991        2.5444        .30968E-07   -.72974E-04
  14  Prefactor     8.7267        1.0093        .32812E-07   -.20053E-03
  15  norm          .49876        .25594       -.66691E-06   -.30288E-03
  16  norm          6.0042        1.0339       -.39002E-07   -.69183E-03
  17  Prefactor     .10000E-03    13.770        .11964E-04** at limit **
  18  Prefactor     .10106E-03    43.294        .29476E-04** at limit **
  19  Prefactor     13.625        9.8762       -.14161E-04    .96490E-02
  20  Prefactor     4.4050        1.0698        .18452E-06    .12324E-02
  21  norm          .10000E-03    1.5264       -.17094E-05** at limit **
  22  norm          4.7530        3.8510       -.37967E-05   -.39099E-03
  23  norm          .10305E-03    73.080       -.71186E-04** at limit **
  24  Normalizat    .82960        .20923        .13892E-04    .10527E-04
  25  Prefactor     1.0813        .23147       -.70982E-07    .10864E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.06217
  Prefactor  = 5.7598
  norm       = 6.43751
  Prefactor  = 3.36654
  Prefactor  = 0.000100082
  Prefactor  = 0.0001
  Prefactor  = 8.36924
  norm       = 11.2896
  Prefactor  = 0.0001
  Prefactor  = 4.46589
  Prefactor  = 3.59907
  Prefactor  = 8.72673
  norm       = 0.498758
  norm       = 6.00423
  Prefactor  = 0.0001
  Prefactor  = 0.000101064
  Prefactor  = 13.6246
  Prefactor  = 4.40496
  norm       = 0.0001
  norm       = 4.75296
  norm       = 0.000103053
  Normalizat = 0.829603
  Prefactor  = 1.08134
 **********
 **   18 **HESSE 
 **********

 FCN=   5783.727     FROM HESSE     STATUS=OK           489 CALLS     2513 TOTAL
                     EDM=   .19E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6.1506        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    6.4635        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     4.0622        2.0239        .50013E-02   -1.5305    
   4  Prefactor     5.7598        23.711        .41840E-02   -1.5228    
   5  norm          6.4375        1.6621        .39547E-02   -1.5200    
   6  Prefactor     3.3665        2.7724        .55140E-02   -1.5341    
   7  Prefactor     .10008E-03    30.334        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    .66610        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     8.3692        3.3527        .34644E-02   -1.5129    
  10  norm          11.290        4.1965        .29808E-02   -1.5036    
  11  Prefactor     .10000E-03    2.7582        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     4.4659        2.7067        .47635E-02   -1.5285    
  13  Prefactor     3.5991        2.5946        .53248E-02   -1.5329    
  14  Prefactor     8.7267        6.8652        .33922E-02   -1.5117    
  15  norm          .49876        .26121        .59187E-02   -1.5567    
  16  norm          6.0042        5.1589        .40967E-02   -1.5218    
  17  Prefactor     .10000E-03    13.387        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10106E-03    43.421        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     13.625        51.328        .27094E-02   -1.4970    
  20  Prefactor     4.4050        6.0105        .47971E-02   -1.5288    
  21  norm          .10000E-03    1.5194        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          4.7530        3.8987        .46136E-02   -1.5272    
  23  norm          .10305E-03    11.421        .13431       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .82960        .18455        .43997E-01   -.98980    
  25  Prefactor     1.0813        .19920        .60357E-01   -.90065    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.85343e-06
Minuit parameter uncertainties:
  1  1.58076e-05
  2  1.67856e-05
  3  2.0239
  4  23.3884
  5  1.66215
  6  2.77246
  7  0.0031465
  8  1.63653e-07
  9  3.35277
  10  4.1966
  11  2.03713e-06
  12  2.70673
  13  2.59472
  14  6.86582
  15  0.261214
  16  5.15927
  17  5.21699e-05
  18  0.0136018
  19  51.4946
  20  6.01129
  21  1.32486e-06
  22  3.89896
  23  0.0118126
  24  0.184688
  25  0.199332
Done.

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

Extracting fit parameters...

4FGL J1224.4+2436
   Spectrum: PowerLaw
328    Prefactor:  8.727e+00  6.866e+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:  1.081e+00  1.993e-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.296e-01  1.847e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.61
Ra Dec: 186.116 24.614
Photon Index (Fixed Index): 1.93 +/- 0.00
Photon Flux (Fixed Index): 3.67e-08 +/- 2.89e-08
Energy Flux (Fixed Index): 3.08e-05 +/- 2.42e-05

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) = 5783.66925491
delta logL = 0.057506951367

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5783.6665241
delta logL = 0.060237761244

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.6928       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0996       1.0000          .0000       10.000    
     3 'Normalizat'    .82107       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0847       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=   5783.667     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      270 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.6883        141.37        .36145E-02    .89140E-04
   2  Index         2.0989        6.0464        .11150        .12781E-03
   3  Normalizat    .82114        .10619        .43885E-01    .12597E-04
   4  Prefactor     1.0847        .87844E-01    .60247E-01    .28760E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.68834
  Index      = 2.09891
  Normalizat = 0.821139
  Prefactor  = 1.08474
 **********
 **   18 **HESSE 
 **********

 FCN=   5783.667     FROM HESSE     STATUS=OK            33 CALLS      303 TOTAL
                     EDM=   .71E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.6883        6.8663        .14173E-03   -1.5153    
   2  Index         2.0989        .51407        .58988E-02   -.61900    
   3  Normalizat    .82114        .20637        .26863E-03   -.99289    
   4  Prefactor     1.0847        .23097        .26643E-03   -.89956    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.0774e-12
Minuit parameter uncertainties:
  1  6.86696
  2  0.515442
  3  0.206565
  4  0.231186
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/580878': 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) = 5783.66652139
delta logL = 0.0602404738265

Extracting fit parameters...

4FGL J1224.4+2436
   Spectrum: PowerLaw
328    Prefactor:  7.688e+00  6.867e+00  1.000e-04  1.000e+04 ( 1.000e-13)
329        Index:  2.099e+00  5.154e-01  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.085e+00  2.312e-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.211e-01  2.066e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.73
Ra Dec: 186.116 24.614
Photon Index (Free Index): 2.10 +/- 0.52
Photon Flux (Free Index): 4.67e-08 +/- 4.21e-08
Energy Flux (Free Index): 2.57e-05 +/- 2.27e-05

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/580878/cmap_HighResolution_382924801_383184001_4FGL_J1224.4+2436_daily_bin554.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.67e-08', energy_flux2='2.57e-05', photon_flux_error='2.89e-08', dlogl='6.02e-02', energy_flux='3.08e-05', photon_flux2='4.67e-08', job_status='DONE', time_completed='2021-09-05 12:35:33.061357', photon_index_error2='0.52', photon_index2='2.10', ts='6.61', fit_tolerance='1e-08', GAL='1.08', photon_index_error='0.00', energy_flux_error2='2.27e-05', EG='0.83', time_epoch_completed='1630870533.06', return_code='0', job_id='580878', GAL2='1.08', EG2='0.82', return_code2='0', energy_flux_error='2.42e-05', photon_flux_error2='4.21e-08', ts2='6.73', photon_index='1.93' WHERE bin_id='554' AND source_name='4FGL J1224.4+2436' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 12:35:33 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0116>
Subject: Job 580878: <4FGL_J1224.4+2436_daily_bin554> in cluster <slac> Done

Job <4FGL_J1224.4+2436_daily_bin554> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Sun Sep  5 12:25:30 2021
Job was executed on host(s) <bullet0116>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 12:25:31 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:25:31 2021
Terminated at Sun Sep  5 12:35:34 2021
Results reported at Sun Sep  5 12:35:34 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1224.4+2436_daily_bin554 186.116 24.6142 382924801 383184001 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 :                                   582.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             328.30 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   602 sec.
    Turnaround time :                            604 sec.

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

