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


Performing analysis on: 4FGL_J0245.4+2408_monthly_bin135
RA = 41.3545, Dec = 24.1498
tmin = 586915201, tmax = 589507201
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='121475', job_status='RUN', time_executed='2021-10-10 23:57:57.479955', time_epoch_executed='1633935477.48' WHERE source_name='4FGL J0245.4+2408' and cadence='monthly' and bin_id='135'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/121475

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

Retrieving the FT1 file...

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

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

Retrieving 457 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/121475/ft1_4FGL_J0245.4+2408_monthly_bin135.fits


Retrieving the FT1 file...

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

Retrieving 457 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/121475/ft2_4FGL_J0245.4+2408_monthly_bin135.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/121475/ft1_4FGL_J0245.4+2408_monthly_bin135.fits outfile=/scratch/kocevski/121475/ft1_filteredMKT_4FGL_J0245.4+2408_monthly_bin135.fits ra=41.3545 dec=24.1498 rad=12.0 tmin=586915201.0 tmax=589507201.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 30.80
user 30.00
sys 0.72

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/121475/ft2_4FGL_J0245.4+2408_monthly_bin135.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/121475/ft2_4FGL_J0245.4+2408_monthly_bin135.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/121475/ft1_filteredMKT_4FGL_J0245.4+2408_monthly_bin135.fits evtable="EVENTS" outfile="/scratch/kocevski/121475/ft1_filtered_4FGL_J0245.4+2408_monthly_bin135.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.84
user 0.63
sys 0.20

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/121475/ft1_filtered_4FGL_J0245.4+2408_monthly_bin135.fits" evtable="EVENTS" scfile=/scratch/kocevski/121475/ft2_4FGL_J0245.4+2408_monthly_bin135.fits sctable="SC_DATA" outfile=/scratch/kocevski/121475/ltcube_586915201_589507201_4FGL_J0245.4+2408_monthly_bin135.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/121475/ft2_4FGL_J0245.4+2408_monthly_bin135.fits
.....................!
real 109.14
user 108.60
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/121475/ft1_filtered_4FGL_J0245.4+2408_monthly_bin135.fits evtable="EVENTS" scfile=/scratch/kocevski/121475/ft2_4FGL_J0245.4+2408_monthly_bin135.fits sctable="SC_DATA" expcube=/scratch/kocevski/121475/ltcube_586915201_589507201_4FGL_J0245.4+2408_monthly_bin135.fits outfile=/scratch/kocevski/121475/expmap_586915201_589507201_4FGL_J0245.4+2408_monthly_bin135.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/121475/ltcube_586915201_589507201_4FGL_J0245.4+2408_monthly_bin135.fits
.....................!
real 191.61
user 185.88
sys 5.31

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

Setting source of interest to:
4FGL J0245.4+2408 @ 41.3545 24.1498

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/121475/ft1_filtered_4FGL_J0245.4+2408_monthly_bin135.fits scfile=/scratch/kocevski/121475/ft2_4FGL_J0245.4+2408_monthly_bin135.fits outfile=/scratch/kocevski/121475/cmap_586915201_589507201_4FGL_J0245.4+2408_monthly_bin135.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=41.3545 yref=24.1498 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.81
user 0.63
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/121475/ft1_filtered_4FGL_J0245.4+2408_monthly_bin135.fits scfile=/scratch/kocevski/121475/ft2_4FGL_J0245.4+2408_monthly_bin135.fits outfile=/scratch/kocevski/121475/cmap_HighResolution_586915201_589507201_4FGL_J0245.4+2408_monthly_bin135.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=41.3545 yref=24.1498 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.78
user 0.63
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/121475/ft1_filtered_4FGL_J0245.4+2408_monthly_bin135.fits evtable="EVENTS" scfile=/scratch/kocevski/121475/ft2_4FGL_J0245.4+2408_monthly_bin135.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/121475/Model_4FGL_J0245.4+2408_monthly_bin135.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/121475/ft1_filtered_4FGL_J0245.4+2408_monthly_bin135.fits.....................!
real 1619.24
user 1614.90
sys 1.58

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/121475/ft1_filtered_4FGL_J0245.4+2408_monthly_bin135.fits', '/scratch/kocevski/121475/ft2_4FGL_J0245.4+2408_monthly_bin135.fits', expMap='/scratch/kocevski/121475/expmap_586915201_589507201_4FGL_J0245.4+2408_monthly_bin135.fits', expCube='/scratch/kocevski/121475/ltcube_586915201_589507201_4FGL_J0245.4+2408_monthly_bin135.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/121475/Model_4FGL_J0245.4+2408_monthly_bin135.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0245.4+2408'

4FGL J0245.4+2408
   Spectrum: PowerLaw
272    Prefactor:  3.151e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
273        Index:  2.676e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
274        Scale:  5.508e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/121475/ft1_filtered_4FGL_J0245.4+2408_monthly_bin135.fits
Spacecraft file(s): /scratch/kocevski/121475/ft2_4FGL_J0245.4+2408_monthly_bin135.fits
Exposure map: /scratch/kocevski/121475/expmap_586915201_589507201_4FGL_J0245.4+2408_monthly_bin135.fits
Exposure cube: /scratch/kocevski/121475/ltcube_586915201_589507201_4FGL_J0245.4+2408_monthly_bin135.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/121475/Model_4FGL_J0245.4+2408_monthly_bin135.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) = 120789.527007

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.6047       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    14.248       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.8214       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10225E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    7.3198       1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.2463       1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.2799       1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.0301       1.0000         .10000E-03   10000.    
    11 'norm      '    6.8273       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .19037       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .54314E-01   1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.7684       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .82798       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.3785       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .34790E-01   1.0000         .10000E-03   10000.    
    20 'norm      '    .10462E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    4.3419       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .11319E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .28922       1.0000         .10000E-03   10000.    
    25 'norm      '    2.3939       1.0000         .10000E-03   10000.    
    26 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.0338       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.0126       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5350E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   120789.4     FROM MIGRAD    STATUS=CONVERGED    753 CALLS     3201 TOTAL
                     EDM=   .43E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.6049        1.2429        .25212E-06    .12513E-04
   2  Prefactor     .10000E-03    7.7193       -.11514E-05** at limit **
   3  Prefactor     14.247        3.5188       -.13197E-05   -.15034E-04
   4  Prefactor     1.8214        1.0244       -.20863E-07    .80255E-05
   5  Prefactor     .10000E-03    .75997        .31885E-07** at limit **
   6  norm          .10000E-03    6.0296        .36163E-06** at limit **
   7  Prefactor     7.3193        9.6905       -.54145E-06   -.44711E-04
   8  Prefactor     3.2479        2.3198       -.45423E-09   -.11906E-03
   9  Prefactor     2.2802        5.5109        .14496E-06   -.21890E-04
  10  Prefactor     1.0328        .85370       -.15929E-06   -.56771E-03
  11  norm          6.8272        .66623       -.87159E-08    .11713E-03
  12  Prefactor     .10000E-03    1.0551       -.28310E-07** at limit **
  13  norm          .19037        .11926        .85333E-07    .50796E-02
  14  Prefactor     .10001E-03    2.1861       -.13085E-06** at limit **
  15  Prefactor     2.7687        3.7472       -.20809E-05   -.25656E-03
  16  Prefactor     .84567        2.4357        .58613E-06   -.77288E-03
  17  Prefactor     .10000E-03    .86224       -.64522E-07** at limit **
  18  Prefactor     1.3807        2.7372        .19660E-06   -.10713E-03
  19  Prefactor     .10002E-03    3.9968       -.12275E-07** at limit **
  20  norm          .10000E-03    .34647       -.11334E-07** at limit **
  21  norm          4.3393        4.9049       -.14645E-05   -.85465E-05
  22  Prefactor     .10000E-03    10.997       -.27236E-06** at limit **
  23  Prefactor     .10001E-03    .27486        .23606E-07** at limit **
  24  Prefactor     .28927        .71175       -.31421E-07   -.36299E-04
  25  norm          2.3940        .65346       -.28692E-07   -.22375E-03
  26  norm          .10000E-03    .55624       -.42039E-07** at limit **
  27  Normalizat    1.0337        .62570E-01    .60676E-06   -.36400E-03
  28  Prefactor     1.0126        .22755E-01   -.58948E-07   -.23643E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 4.6049
  Prefactor  = 0.0001
  Prefactor  = 14.2469
  Prefactor  = 1.82137
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 7.31928
  Prefactor  = 3.24788
  Prefactor  = 2.28024
  Prefactor  = 1.03281
  norm       = 6.82718
  Prefactor  = 0.0001
  norm       = 0.190369
  Prefactor  = 0.000100012
  Prefactor  = 2.76868
  Prefactor  = 0.845671
  Prefactor  = 0.0001
  Prefactor  = 1.38068
  Prefactor  = 0.000100017
  norm       = 0.0001
  norm       = 4.33929
  Prefactor  = 0.0001
  Prefactor  = 0.000100006
  Prefactor  = 0.289271
  norm       = 2.39395
  norm       = 0.0001
  Normalizat = 1.03374
  Prefactor  = 1.01261
 **********
 **   18 **HESSE 
 **********

 FCN=   120789.4     FROM HESSE     STATUS=OK           565 CALLS     3766 TOTAL
                     EDM=   .28E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.6049        1.2456        .93786E-03   -1.5279    
   2  Prefactor     .10000E-03    7.7276        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     14.247        3.4813        .10611E-03   -1.4953    
   4  Prefactor     1.8214        1.0245        .30939E-04   -1.5438    
   5  Prefactor     .10000E-03    .77492        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    6.0455        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     7.3193        9.6966        .14825E-03   -1.5167    
   8  Prefactor     3.2479        2.3676        .11240E-02   -1.5348    
   9  Prefactor     2.2802        5.5057        .13596E-02   -1.5406    
  10  Prefactor     1.0328        2.6427        .25033E-02   -1.5505    
  11  norm          6.8272        .66699        .83865E-04   -1.5185    
  12  Prefactor     .10000E-03    1.0796        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .19037        .10647        .84834E-03   -1.5621    
  14  Prefactor     .10001E-03    2.2085        .17522       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     2.7687        3.6806        .24461E-03   -1.5375    
  16  Prefactor     .84567        11.633        .84941E-02   -1.5524    
  17  Prefactor     .10000E-03    .88951        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     1.3807        2.8299        .18543E-02   -1.5473    
  19  Prefactor     .10002E-03    3.3993        .19643       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    2.2003        .39783E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          4.3393        4.8943        .19331E-03   -1.5291    
  22  Prefactor     .10000E-03    11.024        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10001E-03    .30684        .60315E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .28927        .99583        .44779E-02   -1.5600    
  25  norm          2.3940        .64882        .13661E-03   -1.5399    
  26  norm          .10000E-03    .55727        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    1.0337        .70337E-01    .40533E-03   -.91908    
  28  Prefactor     1.0126        .25748E-01    .15854E-03   -.92310    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.8173e-06
Minuit parameter uncertainties:
  1  1.2456
  2  6.09255e-07
  3  3.48132
  4  1.02449
  5  5.58869e-06
  6  1.08066e-06
  7  9.69864
  8  2.36772
  9  5.50696
  10  2.64297
  11  0.666995
  12  1.27386e-06
  13  0.106473
  14  0.00032391
  15  3.68092
  16  6.27399
  17  1.34545e-06
  18  2.83015
  19  0.000475259
  20  5.03631e-06
  21  4.89472
  22  2.39613e-06
  23  8.91017e-05
  24  0.995884
  25  0.648819
  26  7.98804e-08
  27  0.0703434
  28  0.0257482
Done.

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

Extracting fit parameters...

4FGL J0245.4+2408
   Spectrum: PowerLaw
272    Prefactor:  1.000e-04  1.345e-06  1.000e-04  1.000e+04 ( 1.000e-12)
273        Index:  2.676e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
274        Scale:  5.508e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
532    Prefactor:  1.013e+00  2.575e-02  0.000e+00  1.000e+01 ( 1.000e+00)
533        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
534        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
531   Normalization:  1.034e+00  7.034e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 41.355 24.150
Photon Flux Upper Limit: 1.79e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.40e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/121475/likelihoodResults_586915201_589507201_4FGL_J0245.4+2408_monthly_bin135.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) = 120789.392106
delta logL = -0.00536799049587

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 120789.386739
delta logL = -6.83256075718e-07

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   120789.4     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      213 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.9453        .90712E-02** at limit **
   2  Index         2.6763        6.2728        .50000       -.10346E-05
   3  Normalizat    1.0337        .30018E-02    .91515E-01    .77963E-03
   4  Prefactor     1.0126        .11691E-02    .42971E-01    .69188E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.67627
  Normalizat = 1.03375
  Prefactor  = 1.01261
 **********
 **   18 **HESSE 
 **********

 FCN=   120789.4     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      246 TOTAL
                     EDM=   .68E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    100.87        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.6763        5.9609        .50000       -.48335    
   3  Normalizat    1.0337        .20179E-01    .40533E-03   -.91908    
   4  Prefactor     1.0126        .78773E-02    .15854E-03   -.92310    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.80593e-08
Minuit parameter uncertainties:
  1  0.000255015
  2  503.057
  3  0.0201787
  4  0.00787727
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/121475': 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) = 120789.386738
delta logL = -2.91038304567e-11

Extracting fit parameters...

4FGL J0245.4+2408
   Spectrum: PowerLaw
272    Prefactor:  1.000e-04  2.550e-04  1.000e-04  1.000e+04 ( 1.000e-12)
273        Index:  2.676e+00  5.031e+02  0.000e+00  1.000e+01 (-1.000e+00)
274        Scale:  5.508e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
532    Prefactor:  1.013e+00  7.877e-03  0.000e+00  1.000e+01 ( 1.000e+00)
533        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
534        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
531   Normalization:  1.034e+00  2.018e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 41.355 24.150

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  2.220e+00 [aplpy.core]
Saving /scratch/kocevski/121475/cmap_HighResolution_586915201_589507201_4FGL_J0245.4+2408_monthly_bin135.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.40e-03', job_status='DONE', photon_flux_upper_limit='1.79e-08', time_completed='2021-10-11 02:44:32.030167', job_id='121475', GAL2='1.01', fit_tolerance='1e-08', EG2='1.03', EG='1.03', time_epoch_completed='1633945472.03', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.01', dlogl='-2.91e-11', ts2='-0.00', photon_index_error='0.00', photon_index='2.68' WHERE bin_id='135' AND source_name='4FGL J0245.4+2408' AND cadence='monthly';

Database successfully updated.


Analysis Complete.


Mon Oct 11 02:44:32 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0030>
Subject: Job 121475: <4FGL_J0245.4+2408_monthly_bin135> in cluster <slac> Done

Job <4FGL_J0245.4+2408_monthly_bin135> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sun Oct 10 23:56:02 2021
Job was executed on host(s) <bullet0030>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Oct 10 23:56:04 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Oct 10 23:56:04 2021
Terminated at Mon Oct 11 02:44:32 2021
Results reported at Mon Oct 11 02:44:32 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0245.4+2408_monthly_bin135 41.3545 24.1498 586915201 589507201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0245.4+2408 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   9723.00 sec.
    Max Memory :                                 677 MB
    Average Memory :                             450.57 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   10108 sec.
    Turnaround time :                            10110 sec.

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

