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


Performing analysis on: 4FGL_J1224.4+2436_daily_bin27
RA = 186.116, Dec = 24.6142
tmin = 246326401, tmax = 246585601
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='577289', job_status='RUN', time_executed='2021-09-05 12:16:18.439149', time_epoch_executed='1630869378.44' WHERE source_name='4FGL J1224.4+2436' and cadence='daily' and bin_id='27'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/577289

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/577289/ft1_4FGL_J1224.4+2436_daily_bin27.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/577289/ft2_4FGL_J1224.4+2436_daily_bin27.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/577289/ft1_4FGL_J1224.4+2436_daily_bin27.fits outfile=/scratch/kocevski/577289/ft1_filteredMKT_4FGL_J1224.4+2436_daily_bin27.fits ra=186.116 dec=24.6142 rad=12.0 tmin=246326401.0 tmax=246585601.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.49
user 1.28
sys 0.17

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/577289/ft1_filtered_4FGL_J1224.4+2436_daily_bin27.fits evtable="EVENTS" scfile=/scratch/kocevski/577289/ft2_4FGL_J1224.4+2436_daily_bin27.fits sctable="SC_DATA" expcube=/scratch/kocevski/577289/ltcube_246326401_246585601_4FGL_J1224.4+2436_daily_bin27.fits outfile=/scratch/kocevski/577289/expmap_246326401_246585601_4FGL_J1224.4+2436_daily_bin27.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/577289/ltcube_246326401_246585601_4FGL_J1224.4+2436_daily_bin27.fits
.....................!
real 192.33
user 186.51
sys 5.35

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/577289/ft1_filtered_4FGL_J1224.4+2436_daily_bin27.fits scfile=/scratch/kocevski/577289/ft2_4FGL_J1224.4+2436_daily_bin27.fits outfile=/scratch/kocevski/577289/cmap_246326401_246585601_4FGL_J1224.4+2436_daily_bin27.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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/577289/ft1_filtered_4FGL_J1224.4+2436_daily_bin27.fits scfile=/scratch/kocevski/577289/ft2_4FGL_J1224.4+2436_daily_bin27.fits outfile=/scratch/kocevski/577289/cmap_HighResolution_246326401_246585601_4FGL_J1224.4+2436_daily_bin27.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.55
user 0.36
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.4972       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    3.6046       1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.7454       1.0000         .10000E-03   10000.    
     7 'Prefactor '    24.506       1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.9360       1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.5066       1.0000         .10000E-03   10000.    
    10 'norm      '    7.5039       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .25047E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.7355       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .49794E-01   1.0000         .10000E-03   10000.    
    16 'norm      '    1.3002       1.0000         .10000E-03   10000.    
    17 'Prefactor '    9.9973       1.0000         .10000E-03   10000.    
    18 'Prefactor '    30.897       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    3.2491       1.0000         .10000E-03   10000.    
    21 'norm      '    6.6369       1.0000         .10000E-03   10000.    
    22 'norm      '    1.6916       1.0000         .10000E-03   10000.    
    23 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.5912       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .57579       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=   9368.168     FROM MIGRAD    STATUS=CONVERGED     78 CALLS     2012 TOTAL
                     EDM=   .96E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.9895        .14298E-04** at limit **
   2  Prefactor     .10000E-03    5.0634       -.19074E-05** at limit **
   3  Prefactor     3.4972        1.5482       -.30497E-07    .10273E-03
   4  Prefactor     .10000E-03    6.3759       -.18398E-04** at limit **
   5  norm          3.6047        1.1845       -.14575E-07   -.28778E-03
   6  Prefactor     1.7456        1.0859        .79237E-06    .13716E-02
   7  Prefactor     24.510        1.0989        .99980E-07   -.43861E-03
   8  Prefactor     1.9359        1.5969        .34941E-07   -.79991E-04
   9  Prefactor     2.5065        1.1386       -.31596E-06   -.94873E-03
  10  norm          7.5039        2.6150       -.16832E-07    .78954E-04
  11  Prefactor     .10000E-03    .43859       -.33108E-05** at limit **
  12  Prefactor     .10000E-03    .65426        .20580E-06** at limit **
  13  Prefactor     4.7355        2.0324        .86457E-07    .46454E-04
  14  Prefactor     .10000E-03    .93641        .40475E-06** at limit **
  15  norm          .49779E-01    .11879        .21254E-07   -.32666E-02
  16  norm          1.3002        1.5383        .77617E-08   -.11583E-04
  17  Prefactor     9.9974        1.0033        .46229E-07   -.13040E-03
  18  Prefactor     30.896        1.0054        .18164E-08   -.18235E-03
  19  Prefactor     .10002E-03    98.185       -.11463E-04** at limit **
  20  Prefactor     3.2497        1.5452        .31891E-05    .19713E-02
  21  norm          6.6373        1.0335        .47251E-06    .25854E-03
  22  norm          1.6911        2.3207       -.15348E-05    .20431E-03
  23  norm          .10000E-03    8.2610        .37222E-05** at limit **
  24  Normalizat    1.5912        .17600       -.30391E-06   -.17497E-04
  25  Prefactor     .57586        .18066        .31726E-07    .80687E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 3.49715
  Prefactor  = 0.0001
  norm       = 3.60466
  Prefactor  = 1.74555
  Prefactor  = 24.5102
  Prefactor  = 1.9359
  Prefactor  = 2.50647
  norm       = 7.50392
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.73553
  Prefactor  = 0.0001
  norm       = 0.0497791
  norm       = 1.30015
  Prefactor  = 9.99736
  Prefactor  = 30.8956
  Prefactor  = 0.000100021
  Prefactor  = 3.24971
  norm       = 6.63726
  norm       = 1.69107
  norm       = 0.000100003
  Normalizat = 1.5912
  Prefactor  = 0.575856
 **********
 **   18 **HESSE 
 **********

 FCN=   9368.168     FROM HESSE     STATUS=OK           491 CALLS     2503 TOTAL
                     EDM=   .86E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6.2017        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    5.0213        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     3.4972        1.5521        .54051E-02   -1.5334    
   4  Prefactor     .10000E-03    6.7215        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          3.6047        1.1874        .53205E-02   -1.5328    
   6  Prefactor     1.7456        2.5580        .79365E-02   -1.5444    
   7  Prefactor     24.510        23.693        .20230E-02   -1.4717    
   8  Prefactor     1.9359        1.7332        .74609E-02   -1.5430    
   9  Prefactor     2.5065        2.1044        .64525E-02   -1.5391    
  10  norm          7.5039        2.6227        .36601E-02   -1.5160    
  11  Prefactor     .10000E-03    2.9079        .58776E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    .64922        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     4.7355        2.0577        .46226E-02   -1.5273    
  14  Prefactor     .10000E-03    .93724        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .49779E-01    .12078        .92691E-02   -1.5663    
  16  norm          1.3002        1.5462        .96886E-02   -1.5480    
  17  Prefactor     9.9974        7.3562        .31683E-02   -1.5075    
  18  Prefactor     30.896        20.214        .18021E-02   -1.4596    
  19  Prefactor     .10002E-03    98.058        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     3.2497        4.4702        .56174E-02   -1.5347    
  21  norm          6.6373        4.6663        .38941E-02   -1.5193    
  22  norm          1.6911        2.3801        .80907E-02   -1.5448    
  23  norm          .10000E-03    8.2798        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.5912        .15713        .50334E-01   -.75247    
  25  Prefactor     .57586        .16054        .82022E-01   -1.0861    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.61035e-09
Minuit parameter uncertainties:
  1  0.00021066
  2  7.71015e-05
  3  1.55213
  4  9.82995e-05
  5  1.18744
  6  2.5582
  7  23.7021
  8  1.73325
  9  2.10442
  10  2.6227
  11  4.13148e-05
  12  1.13917e-05
  13  2.05777
  14  3.13606e-05
  15  0.120785
  16  1.54629
  17  7.35686
  18  20.2184
  19  0.00286051
  20  4.47068
  21  4.66654
  22  2.38023
  23  0.000336602
  24  0.157174
  25  0.160669
Done.

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

Extracting fit parameters...

4FGL J1224.4+2436
   Spectrum: PowerLaw
328    Prefactor:  1.000e-04  3.136e-05  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:  5.759e-01  1.607e-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.591e+00  1.572e-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: 2.26e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.69e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/577289/likelihoodResults_246326401_246585601_4FGL_J1224.4+2436_daily_bin27.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) = 9368.16832658
delta logL = -1.50232081069e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9368.1683118
delta logL = -2.39344444708e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10279E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.8859       1.0000          .0000       10.000    
     3 'Normalizat'    1.5912       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .57590       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=   9368.168     FROM MIGRAD    STATUS=FAILED        89 CALLS      246 TOTAL
                     EDM=   .22E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10161E-03    22.094        .93589E-03** at limit **
   2  Index         1.8165        6.7291        .50000        .12622E-03
   3  Normalizat    1.5912        .18302E-01    .22251E-03    .34450E-03
   4  Prefactor     .57586        .19042E-01    .36330E-03    .26399E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   9368.168     FROM SIMPLEX   STATUS=PROGRESS     123 CALLS      369 TOTAL
                     EDM=   .54E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10110E-03    22.094        .12113E-03** at limit **
   2  Index         1.8132        6.7291        .11680E-02    .12622E-03
   3  Normalizat    1.5912        .18302E-01    .12290E-04    .34450E-03
   4  Prefactor     .57582        .19042E-01    .20748E-04    .26399E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   9368.168     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      421 TOTAL
                     EDM=   .35E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    22.944        .18718E-02** at limit **
   2  Index         1.4738        7.9490        .50000        .40664E-06
   3  Normalizat    1.5912        .17548E-01    .44503E-04   -.24105E-03
   4  Prefactor     .57585        .18258E-01    .14532E-04   -.15021E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.47376
  Normalizat = 1.5912
  Prefactor  = 0.575854
 **********
 **   18 **HESSE 
 **********

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

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    99.925        .37436E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.4738        5.8625        .50000       -.78277    
   3  Normalizat    1.5912        .40224E-01    .89006E-05   -.75247    
   4  Prefactor     .57585        .41844E-01    .29064E-05   -1.0861    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.51837e-09
Minuit parameter uncertainties:
  1  5.13596e-05
  2  533.076
  3  0.0402248
  4  0.0418463
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/577289': 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) = 9368.16830199
delta logL = 9.57076917985e-06

Extracting fit parameters...

4FGL J1224.4+2436
   Spectrum: PowerLaw
328    Prefactor:  1.000e-04  5.136e-05  1.000e-04  1.000e+04 ( 1.000e-13)
329        Index:  1.474e+00  5.331e+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:  5.759e-01  4.185e-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.591e+00  4.022e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/577289/cmap_HighResolution_246326401_246585601_4FGL_J1224.4+2436_daily_bin27.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.69e-03', job_status='DONE', photon_flux_upper_limit='2.26e-08', time_completed='2021-09-05 12:30:49.787166', job_id='577289', GAL2='0.58', fit_tolerance='1e-08', EG2='1.59', EG='1.59', time_epoch_completed='1630870249.79', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.58', dlogl='9.57e-06', ts2='-0.00', photon_index_error='0.00', photon_index='1.93' WHERE bin_id='27' AND source_name='4FGL J1224.4+2436' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 12:30:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0034>
Subject: Job 577289: <4FGL_J1224.4+2436_daily_bin27> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1224.4+2436_daily_bin27 186.116 24.6142 246326401 246585601 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 :                                   858.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             369.70 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   904 sec.
    Turnaround time :                            906 sec.

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

