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


Performing analysis on: 4FGL_J1200.7+2008_daily_bin1232
RA = 180.187, Dec = 20.1354
tmin = 558662401, tmax = 558921601
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='262380', job_status='RUN', time_executed='2021-09-04 20:46:08.235533', time_epoch_executed='1630813568.24' WHERE source_name='4FGL J1200.7+2008' and cadence='daily' and bin_id='1232'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/262380

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/262380/ft1_4FGL_J1200.7+2008_daily_bin1232.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/262380/ft2_4FGL_J1200.7+2008_daily_bin1232.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/262380/ft1_4FGL_J1200.7+2008_daily_bin1232.fits outfile=/scratch/kocevski/262380/ft1_filteredMKT_4FGL_J1200.7+2008_daily_bin1232.fits ra=180.187 dec=20.1354 rad=12.0 tmin=558662401.0 tmax=558921601.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.52
user 3.28
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/262380/ft2_4FGL_J1200.7+2008_daily_bin1232.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/262380/ft1_filteredMKT_4FGL_J1200.7+2008_daily_bin1232.fits evtable="EVENTS" outfile="/scratch/kocevski/262380/ft1_filtered_4FGL_J1200.7+2008_daily_bin1232.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.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/262380/ft1_filtered_4FGL_J1200.7+2008_daily_bin1232.fits" evtable="EVENTS" scfile=/scratch/kocevski/262380/ft2_4FGL_J1200.7+2008_daily_bin1232.fits sctable="SC_DATA" outfile=/scratch/kocevski/262380/ltcube_558662401_558921601_4FGL_J1200.7+2008_daily_bin1232.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/262380/ft2_4FGL_J1200.7+2008_daily_bin1232.fits
.....................!
real 11.74
user 11.37
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/262380/ft1_filtered_4FGL_J1200.7+2008_daily_bin1232.fits evtable="EVENTS" scfile=/scratch/kocevski/262380/ft2_4FGL_J1200.7+2008_daily_bin1232.fits sctable="SC_DATA" expcube=/scratch/kocevski/262380/ltcube_558662401_558921601_4FGL_J1200.7+2008_daily_bin1232.fits outfile=/scratch/kocevski/262380/expmap_558662401_558921601_4FGL_J1200.7+2008_daily_bin1232.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/262380/ltcube_558662401_558921601_4FGL_J1200.7+2008_daily_bin1232.fits
.....................!
real 189.70
user 185.01
sys 4.33

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/262380/ft1_filtered_4FGL_J1200.7+2008_daily_bin1232.fits scfile=/scratch/kocevski/262380/ft2_4FGL_J1200.7+2008_daily_bin1232.fits outfile=/scratch/kocevski/262380/cmap_558662401_558921601_4FGL_J1200.7+2008_daily_bin1232.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/262380/ft1_filtered_4FGL_J1200.7+2008_daily_bin1232.fits scfile=/scratch/kocevski/262380/ft2_4FGL_J1200.7+2008_daily_bin1232.fits outfile=/scratch/kocevski/262380/cmap_HighResolution_558662401_558921601_4FGL_J1200.7+2008_daily_bin1232.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.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/262380/ft1_filtered_4FGL_J1200.7+2008_daily_bin1232.fits evtable="EVENTS" scfile=/scratch/kocevski/262380/ft2_4FGL_J1200.7+2008_daily_bin1232.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/262380/Model_4FGL_J1200.7+2008_daily_bin1232.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/262380/ft1_filtered_4FGL_J1200.7+2008_daily_bin1232.fits.....................!
real 69.87
user 68.51
sys 1.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.1931       1.0000         .10000E-03   10000.    
     2 'norm      '    5.8763       1.0000         .10000E-03   10000.    
     3 'Prefactor '    9.4097       1.0000         .10000E-03   10000.    
     4 'Prefactor '    36.008       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .16787E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    9.4126       1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.4953       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10667E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    8.2384       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .54263E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.9572       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10207E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .57149       1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.3500       1.0000         .10000E-03   10000.    
    16 'norm      '    7.5951       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    5.9213       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .27038       1.0000         .10000E-03   10000.    
    21 'norm      '    18.400       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .22109E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    3.7439       1.0000         .10000E-03   10000.    
    24 'Prefactor '    10.461       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.2568       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .99239       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=   7601.367     FROM MIGRAD    STATUS=CONVERGED    647 CALLS     3196 TOTAL
                     EDM=   .50E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.1934        2.7639       -.17019E-07   -.36009E-05
   2  norm          5.8759        9.9236        .18889E-06   -.86392E-04
   3  Prefactor     9.4093        9.4970       -.60709E-07   -.12617E-03
   4  Prefactor     36.005        51.254       -.17183E-06   -.23673E-04
   5  Prefactor     .10000E-03    6.7982        .43770E-06** at limit **
   6  Prefactor     9.3741        21.740       -.26781E-05   -.28583E-03
   7  Prefactor     2.4934        8.3996        .86981E-06   -.15254E-04
   8  Prefactor     .10000E-03    1.3291        .11009E-05** at limit **
   9  Prefactor     .10000E-03    7.4794        .77929E-07** at limit **
  10  norm          8.2385        1.6539        .49282E-08   -.64057E-03
  11  Prefactor     .10000E-03    10.567        .26186E-06** at limit **
  12  Prefactor     3.9562        4.0781       -.27312E-06   -.51233E-03
  13  Prefactor     .10000E-03    126.29        .23736E-06** at limit **
  14  Prefactor     .57258        4.0800        .30186E-05   -.84164E-04
  15  Prefactor     2.3496        5.1871       -.10311E-05   -.49940E-03
  16  norm          7.5973        2.8774       -.12210E-07   -.43708E-04
  17  Prefactor     .10000E-03    .83843        .90345E-08** at limit **
  18  Prefactor     5.9214        2.2991       -.87254E-09   -.88373E-04
  19  Prefactor     .10000E-03    1.2113       -.15721E-07** at limit **
  20  norm          .27024        .26071        .12198E-07   -.68135E-03
  21  norm          18.400        5.6431       -.40861E-07   -.27873E-03
  22  Prefactor     .10000E-03    52.188       -.66844E-05** at limit **
  23  Prefactor     3.7428        6.8401        .35629E-06   -.35967E-04
  24  Prefactor     10.409        57.266       -.58375E-06   -.87207E-04
  25  Normalizat    1.2570        .20982        .10482E-05   -.60614E-03
  26  Prefactor     .99228        .19283       -.22893E-05   -.27786E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.19343
  norm       = 5.87594
  Prefactor  = 9.40932
  Prefactor  = 36.0048
  Prefactor  = 0.000100001
  Prefactor  = 9.3741
  Prefactor  = 2.49337
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 8.23851
  Prefactor  = 0.0001
  Prefactor  = 3.95623
  Prefactor  = 0.0001
  Prefactor  = 0.572578
  Prefactor  = 2.34962
  norm       = 7.59733
  Prefactor  = 0.0001
  Prefactor  = 5.92138
  Prefactor  = 0.0001
  norm       = 0.270244
  norm       = 18.4004
  Prefactor  = 0.000100002
  Prefactor  = 3.74279
  Prefactor  = 10.4089
  Normalizat = 1.25699
  Prefactor  = 0.99228
 **********
 **   18 **HESSE 
 **********

 FCN=   7601.367     FROM HESSE     STATUS=OK           476 CALLS     3672 TOTAL
                     EDM=   .11E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.1934        2.7568        .15854E-03   -1.5412    
   2  norm          5.8759        9.9441        .16566E-03   -1.5223    
   3  Prefactor     9.4093        9.5137        .13065E-03   -1.5094    
   4  Prefactor     36.005        51.627        .66786E-04   -1.4507    
   5  Prefactor     .10000E-03    34.351        .43785E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     9.3741        21.500        .13063E-03   -1.5096    
   7  Prefactor     2.4934        8.3492        .25874E-03   -1.5392    
   8  Prefactor     .10000E-03    2.1200        .17940E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    7.4988        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          8.2385        1.6560        .46940E-04   -1.5134    
  11  Prefactor     .10000E-03    166.08        .54443E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     3.9562        4.0669        .16684E-03   -1.5310    
  13  Prefactor     .10000E-03    126.42        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .57258        3.9890        .28991E-02   -1.5557    
  15  Prefactor     2.3496        5.0034        .23781E-03   -1.5401    
  16  norm          7.5973        2.7982        .85001E-04   -1.5157    
  17  Prefactor     .10000E-03    1.3606        .15103E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     5.9214        2.2975        .78169E-04   -1.5221    
  19  Prefactor     .10000E-03    1.2119        .93701E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .27024        .24615        .40388E-03   -1.5604    
  21  norm          18.400        5.6402        .93371E-04   -1.4850    
  22  Prefactor     .10000E-03    51.514        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     3.7428        6.8238        .20867E-03   -1.5321    
  24  Prefactor     10.409        57.174        .12388E-03   -1.5063    
  25  Normalizat    1.2570        .24968        .27403E-03   -.84860    
  26  Prefactor     .99228        .22441        .30885E-03   -.92987    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.06153e-07
Minuit parameter uncertainties:
  1  2.75692
  2  9.94686
  3  9.51523
  4  51.6916
  5  0.000283092
  6  21.5176
  7  8.3531
  8  4.24975e-05
  9  5.3806e-06
  10  1.65596
  11  0.000320279
  12  4.06716
  13  0.0001843
  14  3.0226
  15  5.00428
  16  2.79823
  17  2.55809e-06
  18  2.29753
  19  7.27325e-07
  20  0.24615
  21  5.64036
  22  0.000656029
  23  6.82523
  24  48.862
  25  0.24992
  26  0.224622
Done.

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

Extracting fit parameters...

4FGL J1200.7+2008
   Spectrum: PowerLaw
281    Prefactor:  3.956e+00  4.067e+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:  9.923e-01  2.246e-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.257e+00  2.499e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.44
Ra Dec: 180.187 20.135
Photon Index (Fixed Index): 2.52 +/- 0.00
Photon Flux (Fixed Index): 3.85e-08 +/- 3.96e-08
Energy Flux (Fixed Index): 1.09e-05 +/- 1.12e-05

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

Saving results to:
/scratch/kocevski/262380/likelihoodResults_558662401_558921601_4FGL_J1200.7+2008_daily_bin1232.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) = 7601.34539271
delta logL = 0.0214982852622

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7601.33762892
delta logL = 0.0292620675973

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.5295       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3493       1.0000          .0000       10.000    
     3 'Normalizat'    1.2626       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98722       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=   7601.338     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      210 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.5295        140.83        .47291E-02    .45021E-03
   2  Index         2.3493        6.0914        .24104        .38054E-04
   3  Normalizat    1.2626        .69580E-01    .61832E-01    .90339E-05
   4  Prefactor     .98722        .74705E-01    .69971E-01    .16488E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.52947
  Index      = 2.34935
  Normalizat = 1.26262
  Prefactor  = 0.987219
 **********
 **   18 **HESSE 
 **********

 FCN=   7601.338     FROM HESSE     STATUS=OK            33 CALLS      243 TOTAL
                     EDM=   .59E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.5295        4.9985        .17794E-03   -1.5282    
   2  Index         2.3493        .68690        .95042E-02   -.55875    
   3  Normalizat    1.2626        .21561        .27349E-03   -.84689    
   4  Prefactor     .98722        .21961        .30953E-03   -.93157    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.88723e-10
Minuit parameter uncertainties:
  1  4.99893
  2  0.689944
  3  0.215765
  4  0.219809
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/262380': 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) = 7601.33762889
delta logL = 0.0292621051249

Extracting fit parameters...

4FGL J1200.7+2008
   Spectrum: PowerLaw
281    Prefactor:  4.529e+00  4.999e+00  1.000e-04  1.000e+04 ( 1.000e-12)
282        Index:  2.349e+00  6.899e-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:  9.872e-01  2.198e-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.263e+00  2.158e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.48
Ra Dec: 180.187 20.135
Photon Index (Free Index): 2.35 +/- 0.69
Photon Flux (Free Index): 3.54e-08 +/- 3.82e-08
Energy Flux (Free Index): 1.24e-05 +/- 1.45e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/262380/cmap_HighResolution_558662401_558921601_4FGL_J1200.7+2008_daily_bin1232.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.73e-03', comment='SUCCESS', photon_flux='3.85e-08', energy_flux2='1.24e-05', photon_flux_error='3.96e-08', dlogl='2.93e-02', energy_flux='1.09e-05', photon_flux2='3.54e-08', job_status='DONE', time_completed='2021-09-04 21:01:04.734458', photon_index_error2='0.69', photon_index2='2.35', ts='1.44', fit_tolerance='1e-08', GAL='0.99', photon_index_error='0.00', photon_flux_upper_limit='1.25e-07', energy_flux_error2='1.45e-05', EG='1.26', time_epoch_completed='1630814464.73', return_code='0', job_id='262380', GAL2='0.99', EG2='1.26', return_code2='0', energy_flux_error='1.12e-05', photon_flux_error2='3.82e-08', ts2='1.48', photon_index='2.52' WHERE bin_id='1232' AND source_name='4FGL J1200.7+2008' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 21:01:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0102>
Subject: Job 262380: <4FGL_J1200.7+2008_daily_bin1232> in cluster <slac> Done

Job <4FGL_J1200.7+2008_daily_bin1232> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Sat Sep  4 20:45:48 2021
Job was executed on host(s) <bullet0102>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 20:45:51 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:51 2021
Terminated at Sat Sep  4 21:01:05 2021
Results reported at Sat Sep  4 21:01:05 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1200.7+2008_daily_bin1232 180.187 20.1354 558662401 558921601 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 :                                   881.14 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             348.43 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   914 sec.
    Turnaround time :                            917 sec.

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

