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


Performing analysis on: 4FGL_J1213.7+6423_daily_bin1525
RA = 183.437, Dec = 64.3961
tmin = 634608001, tmax = 634867201
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='421449', job_status='RUN', time_executed='2021-09-05 04:35:51.385226', time_epoch_executed='1630841751.39' WHERE source_name='4FGL J1213.7+6423' and cadence='daily' and bin_id='1525'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/421449

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/421449/ft1_4FGL_J1213.7+6423_daily_bin1525.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/421449/ft2_4FGL_J1213.7+6423_daily_bin1525.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/421449/ft1_4FGL_J1213.7+6423_daily_bin1525.fits outfile=/scratch/kocevski/421449/ft1_filteredMKT_4FGL_J1213.7+6423_daily_bin1525.fits ra=183.437 dec=64.3961 rad=12.0 tmin=634608001.0 tmax=634867201.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 3.10
user 2.89
sys 0.19

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/421449/ft2_4FGL_J1213.7+6423_daily_bin1525.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/421449/ft2_4FGL_J1213.7+6423_daily_bin1525.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/421449/ft1_filteredMKT_4FGL_J1213.7+6423_daily_bin1525.fits evtable="EVENTS" outfile="/scratch/kocevski/421449/ft1_filtered_4FGL_J1213.7+6423_daily_bin1525.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.72
user 0.34
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/421449/ft1_filtered_4FGL_J1213.7+6423_daily_bin1525.fits" evtable="EVENTS" scfile=/scratch/kocevski/421449/ft2_4FGL_J1213.7+6423_daily_bin1525.fits sctable="SC_DATA" outfile=/scratch/kocevski/421449/ltcube_634608001_634867201_4FGL_J1213.7+6423_daily_bin1525.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/421449/ft2_4FGL_J1213.7+6423_daily_bin1525.fits
.....................!
real 13.43
user 13.00
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/421449/ft1_filtered_4FGL_J1213.7+6423_daily_bin1525.fits evtable="EVENTS" scfile=/scratch/kocevski/421449/ft2_4FGL_J1213.7+6423_daily_bin1525.fits sctable="SC_DATA" expcube=/scratch/kocevski/421449/ltcube_634608001_634867201_4FGL_J1213.7+6423_daily_bin1525.fits outfile=/scratch/kocevski/421449/expmap_634608001_634867201_4FGL_J1213.7+6423_daily_bin1525.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/421449/ltcube_634608001_634867201_4FGL_J1213.7+6423_daily_bin1525.fits
.....................!
real 197.30
user 191.06
sys 5.60

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

Setting source of interest to:
4FGL J1213.7+6423 @ 183.437 64.3961

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/421449/ft1_filtered_4FGL_J1213.7+6423_daily_bin1525.fits scfile=/scratch/kocevski/421449/ft2_4FGL_J1213.7+6423_daily_bin1525.fits outfile=/scratch/kocevski/421449/cmap_634608001_634867201_4FGL_J1213.7+6423_daily_bin1525.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=183.437 yref=64.3961 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.53
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/421449/ft1_filtered_4FGL_J1213.7+6423_daily_bin1525.fits scfile=/scratch/kocevski/421449/ft2_4FGL_J1213.7+6423_daily_bin1525.fits outfile=/scratch/kocevski/421449/cmap_HighResolution_634608001_634867201_4FGL_J1213.7+6423_daily_bin1525.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=183.437 yref=64.3961 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.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/421449/ft1_filtered_4FGL_J1213.7+6423_daily_bin1525.fits evtable="EVENTS" scfile=/scratch/kocevski/421449/ft2_4FGL_J1213.7+6423_daily_bin1525.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/421449/Model_4FGL_J1213.7+6423_daily_bin1525.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/421449/ft1_filtered_4FGL_J1213.7+6423_daily_bin1525.fits.....................!
real 52.52
user 51.18
sys 1.14

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/421449/ft1_filtered_4FGL_J1213.7+6423_daily_bin1525.fits', '/scratch/kocevski/421449/ft2_4FGL_J1213.7+6423_daily_bin1525.fits', expMap='/scratch/kocevski/421449/expmap_634608001_634867201_4FGL_J1213.7+6423_daily_bin1525.fits', expCube='/scratch/kocevski/421449/ltcube_634608001_634867201_4FGL_J1213.7+6423_daily_bin1525.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/421449/Model_4FGL_J1213.7+6423_daily_bin1525.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1213.7+6423'

4FGL J1213.7+6423
   Spectrum: PowerLaw
370    Prefactor:  3.253e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
371        Index:  2.471e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
372        Scale:  8.984e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/421449/ft1_filtered_4FGL_J1213.7+6423_daily_bin1525.fits
Spacecraft file(s): /scratch/kocevski/421449/ft2_4FGL_J1213.7+6423_daily_bin1525.fits
Exposure map: /scratch/kocevski/421449/expmap_634608001_634867201_4FGL_J1213.7+6423_daily_bin1525.fits
Exposure cube: /scratch/kocevski/421449/ltcube_634608001_634867201_4FGL_J1213.7+6423_daily_bin1525.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/421449/Model_4FGL_J1213.7+6423_daily_bin1525.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) = 4324.63473663

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.1824       1.0000         .10000E-03   10000.    
     4 'norm      '    1.3433       1.0000         .10000E-03   10000.    
     5 'norm      '    2.2649       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    10000.       1.0000         .10000E-03   10000.    
     8 'Prefactor '    10000.       1.0000         .10000E-03   10000.    
     9 'Prefactor '    10000.       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.7830       1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    3.2753       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    11.082       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    4.9406       1.0000         .10000E-03   10000.    
    26 'Prefactor '    42.287       1.0000         .10000E-03   10000.    
    27 'Prefactor '    5.1565       1.0000         .10000E-03   10000.    
    28 'Prefactor '    1.2438       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10065E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    16.085       1.0000         .10000E-03   10000.    
    31 'Normalizat'    .32574       1.0000         .10000E-01   10.000    
    32 'Prefactor '    1.0986       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7060E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4324.367     FROM MIGRAD    STATUS=CONVERGED    207 CALLS     3883 TOTAL
                     EDM=   .85E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10002E-03    10.406         .0000    ** at limit **
   2  Prefactor     .10171E-03    59.472         .0000    ** at limit **
   3  Prefactor     1.1822        3.1063         .0000       -.58447E-03
   4  norm          1.3432        .67061         .0000        .71782E-03
   5  norm          2.2645        1.9186         .0000       -.12342E-02
   6  Prefactor     .10000E-03    4.4363         .0000    ** at limit **
   7  Prefactor    10000.0        160.99         .0000    ** at limit **
   8  Prefactor    10000.0        67.932         .0000    ** at limit **
   9  Prefactor    10000.0        141.91         .0000    ** at limit **
  10  Prefactor     .10000E-03    5.3297         .0000    ** at limit **
  11  Prefactor     1.7829        1.8858         .0000       -.68049E-03
  12  norm          .10051E-03    68.292         .0000    ** at limit **
  13  norm          .10000E-03    3.5694         .0000    ** at limit **
  14  Prefactor     .10000E-03    3.1922         .0000    ** at limit **
  15  Prefactor     .10151E-03    10.644         .0000    ** at limit **
  16  norm          .10000E-03    1.7853         .0000    ** at limit **
  17  Prefactor     .10090E-03    29.162         .0000    ** at limit **
  18  Prefactor     .10115E-03    10.701         .0000    ** at limit **
  19  Prefactor     .10076E-03    24.692         .0000    ** at limit **
  20  norm          3.2727        4.5749         .0000        .27067E-02
  21  Prefactor     .10000E-03    2.3287         .0000    ** at limit **
  22  norm          11.081        4.1697         .0000        .15854E-02
  23  Prefactor     .10001E-03    9.8979         .0000    ** at limit **
  24  Prefactor     .10000E-03    6.7231         .0000    ** at limit **
  25  Prefactor     4.9317        2.2587         .0000        .33326E-03
  26  Prefactor     42.371        9.1126         .0000        .12362E-02
  27  Prefactor     5.1583        3.7652         .0000        .11001E-02
  28  Prefactor     1.2455        2.4004         .0000       -.17772E-03
  29  Prefactor     .10000E-03    4.1257         .0000    ** at limit **
  30  Prefactor     16.057        2.7308         .0000       -.87109E-03
  31  Normalizat    .32620        .21875         .0000       -.50948E-04
  32  Prefactor     1.0984        .23857         .0000       -.58462E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100017
  Prefactor  = 0.000101708
  Prefactor  = 1.18216
  norm       = 1.34323
  norm       = 2.2645
  Prefactor  = 0.0001
  Prefactor  = 10000
  Prefactor  = 10000
  Prefactor  = 10000
  Prefactor  = 0.0001
  Prefactor  = 1.78292
  norm       = 0.000100507
  norm       = 0.000100003
  Prefactor  = 0.000100003
  Prefactor  = 0.000101507
  norm       = 0.0001
  Prefactor  = 0.0001009
  Prefactor  = 0.000101151
  Prefactor  = 0.000100764
  norm       = 3.27274
  Prefactor  = 0.0001
  norm       = 11.0809
  Prefactor  = 0.000100005
  Prefactor  = 0.000100002
  Prefactor  = 4.93172
  Prefactor  = 42.3714
  Prefactor  = 5.15829
  Prefactor  = 1.2455
  Prefactor  = 0.0001
  Prefactor  = 16.0567
  Normalizat = 0.326201
  Prefactor  = 1.09842
 **********
 **   18 **HESSE 
 **********

 FCN=   4324.367     FROM HESSE     STATUS=OK           713 CALLS     4596 TOTAL
                     EDM=   .17E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10002E-03    10.557        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10171E-03    109.89        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     1.1822        3.1637        .10504E-01   -1.5491    
   4  norm          1.3432        .67632        .78178E-02   -1.5476    
   5  norm          2.2645        1.9371        .68232E-02   -1.5407    
   6  Prefactor     .10000E-03    4.4007        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor    10000.0        419.47        .90712E-02    1.5706    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor    10000.0        145.59        .90712E-02    1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor    10000.0        307.92        .90712E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    5.3302        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     1.7829        1.8775        .78345E-02   -1.5441    
  12  norm          .10051E-03    73.867        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    6.3975        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    6.4209        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10151E-03    16.118        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    1.7858        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10090E-03    31.148        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10115E-03    15.460        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10076E-03    26.629        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          3.2727        4.8719        .55937E-02   -1.5346    
  21  Prefactor     .10000E-03    2.3276        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          11.081        4.1909        .30087E-02   -1.5042    
  23  Prefactor     .10001E-03    9.9964        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    6.7146        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     4.9317        92.882        .45235E-02   -1.5264    
  26  Prefactor     42.371        38.713        .15412E-02   -1.4405    
  27  Prefactor     5.1583        3.8593        .44260E-02   -1.5254    
  28  Prefactor     1.2455        48.853        .10043E-01   -1.5485    
  29  Prefactor     .10000E-03    4.1106        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     16.057        32.336        .24966E-02   -1.4906    
  31  Normalizat    .32620        .21737        .79826E-01   -1.2131    
  32  Prefactor     1.0984        .22498        .37639E-01   -.89517    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.70897e-06
Minuit parameter uncertainties:
  1  0.000852261
  2  0.0274472
  3  3.16414
  4  0.676325
  5  1.93714
  6  3.95216e-05
  7  0.411807
  8  0.0966933
  9  0.0407013
  10  6.67096e-05
  11  1.87753
  12  0.0122552
  13  0.000294633
  14  0.000277736
  15  0.00986039
  16  2.93418e-05
  17  0.0105946
  18  0.00843953
  19  0.00902627
  20  4.87251
  21  2.10579e-06
  22  4.19096
  23  0.000453499
  24  0.00025864
  25  42.8819
  26  38.7357
  27  3.85949
  28  15.6139
  29  3.65388e-05
  30  32.3713
  31  0.217934
  32  0.225173
Done.

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

Extracting fit parameters...

4FGL J1213.7+6423
   Spectrum: PowerLaw
370    Prefactor:  1.012e-04  8.440e-03  1.000e-04  1.000e+04 ( 1.000e-13)
371        Index:  2.471e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
372        Scale:  8.984e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
703    Prefactor:  1.098e+00  2.252e-01  0.000e+00  1.000e+01 ( 1.000e+00)
704        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
705        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
702   Normalization:  3.262e-01  2.179e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 183.437 64.396
Photon Flux Upper Limit: 7.02e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.45e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/421449/likelihoodResults_634608001_634867201_4FGL_J1213.7+6423_daily_bin1525.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) = 4324.36694675
delta logL = -0.000305970517729

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4324.36664144
delta logL = -6.54998075333e-07

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 'Index     '    2.5292       1.0000          .0000       10.000    
     3 'Normalizat'    .32621       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0984       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7060E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   4324.343     FROM MIGRAD    STATUS=FAILED       224 CALLS      415 TOTAL
                     EDM=   .24E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.3508        6561.5        .18142E-01    .38537E-03
   2  Index         1.6602        7.6204        .29922       -.10134E-04
   3  Normalizat    .33061        .58791E-01    .35353E-03    .31627E-03
   4  Prefactor     1.0908        .79794E-01    .22125E-03    .52466E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   4324.343     FROM SIMPLEX   STATUS=UNCHANGED     93 CALLS      508 TOTAL
                     EDM=   .12E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.3508        6561.5        .51113E-03    .38537E-03
   2  Index         1.6602        7.6204        .29216E-02   -.10134E-04
   3  Normalizat    .33061        .58791E-01    .80121E-04    .31627E-03
   4  Prefactor     1.0908        .79794E-01    .31798E-04    .52466E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4324.343     FROM MIGRAD    STATUS=CONVERGED     35 CALLS      543 TOTAL
                     EDM=   .33E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.3507        31.400        .70846E-03    .10399E-04
   2  Index         1.6602        1.1860        .16102E-01    .14488E-05
   3  Normalizat    .33061        .21007        .14141E-04    .31434E-03
   4  Prefactor     1.0908        .23721        .44249E-04    .51847E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.35072
  Index      = 1.66023
  Normalizat = 0.330609
  Prefactor  = 1.09083
 **********
 **   18 **HESSE 
 **********

 FCN=   4324.343     FROM HESSE     STATUS=OK            25 CALLS      568 TOTAL
                     EDM=   .33E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.3507        31.067        .28338E-04   -1.5245    
   2  Index         1.6602        1.1810        .64408E-03   -.73146    
   3  Normalizat    .33061        .20958        .28282E-05   -1.2106    
   4  Prefactor     1.0908        .23673        .88498E-05   -.89760    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.29267e-10
Minuit parameter uncertainties:
  1  25.8064
  2  1.20176
  3  0.210078
  4  0.236954
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/421449': 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): 0
logL (Free Index) = 4324.3427804
delta logL = 0.0238603830476

Extracting fit parameters...

4FGL J1213.7+6423
   Spectrum: PowerLaw
370    Prefactor:  5.351e+00  2.581e+01  1.000e-04  1.000e+04 ( 1.000e-13)
371        Index:  1.660e+00  1.202e+00  0.000e+00  1.000e+01 (-1.000e+00)
372        Scale:  8.984e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
703    Prefactor:  1.091e+00  2.370e-01  0.000e+00  1.000e+01 ( 1.000e+00)
704        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
705        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
702   Normalization:  3.306e-01  2.101e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 183.437 64.396

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/421449/cmap_HighResolution_634608001_634867201_4FGL_J1213.7+6423_daily_bin1525.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.45e-03', job_status='DONE', photon_flux_upper_limit='7.02e-08', time_completed='2021-09-05 04:50:43.912816', job_id='421449', GAL2='1.09', fit_tolerance='1e-08', EG2='0.33', EG='0.33', time_epoch_completed='1630842643.91', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.10', dlogl='2.39e-02', ts2='0.05', photon_index_error='0.00', photon_index='2.47' WHERE bin_id='1525' AND source_name='4FGL J1213.7+6423' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 04:50:43 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0064>
Subject: Job 421449: <4FGL_J1213.7+6423_daily_bin1525> in cluster <slac> Done

Job <4FGL_J1213.7+6423_daily_bin1525> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Sun Sep  5 04:35:34 2021
Job was executed on host(s) <bullet0064>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 04:35:35 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep  5 04:35:35 2021
Terminated at Sun Sep  5 04:50:44 2021
Results reported at Sun Sep  5 04:50:44 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1213.7+6423_daily_bin1525 183.437 64.3961 634608001 634867201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1213.7+6423 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   850.00 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             327.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   909 sec.
    Turnaround time :                            910 sec.

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

