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


Performing analysis on: 4FGL_J1224.4+2436_daily_bin41
RA = 186.116, Dec = 24.6142
tmin = 249955201, tmax = 250214401
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='577314', job_status='RUN', time_executed='2021-09-05 12:16:25.927489', time_epoch_executed='1630869385.93' WHERE source_name='4FGL J1224.4+2436' and cadence='daily' and bin_id='41'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/577314

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/577314/ft1_4FGL_J1224.4+2436_daily_bin41.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/577314/ft2_4FGL_J1224.4+2436_daily_bin41.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/577314/ft1_4FGL_J1224.4+2436_daily_bin41.fits outfile=/scratch/kocevski/577314/ft1_filteredMKT_4FGL_J1224.4+2436_daily_bin41.fits ra=186.116 dec=24.6142 rad=12.0 tmin=249955201.0 tmax=250214401.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.16

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/577314/ft2_4FGL_J1224.4+2436_daily_bin41.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/577314/ft1_filteredMKT_4FGL_J1224.4+2436_daily_bin41.fits evtable="EVENTS" outfile="/scratch/kocevski/577314/ft1_filtered_4FGL_J1224.4+2436_daily_bin41.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.49
user 0.33
sys 0.14

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/577314/ft1_filtered_4FGL_J1224.4+2436_daily_bin41.fits evtable="EVENTS" scfile=/scratch/kocevski/577314/ft2_4FGL_J1224.4+2436_daily_bin41.fits sctable="SC_DATA" expcube=/scratch/kocevski/577314/ltcube_249955201_250214401_4FGL_J1224.4+2436_daily_bin41.fits outfile=/scratch/kocevski/577314/expmap_249955201_250214401_4FGL_J1224.4+2436_daily_bin41.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/577314/ltcube_249955201_250214401_4FGL_J1224.4+2436_daily_bin41.fits
.....................!
real 190.02
user 185.13
sys 4.09

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/577314/ft1_filtered_4FGL_J1224.4+2436_daily_bin41.fits scfile=/scratch/kocevski/577314/ft2_4FGL_J1224.4+2436_daily_bin41.fits outfile=/scratch/kocevski/577314/cmap_249955201_250214401_4FGL_J1224.4+2436_daily_bin41.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.58
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/577314/ft1_filtered_4FGL_J1224.4+2436_daily_bin41.fits scfile=/scratch/kocevski/577314/ft2_4FGL_J1224.4+2436_daily_bin41.fits outfile=/scratch/kocevski/577314/cmap_HighResolution_249955201_250214401_4FGL_J1224.4+2436_daily_bin41.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.52
user 0.38
sys 0.12

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .48027E-02   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    7.6723       1.0000         .10000E-03   10000.    
     5 'norm      '    4.9667       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10345E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.6651       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    5.3090       1.0000         .10000E-03   10000.    
    11 'Prefactor '    7.1094       1.0000         .10000E-03   10000.    
    12 'Prefactor '    5.7688       1.0000         .10000E-03   10000.    
    13 'Prefactor '    10.104       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10061E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .27857       1.0000         .10000E-03   10000.    
    16 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    10.975       1.0000         .10000E-03   10000.    
    18 'Prefactor '    12.171       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    11.901       1.0000         .10000E-03   10000.    
    21 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.0624       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .99852       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=   6702.966     FROM MIGRAD    STATUS=CONVERGED    604 CALLS     2522 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.4163       -.80369E-08** at limit **
   2  Prefactor     .10008E-03    38.011        .11107E-04** at limit **
   3  Prefactor     .10000E-03    .47039       -.61367E-07** at limit **
   4  Prefactor     7.5931        24.099        .43621E-05    .17224E-03
   5  norm          4.9664        1.5946       -.39435E-07   -.43674E-04
   6  Prefactor     .10000E-03    2.4483        .20794E-06** at limit **
   7  Prefactor     .10000E-03    13.490       -.63848E-06** at limit **
   8  Prefactor     1.6646        2.4951       -.12404E-05   -.78813E-03
   9  Prefactor     .10000E-03    1.5369        .62265E-06** at limit **
  10  norm          5.3090        2.9891       -.10951E-05   -.37358E-03
  11  Prefactor     7.1087        5.7855       -.46435E-07   -.11285E-04
  12  Prefactor     5.7688        2.8360        .26738E-06   -.20800E-03
  13  Prefactor     10.103        3.0322       -.14966E-06   -.81575E-03
  14  Prefactor     .10000E-03    6.9228       -.25229E-06** at limit **
  15  norm          .27853        .23427       -.93079E-07   -.30505E-02
  16  norm          .10005E-03    5.8688       -.11878E-05** at limit **
  17  Prefactor     10.974        8.0626        .71308E-07   -.14221E-03
  18  Prefactor     12.170        15.646       -.20555E-06   -.17056E-04
  19  Prefactor     .10000E-03    31.088        .46146E-05** at limit **
  20  Prefactor     11.899        7.5387       -.17542E-06   -.65103E-04
  21  norm          .10000E-03    2.2117       -.16761E-06** at limit **
  22  norm          .10000E-03    .87480       -.75691E-07** at limit **
  23  norm          .10000E-03    9.7161       -.10399E-05** at limit **
  24  Normalizat    1.0627        .18067       -.67370E-06   -.34118E-03
  25  Prefactor     .99818        .19348        .25830E-05   -.42057E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100078
  Prefactor  = 0.0001
  Prefactor  = 7.5931
  norm       = 4.96641
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.66465
  Prefactor  = 0.0001
  norm       = 5.30896
  Prefactor  = 7.10875
  Prefactor  = 5.76876
  Prefactor  = 10.1032
  Prefactor  = 0.0001
  norm       = 0.278526
  norm       = 0.00010005
  Prefactor  = 10.9737
  Prefactor  = 12.1695
  Prefactor  = 0.000100003
  Prefactor  = 11.8995
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Normalizat = 1.06273
  Prefactor  = 0.998183
 **********
 **   18 **HESSE 
 **********

 FCN=   6702.966     FROM HESSE     STATUS=OK           427 CALLS     2949 TOTAL
                     EDM=   .70E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.4181        .14779E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10008E-03    44.318        .39118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    .47668        .54828E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     7.5931        24.502        .14478E-03   -1.5157    
   5  norm          4.9664        1.5931        .55575E-04   -1.5262    
   6  Prefactor     .10000E-03    2.4858        .12488E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    13.582        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     1.6646        2.4642        .14917E-03   -1.5450    
   9  Prefactor     .10000E-03    2.6212        .19059E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          5.3090        2.9975        .49244E-03   -1.5247    
  11  Prefactor     7.1087        5.7859        .15045E-03   -1.5175    
  12  Prefactor     5.7688        2.8382        .89319E-04   -1.5228    
  13  Prefactor     10.103        3.0232        .36618E-03   -1.5072    
  14  Prefactor     .10000E-03    7.0843        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .27853        .22252        .33787E-03   -1.5602    
  16  norm          .10005E-03    11.023        .31506E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     10.974        8.0530        .12094E-03   -1.5045    
  18  Prefactor     12.170        15.641        .11482E-03   -1.5010    
  19  Prefactor     .10000E-03    31.519        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     11.899        7.5331        .11612E-03   -1.5018    
  21  norm          .10000E-03    2.2363        .11890E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    .87911        .74779E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    9.7472        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.0627        .20580        .24642E-03   -.90958    
  25  Prefactor     .99818        .21849        .27704E-03   -.92790    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.01322e-09
Minuit parameter uncertainties:
  1  1.89186e-06
  2  0.00371004
  3  1.34296e-06
  4  24.534
  5  1.59313
  6  1.13797e-05
  7  0.000144558
  8  2.46437
  9  5.94202e-07
  10  2.99761
  11  5.7864
  12  2.83827
  13  3.02328
  14  6.8251e-05
  15  0.222518
  16  0.00148373
  17  8.05384
  18  15.6463
  19  0.000653789
  20  7.53367
  21  5.49078e-06
  22  1.58393e-06
  23  8.2402e-05
  24  0.205953
  25  0.218688
Done.

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

Extracting fit parameters...

4FGL J1224.4+2436
   Spectrum: PowerLaw
328    Prefactor:  1.000e-04  6.825e-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:  9.982e-01  2.187e-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.063e+00  2.060e-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.95e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.43e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/577314/likelihoodResults_249955201_250214401_4FGL_J1224.4+2436_daily_bin41.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) = 6702.96646913
delta logL = -0.000673516821735

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6702.96579492
delta logL = 7.00420969224e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .15157E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0556       1.0000          .0000       10.000    
     3 'Normalizat'    1.0622       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99872       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=   6702.410     FROM MIGRAD    STATUS=CONVERGED    124 CALLS      286 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .58500        10.448        .90712E-02    .21126E-02
   2  Index         3.1872        2.3954        .89108E-01    .25480E-03
   3  Normalizat    1.0071        .39997E-01    .57021E-01    .25523E-03
   4  Prefactor     1.0261        .43835E-01    .46251E-01    .52418E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.584998
  Index      = 3.18722
  Normalizat = 1.00712
  Prefactor  = 1.02612
 **********
 **   18 **HESSE 
 **********

 FCN=   6702.410     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      315 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .58500        28.261        .60245E-04   -1.5555    
   2  Index         3.1872        6.5856        .50295E-02   -.37101    
   3  Normalizat    1.0071        .20623        .25215E-03   -.92792    
   4  Prefactor     1.0261        .22555        .27341E-03   -.91864    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.138e-09
Minuit parameter uncertainties:
  1  8.13546
  2  5.21796
  3  0.206397
  4  0.225756
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/577314': 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) = 6702.40974453
delta logL = 0.55605109132

Extracting fit parameters...

4FGL J1224.4+2436
   Spectrum: PowerLaw
328    Prefactor:  5.850e-01  8.135e+00  1.000e-04  1.000e+04 ( 1.000e-13)
329        Index:  3.187e+00  5.218e+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.026e+00  2.258e-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.007e+00  2.064e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.16
Ra Dec: 186.116 24.614
Photon Index (Free Index): 3.19 +/- 5.22
Photon Flux (Free Index): 5.21e-08 +/- 5.36e-08
Energy Flux (Free Index): 9.59e-06 +/- 2.23e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/577314/cmap_HighResolution_249955201_250214401_4FGL_J1224.4+2436_daily_bin41.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.43e-03', comment='SUCCESS', energy_flux2='9.59e-06', dlogl='5.56e-01', photon_flux2='5.21e-08', job_status='DONE', time_completed='2021-09-05 12:28:51.657149', photon_index_error2='5.22', photon_index2='3.19', ts='-0.00', fit_tolerance='1e-08', GAL='1.00', photon_index_error='0.00', photon_flux_upper_limit='5.95e-08', energy_flux_error2='2.23e-05', EG='1.06', time_epoch_completed='1630870131.66', return_code='0', job_id='577314', GAL2='1.03', EG2='1.01', return_code2='102', photon_flux_error2='5.36e-08', ts2='1.16', photon_index='1.93' WHERE bin_id='41' AND source_name='4FGL J1224.4+2436' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 12:28:51 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0072>
Subject: Job 577314: <4FGL_J1224.4+2436_daily_bin41> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1224.4+2436_daily_bin41 186.116 24.6142 249955201 250214401 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 :                                   733.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             331.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   784 sec.
    Turnaround time :                            786 sec.

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

