/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)


Waiting 181 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

number of points = 7405
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1224.4+2436_daily_bin93
RA = 186.116, Dec = 24.6142
tmin = 263433601, tmax = 263692801
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='577413', job_status='RUN', time_executed='2021-09-05 12:19:03.091020', time_epoch_executed='1630869543.09' WHERE source_name='4FGL J1224.4+2436' and cadence='daily' and bin_id='93'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/577413

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/577413/ft1_4FGL_J1224.4+2436_daily_bin93.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/577413/ft2_4FGL_J1224.4+2436_daily_bin93.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/577413/ft1_4FGL_J1224.4+2436_daily_bin93.fits outfile=/scratch/kocevski/577413/ft1_filteredMKT_4FGL_J1224.4+2436_daily_bin93.fits ra=186.116 dec=24.6142 rad=12.0 tmin=263433601.0 tmax=263692801.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.50
user 3.24
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/577413/ft1_filtered_4FGL_J1224.4+2436_daily_bin93.fits evtable="EVENTS" scfile=/scratch/kocevski/577413/ft2_4FGL_J1224.4+2436_daily_bin93.fits sctable="SC_DATA" expcube=/scratch/kocevski/577413/ltcube_263433601_263692801_4FGL_J1224.4+2436_daily_bin93.fits outfile=/scratch/kocevski/577413/expmap_263433601_263692801_4FGL_J1224.4+2436_daily_bin93.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/577413/ltcube_263433601_263692801_4FGL_J1224.4+2436_daily_bin93.fits
.....................!
real 189.61
user 184.94
sys 4.34

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/577413/ft1_filtered_4FGL_J1224.4+2436_daily_bin93.fits scfile=/scratch/kocevski/577413/ft2_4FGL_J1224.4+2436_daily_bin93.fits outfile=/scratch/kocevski/577413/cmap_263433601_263692801_4FGL_J1224.4+2436_daily_bin93.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/577413/ft1_filtered_4FGL_J1224.4+2436_daily_bin93.fits scfile=/scratch/kocevski/577413/ft2_4FGL_J1224.4+2436_daily_bin93.fits outfile=/scratch/kocevski/577413/cmap_HighResolution_263433601_263692801_4FGL_J1224.4+2436_daily_bin93.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.40
sys 0.13

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.6635       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.0033       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    2.8536       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .71359       1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.7103       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .96398       1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.8704       1.0000         .10000E-03   10000.    
    10 'norm      '    .10362E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.1370       1.0000         .10000E-03   10000.    
    13 'Prefactor '    8.8393       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .18080       1.0000         .10000E-03   10000.    
    16 'norm      '    2.8406       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10122E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10214E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    23.052       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .70027       1.0000         .10000E-03   10000.    
    21 'norm      '    1.3731       1.0000         .10000E-03   10000.    
    22 'norm      '    5.3286       1.0000         .10000E-03   10000.    
    23 'norm      '    25.450       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.6592       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .45522       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=   5341.058     FROM MIGRAD    STATUS=CONVERGED    581 CALLS     3567 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.6446        15.574        .34254E-05   -.39227E-04
   2  Prefactor     .10000E-03    6.3570       -.93916E-08** at limit **
   3  Prefactor     1.0041        1.0448       -.94150E-07    .12878E-03
   4  Prefactor     .10000E-03    31.334       -.39655E-06** at limit **
   5  norm          2.8541        1.3798       -.13794E-06   -.89105E-05
   6  Prefactor     .71449        4.7144       -.28333E-05   -.12082E-02
   7  Prefactor     3.7070        38.120       -.56455E-05   -.33371E-04
   8  Prefactor     .96433        3.3183       -.91621E-06   -.88573E-03
   9  Prefactor     4.8713        3.8924       -.86621E-07    .70728E-04
  10  norm          .10000E-03    2.5364       -.31211E-07** at limit **
  11  Prefactor     .10000E-03    3.0158        .25920E-07** at limit **
  12  Prefactor     4.1361        2.8572       -.10994E-06   -.72693E-04
  13  Prefactor     8.8386        3.3271       -.44893E-08    .39061E-04
  14  Prefactor     .10000E-03    3.2772       -.15086E-07** at limit **
  15  norm          .18083        .16235       -.25193E-07    .38366E-03
  16  norm          2.8416        4.2032       -.10437E-05   -.36269E-03
  17  Prefactor     .10000E-03    10.217        .54442E-07** at limit **
  18  Prefactor     .10000E-03    66.117       -.37506E-06** at limit **
  19  Prefactor     23.008        73.741       -.81748E-04   -.82659E-04
  20  Prefactor     .70248        5.9411       -.27155E-05   -.90112E-04
  21  norm          1.3783        5.7835        .92457E-05   -.16397E-03
  22  norm          5.3292        3.7905       -.85636E-07    .15196E-03
  23  norm          25.451        20.765       -.15040E-06    .13869E-04
  24  Normalizat    1.6588        .21434        .19736E-05    .11883E-03
  25  Prefactor     .45557        .21956        .23988E-05    .15776E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.6446
  Prefactor  = 0.0001
  Prefactor  = 1.00415
  Prefactor  = 0.0001
  norm       = 2.85407
  Prefactor  = 0.714486
  Prefactor  = 3.707
  Prefactor  = 0.964328
  Prefactor  = 4.87127
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.13608
  Prefactor  = 8.83857
  Prefactor  = 0.0001
  norm       = 0.180828
  norm       = 2.84162
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 23.0081
  Prefactor  = 0.702482
  norm       = 1.37828
  norm       = 5.32922
  norm       = 25.4508
  Normalizat = 1.65884
  Prefactor  = 0.455569
 **********
 **   18 **HESSE 
 **********

 FCN=   5341.058     FROM HESSE     STATUS=OK           433 CALLS     4000 TOTAL
                     EDM=   .32E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.6446        15.558        .16879E-03   -1.5233    
   2  Prefactor     .10000E-03    6.3835        .17991E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     1.0041        1.0604        .73567E-04   -1.5508    
   4  Prefactor     .10000E-03    31.509        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          2.8541        1.3808        .57111E-04   -1.5370    
   6  Prefactor     .71449        4.6358        .29073E-03   -1.5539    
   7  Prefactor     3.7070        38.195        .20965E-03   -1.5323    
   8  Prefactor     .96433        3.1658        .20566E-03   -1.5512    
   9  Prefactor     4.8713        3.7751        .11253E-03   -1.5267    
  10  norm          .10000E-03    2.6013        .22621E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    3.0268        .12394E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     4.1361        2.8451        .97308E-04   -1.5301    
  13  Prefactor     8.8386        3.3236        .76422E-04   -1.5113    
  14  Prefactor     .10000E-03    3.2965        .12904E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .18083        .16444        .26850E-04   -1.5623    
  16  norm          2.8416        4.1891        .17487E-03   -1.5371    
  17  Prefactor     .10000E-03    10.294        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    67.110        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     23.008        71.960        .83427E-04   -1.4748    
  20  Prefactor     .70248        13.052        .33754E-02   -1.5540    
  21  norm          1.3783        5.4639        .30206E-03   -1.5473    
  22  norm          5.3292        3.7839        .11553E-03   -1.5246    
  23  norm          25.451        20.761        .79406E-04   -1.4699    
  24  Normalizat    1.6588        .24128        .21068E-03   -.73408    
  25  Prefactor     .45557        .24157        .39500E-03   -1.1406    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.19657e-08
Minuit parameter uncertainties:
  1  15.5693
  2  1.97254e-06
  3  1.06047
  4  3.12613e-05
  5  1.38078
  6  3.64004
  7  23.8174
  8  3.16632
  9  3.77533
  10  4.39403e-06
  11  2.69827e-06
  12  2.84517
  13  3.32366
  14  5.56616e-06
  15  0.164439
  16  4.18948
  17  1.34433e-05
  18  0.000271563
  19  72.2336
  20  6.05713
  21  5.46585
  22  3.78405
  23  20.7671
  24  0.241455
  25  0.242119
Done.

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

Extracting fit parameters...

4FGL J1224.4+2436
   Spectrum: PowerLaw
328    Prefactor:  1.000e-04  5.566e-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:  4.556e-01  2.421e-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.659e+00  2.415e-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: 5.41e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.04e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/577413/likelihoodResults_263433601_263692801_4FGL_J1224.4+2436_daily_bin93.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) = 5341.05920853
delta logL = -0.00142756236892

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5341.05778091
delta logL = 5.40567270946e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.9140       1.0000          .0000       10.000    
     3 'Normalizat'    1.6589       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .45557       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6050E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5341.058     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      245 TOTAL
                     EDM=   .89E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10037E-03    44.973        .12968E-02** at limit **
   2  Index         1.8815        6.8720        .50000        .20951E-04
   3  Normalizat    1.6588        .18168E-01    .21068E-03   -.64755E-05
   4  Prefactor     .45557        .19095E-01    .39500E-03   -.28781E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100375
  Index      = 1.88152
  Normalizat = 1.65884
  Prefactor  = 0.455566
 **********
 **   18 **HESSE 
 **********

 FCN=   5341.058     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      274 TOTAL
                     EDM=   .43E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10037E-03    208.78        .25935E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.8815        5.5861        .50000       -.67346    
   3  Normalizat    1.6588        .41771E-01    .84271E-05   -.73408    
   4  Prefactor     .45557        .43852E-01    .15800E-04   -1.1406    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.33708e-08
Minuit parameter uncertainties:
  1  0.017754
  2  523.776
  3  0.0417717
  4  0.0438555
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/577413': 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) = 5341.05778076
delta logL = 2.08639903576e-07

Extracting fit parameters...

4FGL J1224.4+2436
   Spectrum: PowerLaw
328    Prefactor:  1.004e-04  1.775e-02  1.000e-04  1.000e+04 ( 1.000e-13)
329        Index:  1.882e+00  5.238e+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:  4.556e-01  4.386e-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.659e+00  4.177e-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/577413/cmap_HighResolution_263433601_263692801_4FGL_J1224.4+2436_daily_bin93.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.04e-03', job_status='DONE', photon_flux_upper_limit='5.41e-08', time_completed='2021-09-05 12:31:10.614866', job_id='577413', GAL2='0.46', fit_tolerance='1e-08', EG2='1.66', EG='1.66', time_epoch_completed='1630870270.61', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.46', dlogl='2.09e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.93' WHERE bin_id='93' AND source_name='4FGL J1224.4+2436' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 12:31:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0243>
Subject: Job 577413: <4FGL_J1224.4+2436_daily_bin93> in cluster <slac> Done

Job <4FGL_J1224.4+2436_daily_bin93> 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) <bullet0243>, 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:31:11 2021
Results reported at Sun Sep  5 12:31:11 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1224.4+2436_daily_bin93 186.116 24.6142 263433601 263692801 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 :                                   724.34 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             293.87 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   917 sec.
    Turnaround time :                            920 sec.

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

