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


Performing analysis on: 4FGL_J0844.2+5312_monthly_bin119
RA = 131.051, Dec = 53.2141
tmin = 545443201, tmax = 548035201
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='454560', job_status='RUN', time_executed='2021-10-20 00:07:49.833555', time_epoch_executed='1634713669.83' WHERE source_name='4FGL J0844.2+5312' and cadence='monthly' and bin_id='119'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/454560

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

Retrieving the FT1 file...

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

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

Retrieving 458 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/454560/ft1_4FGL_J0844.2+5312_monthly_bin119.fits


Retrieving the FT1 file...

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

Retrieving 458 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/454560/ft2_4FGL_J0844.2+5312_monthly_bin119.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/454560/ft1_4FGL_J0844.2+5312_monthly_bin119.fits outfile=/scratch/kocevski/454560/ft1_filteredMKT_4FGL_J0844.2+5312_monthly_bin119.fits ra=131.051 dec=53.2141 rad=12.0 tmin=545443201.0 tmax=548035201.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 33.27
user 32.42
sys 0.71

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/454560/ft2_4FGL_J0844.2+5312_monthly_bin119.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/454560/ft2_4FGL_J0844.2+5312_monthly_bin119.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/454560/ft1_filteredMKT_4FGL_J0844.2+5312_monthly_bin119.fits evtable="EVENTS" outfile="/scratch/kocevski/454560/ft1_filtered_4FGL_J0844.2+5312_monthly_bin119.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.83
user 0.66
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/454560/ft1_filtered_4FGL_J0844.2+5312_monthly_bin119.fits" evtable="EVENTS" scfile=/scratch/kocevski/454560/ft2_4FGL_J0844.2+5312_monthly_bin119.fits sctable="SC_DATA" outfile=/scratch/kocevski/454560/ltcube_545443201_548035201_4FGL_J0844.2+5312_monthly_bin119.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/454560/ft2_4FGL_J0844.2+5312_monthly_bin119.fits
.....................!
real 117.76
user 117.14
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/454560/ft1_filtered_4FGL_J0844.2+5312_monthly_bin119.fits evtable="EVENTS" scfile=/scratch/kocevski/454560/ft2_4FGL_J0844.2+5312_monthly_bin119.fits sctable="SC_DATA" expcube=/scratch/kocevski/454560/ltcube_545443201_548035201_4FGL_J0844.2+5312_monthly_bin119.fits outfile=/scratch/kocevski/454560/expmap_545443201_548035201_4FGL_J0844.2+5312_monthly_bin119.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/454560/ltcube_545443201_548035201_4FGL_J0844.2+5312_monthly_bin119.fits
.....................!
real 191.82
user 186.56
sys 4.89

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

Setting source of interest to:
4FGL J0844.2+5312 @ 131.051 53.2141

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/454560/ft1_filtered_4FGL_J0844.2+5312_monthly_bin119.fits scfile=/scratch/kocevski/454560/ft2_4FGL_J0844.2+5312_monthly_bin119.fits outfile=/scratch/kocevski/454560/cmap_545443201_548035201_4FGL_J0844.2+5312_monthly_bin119.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=131.051 yref=53.2141 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.78
user 0.61
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/454560/ft1_filtered_4FGL_J0844.2+5312_monthly_bin119.fits scfile=/scratch/kocevski/454560/ft2_4FGL_J0844.2+5312_monthly_bin119.fits outfile=/scratch/kocevski/454560/cmap_HighResolution_545443201_548035201_4FGL_J0844.2+5312_monthly_bin119.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=131.051 yref=53.2141 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.78
user 0.61
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/454560/ft1_filtered_4FGL_J0844.2+5312_monthly_bin119.fits evtable="EVENTS" scfile=/scratch/kocevski/454560/ft2_4FGL_J0844.2+5312_monthly_bin119.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/454560/Model_4FGL_J0844.2+5312_monthly_bin119.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/454560/ft1_filtered_4FGL_J0844.2+5312_monthly_bin119.fits.....................!
real 566.82
user 564.08
sys 1.24

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/454560/ft1_filtered_4FGL_J0844.2+5312_monthly_bin119.fits', '/scratch/kocevski/454560/ft2_4FGL_J0844.2+5312_monthly_bin119.fits', expMap='/scratch/kocevski/454560/expmap_545443201_548035201_4FGL_J0844.2+5312_monthly_bin119.fits', expCube='/scratch/kocevski/454560/ltcube_545443201_548035201_4FGL_J0844.2+5312_monthly_bin119.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/454560/Model_4FGL_J0844.2+5312_monthly_bin119.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0844.2+5312'

4FGL J0844.2+5312
   Spectrum: PowerLaw
340    Prefactor:  2.666e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
341        Index:  2.035e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
342        Scale:  1.737e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/454560/ft1_filtered_4FGL_J0844.2+5312_monthly_bin119.fits
Spacecraft file(s): /scratch/kocevski/454560/ft2_4FGL_J0844.2+5312_monthly_bin119.fits
Exposure map: /scratch/kocevski/454560/expmap_545443201_548035201_4FGL_J0844.2+5312_monthly_bin119.fits
Exposure cube: /scratch/kocevski/454560/ltcube_545443201_548035201_4FGL_J0844.2+5312_monthly_bin119.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/454560/Model_4FGL_J0844.2+5312_monthly_bin119.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) = 70830.4638286

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.668       1.0000         .10000E-03   10000.    
     2 'Prefactor '    11.311       1.0000         .10000E-03   10000.    
     3 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.2927       1.0000         .10000E-03   10000.    
     5 'norm      '    2.1012       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    1.0654       1.0000         .10000E-03   10000.    
    11 'norm      '    1.8090       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .62675       1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.4783       1.0000         .10000E-03   10000.    
    14 'norm      '    1.6300       1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.6381       1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.2749       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .69764       1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.9538       1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10184E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    9.0577       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .11997E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    3.1196       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10938E-02   1.0000         .10000E-03   10000.    
    25 'Prefactor '    1.0518       1.0000         .10000E-03   10000.    
    26 'norm      '    .81471       1.0000         .10000E-03   10000.    
    27 'norm      '    1.1550       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10472E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    20.715       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .34085       1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    32 'Prefactor '    1.0963       1.0000         .10000E-03   10000.    
    33 'Prefactor '    9.2103       1.0000         .10000E-03   10000.    
    34 'Prefactor '    .70780       1.0000         .10000E-03   10000.    
    35 'norm      '    1.6142       1.0000         .10000E-03   10000.    
    36 'Prefactor '    11.302       1.0000         .10000E-03   10000.    
    37 'norm      '    1.4345       1.0000         .10000E-03   10000.    
    38 'Prefactor '    .69007       1.0000         .10000E-03   10000.    
    39 'Normalizat'    .94442       1.0000         .10000E-01   10.000    
    40 'Prefactor '    1.0580       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7050E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   70830.39     FROM MIGRAD    STATUS=CONVERGED   1235 CALLS     5631 TOTAL
                     EDM=   .17E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.665        6.6627         .0000        .37983E-02
   2  Prefactor     11.309        8.9981         .0000        .75740E-03
   3  norm          .10000E-03    .34088E-01     .0000    ** at limit **
   4  Prefactor     2.2927        3.7860         .0000        .49378E-01
   5  norm          2.1012        .72539         .0000        .19538E-02
   6  Prefactor     .10000E-03    .64838         .0000    ** at limit **
   7  norm          .10000E-03    .14865         .0000    ** at limit **
   8  Prefactor     .10000E-03    2.9324         .0000    ** at limit **
   9  Prefactor     .10000E-03    3.7373         .0000    ** at limit **
  10  norm          1.0654        .71010         .0000        .39241E-02
  11  norm          1.8089        .46704         .0000        .11513E-02
  12  Prefactor     .62681        .48002         .0000        .85273E-02
  13  Prefactor     1.4781        1.4679         .0000        .77628E-01
  14  norm          1.6300        .23782         .0000       -.80053E-03
  15  Prefactor     3.6379        1.5301         .0000        .10125    
  16  Prefactor     2.2759        5.3932         .0000        .69957E-03
  17  Prefactor     .69749        2.4580         .0000        .76179E-02
  18  Prefactor     2.9549        1.8208         .0000        .48378E-02
  19  norm          .10000E-03    .39474         .0000    ** at limit **
  20  norm          .10000E-03    .34957         .0000    ** at limit **
  21  Prefactor     9.0582        3.3099         .0000        .86049E-02
  22  Prefactor     .10000E-03    .46273         .0000    ** at limit **
  23  Prefactor     3.1194        .87269         .0000        .26403E-02
  24  Prefactor     .10000E-03    1.4696         .0000    ** at limit **
  25  Prefactor     1.0504        4.2601         .0000        .20064E-02
  26  norm          .81469        .15936         .0000        .87359E-02
  27  norm          1.1551        .25251         .0000        .78050E-03
  28  Prefactor     .10000E-03    .14026         .0000    ** at limit **
  29  Prefactor     20.715        3.4526         .0000       -.15105E-03
  30  Prefactor     .34086        .44840         .0000        .87800E-02
  31  Prefactor     .10000E-03    1.2824         .0000    ** at limit **
  32  Prefactor     1.0959        1.9367         .0000        .94431E-03
  33  Prefactor     9.2108        3.0272         .0000        .17007E-01
  34  Prefactor     .70768        1.5158         .0000        .14252E-01
  35  norm          1.6143        1.4323         .0000        .31414E-01
  36  Prefactor     11.301        7.8153         .0000        .12455E-03
  37  norm          1.4345        .17544         .0000       -.35293E-02
  38  Prefactor     .69055        1.4940         .0000        .15359E-01
  39  Normalizat    .94446        .59351E-01     .0000       -.12707E-02
  40  Prefactor     1.0580        .47280E-01     .0000       -.12556E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.6646
  Prefactor  = 11.309
  norm       = 0.0001
  Prefactor  = 2.29271
  norm       = 2.10117
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.06538
  norm       = 1.80894
  Prefactor  = 0.626811
  Prefactor  = 1.47809
  norm       = 1.62999
  Prefactor  = 3.63786
  Prefactor  = 2.2759
  Prefactor  = 0.697486
  Prefactor  = 2.95488
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 9.05823
  Prefactor  = 0.0001
  Prefactor  = 3.11939
  Prefactor  = 0.000100003
  Prefactor  = 1.05037
  norm       = 0.814693
  norm       = 1.15511
  Prefactor  = 0.000100001
  Prefactor  = 20.7149
  Prefactor  = 0.340865
  Prefactor  = 0.0001
  Prefactor  = 1.09586
  Prefactor  = 9.2108
  Prefactor  = 0.707678
  norm       = 1.6143
  Prefactor  = 11.3006
  norm       = 1.43453
  Prefactor  = 0.69055
  Normalizat = 0.944462
  Prefactor  = 1.05801
 **********
 **   18 **HESSE 
 **********

 FCN=   70830.39     FROM HESSE     STATUS=OK          1033 CALLS     6664 TOTAL
                     EDM=   .13E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.665        6.6342        .58640E-03   -1.5025    
   2  Prefactor     11.309        8.9478        .11912E-03   -1.5035    
   3  norm          .10000E-03    .32990        .94215E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     2.2927        3.7323        .13554E-02   -1.5405    
   5  norm          2.1012        .71849        .12413E-03   -1.5418    
   6  Prefactor     .10000E-03    .65499        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    .36324        .19613E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    2.9401        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    3.8171        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          1.0654        .68902        .17526E-03   -1.5502    
  11  norm          1.8089        .46562        .88633E-04   -1.5439    
  12  Prefactor     .62681        .38823        .15411E-02   -1.5550    
  13  Prefactor     1.4781        1.4508        .15515E-02   -1.5465    
  14  norm          1.6300        .23724        .47708E-04   -1.5453    
  15  Prefactor     3.6379        1.5237        .10080E-02   -1.5326    
  16  Prefactor     2.2759        5.2939        .27226E-03   -1.5406    
  17  Prefactor     .69749        2.4395        .48211E-03   -1.5541    
  18  Prefactor     2.9549        1.8070        .23629E-03   -1.5364    
  19  norm          .10000E-03    .40503        .32629E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    1.6914        .30029E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     9.0582        3.3070        .66586E-03   -1.5106    
  22  Prefactor     .10000E-03    1.4111        .34600E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     3.1194        .86606        .12231E-03   -1.5355    
  24  Prefactor     .10000E-03    1.5841        .96142E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     1.0504        32.347        .10180E-01   -1.5503    
  26  norm          .81469        .18143        .40690E-04   -1.5527    
  27  norm          1.1551        .24604        .58888E-04   -1.5493    
  28  Prefactor     .10000E-03    .63729        .28982E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     20.715        3.4334        .88003E-04   -1.4797    
  30  Prefactor     .34086        .48124        .18954E-02   -1.5591    
  31  Prefactor     .10000E-03    1.2881        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Prefactor     1.0959        1.5383        .42948E-02   -1.5499    
  33  Prefactor     9.2108        2.8029        .66029E-03   -1.5101    
  34  Prefactor     .70768        1.4437        .42696E-03   -1.5540    
  35  norm          1.6143        1.4213        .14243E-02   -1.5454    
  36  Prefactor     11.301        7.7910        .11917E-03   -1.5036    
  37  norm          1.4345        .17528        .37633E-04   -1.5468    
  38  Prefactor     .69055        1.4553        .44165E-03   -1.5542    
  39  Normalizat    .94446        .65742E-01    .27176E-03   -.94915    
  40  Prefactor     1.0580        .53313E-01    .22754E-03   -.90820    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.33487e-07
Minuit parameter uncertainties:
  1  6.6346
  2  8.94885
  3  5.52585e-06
  4  3.7327
  5  0.718496
  6  1.44015e-06
  7  5.63042e-06
  8  2.60927e-05
  9  4.91041e-05
  10  0.68903
  11  0.46562
  12  0.388229
  13  1.45079
  14  0.237237
  15  1.5237
  16  5.29499
  17  2.4399
  18  1.80705
  19  1.08086e-06
  20  1.20916e-05
  21  3.30709
  22  1.17613e-05
  23  0.866067
  24  0.000144274
  25  11.6643
  26  0.181428
  27  0.246038
  28  3.60113e-05
  29  3.43339
  30  0.481246
  31  1.78056e-05
  32  1.53839
  33  2.80296
  34  1.44379
  35  1.42135
  36  7.79172
  37  0.17528
  38  1.4554
  39  0.0657471
  40  0.0533156
Done.

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

Extracting fit parameters...

4FGL J0844.2+5312
   Spectrum: PowerLaw
340    Prefactor:  2.955e+00  1.807e+00  1.000e-04  1.000e+04 ( 1.000e-13)
341        Index:  2.035e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
342        Scale:  1.737e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
702    Prefactor:  1.058e+00  5.332e-02  0.000e+00  1.000e+01 ( 1.000e+00)
703        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
704        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
701   Normalization:  9.445e-01  6.575e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.86
Ra Dec: 131.051 53.214
Photon Index (Fixed Index): 2.03 +/- 0.00
Photon Flux (Fixed Index): 9.51e-09 +/- 5.82e-09
Energy Flux (Fixed Index): 6.05e-06 +/- 3.70e-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) = 70830.1519773
delta logL = 0.242427773686

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 70830.1452169
delta logL = 0.249188087488

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.3946       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3733       1.0000          .0000       10.000    
     3 'Normalizat'    .93750       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0609       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7050E+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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   70830.15     FROM MIGRAD    STATUS=FAILED        84 CALLS      281 TOTAL
                     EDM=   .47E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.3946        2.1186        .21541E-03   -.44669E-03
   2  Index         2.3733        .56969        .84930E-02    .15817E-02
   3  Normalizat    .93750        .59665E-01    .27268E-03   -.50698E-04
   4  Prefactor     1.0609        .51802E-01    .22727E-03   -.73633E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   70830.15     FROM SIMPLEX   STATUS=UNCHANGED     68 CALLS      349 TOTAL
                     EDM=   .99E-05    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.3946        2.1186        .32809E-04   -1.5398    
   2  Index         2.3733        .56969        .42786E-03   -.55312    
   3  Normalizat    .93750        .59665E-01    .66020E-04   -.95155    
   4  Prefactor     1.0609        .51802E-01    .56580E-04   -.90726    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   70830.15     FROM MIGRAD    STATUS=CONVERGED     32 CALLS      381 TOTAL
                     EDM=   .13E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.3945        1.8576        .86166E-05   -.18999E-03
   2  Index         2.3733        .49937        .16986E-02    .13493E-04
   3  Normalizat    .93750        .59421E-01    .10907E-04   -.16677E-04
   4  Prefactor     1.0609        .51723E-01    .90908E-05   -.12005E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.39454
  Index      = 2.37327
  Normalizat = 0.937496
  Prefactor  = 1.06089
 **********
 **   18 **HESSE 
 **********

 FCN=   70830.15     FROM HESSE     STATUS=OK            23 CALLS      404 TOTAL
                     EDM=   .96E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.3945        1.8177        .17233E-05   -1.5398    
   2  Index         2.3733        .48850        .67944E-04   -.55312    
   3  Normalizat    .93750        .59505E-01    .21815E-05   -.95155    
   4  Prefactor     1.0609        .51799E-01    .18182E-05   -.90726    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.5926e-12
Minuit parameter uncertainties:
  1  1.81772
  2  0.489578
  3  0.0595091
  4  0.0518016
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/454560': 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) = 70830.1452169
delta logL = 0.249188087837

Extracting fit parameters...

4FGL J0844.2+5312
   Spectrum: PowerLaw
340    Prefactor:  2.395e+00  1.818e+00  1.000e-04  1.000e+04 ( 1.000e-13)
341        Index:  2.373e+00  4.896e-01  0.000e+00  1.000e+01 (-1.000e+00)
342        Scale:  1.737e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
702    Prefactor:  1.061e+00  5.180e-02  0.000e+00  1.000e+01 ( 1.000e+00)
703        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
704        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
701   Normalization:  9.375e-01  5.951e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.36
Ra Dec: 131.051 53.214
Photon Index (Free Index): 2.37 +/- 0.49
Photon Flux (Free Index): 1.53e-08 +/- 1.14e-08
Energy Flux (Free Index): 5.19e-06 +/- 2.95e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/454560/cmap_HighResolution_545443201_548035201_4FGL_J0844.2+5312_monthly_bin119.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='9.51e-09', energy_flux2='5.19e-06', photon_flux_error='5.82e-09', dlogl='2.49e-01', energy_flux='6.05e-06', photon_flux2='1.53e-08', job_status='DONE', time_completed='2021-10-20 02:56:33.505401', photon_index_error2='0.49', photon_index2='2.37', ts='4.86', fit_tolerance='1e-08', GAL='1.06', photon_index_error='0.00', energy_flux_error2='2.95e-06', EG='0.94', time_epoch_completed='1634723793.51', return_code='0', job_id='454560', GAL2='1.06', EG2='0.94', return_code2='0', energy_flux_error='3.70e-06', photon_flux_error2='1.14e-08', ts2='5.36', photon_index='2.03' WHERE bin_id='119' AND source_name='4FGL J0844.2+5312' AND cadence='monthly';

Database successfully updated.


Analysis Complete.


Wed Oct 20 02:56:33 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0258>
Subject: Job 454560: <4FGL_J0844.2+5312_monthly_bin119> in cluster <slac> Done

Job <4FGL_J0844.2+5312_monthly_bin119> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Wed Oct 20 00:05:17 2021
Job was executed on host(s) <bullet0258>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Oct 20 00:06:53 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Oct 20 00:06:53 2021
Terminated at Wed Oct 20 02:56:34 2021
Results reported at Wed Oct 20 02:56:34 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0844.2+5312_monthly_bin119 131.051 53.2141 545443201 548035201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0844.2+5312 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   9949.00 sec.
    Max Memory :                                 629 MB
    Average Memory :                             410.88 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   10181 sec.
    Turnaround time :                            10277 sec.

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

