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


Performing analysis on: 4FGL_J0945.2+5200_daily_bin664
RA = 146.316, Dec = 52.0053
tmin = 411436801, tmax = 411696001
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='475216', job_status='RUN', time_executed='2021-09-01 00:41:06.541634', time_epoch_executed='1630482066.54' WHERE source_name='4FGL J0945.2+5200' and cadence='daily' and bin_id='664'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/475216

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/475216/ft1_4FGL_J0945.2+5200_daily_bin664.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/475216/ft2_4FGL_J0945.2+5200_daily_bin664.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/475216/ft1_4FGL_J0945.2+5200_daily_bin664.fits outfile=/scratch/kocevski/475216/ft1_filteredMKT_4FGL_J0945.2+5200_daily_bin664.fits ra=146.316 dec=52.0053 rad=12.0 tmin=411436801.0 tmax=411696001.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 6.78
user 6.50
sys 0.24

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/475216/ft2_4FGL_J0945.2+5200_daily_bin664.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/475216/ft2_4FGL_J0945.2+5200_daily_bin664.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/475216/ft1_filteredMKT_4FGL_J0945.2+5200_daily_bin664.fits evtable="EVENTS" outfile="/scratch/kocevski/475216/ft1_filtered_4FGL_J0945.2+5200_daily_bin664.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/475216/ft1_filtered_4FGL_J0945.2+5200_daily_bin664.fits" evtable="EVENTS" scfile=/scratch/kocevski/475216/ft2_4FGL_J0945.2+5200_daily_bin664.fits sctable="SC_DATA" outfile=/scratch/kocevski/475216/ltcube_411436801_411696001_4FGL_J0945.2+5200_daily_bin664.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/475216/ft2_4FGL_J0945.2+5200_daily_bin664.fits
.....................!
real 12.22
user 11.70
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/475216/ft1_filtered_4FGL_J0945.2+5200_daily_bin664.fits evtable="EVENTS" scfile=/scratch/kocevski/475216/ft2_4FGL_J0945.2+5200_daily_bin664.fits sctable="SC_DATA" expcube=/scratch/kocevski/475216/ltcube_411436801_411696001_4FGL_J0945.2+5200_daily_bin664.fits outfile=/scratch/kocevski/475216/expmap_411436801_411696001_4FGL_J0945.2+5200_daily_bin664.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/475216/ltcube_411436801_411696001_4FGL_J0945.2+5200_daily_bin664.fits
.....................!
real 190.16
user 185.17
sys 4.19

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

Setting source of interest to:
4FGL J0945.2+5200 @ 146.316 52.0053

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/475216/ft1_filtered_4FGL_J0945.2+5200_daily_bin664.fits scfile=/scratch/kocevski/475216/ft2_4FGL_J0945.2+5200_daily_bin664.fits outfile=/scratch/kocevski/475216/cmap_411436801_411696001_4FGL_J0945.2+5200_daily_bin664.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=146.316 yref=52.0053 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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/475216/ft1_filtered_4FGL_J0945.2+5200_daily_bin664.fits scfile=/scratch/kocevski/475216/ft2_4FGL_J0945.2+5200_daily_bin664.fits outfile=/scratch/kocevski/475216/cmap_HighResolution_411436801_411696001_4FGL_J0945.2+5200_daily_bin664.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=146.316 yref=52.0053 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.39
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/475216/ft1_filtered_4FGL_J0945.2+5200_daily_bin664.fits evtable="EVENTS" scfile=/scratch/kocevski/475216/ft2_4FGL_J0945.2+5200_daily_bin664.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/475216/Model_4FGL_J0945.2+5200_daily_bin664.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/475216/ft1_filtered_4FGL_J0945.2+5200_daily_bin664.fits......................!
real 35.54
user 34.37
sys 1.09

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/475216/ft1_filtered_4FGL_J0945.2+5200_daily_bin664.fits', '/scratch/kocevski/475216/ft2_4FGL_J0945.2+5200_daily_bin664.fits', expMap='/scratch/kocevski/475216/expmap_411436801_411696001_4FGL_J0945.2+5200_daily_bin664.fits', expCube='/scratch/kocevski/475216/ltcube_411436801_411696001_4FGL_J0945.2+5200_daily_bin664.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/475216/Model_4FGL_J0945.2+5200_daily_bin664.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0945.2+5200'

4FGL J0945.2+5200
   Spectrum: PowerLaw
380    Prefactor:  1.732e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
381        Index:  2.718e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
382        Scale:  5.314e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/475216/ft1_filtered_4FGL_J0945.2+5200_daily_bin664.fits
Spacecraft file(s): /scratch/kocevski/475216/ft2_4FGL_J0945.2+5200_daily_bin664.fits
Exposure map: /scratch/kocevski/475216/expmap_411436801_411696001_4FGL_J0945.2+5200_daily_bin664.fits
Exposure cube: /scratch/kocevski/475216/ltcube_411436801_411696001_4FGL_J0945.2+5200_daily_bin664.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/475216/Model_4FGL_J0945.2+5200_daily_bin664.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) = 3002.63283232

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    12.424       1.0000         .10000E-03   10000.    
     2 'norm      '    2.1151       1.0000         .10000E-03   10000.    
     3 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    30.600       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10127E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10109E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    90.555       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    1.8731       1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.3208       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.7096       1.0000         .10000E-03   10000.    
    17 'Prefactor '    39.098       1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    7.1783       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    89.913       1.0000         .10000E-03   10000.    
    24 'Prefactor '    1.4660       1.0000         .10000E-03   10000.    
    25 'norm      '    1.9612       1.0000         .10000E-03   10000.    
    26 'norm      '    .10100E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    35.460       1.0000         .10000E-03   10000.    
    29 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    32 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    33 'norm      '    2.3296       1.0000         .10000E-03   10000.    
    34 'Prefactor '    18.926       1.0000         .10000E-03   10000.    
    35 'Prefactor '    24.124       1.0000         .10000E-03   10000.    
    36 'norm      '    3.2671       1.0000         .10000E-03   10000.    
    37 'Prefactor '    15.415       1.0000         .10000E-03   10000.    
    38 'Normalizat'    1.1233       1.0000         .10000E-01   10.000    
    39 'Prefactor '    .74941       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7480E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   3002.617     FROM MIGRAD    STATUS=CONVERGED   1141 CALLS     7052 TOTAL
                     EDM=   .67E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     12.423        10.411        .10776E-06   -.20623E-04
   2  norm          2.1137        9.2129        .20963E-05   -.27048E-04
   3  norm          .10000E-03    22.514        .16025E-06** at limit **
   4  Prefactor     30.599        20.822        .10792E-06   -.10571E-04
   5  Prefactor     .10000E-03    78.625        .37251E-06** at limit **
   6  Prefactor     .10000E-03    2.4806        .12882E-06** at limit **
   7  Prefactor     .10000E-03    61.366        .93294E-06** at limit **
   8  Prefactor     90.548        110.28       -.11324E-06   -.18218E-04
   9  Prefactor     .10000E-03    1.2591        .12287E-07** at limit **
  10  norm          1.8731        1.0687       -.27893E-07    .89618E-04
  11  norm          .10000E-03    .51082        .17748E-07** at limit **
  12  Prefactor     2.3203        5.5084        .40152E-06   -.36889E-04
  13  Prefactor     .10000E-03    .74890        .16430E-07** at limit **
  14  Prefactor     .10000E-03    5.2420        .29724E-07** at limit **
  15  Prefactor     .10000E-03    7.5772        .84192E-07** at limit **
  16  Prefactor     3.7075        25.650        .70626E-06   -.71519E-05
  17  Prefactor     39.102        37.291        .16970E-05    .15849E-04
  18  norm          .10000E-03    9.6854        .74238E-07** at limit **
  19  Prefactor     .10000E-03    13.886        .58701E-07** at limit **
  20  Prefactor     7.1765        24.578       -.56041E-05   -.17506E-04
  21  Prefactor     .10000E-03    3.9168        .75364E-08** at limit **
  22  norm          .10000E-03    10.236       -.14449E-05** at limit **
  23  Prefactor     89.907        56.542        .75528E-07   -.12388E-04
  24  Prefactor     1.4165        811.87        .19024E-04    .23451E-05
  25  norm          1.9612        1.0839       -.10195E-06   -.87668E-04
  26  norm          .10000E-03    47.133        .17860E-05** at limit **
  27  Prefactor     .10000E-03    3.4688        .10625E-06** at limit **
  28  Prefactor     35.450        64.913        .14829E-06   -.10201E-04
  29  norm          .10000E-03    2.4879        .38023E-06** at limit **
  30  Prefactor     .10000E-03    34.451       -.39720E-06** at limit **
  31  Prefactor     .10000E-03    13.988        .46331E-07** at limit **
  32  norm          .10000E-03    1.4040        .49620E-07** at limit **
  33  norm          2.3296        1.9513       -.25975E-07    .10371E-04
  34  Prefactor     18.934        113.04        .59739E-06    .23933E-05
  35  Prefactor     24.154        440.84        .21099E-06    .34961E-06
  36  norm          3.2670        3.1616       -.26089E-07    .11471E-04
  37  Prefactor     15.346        226.69        .11001E-07   -.17153E-04
  38  Normalizat    1.1236        .25041        .60902E-06   -.14100E-03
  39  Prefactor     .74921        .27162       -.32572E-05   -.28297E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 12.4231
  norm       = 2.11374
  norm       = 0.0001
  Prefactor  = 30.5987
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 90.5482
  Prefactor  = 0.0001
  norm       = 1.87308
  norm       = 0.0001
  Prefactor  = 2.32032
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.70753
  Prefactor  = 39.1023
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.17653
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 89.9067
  Prefactor  = 1.41645
  norm       = 1.96116
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 35.4496
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 2.32959
  Prefactor  = 18.9344
  Prefactor  = 24.1536
  norm       = 3.26705
  Prefactor  = 15.3463
  Normalizat = 1.12356
  Prefactor  = 0.749212
 **********
 **   18 **HESSE 
 **********

 FCN=   3002.617     FROM HESSE     STATUS=OK           928 CALLS     7980 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     12.423        10.405        .11365E-03   -1.5003    
   2  norm          2.1137        9.0000        .28363E-03   -1.5417    
   3  norm          .10000E-03    23.170        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     30.599        20.824        .72431E-04   -1.4601    
   5  Prefactor     .10000E-03    80.265        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    2.5430        .16814E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    62.420        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     90.548        109.82        .42226E-04   -1.3802    
   9  Prefactor     .10000E-03    1.2595        .60049E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          1.8731        1.1968        .29374E-04   -1.5434    
  11  norm          .10000E-03    .51414        .38248E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     2.3203        6.1733        .13417E-03   -1.5403    
  13  Prefactor     .10000E-03    .74963        .46310E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    5.2458        .12251E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    7.8305        .29411E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     3.7075        25.624        .20967E-03   -1.5323    
  17  Prefactor     39.102        37.245        .64102E-04   -1.4457    
  18  norm          .10000E-03    9.6889        .16657E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    13.906        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     7.1765        24.606        .14972E-03   -1.5172    
  21  Prefactor     .10000E-03    3.9227        .10589E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    10.250        .17109E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     89.907        56.585        .42376E-04   -1.3809    
  24  Prefactor     1.4165        870.32        .35513E-02   -1.5470    
  25  norm          1.9612        1.0832        .14810E-03   -1.5428    
  26  norm          .10000E-03    48.135        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    3.4849        .99658E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     35.450        65.084        .67299E-04   -1.4516    
  29  norm          .10000E-03    4.6157        .16756E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    34.465        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     .10000E-03    14.048        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  norm          .10000E-03    1.4213        .63414E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  norm          2.3296        1.9551        .68103E-04   -1.5403    
  34  Prefactor     18.934        113.05        .92065E-04   -1.4837    
  35  Prefactor     24.154        437.86        .81555E-04   -1.4725    
  36  norm          3.2670        3.1595        .91480E-04   -1.5346    
  37  Prefactor     15.346        226.08        .10201E-03   -1.4924    
  38  Normalizat    1.1236        .28389        .22583E-03   -.88999    
  39  Prefactor     .74921        .30159        .30842E-03   -1.0163    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.617e-10
Minuit parameter uncertainties:
  1  10.4064
  2  8.72527
  3  8.52453e-05
  4  20.8293
  5  5.05645e-06
  6  5.37898e-06
  7  0.000204488
  8  110.067
  9  2.00626e-07
  10  1.19682
  11  2.03181e-06
  12  6.17495
  13  1.70993e-08
  14  3.35178e-07
  15  1.04502e-05
  16  19.5054
  17  37.2669
  18  1.55259e-05
  19  6.22768e-07
  20  24.6411
  21  8.16313e-07
  22  8.17391e-06
  23  56.6188
  24  71.2852
  25  1.08318
  26  9.97008e-05
  27  2.62992e-07
  28  65.215
  29  3.73019e-05
  30  9.76248e-05
  31  1.67953e-05
  32  2.25053e-06
  33  1.95518
  34  92.7971
  35  207.468
  36  3.15969
  37  118.345
  38  0.284273
  39  0.302255
Done.

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

Extracting fit parameters...

4FGL J0945.2+5200
   Spectrum: PowerLaw
380    Prefactor:  1.000e-04  8.163e-07  1.000e-04  1.000e+04 ( 1.000e-12)
381        Index:  2.718e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
382        Scale:  5.314e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
745    Prefactor:  7.492e-01  3.023e-01  0.000e+00  1.000e+01 ( 1.000e+00)
746        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
747        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
744   Normalization:  1.124e+00  2.843e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 146.316 52.005
Photon Flux Upper Limit: 1.03e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.08e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/475216/likelihoodResults_411436801_411696001_4FGL_J0945.2+5200_daily_bin664.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) = 3002.61839244
delta logL = -0.00119237508443

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3002.61720005
delta logL = 2.23722054216e-08

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 'Index     '    2.7103       1.0000          .0000       10.000    
     3 'Normalizat'    1.1236       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .74923       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7480E+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.

 FCN=   3002.617     FROM MIGRAD    STATUS=CONVERGED     99 CALLS      251 TOTAL
                     EDM=   .74E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    45.819        .10615E-01** at limit **
   2  Index         2.2925        8.1277        .50000       -.17587E-06
   3  Normalizat    1.1236        .19774E-01    .22583E-03    .15304E-04
   4  Prefactor     .74921        .22576E-01    .30842E-03    .16237E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100002
  Index      = 2.2925
  Normalizat = 1.12356
  Prefactor  = 0.74921
 **********
 **   18 **HESSE 
 **********

 FCN=   3002.617     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      280 TOTAL
                     EDM=   .66E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    402.68        .10987E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2925        5.4106        .50000       -.57222    
   3  Normalizat    1.1236        .66304E-01    .90332E-05   -.88999    
   4  Prefactor     .74921        .75697E-01    .12337E-04   -1.0163    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.57379e-08
Minuit parameter uncertainties:
  1  0.00161437
  2  1557.49
  3  0.0663092
  4  0.0757078
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/475216': 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) = 3002.61719917
delta logL = 8.95282482816e-07

Extracting fit parameters...

4FGL J0945.2+5200
   Spectrum: PowerLaw
380    Prefactor:  1.000e-04  1.614e-03  1.000e-04  1.000e+04 ( 1.000e-12)
381        Index:  2.292e+00  1.557e+03  0.000e+00  1.000e+01 (-1.000e+00)
382        Scale:  5.314e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
745    Prefactor:  7.492e-01  7.571e-02  0.000e+00  1.000e+01 ( 1.000e+00)
746        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
747        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
744   Normalization:  1.124e+00  6.631e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 146.316 52.005

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/475216/cmap_HighResolution_411436801_411696001_4FGL_J0945.2+5200_daily_bin664.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.08e-03', job_status='DONE', photon_flux_upper_limit='1.03e-07', time_completed='2021-09-01 00:56:25.105331', job_id='475216', GAL2='0.75', fit_tolerance='1e-08', EG2='1.12', EG='1.12', time_epoch_completed='1630482985.11', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.75', dlogl='8.95e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.72' WHERE bin_id='664' AND source_name='4FGL J0945.2+5200' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 00:56:25 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0260>
Subject: Job 475216: <4FGL_J0945.2+5200_daily_bin664> in cluster <slac> Done

Job <4FGL_J0945.2+5200_daily_bin664> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Wed Sep  1 00:40:47 2021
Job was executed on host(s) <bullet0260>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 00:40:49 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep  1 00:40:49 2021
Terminated at Wed Sep  1 00:56:25 2021
Results reported at Wed Sep  1 00:56:25 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0945.2+5200_daily_bin664 146.316 52.0053 411436801 411696001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0945.2+5200 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   913.13 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             311.63 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   936 sec.
    Turnaround time :                            938 sec.

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

