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


Performing analysis on: 4FGL_J0224.2+0700_daily_bin600
RA = 36.0577, Dec = 7.0126
tmin = 394848001, tmax = 395107201
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='355753', job_status='RUN', time_executed='2021-08-15 20:06:00.092914', time_epoch_executed='1629083160.09' WHERE source_name='4FGL J0224.2+0700' and cadence='daily' and bin_id='600'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/355753

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

Retrieving the FT1 file...

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

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

Retrieving 50 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/355753/ft1_4FGL_J0224.2+0700_daily_bin600.fits


Retrieving the FT1 file...

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

Retrieving 50 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/355753/ft2_4FGL_J0224.2+0700_daily_bin600.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/355753/ft1_4FGL_J0224.2+0700_daily_bin600.fits outfile=/scratch/kocevski/355753/ft1_filteredMKT_4FGL_J0224.2+0700_daily_bin600.fits ra=36.0577 dec=7.0126 rad=12.0 tmin=394848001.0 tmax=395107201.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 5.34
user 5.01
sys 0.27

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/355753/ft2_4FGL_J0224.2+0700_daily_bin600.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/355753/ft2_4FGL_J0224.2+0700_daily_bin600.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/355753/ft1_filteredMKT_4FGL_J0224.2+0700_daily_bin600.fits evtable="EVENTS" outfile="/scratch/kocevski/355753/ft1_filtered_4FGL_J0224.2+0700_daily_bin600.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.54
user 0.35
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/355753/ft1_filtered_4FGL_J0224.2+0700_daily_bin600.fits" evtable="EVENTS" scfile=/scratch/kocevski/355753/ft2_4FGL_J0224.2+0700_daily_bin600.fits sctable="SC_DATA" outfile=/scratch/kocevski/355753/ltcube_394848001_395107201_4FGL_J0224.2+0700_daily_bin600.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/355753/ft2_4FGL_J0224.2+0700_daily_bin600.fits
.....................!
real 14.14
user 13.70
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/355753/ft1_filtered_4FGL_J0224.2+0700_daily_bin600.fits evtable="EVENTS" scfile=/scratch/kocevski/355753/ft2_4FGL_J0224.2+0700_daily_bin600.fits sctable="SC_DATA" expcube=/scratch/kocevski/355753/ltcube_394848001_395107201_4FGL_J0224.2+0700_daily_bin600.fits outfile=/scratch/kocevski/355753/expmap_394848001_395107201_4FGL_J0224.2+0700_daily_bin600.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/355753/ltcube_394848001_395107201_4FGL_J0224.2+0700_daily_bin600.fits
.....................!
real 194.44
user 187.98
sys 5.54

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 169 point sources and 0 extended sources

Setting source of interest to:
4FGL J0224.2+0700 @ 36.0577 7.0126

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/355753/ft1_filtered_4FGL_J0224.2+0700_daily_bin600.fits scfile=/scratch/kocevski/355753/ft2_4FGL_J0224.2+0700_daily_bin600.fits outfile=/scratch/kocevski/355753/cmap_394848001_395107201_4FGL_J0224.2+0700_daily_bin600.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=36.0577 yref=7.0126 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.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/355753/ft1_filtered_4FGL_J0224.2+0700_daily_bin600.fits scfile=/scratch/kocevski/355753/ft2_4FGL_J0224.2+0700_daily_bin600.fits outfile=/scratch/kocevski/355753/cmap_HighResolution_394848001_395107201_4FGL_J0224.2+0700_daily_bin600.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=36.0577 yref=7.0126 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.57
user 0.40
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/355753/ft1_filtered_4FGL_J0224.2+0700_daily_bin600.fits evtable="EVENTS" scfile=/scratch/kocevski/355753/ft2_4FGL_J0224.2+0700_daily_bin600.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/355753/Model_4FGL_J0224.2+0700_daily_bin600.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/355753/ft1_filtered_4FGL_J0224.2+0700_daily_bin600.fits.....................!
real 85.64
user 84.15
sys 1.23

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/355753/ft1_filtered_4FGL_J0224.2+0700_daily_bin600.fits', '/scratch/kocevski/355753/ft2_4FGL_J0224.2+0700_daily_bin600.fits', expMap='/scratch/kocevski/355753/expmap_394848001_395107201_4FGL_J0224.2+0700_daily_bin600.fits', expCube='/scratch/kocevski/355753/ltcube_394848001_395107201_4FGL_J0224.2+0700_daily_bin600.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/355753/Model_4FGL_J0224.2+0700_daily_bin600.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0224.2+0700'

4FGL J0224.2+0700
   Spectrum: PowerLaw
251    Prefactor:  3.952e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
252        Index:  2.502e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
253        Scale:  9.262e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/355753/ft1_filtered_4FGL_J0224.2+0700_daily_bin600.fits
Spacecraft file(s): /scratch/kocevski/355753/ft2_4FGL_J0224.2+0700_daily_bin600.fits
Exposure map: /scratch/kocevski/355753/expmap_394848001_395107201_4FGL_J0224.2+0700_daily_bin600.fits
Exposure cube: /scratch/kocevski/355753/ltcube_394848001_395107201_4FGL_J0224.2+0700_daily_bin600.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/355753/Model_4FGL_J0224.2+0700_daily_bin600.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) = 6826.77394584

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 'norm      '    50.592       1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.8123       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10087E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    9.8170       1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.3268       1.0000         .10000E-03   10000.    
     7 'norm      '    .30908       1.0000         .10000E-03   10000.    
     8 'Prefactor '    24.531       1.0000         .10000E-03   10000.    
     9 'Prefactor '    78.248       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    124.72       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10560       1.0000         .10000E-03   10000.    
    13 'Prefactor '    14.738       1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.6303       1.0000         .10000E-03   10000.    
    15 'Prefactor '    6.1290       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10096E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    37.062       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10038E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .47750       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10579E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    2.8186       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .75360       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.0256       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5330E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6826.771     FROM MIGRAD    STATUS=CONVERGED    753 CALLS     3827 TOTAL
                     EDM=   .25E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.2912       -.16407E-07** at limit **
   2  norm          50.588        24.071       -.23056E-06   -.11241E-03
   3  Prefactor     3.8120        5.1699        .35665E-06    .10059E-04
   4  Prefactor     .10000E-03    1.5464        .17269E-06** at limit **
   5  norm          9.8159        6.4375        .76189E-07    .51228E-05
   6  Prefactor     2.3294        3.3591        .28099E-06   -.16004E-03
   7  norm          .30907        .59845        .15487E-06    .61099E-03
   8  Prefactor     24.518        29.745       -.17705E-06   -.36114E-05
   9  Prefactor     78.264        50.631        .24729E-05    .20044E-03
  10  Prefactor     .10000E-03    3.6503        .50674E-07** at limit **
  11  Prefactor     124.73        85.142        .88088E-06    .60862E-04
  12  Prefactor     .12647E-01    5.3363       -.10404E-06    .11923E-04
  13  Prefactor     14.734        21.645        .69868E-06    .42862E-04
  14  Prefactor     3.6347        10.496        .45994E-07   -.66788E-04
  15  Prefactor     6.1401        9.4791       -.18798E-08   -.36940E-04
  16  norm          .10000E-03    .16247        .56345E-07** at limit **
  17  Prefactor     .10000E-03    16.087       -.35725E-06** at limit **
  18  Prefactor     .10000E-03    17.280        .72714E-06** at limit **
  19  norm          37.067        15.378        .22347E-06    .11908E-03
  20  Prefactor     .10000E-03    5.4602        .54544E-07** at limit **
  21  Prefactor     .10000E-03    24.103        .48916E-06** at limit **
  22  Prefactor     .10000E-03    23.389       -.20214E-06** at limit **
  23  Prefactor     .10000E-03    3.0495       -.55013E-07** at limit **
  24  norm          .10000E-03    20.514       -.83272E-06** at limit **
  25  norm          .47659        4.2537        .26211E-05   -.31185E-03
  26  Prefactor     .10000E-03    3.6770       -.44256E-07** at limit **
  27  norm          2.8173        5.8984        .32532E-06   -.10161E-03
  28  Normalizat    .75349        .18440       -.40607E-06   -.12654E-03
  29  Prefactor     1.0257        .10908       -.80394E-06   -.12672E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 50.5879
  Prefactor  = 3.81201
  Prefactor  = 0.0001
  norm       = 9.81594
  Prefactor  = 2.32944
  norm       = 0.309067
  Prefactor  = 24.5181
  Prefactor  = 78.2644
  Prefactor  = 0.0001
  Prefactor  = 124.728
  Prefactor  = 0.012647
  Prefactor  = 14.7337
  Prefactor  = 3.63473
  Prefactor  = 6.14012
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 37.0668
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.476595
  Prefactor  = 0.0001
  norm       = 2.81729
  Normalizat = 0.75349
  Prefactor  = 1.02571
 **********
 **   18 **HESSE 
 **********

 FCN=   6826.771     FROM HESSE     STATUS=OK           565 CALLS     4392 TOTAL
                     EDM=   .63E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.3043        .12211E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          50.588        24.111        .56382E-04   -1.4284    
   3  Prefactor     3.8120        5.1571        .20672E-03   -1.5317    
   4  Prefactor     .10000E-03    3.0706        .19772E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          9.8159        6.4069        .12789E-03   -1.5081    
   6  Prefactor     2.3294        3.3199        .16032E-03   -1.5403    
   7  norm          .30907        .48357        .86676E-03   -1.5597    
   8  Prefactor     24.518        29.595        .80877E-04   -1.4717    
   9  Prefactor     78.264        52.847        .45398E-04   -1.3936    
  10  Prefactor     .10000E-03    3.6761        .15409E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     124.73        85.666        .36042E-04   -1.3470    
  12  Prefactor     .12647E-01    6.2955        .57604E-01   -1.5686    
  13  Prefactor     14.734        21.652        .10433E-03   -1.4940    
  14  Prefactor     3.6347        10.473        .21204E-03   -1.5327    
  15  Prefactor     6.1401        9.1939        .16217E-03   -1.5212    
  16  norm          .10000E-03    .18867        .62861E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    16.114        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    17.478        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          37.067        15.415        .65832E-04   -1.4490    
  20  Prefactor     .10000E-03    5.4638        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    24.189        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    23.401        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    3.0874        .14085E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    21.108        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .47659        4.5320        .32825E-03   -1.5570    
  26  Prefactor     .10000E-03    9.3441        .30700E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          2.8173        5.8890        .24227E-03   -1.5372    
  28  Normalizat    .75349        .19942        .34764E-03   -1.0182    
  29  Prefactor     1.0257        .11841        .17793E-03   -.91877    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.33841e-10
Minuit parameter uncertainties:
  1  3.10342e-06
  2  24.1155
  3  5.15767
  4  1.51022e-05
  5  6.40732
  6  3.32018
  7  0.483573
  8  29.6125
  9  52.8787
  10  1.61533e-06
  11  85.7514
  12  0.562164
  13  21.6639
  14  10.4781
  15  9.19599
  16  8.87561e-07
  17  5.04025e-05
  18  8.33586e-05
  19  15.4164
  20  1.96366e-06
  21  6.57387e-05
  22  2.34274e-05
  23  1.97876e-06
  24  7.45083e-05
  25  2.93931
  26  9.21247e-05
  27  5.8902
  28  0.199612
  29  0.118436
Done.

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

Extracting fit parameters...

4FGL J0224.2+0700
   Spectrum: PowerLaw
251    Prefactor:  2.452e+01  2.961e+01  1.000e-04  1.000e+04 ( 1.000e-13)
252        Index:  2.502e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
253        Scale:  9.262e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
530    Prefactor:  1.026e+00  1.184e-01  0.000e+00  1.000e+01 ( 1.000e+00)
531        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
532        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
529   Normalization:  7.535e-01  1.996e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.02
Ra Dec: 36.058 7.013
Photon Index (Fixed Index): 2.50 +/- 0.00
Photon Flux (Fixed Index): 4.29e-08 +/- 5.17e-08
Energy Flux (Fixed Index): 1.24e-05 +/- 1.50e-05

TS (Fixed Index): 1.02
Ra Dec: 36.058 7.013
Photon Flux Upper Limit: 1.47e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.14e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/355753/likelihoodResults_394848001_395107201_4FGL_J0224.2+0700_daily_bin600.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): 0
logL (Free Index) = 6825.18868322
delta logL = 1.58281497008

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6825.12760064
delta logL = 1.64389755334

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6825.128     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      288 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .16967        1.2194        .40251E-02    .13931E-02
   2  Index         5.8228        2.2316        .97495E-01    .16226E-03
   3  Normalizat    .63613        .57555E-01    .84641E-01    .43773E-04
   4  Prefactor     1.0695        .33787E-01    .38881E-01    .22006E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.16967
  Index      = 5.82281
  Normalizat = 0.636129
  Prefactor  = 1.06949
 **********
 **   18 **HESSE 
 **********

 FCN=   6825.128     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      321 TOTAL
                     EDM=   .33E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .16967        2.4897        .18090E-04   -1.5626    
   2  Index         5.8228        3.4353        .38433E-02    .16531    
   3  Normalizat    .63613        .18384        .37492E-03   -1.0647    
   4  Prefactor     1.0695        .10552        .17460E-03   -.90448    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.3023e-07
Minuit parameter uncertainties:
  1  1.29958
  2  3.80036
  3  0.184018
  4  0.105539
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/355753': 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) = 6825.12759963
delta logL = 1.64389856635

Extracting fit parameters...

4FGL J0224.2+0700
   Spectrum: PowerLaw
251    Prefactor:  1.697e-01  1.300e+00  1.000e-04  1.000e+04 ( 1.000e-13)
252        Index:  5.823e+00  3.800e+00  0.000e+00  1.000e+01 (-1.000e+00)
253        Scale:  9.262e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
530    Prefactor:  1.069e+00  1.055e-01  0.000e+00  1.000e+01 ( 1.000e+00)
531        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
532        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
529   Normalization:  6.361e-01  1.840e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.84
Ra Dec: 36.058 7.013
Photon Index (Free Index): 5.82 +/- 3.80
Photon Flux (Free Index): 1.51e-07 +/- 8.36e-08
Energy Flux (Free Index): 1.90e-05 +/- 1.10e-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/355753/cmap_HighResolution_394848001_395107201_4FGL_J0224.2+0700_daily_bin600.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.14e-02', comment='SUCCESS', photon_flux='4.29e-08', energy_flux2='1.90e-05', photon_flux_error='5.17e-08', dlogl='1.64e+00', energy_flux='1.24e-05', photon_flux2='1.51e-07', job_status='DONE', time_completed='2021-08-15 20:21:20.274077', photon_index_error2='3.80', photon_index2='5.82', ts='1.02', fit_tolerance='1e-08', GAL='1.03', photon_index_error='0.00', photon_flux_upper_limit='1.47e-07', energy_flux_error2='1.10e-05', EG='0.75', time_epoch_completed='1629084080.27', return_code='0', job_id='355753', GAL2='1.07', EG2='0.64', return_code2='102', energy_flux_error='1.50e-05', photon_flux_error2='8.36e-08', ts2='4.84', photon_index='2.50' WHERE bin_id='600' AND source_name='4FGL J0224.2+0700' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 15 20:21:20 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0085>
Subject: Job 355753: <4FGL_J0224.2+0700_daily_bin600> in cluster <slac> Done

Job <4FGL_J0224.2+0700_daily_bin600> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sun Aug 15 20:05:29 2021
Job was executed on host(s) <bullet0085>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 15 20:05:37 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Aug 15 20:05:37 2021
Terminated at Sun Aug 15 20:21:20 2021
Results reported at Sun Aug 15 20:21:20 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0224.2+0700_daily_bin600 36.0577 7.0126 394848001 395107201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0224.2+0700 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   899.23 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             314.55 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   945 sec.
    Turnaround time :                            951 sec.

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

