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


Performing analysis on: 4FGL_J1200.7+2008_daily_bin1178
RA = 180.187, Dec = 20.1354
tmin = 544665601, tmax = 544924801
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='262290', job_status='RUN', time_executed='2021-09-04 20:46:00.686916', time_epoch_executed='1630813560.69' WHERE source_name='4FGL J1200.7+2008' and cadence='daily' and bin_id='1178'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/262290

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/262290/ft1_4FGL_J1200.7+2008_daily_bin1178.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/262290/ft2_4FGL_J1200.7+2008_daily_bin1178.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/262290/ft1_4FGL_J1200.7+2008_daily_bin1178.fits outfile=/scratch/kocevski/262290/ft1_filteredMKT_4FGL_J1200.7+2008_daily_bin1178.fits ra=180.187 dec=20.1354 rad=12.0 tmin=544665601.0 tmax=544924801.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.03
user 3.77
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/262290/ft2_4FGL_J1200.7+2008_daily_bin1178.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/262290/ft1_filteredMKT_4FGL_J1200.7+2008_daily_bin1178.fits evtable="EVENTS" outfile="/scratch/kocevski/262290/ft1_filtered_4FGL_J1200.7+2008_daily_bin1178.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/262290/ft1_filtered_4FGL_J1200.7+2008_daily_bin1178.fits" evtable="EVENTS" scfile=/scratch/kocevski/262290/ft2_4FGL_J1200.7+2008_daily_bin1178.fits sctable="SC_DATA" outfile=/scratch/kocevski/262290/ltcube_544665601_544924801_4FGL_J1200.7+2008_daily_bin1178.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/262290/ft2_4FGL_J1200.7+2008_daily_bin1178.fits
.....................!
real 11.71
user 11.22
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/262290/ft1_filtered_4FGL_J1200.7+2008_daily_bin1178.fits evtable="EVENTS" scfile=/scratch/kocevski/262290/ft2_4FGL_J1200.7+2008_daily_bin1178.fits sctable="SC_DATA" expcube=/scratch/kocevski/262290/ltcube_544665601_544924801_4FGL_J1200.7+2008_daily_bin1178.fits outfile=/scratch/kocevski/262290/expmap_544665601_544924801_4FGL_J1200.7+2008_daily_bin1178.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/262290/ltcube_544665601_544924801_4FGL_J1200.7+2008_daily_bin1178.fits
.....................!
real 192.68
user 187.19
sys 4.83

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/262290/ft1_filtered_4FGL_J1200.7+2008_daily_bin1178.fits scfile=/scratch/kocevski/262290/ft2_4FGL_J1200.7+2008_daily_bin1178.fits outfile=/scratch/kocevski/262290/cmap_544665601_544924801_4FGL_J1200.7+2008_daily_bin1178.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.54
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/262290/ft1_filtered_4FGL_J1200.7+2008_daily_bin1178.fits scfile=/scratch/kocevski/262290/ft2_4FGL_J1200.7+2008_daily_bin1178.fits outfile=/scratch/kocevski/262290/cmap_HighResolution_544665601_544924801_4FGL_J1200.7+2008_daily_bin1178.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.54
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/262290/ft1_filtered_4FGL_J1200.7+2008_daily_bin1178.fits evtable="EVENTS" scfile=/scratch/kocevski/262290/ft2_4FGL_J1200.7+2008_daily_bin1178.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/262290/Model_4FGL_J1200.7+2008_daily_bin1178.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/262290/ft1_filtered_4FGL_J1200.7+2008_daily_bin1178.fits.....................!
real 39.34
user 37.95
sys 1.26

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/262290/ft1_filtered_4FGL_J1200.7+2008_daily_bin1178.fits', '/scratch/kocevski/262290/ft2_4FGL_J1200.7+2008_daily_bin1178.fits', expMap='/scratch/kocevski/262290/expmap_544665601_544924801_4FGL_J1200.7+2008_daily_bin1178.fits', expCube='/scratch/kocevski/262290/ltcube_544665601_544924801_4FGL_J1200.7+2008_daily_bin1178.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/262290/Model_4FGL_J1200.7+2008_daily_bin1178.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/262290/ft1_filtered_4FGL_J1200.7+2008_daily_bin1178.fits
Spacecraft file(s): /scratch/kocevski/262290/ft2_4FGL_J1200.7+2008_daily_bin1178.fits
Exposure map: /scratch/kocevski/262290/expmap_544665601_544924801_4FGL_J1200.7+2008_daily_bin1178.fits
Exposure cube: /scratch/kocevski/262290/ltcube_544665601_544924801_4FGL_J1200.7+2008_daily_bin1178.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/262290/Model_4FGL_J1200.7+2008_daily_bin1178.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) = 3446.37369126

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12655E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10195E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    37.202       1.0000         .10000E-03   10000.    
     4 'Prefactor '    20.229       1.0000         .10000E-03   10000.    
     5 'Prefactor '    31.691       1.0000         .10000E-03   10000.    
     6 'Prefactor '    128.47       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10493E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.4520       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    33.333       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.7871       1.0000         .10000E-03   10000.    
    13 'Prefactor '    72.446       1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.3046       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10052E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    8.4014       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .49688E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .60069       1.0000         .10000E-03   10000.    
    21 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    27.252       1.0000         .10000E-03   10000.    
    23 'Prefactor '    20.100       1.0000         .10000E-03   10000.    
    24 'Prefactor '    17.908       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .71469       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.1164       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=   3446.368     FROM MIGRAD    STATUS=CONVERGED    593 CALLS     3076 TOTAL
                     EDM=   .76E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    22.174       -.29541E-06** at limit **
   2  norm          .10000E-03    29.243       -.32203E-05** at limit **
   3  Prefactor     37.194        27.496       -.23493E-06    .83634E-05
   4  Prefactor     20.219        48.204        .26053E-06   -.33406E-05
   5  Prefactor     31.346        101.94       -.22230E-05   -.37854E-05
   6  Prefactor     128.50        100.91       -.24254E-06    .12945E-04
   7  Prefactor     .10000E-03    48.254        .38725E-06** at limit **
   8  Prefactor     4.4524        7.7673       -.18971E-06   -.17506E-04
   9  Prefactor     .10000E-03    10.489        .88119E-06** at limit **
  10  norm          33.333        8.6006       -.67848E-07    .29788E-03
  11  Prefactor     .10000E-03    6.5757        .28042E-06** at limit **
  12  Prefactor     1.7786        11.441        .26279E-05   -.10131E-04
  13  Prefactor     72.459        74.520       -.95636E-08   -.38841E-05
  14  Prefactor     4.3054        3.9023       -.28501E-06   -.69865E-04
  15  Prefactor     .10000E-03    1.5784        .13403E-06** at limit **
  16  norm          .10000E-03    16.369       -.48325E-06** at limit **
  17  Prefactor     8.3993        9.1267        .19011E-05    .19513E-03
  18  Prefactor     .10000E-03    4.7108       -.98375E-06** at limit **
  19  Prefactor     .10000E-03    6.8499        .14969E-06** at limit **
  20  norm          .60070        .42096       -.11731E-07    .65305E-04
  21  norm          .10000E-03    2.3487        .43688E-07** at limit **
  22  Prefactor     27.251        16.141        .74560E-07   -.99623E-05
  23  Prefactor     20.098        19.919       -.28502E-06    .63636E-04
  24  Prefactor     17.903        36.933        .34530E-06   -.44018E-05
  25  Normalizat    .71505        .29053        .10534E-05   -.89933E-05
  26  Prefactor     1.1162        .25345       -.20956E-05    .87682E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 37.1941
  Prefactor  = 20.2188
  Prefactor  = 31.3461
  Prefactor  = 128.503
  Prefactor  = 0.0001
  Prefactor  = 4.45238
  Prefactor  = 0.0001
  norm       = 33.333
  Prefactor  = 0.0001
  Prefactor  = 1.7786
  Prefactor  = 72.4592
  Prefactor  = 4.30541
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 8.39928
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  norm       = 0.600696
  norm       = 0.0001
  Prefactor  = 27.2508
  Prefactor  = 20.0982
  Prefactor  = 17.9026
  Normalizat = 0.715053
  Prefactor  = 1.11615
 **********
 **   18 **HESSE 
 **********

 FCN=   3446.368     FROM HESSE     STATUS=OK           460 CALLS     3536 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    22.396        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    28.940        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     37.194        27.540        .65709E-04   -1.4487    
   4  Prefactor     20.219        48.264        .89052E-04   -1.4808    
   5  Prefactor     31.346        102.48        .35588E-03   -1.4588    
   6  Prefactor     128.50        100.50        .17760E-03   -1.3436    
   7  Prefactor     .10000E-03    49.021        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     4.4524        7.6612        .18140E-03   -1.5286    
   9  Prefactor     .10000E-03    10.582        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          33.333        8.5371        .69406E-04   -1.4553    
  11  Prefactor     .10000E-03    6.5803        .14701E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     1.7786        11.003        .31295E-03   -1.5441    
  13  Prefactor     72.459        74.593        .23584E-03   -1.4003    
  14  Prefactor     4.3054        3.8742        .10045E-03   -1.5293    
  15  Prefactor     .10000E-03    1.5861        .71952E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    16.648        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     8.3993        9.0677        .69153E-03   -1.5128    
  18  Prefactor     .10000E-03    26.473        .22864E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    6.8871        .15004E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .60070        .42012        .29405E-04   -1.5553    
  21  norm          .10000E-03    2.3497        .87866E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     27.251        16.120        .76741E-04   -1.4663    
  23  Prefactor     20.098        19.859        .89337E-04   -1.4811    
  24  Prefactor     17.903        36.889        .94644E-04   -1.4861    
  25  Normalizat    .71505        .33723        .33200E-03   -1.0330    
  26  Prefactor     1.1162        .29275        .25594E-03   -.88952    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.2334e-10
Minuit parameter uncertainties:
  1  3.08482e-05
  2  0.000146731
  3  27.5491
  4  48.3574
  5  103.06
  6  100.636
  7  0.00012531
  8  7.66289
  9  1.09601e-05
  10  8.53742
  11  3.49598e-06
  12  8.84983
  13  74.6898
  14  3.87444
  15  6.29785e-07
  16  0.000150644
  17  9.06919
  18  0.000403018
  19  3.13708e-06
  20  0.420118
  21  1.90955e-07
  22  16.1224
  23  19.8657
  24  36.9359
  25  0.338218
  26  0.293173
Done.

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

Extracting fit parameters...

4FGL J1200.7+2008
   Spectrum: PowerLaw
281    Prefactor:  1.779e+00  8.850e+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:  1.116e+00  2.932e-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:  7.151e-01  3.382e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.05
Ra Dec: 180.187 20.135
Photon Flux Upper Limit: 2.16e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.68e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/262290/likelihoodResults_544665601_544924801_4FGL_J1200.7+2008_daily_bin1178.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) = 3445.39330283
delta logL = 0.974611255194

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3444.84125918
delta logL = 1.52665490254

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    9.5382       1.0000          .0000       10.000    
     3 'Normalizat'    .55079       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2316       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.

 FCN=   3444.841     FROM MIGRAD    STATUS=CONVERGED    117 CALLS      464 TOTAL
                     EDM=   .85E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .53577E-02    .26642E-03** at limit **
   2  Index         9.5383        9.4969        .22242        .17004E-04
   3  Normalizat    .55034        .97972E-01    .84376E-01    .10481E-03
   4  Prefactor     1.2318        .93034E-01    .55479E-01    .21585E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 9.53828
  Normalizat = 0.550336
  Prefactor  = 1.23178
 **********
 **   18 **HESSE 
 **********

 FCN=   3444.841     FROM HESSE     STATUS=OK            33 CALLS      497 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    .11796E-02    .71244E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         9.5383        .37750        .10885E-01    1.1377    
   3  Normalizat    .55034        .32068        .37378E-03   -1.1014    
   4  Prefactor     1.2318        .30203        .24529E-03   -.85359    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.36411e-10
Minuit parameter uncertainties:
  1  1.00314e-08
  2  0.379566
  3  0.321764
  4  0.302456
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/262290': 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) = 3444.84125517
delta logL = 1.52665891235

Extracting fit parameters...

4FGL J1200.7+2008
   Spectrum: PowerLaw
281    Prefactor:  1.000e-04  1.003e-08  1.000e-04  1.000e+04 ( 1.000e-12)
282        Index:  9.538e+00  3.796e-01  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:  1.232e+00  3.025e-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:  5.503e-01  3.218e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.41
Ra Dec: 180.187 20.135
Photon Index (Free Index): 9.54 +/- 0.38
Photon Flux (Free Index): 1.97e-07 +/- 1.35e-07
Energy Flux (Free Index): 2.22e-05 +/- 1.52e-05

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/262290/cmap_HighResolution_544665601_544924801_4FGL_J1200.7+2008_daily_bin1178.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.68e-02', comment='SUCCESS', energy_flux2='2.22e-05', dlogl='1.53e+00', photon_flux2='1.97e-07', job_status='DONE', time_completed='2021-09-04 20:55:29.709958', photon_index_error2='0.38', photon_index2='9.54', ts='0.05', fit_tolerance='1e-08', GAL='1.12', photon_index_error='0.00', photon_flux_upper_limit='2.16e-07', energy_flux_error2='1.52e-05', EG='0.72', time_epoch_completed='1630814129.71', return_code='0', job_id='262290', GAL2='1.23', EG2='0.55', return_code2='0', photon_flux_error2='1.35e-07', ts2='3.41', photon_index='2.52' WHERE bin_id='1178' AND source_name='4FGL J1200.7+2008' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 20:55:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0057>
Subject: Job 262290: <4FGL_J1200.7+2008_daily_bin1178> in cluster <slac> Done

Job <4FGL_J1200.7+2008_daily_bin1178> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Sat Sep  4 20:45:42 2021
Job was executed on host(s) <bullet0057>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 20:45:44 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:45:44 2021
Terminated at Sat Sep  4 20:55:30 2021
Results reported at Sat Sep  4 20:55:30 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1200.7+2008_daily_bin1178 180.187 20.1354 544665601 544924801 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 :                                   563.28 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             338.42 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   585 sec.
    Turnaround time :                            588 sec.

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

