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


Performing analysis on: 4FGL_J1224.4+2436_daily_bin31
RA = 186.116, Dec = 24.6142
tmin = 247363201, tmax = 247622401
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='577297', job_status='RUN', time_executed='2021-09-05 12:16:28.314512', time_epoch_executed='1630869388.31' WHERE source_name='4FGL J1224.4+2436' and cadence='daily' and bin_id='31'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/577297

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/577297/ft1_4FGL_J1224.4+2436_daily_bin31.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/577297/ft2_4FGL_J1224.4+2436_daily_bin31.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/577297/ft1_4FGL_J1224.4+2436_daily_bin31.fits outfile=/scratch/kocevski/577297/ft1_filteredMKT_4FGL_J1224.4+2436_daily_bin31.fits ra=186.116 dec=24.6142 rad=12.0 tmin=247363201.0 tmax=247622401.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.44
user 1.26
sys 0.17

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/577297/ft1_filtered_4FGL_J1224.4+2436_daily_bin31.fits evtable="EVENTS" scfile=/scratch/kocevski/577297/ft2_4FGL_J1224.4+2436_daily_bin31.fits sctable="SC_DATA" expcube=/scratch/kocevski/577297/ltcube_247363201_247622401_4FGL_J1224.4+2436_daily_bin31.fits outfile=/scratch/kocevski/577297/expmap_247363201_247622401_4FGL_J1224.4+2436_daily_bin31.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/577297/ltcube_247363201_247622401_4FGL_J1224.4+2436_daily_bin31.fits
.....................!
real 191.79
user 186.38
sys 4.96

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/577297/ft1_filtered_4FGL_J1224.4+2436_daily_bin31.fits scfile=/scratch/kocevski/577297/ft2_4FGL_J1224.4+2436_daily_bin31.fits outfile=/scratch/kocevski/577297/cmap_247363201_247622401_4FGL_J1224.4+2436_daily_bin31.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.59
user 0.35
sys 0.17

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10865E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.5802       1.0000         .10000E-03   10000.    
     4 'Prefactor '    18.451       1.0000         .10000E-03   10000.    
     5 'norm      '    1.7190       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    13.193       1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.6476       1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.8600       1.0000         .10000E-03   10000.    
    10 'norm      '    1.5899       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.4340       1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.9998       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .54515       1.0000         .10000E-03   10000.    
    15 'norm      '    .46048E-01   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    4.3660       1.0000         .10000E-03   10000.    
    18 'Prefactor '    48.324       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .13607E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    6.1957       1.0000         .10000E-03   10000.    
    23 'norm      '    .18359       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.0281       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.1865       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=   8975.470     FROM MIGRAD    STATUS=CONVERGED    611 CALLS     3013 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  9.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    13.693        .40169E-07** at limit **
   2  Prefactor     .10000E-03    6.8660       -.60703E-07** at limit **
   3  Prefactor     1.5796        1.7373        .24691E-06    .62745E-04
   4  Prefactor     18.458        17.088       -.62713E-06   -.49774E-04
   5  norm          1.7186        .97461        .10263E-06    .78098E-04
   6  Prefactor     .10000E-03    3.4615       -.28300E-07** at limit **
   7  Prefactor     13.200        18.242        .46098E-07   -.15960E-04
   8  Prefactor     2.6469        2.1342        .31987E-07    .11655E-04
   9  Prefactor     3.8597        2.4087        .22049E-07    .32991E-07
  10  norm          1.5896        1.5816        .34323E-07   -.15987E-04
  11  Prefactor     .10000E-03    1.2473        .16573E-08** at limit **
  12  Prefactor     2.4338        1.6928        .40816E-07   -.34234E-04
  13  Prefactor     4.9994        2.1663        .51149E-07   -.12886E-03
  14  Prefactor     .54219        2.4747       -.67298E-06   -.37154E-04
  15  norm          .45928E-01    .23429        .14021E-05    .17606E-02
  16  norm          .10000E-03    1.4425        .94862E-09** at limit **
  17  Prefactor     4.3640        5.3074        .25018E-07   -.42878E-04
  18  Prefactor     48.303        31.740        .79135E-06    .83694E-05
  19  Prefactor     .10000E-03    330.54        .30768E-04** at limit **
  20  Prefactor     .10000E-03    2.3284       -.11602E-06** at limit **
  21  norm          .10000E-03    2.2644       -.72278E-07** at limit **
  22  norm          6.1989        3.3569        .23918E-06   -.25506E-03
  23  norm          .21977E-01    13.428        .46261E-05   -.64533E-03
  24  Normalizat    1.0281        .15953       -.20419E-05   -.36783E-03
  25  Prefactor     1.1867        .16444       -.11042E-06   -.41137E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.57962
  Prefactor  = 18.4581
  norm       = 1.71858
  Prefactor  = 0.0001
  Prefactor  = 13.1999
  Prefactor  = 2.64694
  Prefactor  = 3.85973
  norm       = 1.58957
  Prefactor  = 0.0001
  Prefactor  = 2.43379
  Prefactor  = 4.99938
  Prefactor  = 0.542195
  norm       = 0.0459284
  norm       = 0.0001
  Prefactor  = 4.364
  Prefactor  = 48.3028
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 6.19889
  norm       = 0.021977
  Normalizat = 1.02814
  Prefactor  = 1.18674
 **********
 **   18 **HESSE 
 **********

 FCN=   8975.470     FROM HESSE     STATUS=OK           441 CALLS     3454 TOTAL
                     EDM=   .28E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    13.774        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    6.9333        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     1.5796        1.7203        .12329E-03   -1.5457    
   4  Prefactor     18.458        17.101        .46620E-03   -1.4848    
   5  norm          1.7186        .96632        .67249E-04   -1.5446    
   6  Prefactor     .10000E-03    3.6092        .34324E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     13.200        18.233        .11028E-03   -1.4981    
   8  Prefactor     2.6469        2.1264        .11673E-03   -1.5383    
   9  Prefactor     3.8597        2.4010        .10949E-03   -1.5315    
  10  norm          1.5896        1.5822        .11262E-03   -1.5456    
  11  Prefactor     .10000E-03    1.2482        .10333E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     2.4338        1.6866        .97222E-04   -1.5396    
  13  Prefactor     4.9994        2.1593        .86097E-04   -1.5261    
  14  Prefactor     .54219        9.5299        .27691E-02   -1.5561    
  15  norm          .45928E-01    .23591        .18502E-03   -1.5665    
  16  norm          .10000E-03    1.4520        .11097E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     4.3640        5.2971        .19276E-03   -1.5290    
  18  Prefactor     48.303        31.770        .57684E-04   -1.4317    
  19  Prefactor     .10000E-03    332.83        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    2.3385        .14115E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    2.3320        .27835E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          6.1989        3.3585        .12257E-03   -1.5210    
  23  norm          .21977E-01    9.9776        .10212       -1.5678    
  24  Normalizat    1.0281        .18522        .25784E-03   -.92093    
  25  Prefactor     1.1867        .19346        .26584E-03   -.86740    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.8376e-08
Minuit parameter uncertainties:
  1  1.51699e-05
  2  3.22566e-06
  3  1.72032
  4  17.1054
  5  0.966328
  6  2.30576e-06
  7  18.2408
  8  2.12644
  9  2.40105
  10  1.58229
  11  4.66596e-07
  12  1.68664
  13  2.15931
  14  4.54666
  15  0.207959
  16  2.10104e-07
  17  5.29764
  18  31.7812
  19  0.0023927
  20  1.7829e-06
  21  5.51025e-06
  22  3.35859
  23  0.934568
  24  0.185341
  25  0.193576
Done.

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

Extracting fit parameters...

4FGL J1224.4+2436
   Spectrum: PowerLaw
328    Prefactor:  5.422e-01  4.547e+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.187e+00  1.936e-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.028e+00  1.853e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.02
Ra Dec: 186.116 24.614
Photon Flux Upper Limit: 5.16e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.85e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/577297/likelihoodResults_247363201_247622401_4FGL_J1224.4+2436_daily_bin31.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) = 8974.4948679
delta logL = 0.975582141446

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8974.47400905
delta logL = 0.996440991043

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .34925       1.0000         .10000E-03   10000.    
     2 'Index     '    3.4608       1.0000          .0000       10.000    
     3 'Normalizat'    .95464       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2279       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=   8974.474     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      235 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .34846        3.3026        .90870E-02    .25607E-02
   2  Index         3.4618        1.8358        .84220E-01    .31620E-03
   3  Normalizat    .95443        .33631E-01    .45596E-01   -.88117E-05
   4  Prefactor     1.2281        .36921E-01    .59209E-01   -.17749E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.348462
  Index      = 3.4618
  Normalizat = 0.954425
  Prefactor  = 1.22806
 **********
 **   18 **HESSE 
 **********

 FCN=   8974.474     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      270 TOTAL
                     EDM=   .35E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .34846        9.1620        .41196E-03   -1.5590    
   2  Index         3.4618        3.5283        .44885E-02   -.31271    
   3  Normalizat    .95443        .14133        .26640E-03   -.94573    
   4  Prefactor     1.2281        .15160        .26184E-03   -.85472    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.53512e-10
Minuit parameter uncertainties:
  1  3.57367
  2  3.97483
  3  0.14139
  4  0.151649
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/577297': 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) = 8974.47400809
delta logL = 0.996441945839

Extracting fit parameters...

4FGL J1224.4+2436
   Spectrum: PowerLaw
328    Prefactor:  3.485e-01  3.574e+00  1.000e-04  1.000e+04 ( 1.000e-13)
329        Index:  3.462e+00  3.975e+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.228e+00  1.516e-01  0.000e+00  1.000e+01 ( 1.000e+00)
603        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
604        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
601   Normalization:  9.544e-01  1.414e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.12
Ra Dec: 186.116 24.614
Photon Index (Free Index): 3.46 +/- 3.97
Photon Flux (Free Index): 6.46e-08 +/- 5.61e-08
Energy Flux (Free Index): 1.09e-05 +/- 1.05e-05

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/577297/cmap_HighResolution_247363201_247622401_4FGL_J1224.4+2436_daily_bin31.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.85e-03', comment='SUCCESS', energy_flux2='1.09e-05', dlogl='9.96e-01', photon_flux2='6.46e-08', job_status='DONE', time_completed='2021-09-05 12:31:51.760395', photon_index_error2='3.97', photon_index2='3.46', ts='0.02', fit_tolerance='1e-08', GAL='1.19', photon_index_error='0.00', photon_flux_upper_limit='5.16e-08', energy_flux_error2='1.05e-05', EG='1.03', time_epoch_completed='1630870311.76', return_code='0', job_id='577297', GAL2='1.23', EG2='0.95', return_code2='102', photon_flux_error2='5.61e-08', ts2='2.12', photon_index='1.93' WHERE bin_id='31' AND source_name='4FGL J1224.4+2436' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 12:31:51 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0104>
Subject: Job 577297: <4FGL_J1224.4+2436_daily_bin31> in cluster <slac> Done

Job <4FGL_J1224.4+2436_daily_bin31> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sun Sep  5 12:15:45 2021
Job was executed on host(s) <bullet0104>, 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:31:52 2021
Results reported at Sun Sep  5 12:31:52 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1224.4+2436_daily_bin31 186.116 24.6142 247363201 247622401 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 :                                   912.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             332.10 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   966 sec.
    Turnaround time :                            967 sec.

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

