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


Performing analysis on: 4FGL_J1200.2+0201_daily_bin801
RA = 180.055, Dec = 2.0172
tmin = 446947201, tmax = 447206401
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='243973', job_status='RUN', time_executed='2021-09-04 19:50:34.874960', time_epoch_executed='1630810234.87' WHERE source_name='4FGL J1200.2+0201' and cadence='daily' and bin_id='801'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/243973

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/243973/ft1_4FGL_J1200.2+0201_daily_bin801.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/243973/ft2_4FGL_J1200.2+0201_daily_bin801.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/243973/ft1_4FGL_J1200.2+0201_daily_bin801.fits outfile=/scratch/kocevski/243973/ft1_filteredMKT_4FGL_J1200.2+0201_daily_bin801.fits ra=180.055 dec=2.0172 rad=12.0 tmin=446947201.0 tmax=447206401.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.38
user 3.14
sys 0.22

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/243973/ft1_filtered_4FGL_J1200.2+0201_daily_bin801.fits evtable="EVENTS" scfile=/scratch/kocevski/243973/ft2_4FGL_J1200.2+0201_daily_bin801.fits sctable="SC_DATA" expcube=/scratch/kocevski/243973/ltcube_446947201_447206401_4FGL_J1200.2+0201_daily_bin801.fits outfile=/scratch/kocevski/243973/expmap_446947201_447206401_4FGL_J1200.2+0201_daily_bin801.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/243973/ltcube_446947201_447206401_4FGL_J1200.2+0201_daily_bin801.fits
.....................!
real 190.71
user 185.44
sys 4.84

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/243973/ft1_filtered_4FGL_J1200.2+0201_daily_bin801.fits scfile=/scratch/kocevski/243973/ft2_4FGL_J1200.2+0201_daily_bin801.fits outfile=/scratch/kocevski/243973/cmap_446947201_447206401_4FGL_J1200.2+0201_daily_bin801.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.58
user 0.37
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/243973/ft1_filtered_4FGL_J1200.2+0201_daily_bin801.fits scfile=/scratch/kocevski/243973/ft2_4FGL_J1200.2+0201_daily_bin801.fits outfile=/scratch/kocevski/243973/cmap_HighResolution_446947201_447206401_4FGL_J1200.2+0201_daily_bin801.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 1.80
user 0.38
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.7362       1.0000         .10000E-03   10000.    
     2 'norm      '    .37249       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .83724       1.0000         .10000E-03   10000.    
     4 'Prefactor '    47.822       1.0000         .10000E-03   10000.    
     5 'norm      '    7.7969       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.5328       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.8939       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.7981       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.6287       1.0000         .10000E-03   10000.    
    20 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    2.3681       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .26531       1.0000         .10000E-03   10000.    
    25 'norm      '    .55306       1.0000         .10000E-03   10000.    
    26 'Prefactor '    3.7074       1.0000         .10000E-03   10000.    
    27 'norm      '    1.2228       1.0000         .10000E-03   10000.    
    28 'Prefactor '    8.7979       1.0000         .10000E-03   10000.    
    29 'Prefactor '    22.894       1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.2192       1.0000         .10000E-01   10.000    
    31 'Prefactor '    1.0298       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=   5331.485     FROM MIGRAD    STATUS=CONVERGED   1465 CALLS     5496 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.7335        6.2263        .24713E-03    .77286E-03
   2  norm          .38996        48.538        .11244        .22808E-03
   3  Prefactor     .83709        2.0943        .16186E-03   -.11175E-03
   4  Prefactor     47.817        35.433        .57984E-04    .26355E-03
   5  norm          7.7968        6.7050        .14361E-03    .44681E-03
   6  Prefactor     .10000E-03    2.8216        .23533E-03** at limit **
   7  Prefactor     .10000E-03    17.420        .18142E-02** at limit **
   8  Prefactor     .10000E-03    37.495        .18142E-02** at limit **
   9  Prefactor     .10000E-03    11.643        .18142E-02** at limit **
  10  Prefactor     .10000E-03    17.636        .18142E-02** at limit **
  11  Prefactor     3.5329        11.567        .10753E-02   -.18195E-04
  12  Prefactor     .10000E-03    4.8286        .15661E-02** at limit **
  13  Prefactor     3.9002        17.983        .20447E-03   -.12343E-03
  14  Prefactor     .10000E-03    19.235        .18142E-02** at limit **
  15  Prefactor     2.7491        220.82        .24322E-03    .11733E-04
  16  Prefactor     .10001E-03    54.060        .18142E-02** at limit **
  17  Prefactor     .10000E-03    19.285        .18142E-02** at limit **
  18  Prefactor     .10001E-03    75.902        .18142E-02** at limit **
  19  Prefactor     3.6253        11.181        .10604E-02    .20544E-03
  20  norm          .10000E-03    1.4477        .16943E-03** at limit **
  21  norm          2.3686        3.9170        .16562E-03    .94795E-04
  22  Prefactor     .10000E-03    14.214        .18142E-02** at limit **
  23  norm          .10000E-03    33.401        .18142E-02** at limit **
  24  Prefactor     .10311E-03    169.82        .31357    ** at limit **
  25  norm          .55313        .51636        .48093E-03    .34286E-02
  26  Prefactor     3.7066        8.5357        .10487E-02   -.94056E-04
  27  norm          1.2227        1.8757        .11690E-03    .30353E-03
  28  Prefactor     8.7978        9.3961        .13513E-03    .58217E-04
  29  Prefactor     22.894        48.043        .83715E-04    .44000E-04
  30  Normalizat    1.2191        .26624        .26883E-03    .30998E-03
  31  Prefactor     1.0299        .21558        .24112E-03    .36671E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.73347
  norm       = 0.389965
  Prefactor  = 0.837091
  Prefactor  = 47.8166
  norm       = 7.79675
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.53288
  Prefactor  = 0.0001
  Prefactor  = 3.90021
  Prefactor  = 0.0001
  Prefactor  = 2.7491
  Prefactor  = 0.000100006
  Prefactor  = 0.0001
  Prefactor  = 0.000100006
  Prefactor  = 3.6253
  norm       = 0.000100001
  norm       = 2.36858
  Prefactor  = 0.0001
  norm       = 0.000100001
  Prefactor  = 0.000103108
  norm       = 0.553134
  Prefactor  = 3.70662
  norm       = 1.2227
  Prefactor  = 8.79781
  Prefactor  = 22.8938
  Normalizat = 1.2191
  Prefactor  = 1.02993
 **********
 **   18 **HESSE 
 **********

 FCN=   5331.485     FROM HESSE     STATUS=OK           616 CALLS     6112 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.7335        6.1386        .98851E-05   -1.5445    
   2  norm          .38996        45.589        .11551       -1.5583    
   3  Prefactor     .83709        2.0941        .64743E-05   -1.5525    
   4  Prefactor     47.817        35.430        .11597E-04   -1.4324    
   5  norm          7.7968        6.7049        .57442E-05   -1.5149    
   6  Prefactor     .10000E-03    2.8216        .47067E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    17.423        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    37.496        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    11.652        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    17.636        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     3.5329        11.556        .43013E-04   -1.5332    
  12  Prefactor     .10000E-03    4.8287        .31322E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     3.9002        17.953        .81788E-05   -1.5313    
  14  Prefactor     .10000E-03    19.235        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     2.7491        220.39        .97286E-05   -1.5376    
  16  Prefactor     .10001E-03    54.067        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    19.287        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10001E-03    75.949        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     3.6253        11.173        .42418E-04   -1.5327    
  20  norm          .10000E-03    1.4477        .33887E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          2.3686        3.9141        .66249E-05   -1.5400    
  22  Prefactor     .10000E-03    14.215        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    33.402        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10311E-03    169.79        .31357       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .55313        .51569        .96186E-04   -1.5559    
  26  Prefactor     3.7066        8.5330        .41947E-04   -1.5323    
  27  norm          1.2227        1.8753        .46759E-05   -1.5487    
  28  Prefactor     8.7978        9.3958        .54054E-05   -1.5115    
  29  Prefactor     22.894        48.045        .33486E-05   -1.4751    
  30  Normalizat    1.2191        .26626        .53766E-04   -.86015    
  31  Prefactor     1.0299        .21572        .48224E-04   -.91738    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.13768e-09
Minuit parameter uncertainties:
  1  6.14081
  2  8.43834
  3  2.09426
  4  35.4452
  5  6.70555
  6  5.41379e-05
  7  0.000110613
  8  4.88457e-05
  9  3.72735e-05
  10  0.000127513
  11  11.5629
  12  5.62817e-06
  13  16.7438
  14  7.12144e-05
  15  49.4172
  16  0.00116118
  17  0.000147979
  18  0.00133351
  19  11.1795
  20  6.01399e-05
  21  3.91457
  22  0.000115829
  23  0.000350537
  24  0.0460776
  25  0.515698
  26  8.53582
  27  1.87534
  28  9.39736
  29  48.1266
  30  0.266559
  31  0.215907
Done.

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

Extracting fit parameters...

4FGL J1200.2+0201
   Spectrum: PowerLaw
285    Prefactor:  3.533e+00  1.156e+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.030e+00  2.159e-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:  1.219e+00  2.666e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/243973/likelihoodResults_446947201_447206401_4FGL_J1200.2+0201_daily_bin801.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) = 5330.4100091
delta logL = 1.07510632832

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5330.19012797
delta logL = 1.29498745534

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .20713E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    5.9868       1.0000          .0000       10.000    
     3 'Normalizat'    1.0623       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1225       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=   5330.190     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      329 TOTAL
                     EDM=   .24E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .20235E-02    .21225E-01    .53300E-03** at limit **
   2  Index         5.9958        1.9546        .80034E-01    .23855E-03
   3  Normalizat    1.0627        .58080E-01    .64462E-01    .18669E-04
   4  Prefactor     1.1224        .48463E-01    .36789E-01    .15423E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00202349
  Index      = 5.99578
  Normalizat = 1.06269
  Prefactor  = 1.12244
 **********
 **   18 **HESSE 
 **********

 FCN=   5330.190     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      364 TOTAL
                     EDM=   .54E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .20235E-02    .46726E-01    .22195E-04   -1.5699    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         5.9958        3.2162        .31247E-02    .20050    
   3  Normalizat    1.0627        .20574        .28515E-03   -.90959    
   4  Prefactor     1.1224        .16780        .23222E-03   -.88753    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.43425e-11
Minuit parameter uncertainties:
  1  0.0189606
  2  3.5084
  3  0.205896
  4  0.167878
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/243973': 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) = 5330.19011714
delta logL = 1.29499828509

Extracting fit parameters...

4FGL J1200.2+0201
   Spectrum: PowerLaw
285    Prefactor:  2.023e-03  1.896e-02  1.000e-04  1.000e+04 ( 1.000e-13)
286        Index:  5.996e+00  3.508e+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.122e+00  1.679e-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:  1.063e+00  2.059e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.05
Ra Dec: 180.055 2.017
Photon Index (Free Index): 6.00 +/- 3.51
Photon Flux (Free Index): 1.15e-07 +/- 7.52e-08
Energy Flux (Free Index): 1.43e-05 +/- 9.78e-06

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/243973/cmap_HighResolution_446947201_447206401_4FGL_J1200.2+0201_daily_bin801.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.50e-03', comment='SUCCESS', energy_flux2='1.43e-05', dlogl='1.29e+00', photon_flux2='1.15e-07', job_status='DONE', time_completed='2021-09-04 20:06:16.339905', photon_index_error2='3.51', photon_index2='6.00', ts='0.11', fit_tolerance='1e-08', GAL='1.03', photon_index_error='0.00', photon_flux_upper_limit='1.12e-07', energy_flux_error2='9.78e-06', EG='1.22', time_epoch_completed='1630811176.34', return_code='0', job_id='243973', GAL2='1.12', EG2='1.06', return_code2='102', photon_flux_error2='7.52e-08', ts2='3.05', photon_index='2.11' WHERE bin_id='801' AND source_name='4FGL J1200.2+0201' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 20:06:16 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0055>
Subject: Job 243973: <4FGL_J1200.2+0201_daily_bin801> in cluster <slac> Done

Job <4FGL_J1200.2+0201_daily_bin801> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Sat Sep  4 19:50:19 2021
Job was executed on host(s) <bullet0055>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 19:50:21 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:50:21 2021
Terminated at Sat Sep  4 20:06:17 2021
Results reported at Sat Sep  4 20:06:17 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1200.2+0201_daily_bin801 180.055 2.0172 446947201 447206401 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 :                                   937.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             307.62 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   955 sec.
    Turnaround time :                            958 sec.

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

