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


Performing analysis on: 4FGL_J1200.7+2008_daily_bin1424
RA = 180.187, Dec = 20.1354
tmin = 608428801, tmax = 608688001
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='263894', job_status='RUN', time_executed='2021-09-04 20:52:45.889506', time_epoch_executed='1630813965.89' WHERE source_name='4FGL J1200.7+2008' and cadence='daily' and bin_id='1424'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/263894

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/263894/ft1_4FGL_J1200.7+2008_daily_bin1424.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/263894/ft2_4FGL_J1200.7+2008_daily_bin1424.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/263894/ft1_4FGL_J1200.7+2008_daily_bin1424.fits outfile=/scratch/kocevski/263894/ft1_filteredMKT_4FGL_J1200.7+2008_daily_bin1424.fits ra=180.187 dec=20.1354 rad=12.0 tmin=608428801.0 tmax=608688001.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 4.94
user 4.70
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/263894/ft2_4FGL_J1200.7+2008_daily_bin1424.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/263894/ft2_4FGL_J1200.7+2008_daily_bin1424.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/263894/ft1_filteredMKT_4FGL_J1200.7+2008_daily_bin1424.fits evtable="EVENTS" outfile="/scratch/kocevski/263894/ft1_filtered_4FGL_J1200.7+2008_daily_bin1424.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.48
user 0.32
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/263894/ft1_filtered_4FGL_J1200.7+2008_daily_bin1424.fits" evtable="EVENTS" scfile=/scratch/kocevski/263894/ft2_4FGL_J1200.7+2008_daily_bin1424.fits sctable="SC_DATA" outfile=/scratch/kocevski/263894/ltcube_608428801_608688001_4FGL_J1200.7+2008_daily_bin1424.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/263894/ft2_4FGL_J1200.7+2008_daily_bin1424.fits
.....................!
real 11.55
user 11.19
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/263894/ft1_filtered_4FGL_J1200.7+2008_daily_bin1424.fits evtable="EVENTS" scfile=/scratch/kocevski/263894/ft2_4FGL_J1200.7+2008_daily_bin1424.fits sctable="SC_DATA" expcube=/scratch/kocevski/263894/ltcube_608428801_608688001_4FGL_J1200.7+2008_daily_bin1424.fits outfile=/scratch/kocevski/263894/expmap_608428801_608688001_4FGL_J1200.7+2008_daily_bin1424.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/263894/ltcube_608428801_608688001_4FGL_J1200.7+2008_daily_bin1424.fits
.....................!
real 191.76
user 186.37
sys 5.07

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

Setting source of interest to:
4FGL J1200.7+2008 @ 180.187 20.1354

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/263894/ft1_filtered_4FGL_J1200.7+2008_daily_bin1424.fits scfile=/scratch/kocevski/263894/ft2_4FGL_J1200.7+2008_daily_bin1424.fits outfile=/scratch/kocevski/263894/cmap_608428801_608688001_4FGL_J1200.7+2008_daily_bin1424.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=180.187 yref=20.1354 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.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/263894/ft1_filtered_4FGL_J1200.7+2008_daily_bin1424.fits scfile=/scratch/kocevski/263894/ft2_4FGL_J1200.7+2008_daily_bin1424.fits outfile=/scratch/kocevski/263894/cmap_HighResolution_608428801_608688001_4FGL_J1200.7+2008_daily_bin1424.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=180.187 yref=20.1354 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.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/263894/ft1_filtered_4FGL_J1200.7+2008_daily_bin1424.fits evtable="EVENTS" scfile=/scratch/kocevski/263894/ft2_4FGL_J1200.7+2008_daily_bin1424.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/263894/Model_4FGL_J1200.7+2008_daily_bin1424.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/263894/ft1_filtered_4FGL_J1200.7+2008_daily_bin1424.fits.....................!
real 50.57
user 49.32
sys 1.14

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/263894/ft1_filtered_4FGL_J1200.7+2008_daily_bin1424.fits', '/scratch/kocevski/263894/ft2_4FGL_J1200.7+2008_daily_bin1424.fits', expMap='/scratch/kocevski/263894/expmap_608428801_608688001_4FGL_J1200.7+2008_daily_bin1424.fits', expCube='/scratch/kocevski/263894/ltcube_608428801_608688001_4FGL_J1200.7+2008_daily_bin1424.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/263894/Model_4FGL_J1200.7+2008_daily_bin1424.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1200.7+2008'

4FGL J1200.7+2008
   Spectrum: PowerLaw
281    Prefactor:  1.085e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
282        Index:  2.520e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
283        Scale:  7.262e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/263894/ft1_filtered_4FGL_J1200.7+2008_daily_bin1424.fits
Spacecraft file(s): /scratch/kocevski/263894/ft2_4FGL_J1200.7+2008_daily_bin1424.fits
Exposure map: /scratch/kocevski/263894/expmap_608428801_608688001_4FGL_J1200.7+2008_daily_bin1424.fits
Exposure cube: /scratch/kocevski/263894/ltcube_608428801_608688001_4FGL_J1200.7+2008_daily_bin1424.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/263894/Model_4FGL_J1200.7+2008_daily_bin1424.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) = 5318.9445912

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    5.6887       1.0000         .10000E-03   10000.    
     3 'Prefactor '    37.129       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10268E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.1186       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    4.2274       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.7386       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .76112       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .18507E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    3.7160       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    7.8975       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .69337       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .44708E-02   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10236E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.1846       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .84928       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6170E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5318.881     FROM MIGRAD    STATUS=CONVERGED    633 CALLS     2691 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6.5954       -.15835E-06** at limit **
   2  norm          5.6869        10.921       -.41179E-06   -.98144E-04
   3  Prefactor     37.114        17.715        .93615E-06    .99775E-05
   4  Prefactor     .10000E-03    86.673       -.15416E-04** at limit **
   5  Prefactor     .10000E-03    13.568       -.36189E-06** at limit **
   6  Prefactor     .10000E-03    6.1382        .36094E-06** at limit **
   7  Prefactor     .10000E-03    20.647        .32363E-05** at limit **
   8  Prefactor     1.1185        1.6261       -.17441E-06   -.68320E-03
   9  Prefactor     .10000E-03    3.9269        .85319E-07** at limit **
  10  norm          4.2273        1.4869       -.84979E-09   -.14835E-03
  11  Prefactor     .10000E-03    3.9970       -.47821E-07** at limit **
  12  Prefactor     1.7385        3.6366       -.41909E-06   -.63793E-03
  13  Prefactor     .10000E-03    32.071        .69786E-05** at limit **
  14  Prefactor     .76642        2.5691       -.76689E-06   -.96557E-03
  15  Prefactor     .10000E-03    2.7799       -.45976E-06** at limit **
  16  norm          3.7156        2.5191       -.33510E-06   -.18822E-02
  17  Prefactor     .10000E-03    .85182       -.22582E-08** at limit **
  18  Prefactor     .10000E-03    1.7113       -.69959E-07** at limit **
  19  Prefactor     .10000E-03    5.2217        .13211E-05** at limit **
  20  norm          .10000E-03    .11909        .82031E-08** at limit **
  21  norm          7.8977        5.2156       -.48364E-07   -.39206E-03
  22  Prefactor     .69718        10.607       -.10257E-05   -.54507E-04
  23  Prefactor     .10099E-03    9.3126        .21647E-05** at limit **
  24  Prefactor     .10000E-03    28.386       -.97044E-05** at limit **
  25  Normalizat    1.1846        .19397        .24802E-07    .11398E-04
  26  Prefactor     .84944        .18836        .54203E-06    .30199E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 5.6869
  Prefactor  = 37.1144
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.11854
  Prefactor  = 0.0001
  norm       = 4.22726
  Prefactor  = 0.0001
  Prefactor  = 1.73853
  Prefactor  = 0.0001
  Prefactor  = 0.766418
  Prefactor  = 0.000100003
  norm       = 3.71563
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 7.89768
  Prefactor  = 0.697181
  Prefactor  = 0.000100988
  Prefactor  = 0.0001
  Normalizat = 1.18457
  Prefactor  = 0.849441
 **********
 **   18 **HESSE 
 **********

 FCN=   5318.881     FROM HESSE     STATUS=OK           460 CALLS     3151 TOTAL
                     EDM=   .42E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6.6576        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          5.6869        10.944        .16841E-03   -1.5231    
   3  Prefactor     37.114        17.626        .65773E-04   -1.4489    
   4  Prefactor     .10000E-03    84.878        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    13.652        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    6.1449        .17643E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    21.172        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     1.1185        1.5963        .10786E-03   -1.5496    
   9  Prefactor     .10000E-03    3.9322        .14114E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          4.2273        1.4903        .50277E-04   -1.5297    
  11  Prefactor     .10000E-03    3.9981        .14240E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     1.7385        3.6251        .19057E-03   -1.5444    
  13  Prefactor     .10000E-03    31.511        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .76642        2.5480        .20074E-03   -1.5533    
  15  Prefactor     .10000E-03    5.3141        .22421E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          3.7156        2.5824        .47342E-03   -1.5322    
  17  Prefactor     .10000E-03    .86024        .65650E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    1.7546        .18566E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    5.2366        .16215E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    .17446        .48559E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          7.8977        5.1950        .12929E-03   -1.5146    
  22  Prefactor     .69718        49.183        .45236E-02   -1.5541    
  23  Prefactor     .10099E-03    84.984        .41474E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    27.211        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.1846        .22534        .23630E-03   -.87081    
  26  Prefactor     .84944        .22129        .27480E-03   -.97931    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.1823e-08
Minuit parameter uncertainties:
  1  2.39246e-05
  2  10.9477
  3  17.6285
  4  8.13742e-05
  5  2.254e-06
  6  6.56515e-07
  7  4.88732e-05
  8  1.59637
  9  5.23621e-07
  10  1.49031
  11  2.23914e-07
  12  3.62556
  13  9.07713e-07
  14  2.54831
  15  0.000239836
  16  2.58244
  17  7.86791e-07
  18  5.52946e-06
  19  6.55712e-06
  20  1.98522e-07
  21  5.19532
  22  11.7206
  23  0.0183546
  24  7.16106e-05
  25  0.225528
  26  0.221524
Done.

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

Extracting fit parameters...

4FGL J1200.7+2008
   Spectrum: PowerLaw
281    Prefactor:  1.739e+00  3.626e+00  1.000e-04  1.000e+04 ( 1.000e-12)
282        Index:  2.520e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
283        Scale:  7.262e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
614    Prefactor:  8.494e-01  2.215e-01  0.000e+00  1.000e+01 ( 1.000e+00)
615        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
616        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
613   Normalization:  1.185e+00  2.255e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.28
Ra Dec: 180.187 20.135
Photon Flux Upper Limit: 1.03e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.03e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/263894/likelihoodResults_608428801_608688001_4FGL_J1200.7+2008_daily_bin1424.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5318.87742804
delta logL = 0.00344133014733

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5318.87668563
delta logL = 0.00418373908269

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.8830       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3943       1.0000          .0000       10.000    
     3 'Normalizat'    1.1867       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84783       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6170E+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=   5318.877     FROM MIGRAD    STATUS=CONVERGED     94 CALLS      281 TOTAL
                     EDM=   .24E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.8809        4.1262        .19675E-03   -.11343E-03
   2  Index         2.3929        1.3604        .15513E-01   -.79780E-05
   3  Normalizat    1.1867        .21442        .23611E-03   -.10271E-03
   4  Prefactor     .84781        .21518        .27503E-03   -.48777E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.8809
  Index      = 2.39291
  Normalizat = 1.18669
  Prefactor  = 0.847813
 **********
 **   18 **HESSE 
 **********

 FCN=   5318.877     FROM HESSE     STATUS=OK            25 CALLS      306 TOTAL
                     EDM=   .27E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.8809        4.0090        .78700E-05   -1.5434    
   2  Index         2.3929        1.3231        .62050E-03   -.54851    
   3  Normalizat    1.1867        .21448        .47223E-04   -.87015    
   4  Prefactor     .84781        .21519        .11001E-04   -.97989    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.67096e-11
Minuit parameter uncertainties:
  1  4.00952
  2  1.34526
  3  0.214637
  4  0.215409
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/263894': 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) = 5318.87668473
delta logL = 0.00418463472852

Extracting fit parameters...

4FGL J1200.7+2008
   Spectrum: PowerLaw
281    Prefactor:  1.881e+00  4.010e+00  1.000e-04  1.000e+04 ( 1.000e-12)
282        Index:  2.393e+00  1.345e+00  0.000e+00  1.000e+01 (-1.000e+00)
283        Scale:  7.262e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
614    Prefactor:  8.478e-01  2.154e-01  0.000e+00  1.000e+01 ( 1.000e+00)
615        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
616        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
613   Normalization:  1.187e+00  2.146e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.28
Ra Dec: 180.187 20.135

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/263894/cmap_HighResolution_608428801_608688001_4FGL_J1200.7+2008_daily_bin1424.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.03e-03', job_status='DONE', photon_flux_upper_limit='1.03e-07', time_completed='2021-09-04 21:04:42.692671', job_id='263894', GAL2='0.85', fit_tolerance='1e-08', EG2='1.19', EG='1.18', time_epoch_completed='1630814682.69', return_code2='0', ts='0.28', comment='SUCCESS', return_code='0', GAL='0.85', dlogl='4.18e-03', ts2='0.28', photon_index_error='0.00', photon_index='2.52' WHERE bin_id='1424' AND source_name='4FGL J1200.7+2008' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 21:04:42 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0119>
Subject: Job 263894: <4FGL_J1200.7+2008_daily_bin1424> in cluster <slac> Done

Job <4FGL_J1200.7+2008_daily_bin1424> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Sat Sep  4 20:50:33 2021
Job was executed on host(s) <bullet0119>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 20:50:35 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep  4 20:50:35 2021
Terminated at Sat Sep  4 21:04:43 2021
Results reported at Sat Sep  4 21:04:43 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1200.7+2008_daily_bin1424 180.187 20.1354 608428801 608688001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1200.7+2008 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   671.31 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             287.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   847 sec.
    Turnaround time :                            850 sec.

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

