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


Performing analysis on: 4FGL_J1200.2+0201_daily_bin441
RA = 180.055, Dec = 2.0172
tmin = 353635201, tmax = 353894401
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='241186', job_status='RUN', time_executed='2021-09-04 19:43:03.763978', time_epoch_executed='1630809783.76' WHERE source_name='4FGL J1200.2+0201' and cadence='daily' and bin_id='441'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/241186

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/241186/ft1_4FGL_J1200.2+0201_daily_bin441.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/241186/ft2_4FGL_J1200.2+0201_daily_bin441.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/241186/ft1_4FGL_J1200.2+0201_daily_bin441.fits outfile=/scratch/kocevski/241186/ft1_filteredMKT_4FGL_J1200.2+0201_daily_bin441.fits ra=180.055 dec=2.0172 rad=12.0 tmin=353635201.0 tmax=353894401.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.55
user 3.32
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/241186/ft2_4FGL_J1200.2+0201_daily_bin441.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/241186/ft1_filteredMKT_4FGL_J1200.2+0201_daily_bin441.fits evtable="EVENTS" outfile="/scratch/kocevski/241186/ft1_filtered_4FGL_J1200.2+0201_daily_bin441.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.59
user 0.34
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/241186/ft1_filtered_4FGL_J1200.2+0201_daily_bin441.fits" evtable="EVENTS" scfile=/scratch/kocevski/241186/ft2_4FGL_J1200.2+0201_daily_bin441.fits sctable="SC_DATA" outfile=/scratch/kocevski/241186/ltcube_353635201_353894401_4FGL_J1200.2+0201_daily_bin441.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/241186/ft2_4FGL_J1200.2+0201_daily_bin441.fits
.....................!
real 14.03
user 12.99
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/241186/ft1_filtered_4FGL_J1200.2+0201_daily_bin441.fits evtable="EVENTS" scfile=/scratch/kocevski/241186/ft2_4FGL_J1200.2+0201_daily_bin441.fits sctable="SC_DATA" expcube=/scratch/kocevski/241186/ltcube_353635201_353894401_4FGL_J1200.2+0201_daily_bin441.fits outfile=/scratch/kocevski/241186/expmap_353635201_353894401_4FGL_J1200.2+0201_daily_bin441.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/241186/ltcube_353635201_353894401_4FGL_J1200.2+0201_daily_bin441.fits
.....................!
real 190.10
user 185.39
sys 4.32

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/241186/ft1_filtered_4FGL_J1200.2+0201_daily_bin441.fits scfile=/scratch/kocevski/241186/ft2_4FGL_J1200.2+0201_daily_bin441.fits outfile=/scratch/kocevski/241186/cmap_353635201_353894401_4FGL_J1200.2+0201_daily_bin441.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.54
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/241186/ft1_filtered_4FGL_J1200.2+0201_daily_bin441.fits scfile=/scratch/kocevski/241186/ft2_4FGL_J1200.2+0201_daily_bin441.fits outfile=/scratch/kocevski/241186/cmap_HighResolution_353635201_353894401_4FGL_J1200.2+0201_daily_bin441.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.54
user 0.39
sys 0.14

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/241186/ft1_filtered_4FGL_J1200.2+0201_daily_bin441.fits', '/scratch/kocevski/241186/ft2_4FGL_J1200.2+0201_daily_bin441.fits', expMap='/scratch/kocevski/241186/expmap_353635201_353894401_4FGL_J1200.2+0201_daily_bin441.fits', expCube='/scratch/kocevski/241186/ltcube_353635201_353894401_4FGL_J1200.2+0201_daily_bin441.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/241186/Model_4FGL_J1200.2+0201_daily_bin441.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/241186/ft1_filtered_4FGL_J1200.2+0201_daily_bin441.fits
Spacecraft file(s): /scratch/kocevski/241186/ft2_4FGL_J1200.2+0201_daily_bin441.fits
Exposure map: /scratch/kocevski/241186/expmap_353635201_353894401_4FGL_J1200.2+0201_daily_bin441.fits
Exposure cube: /scratch/kocevski/241186/ltcube_353635201_353894401_4FGL_J1200.2+0201_daily_bin441.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/241186/Model_4FGL_J1200.2+0201_daily_bin441.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) = 6685.88709428

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10173E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.6742       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .11333E-02   1.0000         .10000E-03   10000.    
     5 'norm      '    .10564E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .11163E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10190E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    155.58       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .80196       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10054E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    21.566       1.0000         .10000E-03   10000.    
    12 'Prefactor '    28.941       1.0000         .10000E-03   10000.    
    13 'Prefactor '    12.791       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10054E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10497E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    59.822       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    19.503       1.0000         .10000E-03   10000.    
    19 'Prefactor '    14.275       1.0000         .10000E-03   10000.    
    20 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10075E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10147E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    20.723       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10071E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .63571       1.0000         .10000E-03   10000.    
    26 'Prefactor '    3.0186       1.0000         .10000E-03   10000.    
    27 'norm      '    5.0468       1.0000         .10000E-03   10000.    
    28 'Prefactor '    2.6861       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    .83360       1.0000         .10000E-01   10.000    
    31 'Prefactor '    1.0811       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=   6685.884     FROM MIGRAD    STATUS=CONVERGED    809 CALLS     4252 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.7262       -.95472E-06** at limit **
   2  norm          .10000E-03    12.943       -.52716E-06** at limit **
   3  Prefactor     1.6753        2.0914       -.16704E-07   -.23106E-03
   4  Prefactor     .10001E-03    51.608       -.12252E-04** at limit **
   5  norm          .10001E-03    3.4647        .62658E-06** at limit **
   6  Prefactor     .10001E-03    2.1734        .17122E-05** at limit **
   7  Prefactor     .10000E-03    17.368        .14193E-05** at limit **
   8  Prefactor     155.61        111.73       -.26003E-05   -.11766E-03
   9  Prefactor     .80416        6.6240        .52499E-05   -.74980E-03
  10  Prefactor     .10000E-03    9.7435        .10737E-05** at limit **
  11  Prefactor     21.561        10.578        .63833E-06   -.42680E-04
  12  Prefactor     28.946        19.908       -.41306E-06   -.44022E-04
  13  Prefactor     12.813        13.680       -.57745E-06   -.25679E-03
  14  Prefactor     .10000E-03    25.728       -.95598E-06** at limit **
  15  Prefactor     .10000E-03    51.463        .28628E-05** at limit **
  16  Prefactor     59.866        52.509       -.56194E-05   -.34403E-03
  17  Prefactor     .10000E-03    13.163       -.34687E-06** at limit **
  18  Prefactor     19.502        31.080        .13305E-05    .25332E-04
  19  Prefactor     14.272        9.6622        .16308E-06   -.81298E-04
  20  norm          .10000E-03    .95585        .19122E-06** at limit **
  21  norm          .10000E-03    2.2766       -.89132E-06** at limit **
  22  Prefactor     .10000E-03    20.206        .13436E-05** at limit **
  23  norm          20.713        25.536        .16273E-05    .10558E-03
  24  Prefactor     .10000E-03    47.070       -.24866E-05** at limit **
  25  norm          .63586        .51523       -.13633E-06   -.91492E-03
  26  Prefactor     3.0177        4.1855        .17682E-06   -.24118E-04
  27  norm          5.0466        2.0446        .95200E-07    .12630E-03
  28  Prefactor     2.6844        5.2691        .30616E-06    .25845E-05
  29  Prefactor     .10000E-03    12.876       -.28254E-06** at limit **
  30  Normalizat    .83268        .21644        .38842E-05   -.64256E-03
  31  Prefactor     1.0820        .16245       -.44516E-05   -.56256E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100002
  norm       = 0.0001
  Prefactor  = 1.6753
  Prefactor  = 0.000100006
  norm       = 0.00010001
  Prefactor  = 0.000100006
  Prefactor  = 0.0001
  Prefactor  = 155.606
  Prefactor  = 0.804163
  Prefactor  = 0.0001
  Prefactor  = 21.561
  Prefactor  = 28.9464
  Prefactor  = 12.8126
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 59.8665
  Prefactor  = 0.0001
  Prefactor  = 19.5021
  Prefactor  = 14.2717
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 20.713
  Prefactor  = 0.000100001
  norm       = 0.635855
  Prefactor  = 3.01773
  norm       = 5.04662
  Prefactor  = 2.68437
  Prefactor  = 0.0001
  Normalizat = 0.832681
  Prefactor  = 1.08197
 **********
 **   18 **HESSE 
 **********

 FCN=   6685.884     FROM HESSE     STATUS=OK           622 CALLS     4874 TOTAL
                     EDM=   .65E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.3000        .24778E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    12.969        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     1.6753        2.0708        .12521E-03   -1.5449    
   4  Prefactor     .10001E-03    89.227        .64157E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10001E-03    6.9212        .27189E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10001E-03    7.3445        .19140E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    17.503        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     155.61        111.73        .16161E-03   -1.3207    
   9  Prefactor     .80416        14.242        .24894E-02   -1.5529    
  10  Prefactor     .10000E-03    9.7690        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     21.561        10.608        .86251E-04   -1.4779    
  12  Prefactor     28.946        19.942        .74473E-04   -1.4631    
  13  Prefactor     12.813        13.664        .11200E-03   -1.4992    
  14  Prefactor     .10000E-03    25.742        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    52.482        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     59.866        53.091        .51874E-04   -1.4159    
  17  Prefactor     .10000E-03    13.248        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     19.502        31.093        .90695E-04   -1.4824    
  19  Prefactor     14.272        9.6030        .10601E-03   -1.4952    
  20  norm          .10000E-03    .96615        .77861E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    2.3078        .23939E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    20.277        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          20.713        25.618        .87985E-04   -1.4797    
  24  Prefactor     .10000E-03    47.194        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .63586        .49219        .47593E-03   -1.5548    
  26  Prefactor     3.0177        4.1726        .19168E-03   -1.5361    
  27  norm          5.0466        2.0376        .70142E-04   -1.5259    
  28  Prefactor     2.6844        5.2504        .24861E-03   -1.5380    
  29  Prefactor     .10000E-03    12.884        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    .83268        .22897        .30777E-03   -.98868    
  31  Prefactor     1.0820        .17398        .22400E-03   -.90045    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.51966e-09
Minuit parameter uncertainties:
  1  0.000207443
  2  2.3204e-05
  3  2.07091
  4  0.0014429
  5  0.000514759
  6  0.000433482
  7  0.00018025
  8  111.88
  9  6.76985
  10  9.58459e-05
  11  10.6094
  12  19.9469
  13  13.6671
  14  0.000125653
  15  0.000686425
  16  53.1334
  17  1.5392e-05
  18  31.1187
  19  9.60407
  20  7.96397e-06
  21  1.58919e-05
  22  0.000174558
  23  25.6318
  24  0.000466629
  25  0.492196
  26  4.17302
  27  2.03762
  28  5.25127
  29  2.40429e-05
  30  0.229234
  31  0.174075
Done.

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

Extracting fit parameters...

4FGL J1200.2+0201
   Spectrum: PowerLaw
285    Prefactor:  2.156e+01  1.061e+01  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.082e+00  1.741e-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:  8.327e-01  2.292e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 11.32
Ra Dec: 180.055 2.017
Photon Index (Fixed Index): 2.11 +/- 0.00
Photon Flux (Fixed Index): 8.11e-08 +/- 3.99e-08
Energy Flux (Fixed Index): 4.37e-05 +/- 2.15e-05

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) = 6685.87752849
delta logL = 0.00619208017906

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6685.8724717
delta logL = 0.0112488727382

Fit tolerance = 1e-08

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

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

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6685.872     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      236 TOTAL
                     EDM=   .23E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     20.372        13.112        .88738E-04    .61572E-03
   2  Index         2.1660        .39579        .45684E-02    .17296E-03
   3  Normalizat    .82765        .21169        .30859E-03   -.98364E-04
   4  Prefactor     1.0843        .17207        .22377E-03   -.16986E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 20.3723
  Index      = 2.16597
  Normalizat = 0.827648
  Prefactor  = 1.08432
 **********
 **   18 **HESSE 
 **********

 FCN=   6685.872     FROM HESSE     STATUS=OK            25 CALLS      261 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     20.372        12.614        .17748E-04   -1.4805    
   2  Index         2.1660        .38046        .18274E-03   -.60262    
   3  Normalizat    .82765        .21160        .12344E-04   -.99051    
   4  Prefactor     1.0843        .17209        .44753E-04   -.89969    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.21987e-10
Minuit parameter uncertainties:
  1  12.6156
  2  0.381001
  3  0.21181
  4  0.172178
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/241186': 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) = 6685.87247169
delta logL = 0.0112488799086

Extracting fit parameters...

4FGL J1200.2+0201
   Spectrum: PowerLaw
285    Prefactor:  2.037e+01  1.262e+01  1.000e-04  1.000e+04 ( 1.000e-13)
286        Index:  2.166e+00  3.810e-01  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.084e+00  1.722e-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:  8.276e-01  2.118e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 11.35
Ra Dec: 180.055 2.017
Photon Index (Free Index): 2.17 +/- 0.38
Photon Flux (Free Index): 8.58e-08 +/- 5.06e-08
Energy Flux (Free Index): 4.11e-05 +/- 2.49e-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/241186/cmap_HighResolution_353635201_353894401_4FGL_J1200.2+0201_daily_bin441.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.11e-08', energy_flux2='4.11e-05', photon_flux_error='3.99e-08', dlogl='1.12e-02', energy_flux='4.37e-05', photon_flux2='8.58e-08', job_status='DONE', time_completed='2021-09-04 19:56:54.722678', photon_index_error2='0.38', photon_index2='2.17', ts='11.32', fit_tolerance='1e-08', GAL='1.08', photon_index_error='0.00', energy_flux_error2='2.49e-05', EG='0.83', time_epoch_completed='1630810614.72', return_code='0', job_id='241186', GAL2='1.08', EG2='0.83', return_code2='0', energy_flux_error='2.15e-05', photon_flux_error2='5.06e-08', ts2='11.35', photon_index='2.11' WHERE bin_id='441' AND source_name='4FGL J1200.2+0201' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 19:56:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0214>
Subject: Job 241186: <4FGL_J1200.2+0201_daily_bin441> in cluster <slac> Done

Job <4FGL_J1200.2+0201_daily_bin441> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sat Sep  4 19:40:41 2021
Job was executed on host(s) <bullet0214>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 19:40:42 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:40:42 2021
Terminated at Sat Sep  4 19:56:55 2021
Results reported at Sat Sep  4 19:56:55 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1200.2+0201_daily_bin441 180.055 2.0172 353635201 353894401 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 :                                   826.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             314.63 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   973 sec.
    Turnaround time :                            974 sec.

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

