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


Performing analysis on: 4FGL_J1200.2+0201_daily_bin1158
RA = 180.055, Dec = 2.0172
tmin = 539481601, tmax = 539740801
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='248906', job_status='RUN', time_executed='2021-09-04 20:05:36.857427', time_epoch_executed='1630811136.86' WHERE source_name='4FGL J1200.2+0201' and cadence='daily' and bin_id='1158'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/248906

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/248906/ft1_4FGL_J1200.2+0201_daily_bin1158.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/248906/ft2_4FGL_J1200.2+0201_daily_bin1158.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/248906/ft1_4FGL_J1200.2+0201_daily_bin1158.fits outfile=/scratch/kocevski/248906/ft1_filteredMKT_4FGL_J1200.2+0201_daily_bin1158.fits ra=180.055 dec=2.0172 rad=12.0 tmin=539481601.0 tmax=539740801.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 5.18
user 4.88
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/248906/ft2_4FGL_J1200.2+0201_daily_bin1158.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/248906/ft1_filteredMKT_4FGL_J1200.2+0201_daily_bin1158.fits evtable="EVENTS" outfile="/scratch/kocevski/248906/ft1_filtered_4FGL_J1200.2+0201_daily_bin1158.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.48
user 0.32
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/248906/ft1_filtered_4FGL_J1200.2+0201_daily_bin1158.fits" evtable="EVENTS" scfile=/scratch/kocevski/248906/ft2_4FGL_J1200.2+0201_daily_bin1158.fits sctable="SC_DATA" outfile=/scratch/kocevski/248906/ltcube_539481601_539740801_4FGL_J1200.2+0201_daily_bin1158.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/248906/ft2_4FGL_J1200.2+0201_daily_bin1158.fits
.....................!
real 11.91
user 11.52
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/248906/ft1_filtered_4FGL_J1200.2+0201_daily_bin1158.fits evtable="EVENTS" scfile=/scratch/kocevski/248906/ft2_4FGL_J1200.2+0201_daily_bin1158.fits sctable="SC_DATA" expcube=/scratch/kocevski/248906/ltcube_539481601_539740801_4FGL_J1200.2+0201_daily_bin1158.fits outfile=/scratch/kocevski/248906/expmap_539481601_539740801_4FGL_J1200.2+0201_daily_bin1158.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/248906/ltcube_539481601_539740801_4FGL_J1200.2+0201_daily_bin1158.fits
.....................!
real 191.53
user 185.00
sys 4.79

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/248906/ft1_filtered_4FGL_J1200.2+0201_daily_bin1158.fits scfile=/scratch/kocevski/248906/ft2_4FGL_J1200.2+0201_daily_bin1158.fits outfile=/scratch/kocevski/248906/cmap_539481601_539740801_4FGL_J1200.2+0201_daily_bin1158.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/248906/ft1_filtered_4FGL_J1200.2+0201_daily_bin1158.fits scfile=/scratch/kocevski/248906/ft2_4FGL_J1200.2+0201_daily_bin1158.fits outfile=/scratch/kocevski/248906/cmap_HighResolution_539481601_539740801_4FGL_J1200.2+0201_daily_bin1158.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.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.592       1.0000         .10000E-03   10000.    
     2 'norm      '    .55395E-01   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.2583       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .12840E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    22.674       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10415E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    10.824       1.0000         .10000E-03   10000.    
    14 'Prefactor '    65.112       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    67.066       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    7.4841       1.0000         .10000E-03   10000.    
    20 'norm      '    .51554       1.0000         .10000E-03   10000.    
    21 'norm      '    7.7245       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10253E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .99152       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    3.5696       1.0000         .10000E-03   10000.    
    28 'Prefactor '    7.2287       1.0000         .10000E-03   10000.    
    29 'Prefactor '    47.378       1.0000         .10000E-03   10000.    
    30 'Normalizat'    .92177       1.0000         .10000E-01   10.000    
    31 'Prefactor '    1.1315       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=   6186.895     FROM MIGRAD    STATUS=CONVERGED   1472 CALLS     4923 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.591        7.3658        .12311E-03   -.59195E-04
   2  norm          .10043E-03    39.248        .10763    ** at limit **
   3  Prefactor     .10000E-03    1.5689        .18796E-03** at limit **
   4  Prefactor     .10000E-03    7.3915        .18142E-02** at limit **
   5  norm          .10000E-03    3.8894        .15082E-02** at limit **
   6  Prefactor     3.2584        3.7729        .15227E-03   -.51366E-04
   7  Prefactor     .10000E-03    8.5562        .18142E-02** at limit **
   8  Prefactor     .10003E-03    504.45        .18142E-02** at limit **
   9  Prefactor     .10000E-03    5.2283        .17552E-02** at limit **
  10  Prefactor     22.651        35.783        .84119E-04    .35679E-04
  11  Prefactor     .10000E-03    2.8646        .12981E-02** at limit **
  12  Prefactor     .10000E-03    97.054        .36285E-03** at limit **
  13  Prefactor     10.825        15.373        .60890E-03    .83645E-05
  14  Prefactor     65.110        118.27        .49735E-04    .50746E-05
  15  Prefactor     .10000E-03    12.841        .18142E-02** at limit **
  16  Prefactor     .10000E-03    16.020        .18142E-02** at limit **
  17  Prefactor     67.064        32.320        .49010E-04   -.71585E-04
  18  Prefactor     .10000E-03    9.7738        .18142E-02** at limit **
  19  Prefactor     7.4841        16.857        .14660E-03   -.71656E-04
  20  norm          .51512        2.0218        .16624E-02    .43373E-02
  21  norm          7.7234        4.7819        .12311E-03   -.50976E-04
  22  Prefactor     .10000E-03    13.053        .18142E-02** at limit **
  23  norm          .10000E-03    53.109        .18142E-02** at limit **
  24  Prefactor     .10000E-03    52.821        .18142E-02** at limit **
  25  norm          .99154        .53889        .39015E-04   -.36657E-03
  26  Prefactor     .10000E-03    4.0126        .15358E-02** at limit **
  27  norm          3.5695        1.9107        .75636E-04   -.14279E-04
  28  Prefactor     7.2281        7.4093        .14919E-03   -.87634E-05
  29  Prefactor     47.356        48.203        .58255E-04    .11319E-04
  30  Normalizat    .92202        .29216        .33812E-03   -.62203E-05
  31  Prefactor     1.1314        .21242        .23879E-03   -.33803E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.5911
  norm       = 0.00010043
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 3.25839
  Prefactor  = 0.0001
  Prefactor  = 0.000100028
  Prefactor  = 0.0001
  Prefactor  = 22.6507
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.8246
  Prefactor  = 65.1096
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 67.0642
  Prefactor  = 0.0001
  Prefactor  = 7.48406
  norm       = 0.515117
  norm       = 7.72343
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.991539
  Prefactor  = 0.0001
  norm       = 3.56952
  Prefactor  = 7.22808
  Prefactor  = 47.3562
  Normalizat = 0.922016
  Prefactor  = 1.1314
 **********
 **   18 **HESSE 
 **********

 FCN=   6186.895     FROM HESSE     STATUS=OK           602 CALLS     5525 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.591        7.3344        .49243E-05   -1.5057    
   2  norm          .10043E-03    37.157        .11102       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    1.5689        .37591E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    7.3916        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    3.8901        .30164E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     3.2584        3.7724        .60909E-05   -1.5347    
   7  Prefactor     .10000E-03    8.5566        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10003E-03    504.62        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    5.2285        .35104E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     22.651        35.785        .33648E-05   -1.4756    
  11  Prefactor     .10000E-03    2.8648        .25961E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    97.061        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     10.825        15.365        .24356E-04   -1.5050    
  14  Prefactor     65.110        118.28        .99470E-05   -1.4092    
  15  Prefactor     .10000E-03    12.841        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    16.021        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     67.064        32.319        .98020E-05   -1.4068    
  18  Prefactor     .10000E-03    9.7739        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     7.4841        16.735        .58640E-05   -1.5161    
  20  norm          .51512        2.0039        .33249E-03   -1.5564    
  21  norm          7.7234        4.7814        .49243E-05   -1.5152    
  22  Prefactor     .10000E-03    13.053        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    53.112        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    52.821        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .99154        .53886        .15606E-05   -1.5509    
  26  Prefactor     .10000E-03    4.0130        .30716E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          3.5695        1.9107        .30255E-05   -1.5330    
  28  Prefactor     7.2281        7.4094        .59676E-05   -1.5170    
  29  Prefactor     47.356        48.217        .23302E-05   -1.4331    
  30  Normalizat    .92202        .29236        .13525E-04   -.95691    
  31  Prefactor     1.1314        .21260        .95515E-05   -.88469    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.59334e-10
Minuit parameter uncertainties:
  1  7.33507
  2  0.00800272
  3  1.07623e-06
  4  6.17057e-06
  5  2.16044e-05
  6  3.77263
  7  2.26876e-06
  8  0.00762461
  9  6.58935e-07
  10  35.8191
  11  1.84328e-06
  12  6.49092e-05
  13  15.371
  14  118.715
  15  1.19694e-05
  16  4.76708e-06
  17  32.3277
  18  5.02015e-06
  19  16.7451
  20  2.00412
  21  4.78164
  22  4.22296e-05
  23  0.000112181
  24  7.48834e-05
  25  0.538863
  26  4.8751e-06
  27  1.9107
  28  7.4103
  29  48.2567
  30  0.292865
  31  0.212755
Done.

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

Extracting fit parameters...

4FGL J1200.2+0201
   Spectrum: PowerLaw
285    Prefactor:  1.000e-04  1.843e-06  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.131e+00  2.128e-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.220e-01  2.929e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 180.055 2.017
Photon Flux Upper Limit: 5.15e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.90e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/248906/likelihoodResults_539481601_539740801_4FGL_J1200.2+0201_daily_bin1158.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) = 6186.8964287
delta logL = -0.00164178895557

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6186.89478736
delta logL = -4.54196197097e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10466E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0846       1.0000          .0000       10.000    
     3 'Normalizat'    .92191       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1315       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=   6186.895     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      246 TOTAL
                     EDM=   .20E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10154E-03    32.804        .13305E-02** at limit **
   2  Index         2.0259        7.6662        .50000        .58571E-04
   3  Normalizat    .92201        .18567E-01    .33813E-03   -.12844E-04
   4  Prefactor     1.1314        .14455E-01    .23879E-03    .68368E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101542
  Index      = 2.02588
  Normalizat = 0.922015
  Prefactor  = 1.1314
 **********
 **   18 **HESSE 
 **********

 FCN=   6186.895     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      275 TOTAL
                     EDM=   .83E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10154E-03    134.24        .26610E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0259        5.9821        .50000       -.63705    
   3  Normalizat    .92201        .39080E-01    .13525E-04   -.95691    
   4  Prefactor     1.1314        .30424E-01    .95515E-05   -.88469    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.34488e-08
Minuit parameter uncertainties:
  1  0.028841
  2  331.421
  3  0.0390816
  4  0.0304249
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/248906': 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) = 6186.89478581
delta logL = 1.10044129542e-06

Extracting fit parameters...

4FGL J1200.2+0201
   Spectrum: PowerLaw
285    Prefactor:  1.015e-04  2.884e-02  1.000e-04  1.000e+04 ( 1.000e-13)
286        Index:  2.026e+00  3.314e+02  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.131e+00  3.042e-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:  9.220e-01  3.908e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 180.055 2.017

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/248906/cmap_HighResolution_539481601_539740801_4FGL_J1200.2+0201_daily_bin1158.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.90e-03', job_status='DONE', photon_flux_upper_limit='5.15e-08', time_completed='2021-09-04 20:21:42.009737', job_id='248906', GAL2='1.13', fit_tolerance='1e-08', EG2='0.92', EG='0.92', time_epoch_completed='1630812102.01', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.13', dlogl='1.10e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.11' WHERE bin_id='1158' AND source_name='4FGL J1200.2+0201' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 20:21:42 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0034>
Subject: Job 248906: <4FGL_J1200.2+0201_daily_bin1158> in cluster <slac> Done

Job <4FGL_J1200.2+0201_daily_bin1158> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sat Sep  4 20:05:23 2021
Job was executed on host(s) <bullet0034>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 20:05:24 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:05:24 2021
Terminated at Sat Sep  4 20:21:42 2021
Results reported at Sat Sep  4 20:21:42 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1200.2+0201_daily_bin1158 180.055 2.0172 539481601 539740801 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 :                                   963.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             311.66 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   978 sec.
    Turnaround time :                            979 sec.

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

