/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 107 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 = 7473
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1200.2+0201_daily_bin143
RA = 180.055, Dec = 2.0172
tmin = 276393601, tmax = 276652801
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='239733', job_status='RUN', time_executed='2021-09-04 19:37:46.623226', time_epoch_executed='1630809466.62' WHERE source_name='4FGL J1200.2+0201' and cadence='daily' and bin_id='143'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/239733

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/239733/ft1_4FGL_J1200.2+0201_daily_bin143.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/239733/ft2_4FGL_J1200.2+0201_daily_bin143.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/239733/ft1_4FGL_J1200.2+0201_daily_bin143.fits outfile=/scratch/kocevski/239733/ft1_filteredMKT_4FGL_J1200.2+0201_daily_bin143.fits ra=180.055 dec=2.0172 rad=12.0 tmin=276393601.0 tmax=276652801.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.13
user 2.41
sys 0.18

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/239733/ft2_4FGL_J1200.2+0201_daily_bin143.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/239733/ft2_4FGL_J1200.2+0201_daily_bin143.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/239733/ft1_filteredMKT_4FGL_J1200.2+0201_daily_bin143.fits evtable="EVENTS" outfile="/scratch/kocevski/239733/ft1_filtered_4FGL_J1200.2+0201_daily_bin143.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.40
user 0.25
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/239733/ft1_filtered_4FGL_J1200.2+0201_daily_bin143.fits" evtable="EVENTS" scfile=/scratch/kocevski/239733/ft2_4FGL_J1200.2+0201_daily_bin143.fits sctable="SC_DATA" outfile=/scratch/kocevski/239733/ltcube_276393601_276652801_4FGL_J1200.2+0201_daily_bin143.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/239733/ft2_4FGL_J1200.2+0201_daily_bin143.fits
.....................!
real 8.66
user 8.36
sys 0.27

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/239733/ft1_filtered_4FGL_J1200.2+0201_daily_bin143.fits evtable="EVENTS" scfile=/scratch/kocevski/239733/ft2_4FGL_J1200.2+0201_daily_bin143.fits sctable="SC_DATA" expcube=/scratch/kocevski/239733/ltcube_276393601_276652801_4FGL_J1200.2+0201_daily_bin143.fits outfile=/scratch/kocevski/239733/expmap_276393601_276652801_4FGL_J1200.2+0201_daily_bin143.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/239733/ltcube_276393601_276652801_4FGL_J1200.2+0201_daily_bin143.fits
.....................!
real 139.69
user 136.35
sys 3.09

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

Setting source of interest to:
4FGL J1200.2+0201 @ 180.055 2.0172

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/239733/ft1_filtered_4FGL_J1200.2+0201_daily_bin143.fits scfile=/scratch/kocevski/239733/ft2_4FGL_J1200.2+0201_daily_bin143.fits outfile=/scratch/kocevski/239733/cmap_276393601_276652801_4FGL_J1200.2+0201_daily_bin143.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.055 yref=2.0172 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.44
user 0.30
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/239733/ft1_filtered_4FGL_J1200.2+0201_daily_bin143.fits scfile=/scratch/kocevski/239733/ft2_4FGL_J1200.2+0201_daily_bin143.fits outfile=/scratch/kocevski/239733/cmap_HighResolution_276393601_276652801_4FGL_J1200.2+0201_daily_bin143.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.055 yref=2.0172 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.44
user 0.28
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/239733/ft1_filtered_4FGL_J1200.2+0201_daily_bin143.fits evtable="EVENTS" scfile=/scratch/kocevski/239733/ft2_4FGL_J1200.2+0201_daily_bin143.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/239733/Model_4FGL_J1200.2+0201_daily_bin143.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/239733/ft1_filtered_4FGL_J1200.2+0201_daily_bin143.fits.....................!
real 54.34
user 53.27
sys 0.97

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/239733/ft1_filtered_4FGL_J1200.2+0201_daily_bin143.fits', '/scratch/kocevski/239733/ft2_4FGL_J1200.2+0201_daily_bin143.fits', expMap='/scratch/kocevski/239733/expmap_276393601_276652801_4FGL_J1200.2+0201_daily_bin143.fits', expCube='/scratch/kocevski/239733/ltcube_276393601_276652801_4FGL_J1200.2+0201_daily_bin143.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/239733/Model_4FGL_J1200.2+0201_daily_bin143.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1200.2+0201'

4FGL J1200.2+0201
   Spectrum: PowerLaw
285    Prefactor:  1.346e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
286        Index:  2.109e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
287        Scale:  1.748e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/239733/ft1_filtered_4FGL_J1200.2+0201_daily_bin143.fits
Spacecraft file(s): /scratch/kocevski/239733/ft2_4FGL_J1200.2+0201_daily_bin143.fits
Exposure map: /scratch/kocevski/239733/expmap_276393601_276652801_4FGL_J1200.2+0201_daily_bin143.fits
Exposure cube: /scratch/kocevski/239733/ltcube_276393601_276652801_4FGL_J1200.2+0201_daily_bin143.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/239733/Model_4FGL_J1200.2+0201_daily_bin143.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) = 7894.93600643

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    23.739       1.0000         .10000E-03   10000.    
     2 'norm      '    .11636E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.9970       1.0000         .10000E-03   10000.    
     4 'Prefactor '    36.361       1.0000         .10000E-03   10000.    
     5 'norm      '    1.2356       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10508E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    36.873       1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.0795       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10269E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    89.436       1.0000         .10000E-03   10000.    
    15 'Prefactor '    53.612       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.1369       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .17781       1.0000         .10000E-03   10000.    
    21 'norm      '    9.8374       1.0000         .10000E-03   10000.    
    22 'Prefactor '    22.323       1.0000         .10000E-03   10000.    
    23 'norm      '    .10062E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    204.48       1.0000         .10000E-03   10000.    
    25 'norm      '    18.572       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    6.3941       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .11977E-02   1.0000         .10000E-03   10000.    
    29 'Prefactor '    3.0443       1.0000         .10000E-03   10000.    
    30 'Normalizat'    .99129       1.0000         .10000E-01   10.000    
    31 'Prefactor '    1.2059       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6010E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7894.924     FROM MIGRAD    STATUS=CONVERGED    823 CALLS     4191 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     23.730        10.180        .28391E-06    .65620E-03
   2  norm          .10016E-03    163.91        .94906E-05** at limit **
   3  Prefactor     1.9973        2.2065        .25450E-07    .21476E-03
   4  Prefactor     36.311        43.466       -.20059E-06    .23512E-03
   5  norm          1.2351        3.3363        .94686E-07    .19174E-03
   6  Prefactor     .10000E-03    1.0955        .54115E-07** at limit **
   7  Prefactor     .10000E-03    20.516        .11091E-06** at limit **
   8  Prefactor     .10000E-03    139.91        .92686E-06** at limit **
   9  Prefactor     .10000E-03    8.1784        .20425E-06** at limit **
  10  Prefactor     36.870        36.474       -.45894E-07    .54015E-05
  11  Prefactor     4.0808        9.5541       -.92260E-06    .13207E-03
  12  Prefactor     .10000E-03    8.9349        .11195E-06** at limit **
  13  Prefactor     .10000E-03    6.3978        .18328E-06** at limit **
  14  Prefactor     89.431        93.141       -.52983E-06   -.12103E-04
  15  Prefactor     53.609        51.133       -.10813E-06    .10403E-04
  16  Prefactor     .10000E-03    28.417        .18867E-06** at limit **
  17  Prefactor     2.1377        40.984       -.28237E-05    .80997E-04
  18  Prefactor     .10000E-03    10.336        .50885E-07** at limit **
  19  Prefactor     .10000E-03    3.6150        .54961E-07** at limit **
  20  norm          .18011        1.2819        .10308E-05    .79285E-03
  21  norm          9.8387        5.5442       -.95919E-08    .10479E-03
  22  Prefactor     22.322        30.234       -.93763E-07   -.17080E-05
  23  norm          .10000E-03    50.744       -.25474E-06** at limit **
  24  Prefactor     204.49        205.15        .14353E-06   -.32533E-06
  25  norm          18.572        1.6015        .20050E-07    .15798E-02
  26  Prefactor     .10000E-03    6.9470        .64328E-08** at limit **
  27  norm          6.3941        2.5459       -.11606E-06   -.39607E-03
  28  Prefactor     .10004E-03    94.297        .27252E-04** at limit **
  29  Prefactor     3.0924        251.96        .15437E-04    .55265E-04
  30  Normalizat    .99124        .24163        .31389E-06    .12372E-03
  31  Prefactor     1.2059        .18864        .17173E-06    .13548E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 23.73
  norm       = 0.00010016
  Prefactor  = 1.99725
  Prefactor  = 36.3111
  norm       = 1.2351
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 36.8702
  Prefactor  = 4.0808
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 89.4311
  Prefactor  = 53.6086
  Prefactor  = 0.0001
  Prefactor  = 2.13766
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.180109
  norm       = 9.83871
  Prefactor  = 22.322
  norm       = 0.0001
  Prefactor  = 204.494
  norm       = 18.5725
  Prefactor  = 0.0001
  norm       = 6.39407
  Prefactor  = 0.000100038
  Prefactor  = 3.09242
  Normalizat = 0.991238
  Prefactor  = 1.20589
 **********
 **   18 **HESSE 
 **********

 FCN=   7894.924     FROM HESSE     STATUS=OK           618 CALLS     4809 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     23.730        10.184        .82213E-04   -1.4733    
   2  norm          .10016E-03    170.28        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     1.9973        2.1964        .13296E-03   -1.5425    
   4  Prefactor     36.311        43.296        .66462E-04   -1.4502    
   5  norm          1.2351        3.2722        .25963E-03   -1.5486    
   6  Prefactor     .10000E-03    1.0981        .90809E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    20.584        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    141.09        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    8.2301        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     36.870        36.464        .66001E-04   -1.4493    
  11  Prefactor     4.0808        9.5401        .99807E-03   -1.5304    
  12  Prefactor     .10000E-03    8.9574        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    6.4096        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     89.431        93.310        .42487E-04   -1.3814    
  15  Prefactor     53.609        51.186        .54779E-04   -1.4242    
  16  Prefactor     .10000E-03    28.471        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     2.1377        41.016        .14099E-02   -1.5416    
  18  Prefactor     .10000E-03    10.340        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    3.6173        .16498E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .18011        2.5543        .19235E-02   -1.5623    
  21  norm          9.8387        5.5408        .12776E-03   -1.5081    
  22  Prefactor     22.322        30.226        .84778E-04   -1.4763    
  23  norm          .10000E-03    50.780        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     204.49        205.05        .14132E-03   -1.2838    
  25  norm          18.572        1.5982        .29471E-04   -1.4846    
  26  Prefactor     .10000E-03    6.9964        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          6.3941        2.5462        .85259E-04   -1.5202    
  28  Prefactor     .10004E-03    95.351        .56514E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     3.0924        254.81        .23254E-03   -1.5356    
  30  Normalizat    .99124        .28486        .39282E-03   -.93325    
  31  Prefactor     1.2059        .22336        .29147E-03   -.86150    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.28775e-09
Minuit parameter uncertainties:
  1  10.1848
  2  0.0104795
  3  2.19646
  4  43.3335
  5  3.27263
  6  3.96669e-06
  7  7.07632e-05
  8  0.00121243
  9  3.20255e-05
  10  36.4864
  11  9.54366
  12  3.69215e-05
  13  3.40718e-05
  14  93.4635
  15  51.2278
  16  4.0658e-05
  17  18.7416
  18  1.65588e-06
  19  9.39771e-06
  20  1.35623
  21  5.54111
  22  30.2466
  23  0.000146133
  24  205.774
  25  1.5982
  26  1.28702e-05
  27  2.54624
  28  0.00383772
  29  56.3907
  30  0.285296
  31  0.223536
Done.

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

Extracting fit parameters...

4FGL J1200.2+0201
   Spectrum: PowerLaw
285    Prefactor:  4.081e+00  9.544e+00  1.000e-04  1.000e+04 ( 1.000e-13)
286        Index:  2.109e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
287        Scale:  1.748e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
598    Prefactor:  1.206e+00  2.235e-01  0.000e+00  1.000e+01 ( 1.000e+00)
599        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
600        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
597   Normalization:  9.912e-01  2.853e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.22
Ra Dec: 180.055 2.017
Photon Flux Upper Limit: 1.07e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.08e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/239733/likelihoodResults_276393601_276652801_4FGL_J1200.2+0201_daily_bin143.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) = 7894.32871797
delta logL = 0.594929987671

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7893.87114858
delta logL = 1.05249937229

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    7.0408       1.0000          .0000       10.000    
     3 'Normalizat'    .88847       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2704       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6010E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7893.871     FROM MIGRAD    STATUS=CONVERGED    228 CALLS      593 TOTAL
                     EDM=   .38E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .26571E-02    .32019E-03** at limit **
   2  Index         7.0409        1.9084        .11971        .12139E-03
   3  Normalizat    .88762        .57883E-01    .92962E-01   -.30651E-03
   4  Prefactor     1.2709        .46533E-01    .64439E-01    .45700E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 7.04085
  Normalizat = 0.887624
  Prefactor  = 1.2709
 **********
 **   18 **HESSE 
 **********

 FCN=   7893.871     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      628 TOTAL
                     EDM=   .94E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    .83981E-02    .24717E-03   -51.836    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         7.0409        3.2645        .43308E-02   -357.72    
   3  Normalizat    .88762        .11053        .41183E-03   -19.819    
   4  Prefactor     1.2709        .89266E-01    .28499E-03   -8.5830    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 9.36205e-10
Minuit parameter uncertainties:
  1  2.0287e-08
  2  3.63744
  3  0.110562
  4  0.0892767
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/239733': 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) = 7893.87114203
delta logL = 1.05250592439

Extracting fit parameters...

4FGL J1200.2+0201
   Spectrum: PowerLaw
285    Prefactor:  1.000e-04  2.029e-08  1.000e-04  1.000e+04 ( 1.000e-13)
286        Index:  7.041e+00  3.637e+00  0.000e+00  1.000e+01 (-1.000e+00)
287        Scale:  1.748e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
598    Prefactor:  1.271e+00  8.928e-02  0.000e+00  1.000e+01 ( 1.000e+00)
599        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
600        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
597   Normalization:  8.876e-01  1.106e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.48
Ra Dec: 180.055 2.017
Photon Index (Free Index): 7.04 +/- 3.64
Photon Flux (Free Index): 9.40e-08 +/- 9.08e-07
Energy Flux (Free Index): 1.12e-05 +/- 1.08e-04

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/239733/cmap_HighResolution_276393601_276652801_4FGL_J1200.2+0201_daily_bin143.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.08e-03', comment='SUCCESS', energy_flux2='1.12e-05', dlogl='1.05e+00', photon_flux2='9.40e-08', job_status='DONE', time_completed='2021-09-04 19:51:52.017750', photon_index_error2='3.64', photon_index2='7.04', ts='0.22', fit_tolerance='1e-08', GAL='1.21', photon_index_error='0.00', photon_flux_upper_limit='1.07e-07', energy_flux_error2='1.08e-04', EG='0.99', time_epoch_completed='1630810312.02', return_code='0', job_id='239733', GAL2='1.27', EG2='0.89', return_code2='102', photon_flux_error2='9.08e-07', ts2='2.48', photon_index='2.11' WHERE bin_id='143' AND source_name='4FGL J1200.2+0201' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 19:51:52 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0071>
Subject: Job 239733: <4FGL_J1200.2+0201_daily_bin143> in cluster <slac> Done

Job <4FGL_J1200.2+0201_daily_bin143> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Sep  4 19:35:47 2021
Job was executed on host(s) <bullet0071>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 19:35:49 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep  4 19:35:49 2021
Terminated at Sat Sep  4 19:51:52 2021
Results reported at Sat Sep  4 19:51:52 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1200.2+0201_daily_bin143 180.055 2.0172 276393601 276652801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1200.2+0201 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   841.15 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             268.27 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   963 sec.
    Turnaround time :                            965 sec.

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

