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


Performing analysis on: 4FGL_J1203.1+6031_monthly_bin124
RA = 180.788, Dec = 60.518
tmin = 558403201, tmax = 560995201
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='712232', job_status='RUN', time_executed='2021-10-23 07:53:20.372526', time_epoch_executed='1635000800.37' WHERE source_name='4FGL J1203.1+6031' and cadence='monthly' and bin_id='124'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/712232

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

Retrieving the FT1 file...

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

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

Retrieving 458 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/712232/ft1_4FGL_J1203.1+6031_monthly_bin124.fits


Retrieving the FT1 file...

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

Retrieving 458 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/712232/ft2_4FGL_J1203.1+6031_monthly_bin124.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/712232/ft1_4FGL_J1203.1+6031_monthly_bin124.fits outfile=/scratch/kocevski/712232/ft1_filteredMKT_4FGL_J1203.1+6031_monthly_bin124.fits ra=180.788 dec=60.518 rad=12.0 tmin=558403201.0 tmax=560995201.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 31.65
user 30.76
sys 0.76

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/712232/ft2_4FGL_J1203.1+6031_monthly_bin124.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/712232/ft2_4FGL_J1203.1+6031_monthly_bin124.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/712232/ft1_filteredMKT_4FGL_J1203.1+6031_monthly_bin124.fits evtable="EVENTS" outfile="/scratch/kocevski/712232/ft1_filtered_4FGL_J1203.1+6031_monthly_bin124.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.84
user 0.63
sys 0.19

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/712232/ft1_filtered_4FGL_J1203.1+6031_monthly_bin124.fits" evtable="EVENTS" scfile=/scratch/kocevski/712232/ft2_4FGL_J1203.1+6031_monthly_bin124.fits sctable="SC_DATA" outfile=/scratch/kocevski/712232/ltcube_558403201_560995201_4FGL_J1203.1+6031_monthly_bin124.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/712232/ft2_4FGL_J1203.1+6031_monthly_bin124.fits
.....................!
real 110.62
user 109.78
sys 0.44

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/712232/ft1_filtered_4FGL_J1203.1+6031_monthly_bin124.fits evtable="EVENTS" scfile=/scratch/kocevski/712232/ft2_4FGL_J1203.1+6031_monthly_bin124.fits sctable="SC_DATA" expcube=/scratch/kocevski/712232/ltcube_558403201_560995201_4FGL_J1203.1+6031_monthly_bin124.fits outfile=/scratch/kocevski/712232/expmap_558403201_560995201_4FGL_J1203.1+6031_monthly_bin124.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/712232/ltcube_558403201_560995201_4FGL_J1203.1+6031_monthly_bin124.fits
.....................!
real 193.04
user 187.07
sys 5.02

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

Setting source of interest to:
4FGL J1203.1+6031 @ 180.788 60.518

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/712232/ft1_filtered_4FGL_J1203.1+6031_monthly_bin124.fits scfile=/scratch/kocevski/712232/ft2_4FGL_J1203.1+6031_monthly_bin124.fits outfile=/scratch/kocevski/712232/cmap_558403201_560995201_4FGL_J1203.1+6031_monthly_bin124.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.788 yref=60.518 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.82
user 0.62
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/712232/ft1_filtered_4FGL_J1203.1+6031_monthly_bin124.fits scfile=/scratch/kocevski/712232/ft2_4FGL_J1203.1+6031_monthly_bin124.fits outfile=/scratch/kocevski/712232/cmap_HighResolution_558403201_560995201_4FGL_J1203.1+6031_monthly_bin124.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.788 yref=60.518 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.79
user 0.62
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/712232/ft1_filtered_4FGL_J1203.1+6031_monthly_bin124.fits evtable="EVENTS" scfile=/scratch/kocevski/712232/ft2_4FGL_J1203.1+6031_monthly_bin124.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/712232/Model_4FGL_J1203.1+6031_monthly_bin124.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/712232/ft1_filtered_4FGL_J1203.1+6031_monthly_bin124.fits.....................!
real 831.17
user 827.05
sys 2.22

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/712232/ft1_filtered_4FGL_J1203.1+6031_monthly_bin124.fits', '/scratch/kocevski/712232/ft2_4FGL_J1203.1+6031_monthly_bin124.fits', expMap='/scratch/kocevski/712232/expmap_558403201_560995201_4FGL_J1203.1+6031_monthly_bin124.fits', expCube='/scratch/kocevski/712232/ltcube_558403201_560995201_4FGL_J1203.1+6031_monthly_bin124.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/712232/Model_4FGL_J1203.1+6031_monthly_bin124.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1203.1+6031'

4FGL J1203.1+6031
   Spectrum: PowerLaw
391    Prefactor:  3.279e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
392        Index:  2.121e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
393        Scale:  1.582e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/712232/ft1_filtered_4FGL_J1203.1+6031_monthly_bin124.fits
Spacecraft file(s): /scratch/kocevski/712232/ft2_4FGL_J1203.1+6031_monthly_bin124.fits
Exposure map: /scratch/kocevski/712232/expmap_558403201_560995201_4FGL_J1203.1+6031_monthly_bin124.fits
Exposure cube: /scratch/kocevski/712232/ltcube_558403201_560995201_4FGL_J1203.1+6031_monthly_bin124.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/712232/Model_4FGL_J1203.1+6031_monthly_bin124.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) = 109733.130378

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.1994       1.0000         .10000E-03   10000.    
     2 'norm      '    1.2111       1.0000         .10000E-03   10000.    
     3 'norm      '    2.2971       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    1.3734       1.0000         .10000E-03   10000.    
     6 'Prefactor '    27.754       1.0000         .10000E-03   10000.    
     7 'norm      '    3.1709       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.0749       1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.4100       1.0000         .10000E-03   10000.    
    12 'Prefactor '    22.364       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .21042E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .38393       1.0000         .10000E-03   10000.    
    15 'norm      '    2.5204       1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.2547       1.0000         .10000E-03   10000.    
    17 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    4.9266       1.0000         .10000E-03   10000.    
    19 'Prefactor '    4.2789       1.0000         .10000E-03   10000.    
    20 'norm      '    1.9017       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .11481E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    14.931       1.0000         .10000E-03   10000.    
    23 'norm      '    1.2676       1.0000         .10000E-03   10000.    
    24 'norm      '    3.8591       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    4.0146       1.0000         .10000E-03   10000.    
    27 'norm      '    1.9290       1.0000         .10000E-03   10000.    
    28 'Prefactor '    14.175       1.0000         .10000E-03   10000.    
    29 'Prefactor '    2.3695       1.0000         .10000E-03   10000.    
    30 'Prefactor '    5.0837       1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    32 'Normalizat'    1.0940       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .96472       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7260E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   109733.1     FROM MIGRAD    STATUS=CONVERGED     74 CALLS     3215 TOTAL
                     EDM=   .78E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  9.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.1995        1.0072        .10265E-06    .17887E-03
   2  norm          1.2111        .37679       -.10005E-06    .97206E-03
   3  norm          2.2971        .37141       -.64911E-07    .10317E-02
   4  Prefactor     .10001E-03    2.9153       -.45177E-05** at limit **
   5  norm          1.3734        .47813        .30964E-06    .27417E-02
   6  Prefactor     27.754        1.0003       -.12499E-07    .27831E-03
   7  norm          3.1709        .52973        .56604E-08   -.68891E-03
   8  Prefactor     .10000E-03    .70463        .14742E-05** at limit **
   9  Prefactor     .10000E-03    2.7664       -.99134E-05** at limit **
  10  Prefactor     3.0749        1.0144        .10616E-06    .11404E-03
  11  Prefactor     4.4099        1.0436        .24306E-06    .14001E-02
  12  Prefactor     22.364        1.0011        .40029E-07    .12433E-04
  13  Prefactor     .10000E-03    3.0296        .11985E-04** at limit **
  14  Prefactor     .38402        .36885       -.77292E-08    .74480E-04
  15  norm          2.5205        1.0403       -.19710E-06   -.69230E-05
  16  Prefactor     2.2547        .75537       -.60273E-07    .92525E-03
  17  norm          .10000E-03    .73917       -.19403E-05** at limit **
  18  Prefactor     4.9269        1.4939       -.65699E-06    .10094E-02
  19  Prefactor     4.2794        1.0223       -.21339E-06    .74345E-04
  20  norm          1.9018        .48657       -.17261E-06    .26907E-02
  21  Prefactor     .10001E-03    2.5064        .50244E-06** at limit **
  22  Prefactor     14.931        1.0054       -.12205E-06    .11105E-02
  23  norm          1.2683        .66453        .14153E-06   -.75871E-03
  24  norm          3.8592        1.0495        .31796E-06    .15054E-02
  25  Prefactor     .10000E-03    .31487       -.10049E-06** at limit **
  26  norm          4.0146        .55278        .22372E-07    .17963E-02
  27  norm          1.9290        .42066       -.40044E-07    .73544E-03
  28  Prefactor     14.175        1.0013       -.45137E-07    .36765E-03
  29  Prefactor     2.3696        1.0349        .16807E-06    .33635E-03
  30  Prefactor     5.0837        1.0049       -.91917E-08    .40015E-04
  31  Prefactor     .10000E-03    .93539        .74577E-06** at limit **
  32  Normalizat    1.0940        .45751E-01    .17047E-06    .26957E-02
  33  Prefactor     .96472        .56755E-01    .40002E-06    .17341E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.19945
  norm       = 1.21113
  norm       = 2.29707
  Prefactor  = 0.000100008
  norm       = 1.37336
  Prefactor  = 27.7544
  norm       = 3.17094
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.07486
  Prefactor  = 4.40992
  Prefactor  = 22.3642
  Prefactor  = 0.0001
  Prefactor  = 0.384022
  norm       = 2.52051
  Prefactor  = 2.25469
  norm       = 0.0001
  Prefactor  = 4.92688
  Prefactor  = 4.27939
  norm       = 1.90176
  Prefactor  = 0.000100012
  Prefactor  = 14.9306
  norm       = 1.26832
  norm       = 3.85917
  Prefactor  = 0.0001
  norm       = 4.01459
  norm       = 1.929
  Prefactor  = 14.1746
  Prefactor  = 2.36963
  Prefactor  = 5.08367
  Prefactor  = 0.0001
  Normalizat = 1.09397
  Prefactor  = 0.964723
 **********
 **   18 **HESSE 
 **********

 FCN=   109733.1     FROM HESSE     STATUS=OK           809 CALLS     4024 TOTAL
                     EDM=   .32E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.1995        4.0369        .49164E-02   -1.5298    
   2  norm          1.2111        .44182        .10276E-01   -1.5488    
   3  norm          2.2971        .37182        .67699E-02   -1.5405    
   4  Prefactor     .10001E-03    5.1429        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          1.3734        .54850        .92961E-02   -1.5474    
   6  Prefactor     27.754        19.439        .19011E-02   -1.4654    
   7  norm          3.1709        .55001        .56897E-02   -1.5352    
   8  Prefactor     .10000E-03    .27071        .48877E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    2.7836        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     3.0749        4.1421        .57828E-02   -1.5357    
  11  Prefactor     4.4099        1.5966        .47944E-02   -1.5288    
  12  Prefactor     22.364        6.0633        .21175E-02   -1.4762    
  13  Prefactor     .10000E-03    .67796        .90712E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .38402        .38106        .46571E-01   -1.5584    
  15  norm          2.5205        1.7461        .64332E-02   -1.5390    
  16  Prefactor     2.2547        .75970        .68404E-02   -1.5408    
  17  norm          .10000E-03    .15656        .66291E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     4.9269        1.7317        .45301E-02   -1.5264    
  19  Prefactor     4.2794        3.5023        .48692E-02   -1.5294    
  20  norm          1.9018        .49033        .75394E-02   -1.5432    
  21  Prefactor     .10001E-03    .55928        .13426       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     14.931        8.2894        .25913E-02   -1.4935    
  23  norm          1.2683        .67022        .98868E-02   -1.5483    
  24  norm          3.8592        1.6093        .51355E-02   -1.5315    
  25  Prefactor     .10000E-03    .30160        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          4.0146        .55850        .50318E-02   -1.5307    
  27  norm          1.9290        .42121        .74768E-02   -1.5430    
  28  Prefactor     14.175        6.1195        .26596E-02   -1.4955    
  29  Prefactor     2.3696        1.6508        .66545E-02   -1.5400    
  30  Prefactor     5.0837        4.9766        .44581E-02   -1.5257    
  31  Prefactor     .10000E-03    .20559        .47806E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    1.0940        .40475E-01    .38251E-01   -.89946    
  33  Prefactor     .96472        .48425E-01    .65777E-01   -.93915    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.22016e-08
Minuit parameter uncertainties:
  1  4.03716
  2  0.441821
  3  0.371818
  4  0.000412577
  5  0.548505
  6  19.443
  7  0.55001
  8  1.01055e-05
  9  5.35342e-05
  10  4.14247
  11  1.59658
  12  6.06342
  13  1.7938e-05
  14  0.38106
  15  1.7461
  16  0.759708
  17  8.45777e-06
  18  1.73174
  19  3.5025
  20  0.490335
  21  0.000160594
  22  8.29
  23  0.67022
  24  1.60933
  25  5.77864e-06
  26  0.558505
  27  0.421214
  28  6.11981
  29  1.65087
  30  4.97698
  31  1.08591e-05
  32  0.0404758
  33  0.0484276
Done.

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

Extracting fit parameters...

4FGL J1203.1+6031
   Spectrum: PowerLaw
391    Prefactor:  4.927e+00  1.732e+00  1.000e-04  1.000e+04 ( 1.000e-13)
392        Index:  2.121e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
393        Scale:  1.582e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
723    Prefactor:  9.647e-01  4.843e-02  0.000e+00  1.000e+01 ( 1.000e+00)
724        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
725        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
722   Normalization:  1.094e+00  4.048e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 20.19
Ra Dec: 180.788 60.518
Photon Index (Fixed Index): 2.12 +/- 0.00
Photon Flux (Fixed Index): 1.54e-08 +/- 5.40e-09
Energy Flux (Fixed Index): 8.06e-06 +/- 2.83e-06

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) = 109733.095635
delta logL = 0.00753825488209

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 109733.093435
delta logL = 0.00973814117606

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   109733.1     FROM MIGRAD    STATUS=CONVERGED     84 CALLS      251 TOTAL
                     EDM=   .27E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.8381        1.8090        .91445E-03   -.19937E-02
   2  Index         2.1572        .27232        .11165E-01   -.25563E-03
   3  Normalizat    1.0931        .45351E-01    .21909E-03   -.26568E-04
   4  Prefactor     .96527        .56580E-01    .29086E-03   -.95685E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.83807
  Index      = 2.15719
  Normalizat = 1.09307
  Prefactor  = 0.965268
 **********
 **   18 **HESSE 
 **********

 FCN=   109733.1     FROM HESSE     STATUS=OK            25 CALLS      276 TOTAL
                     EDM=   .61E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.8381        1.7055        .36578E-04   -1.5268    
   2  Index         2.1572        .25662        .44661E-03   -.60476    
   3  Normalizat    1.0931        .45313E-01    .87637E-05   -.89975    
   4  Prefactor     .96527        .56588E-01    .11634E-04   -.93896    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.09089e-10
Minuit parameter uncertainties:
  1  1.70556
  2  0.256787
  3  0.045315
  4  0.0565913
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/712232': 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) = 109733.093435
delta logL = 0.00973814127792

Extracting fit parameters...

4FGL J1203.1+6031
   Spectrum: PowerLaw
391    Prefactor:  4.838e+00  1.706e+00  1.000e-04  1.000e+04 ( 1.000e-13)
392        Index:  2.157e+00  2.568e-01  0.000e+00  1.000e+01 (-1.000e+00)
393        Scale:  1.582e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
723    Prefactor:  9.653e-01  5.659e-02  0.000e+00  1.000e+01 ( 1.000e+00)
724        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
725        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
722   Normalization:  1.093e+00  4.532e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 20.20
Ra Dec: 180.788 60.518
Photon Index (Free Index): 2.16 +/- 0.26
Photon Flux (Free Index): 1.61e-08 +/- 7.58e-09
Energy Flux (Free Index): 7.87e-06 +/- 2.84e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  2.220e+00 [aplpy.core]
Saving /scratch/kocevski/712232/cmap_HighResolution_558403201_560995201_4FGL_J1203.1+6031_monthly_bin124.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.54e-08', energy_flux2='7.87e-06', photon_flux_error='5.40e-09', dlogl='9.74e-03', energy_flux='8.06e-06', photon_flux2='1.61e-08', job_status='DONE', time_completed='2021-10-23 10:38:45.454740', photon_index_error2='0.26', photon_index2='2.16', ts='20.19', fit_tolerance='1e-08', GAL='0.96', photon_index_error='0.00', energy_flux_error2='2.84e-06', EG='1.09', time_epoch_completed='1635010725.45', return_code='0', job_id='712232', GAL2='0.97', EG2='1.09', return_code2='0', energy_flux_error='2.83e-06', photon_flux_error2='7.58e-09', ts2='20.20', photon_index='2.12' WHERE bin_id='124' AND source_name='4FGL J1203.1+6031' AND cadence='monthly';

Database successfully updated.


Analysis Complete.


Sat Oct 23 10:38:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0074>
Subject: Job 712232: <4FGL_J1203.1+6031_monthly_bin124> in cluster <slac> Done

Job <4FGL_J1203.1+6031_monthly_bin124> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sat Oct 23 07:50:34 2021
Job was executed on host(s) <bullet0074>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Oct 23 07:50:36 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Oct 23 07:50:36 2021
Terminated at Sat Oct 23 10:38:47 2021
Results reported at Sat Oct 23 10:38:47 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1203.1+6031_monthly_bin124 180.788 60.518 558403201 560995201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1203.1+6031 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   9514.00 sec.
    Max Memory :                                 632 MB
    Average Memory :                             460.46 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   10090 sec.
    Turnaround time :                            10093 sec.

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

