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


Performing analysis on: 4FGL_J1754.2+3212_monthly_bin140
RA = 268.553, Dec = 32.2007
tmin = 599875201, tmax = 602467201
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='969632', job_status='RUN', time_executed='2021-11-01 01:45:32.268829', time_epoch_executed='1635756332.27' WHERE source_name='4FGL J1754.2+3212' and cadence='monthly' and bin_id='140'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/969632

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

Retrieving the FT1 file...

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

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

Retrieving 456 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/969632/ft1_4FGL_J1754.2+3212_monthly_bin140.fits


Retrieving the FT1 file...

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

Retrieving 456 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/969632/ft2_4FGL_J1754.2+3212_monthly_bin140.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/969632/ft1_4FGL_J1754.2+3212_monthly_bin140.fits outfile=/scratch/kocevski/969632/ft1_filteredMKT_4FGL_J1754.2+3212_monthly_bin140.fits ra=268.553 dec=32.2007 rad=12.0 tmin=599875201.0 tmax=602467201.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.06
user 32.12
sys 0.86

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/969632/ft2_4FGL_J1754.2+3212_monthly_bin140.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/969632/ft2_4FGL_J1754.2+3212_monthly_bin140.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/969632/ft1_filteredMKT_4FGL_J1754.2+3212_monthly_bin140.fits evtable="EVENTS" outfile="/scratch/kocevski/969632/ft1_filtered_4FGL_J1754.2+3212_monthly_bin140.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.65
sys 0.19

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/969632/ft1_filtered_4FGL_J1754.2+3212_monthly_bin140.fits" evtable="EVENTS" scfile=/scratch/kocevski/969632/ft2_4FGL_J1754.2+3212_monthly_bin140.fits sctable="SC_DATA" outfile=/scratch/kocevski/969632/ltcube_599875201_602467201_4FGL_J1754.2+3212_monthly_bin140.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/969632/ft2_4FGL_J1754.2+3212_monthly_bin140.fits
.....................!
real 129.65
user 128.26
sys 1.14

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/969632/ft1_filtered_4FGL_J1754.2+3212_monthly_bin140.fits evtable="EVENTS" scfile=/scratch/kocevski/969632/ft2_4FGL_J1754.2+3212_monthly_bin140.fits sctable="SC_DATA" expcube=/scratch/kocevski/969632/ltcube_599875201_602467201_4FGL_J1754.2+3212_monthly_bin140.fits outfile=/scratch/kocevski/969632/expmap_599875201_602467201_4FGL_J1754.2+3212_monthly_bin140.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/969632/ltcube_599875201_602467201_4FGL_J1754.2+3212_monthly_bin140.fits
.....................!
real 192.90
user 186.60
sys 5.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 207 point sources and 0 extended sources

Setting source of interest to:
4FGL J1754.2+3212 @ 268.553 32.2007

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/969632/ft1_filtered_4FGL_J1754.2+3212_monthly_bin140.fits scfile=/scratch/kocevski/969632/ft2_4FGL_J1754.2+3212_monthly_bin140.fits outfile=/scratch/kocevski/969632/cmap_599875201_602467201_4FGL_J1754.2+3212_monthly_bin140.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=268.553 yref=32.2007 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.84
user 0.63
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/969632/ft1_filtered_4FGL_J1754.2+3212_monthly_bin140.fits scfile=/scratch/kocevski/969632/ft2_4FGL_J1754.2+3212_monthly_bin140.fits outfile=/scratch/kocevski/969632/cmap_HighResolution_599875201_602467201_4FGL_J1754.2+3212_monthly_bin140.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=268.553 yref=32.2007 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.63
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/969632/ft1_filtered_4FGL_J1754.2+3212_monthly_bin140.fits evtable="EVENTS" scfile=/scratch/kocevski/969632/ft2_4FGL_J1754.2+3212_monthly_bin140.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/969632/Model_4FGL_J1754.2+3212_monthly_bin140.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/969632/ft1_filtered_4FGL_J1754.2+3212_monthly_bin140.fits.....................!
real 692.69
user 688.97
sys 1.77

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/969632/ft1_filtered_4FGL_J1754.2+3212_monthly_bin140.fits', '/scratch/kocevski/969632/ft2_4FGL_J1754.2+3212_monthly_bin140.fits', expMap='/scratch/kocevski/969632/expmap_599875201_602467201_4FGL_J1754.2+3212_monthly_bin140.fits', expCube='/scratch/kocevski/969632/ltcube_599875201_602467201_4FGL_J1754.2+3212_monthly_bin140.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/969632/Model_4FGL_J1754.2+3212_monthly_bin140.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1754.2+3212'

4FGL J1754.2+3212
   Spectrum: LogParabola
348         norm:  1.314e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
349        alpha:  1.748e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
350         beta:  1.054e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
351           Eb:  1.404e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/969632/ft1_filtered_4FGL_J1754.2+3212_monthly_bin140.fits
Spacecraft file(s): /scratch/kocevski/969632/ft2_4FGL_J1754.2+3212_monthly_bin140.fits
Exposure map: /scratch/kocevski/969632/expmap_599875201_602467201_4FGL_J1754.2+3212_monthly_bin140.fits
Exposure cube: /scratch/kocevski/969632/ltcube_599875201_602467201_4FGL_J1754.2+3212_monthly_bin140.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/969632/Model_4FGL_J1754.2+3212_monthly_bin140.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) = 97603.5359448

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    5.2423       1.0000         .10000E-03   10000.    
     4 'Prefactor '    32.581       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    12.425       1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.9622       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10131E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .65351       1.0000         .10000E-03   10000.    
    13 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    5.7397       1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.7758       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    5.1672       1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.9654       1.0000         .10000E-03   10000.    
    19 'norm      '    16.523       1.0000         .10000E-03   10000.    
    20 'Prefactor '    3.2975       1.0000         .10000E-03   10000.    
    21 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .28636       1.0000         .10000E-03   10000.    
    23 'norm      '    1.4548       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.1160       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .99557       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6850E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   97603.31     FROM MIGRAD    STATUS=CONVERGED    555 CALLS     2524 TOTAL
                     EDM=   .57E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .76312         .0000    ** at limit **
   2  Prefactor     .10001E-03    5.8146         .0000    ** at limit **
   3  norm          5.2423        1.5054         .0000        .55242E-01
   4  Prefactor     32.581        16.148         .0000        .35426E-03
   5  Prefactor     .10000E-03    4.5429         .0000    ** at limit **
   6  Prefactor     .10000E-03    1.0909         .0000    ** at limit **
   7  Prefactor     12.424        11.973         .0000        .16233E-02
   8  Prefactor     3.9623        1.8279         .0000        .19296E-02
   9  Prefactor     .10000E-03    6.2326         .0000    ** at limit **
  10  Prefactor     .10000E-03    7.5698         .0000    ** at limit **
  11  Prefactor     .10000E-03    .60719         .0000    ** at limit **
  12  norm          .65351        .30994         .0000        .57254E-03
  13  norm          .10001E-03    7.7470         .0000    ** at limit **
  14  norm          5.7398        2.9929         .0000        .18870E-01
  15  Prefactor     1.7758        1.1694         .0000        .55597E-02
  16  norm          .10000E-03    .35406         .0000    ** at limit **
  17  Prefactor     5.1672        1.3770         .0000        .31444E-02
  18  Prefactor     1.9657        4.0438         .0000        .17923E-02
  19  norm          16.523        7.2461         .0000        .63654E-04
  20  Prefactor     3.2975        1.9657         .0000        .89554E-01
  21  norm          .10000E-03    2.4607         .0000    ** at limit **
  22  norm          .28646        .60152         .0000        .14888E-01
  23  norm          1.4548        .73681         .0000        .11265E-01
  24  Normalizat    1.1160        .60691E-01     .0000        .11011E-02
  25  Prefactor     .99557        .27919E-01     .0000        .19012E-02
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.000100009
  norm       = 5.24234
  Prefactor  = 32.5806
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 12.4237
  Prefactor  = 3.9623
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.653512
  norm       = 0.000100012
  norm       = 5.73984
  Prefactor  = 1.77584
  norm       = 0.0001
  Prefactor  = 5.16723
  Prefactor  = 1.9657
  norm       = 16.5233
  Prefactor  = 3.29747
  norm       = 0.0001
  norm       = 0.286459
  norm       = 1.45476
  Normalizat = 1.11602
  Prefactor  = 0.99557
 **********
 **   18 **HESSE 
 **********

 FCN=   97603.31     FROM HESSE     STATUS=OK           429 CALLS     2953 TOTAL
                     EDM=   .14E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    .79434        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10001E-03    5.8565        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          5.2423        1.5027        .87779E-03   -1.5250    
   4  Prefactor     32.581        16.162        .70201E-04   -1.4566    
   5  Prefactor     .10000E-03    4.5471        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    1.1105        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     12.424        11.970        .11364E-03   -1.5003    
   8  Prefactor     3.9623        1.8276        .20264E-03   -1.5310    
   9  Prefactor     .10000E-03    6.3122        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    7.5907        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    .62193        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .65351        .30606        .11670E-03   -1.5546    
  13  norm          .10001E-03    7.9065        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          5.7398        2.9917        .83826E-03   -1.5229    
  15  Prefactor     1.7758        1.1654        .26450E-03   -1.5441    
  16  norm          .10000E-03    .35683        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     5.1672        1.3690        .17685E-03   -1.5253    
  18  Prefactor     1.9657        4.0131        .29583E-03   -1.5428    
  19  norm          16.523        7.2517        .98530E-04   -1.4895    
  20  Prefactor     3.2975        1.9546        .11148E-02   -1.5345    
  21  norm          .10000E-03    2.4646        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .28646        1.0199        .24923E-02   -1.5601    
  23  norm          1.4548        .81992        .13534E-03   -1.5467    
  24  Normalizat    1.1160        .71472E-01    .34482E-03   -.89239    
  25  Prefactor     .99557        .33043E-01    .16846E-03   -.92877    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.44893e-06
Minuit parameter uncertainties:
  1  6.00418e-07
  2  0.000465499
  3  1.50271
  4  16.1645
  5  0.000125703
  6  4.17596e-06
  7  11.9726
  8  1.82759
  9  0.000166572
  10  0.000114511
  11  9.35003e-06
  12  0.30606
  13  0.000627412
  14  2.99176
  15  1.16538
  16  1.84071e-05
  17  1.36905
  18  4.01362
  19  7.25213
  20  1.95459
  21  6.23633e-05
  22  1.01998
  23  0.819928
  24  0.0714778
  25  0.0330435
Done.

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

Extracting fit parameters...

4FGL J1754.2+3212
   Spectrum: LogParabola
348         norm:  6.535e-01  3.061e-01  1.000e-04  1.000e+04 ( 1.000e-12)
349        alpha:  1.748e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
350         beta:  1.054e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
351           Eb:  1.404e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
682    Prefactor:  9.956e-01  3.304e-02  0.000e+00  1.000e+01 ( 1.000e+00)
683        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
684        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
681   Normalization:  1.116e+00  7.148e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 13.30
Ra Dec: 268.553 32.201
Photon Index (Fixed Index): 1.75 +/- 0.00
Photon Flux (Fixed Index): 6.39e-09 +/- 2.99e-09
Energy Flux (Fixed Index): 7.20e-06 +/- 3.37e-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) = 97603.2898173
delta logL = 0.0189798805659

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 97603.2862077
delta logL = 0.0225895083568

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .62535       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.6507       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1167       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99560       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6850E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   97603.29     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      247 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .62514        .32314        .11599E-03    .31365E-05
   2  alpha         1.6505        .43836        .43552E-01   -.57612E-04
   3  Normalizat    1.1167        .69320E-01    .34474E-03    .94976E-05
   4  Prefactor     .99560        .32378E-01    .16846E-03    .15116E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.625145
  alpha      = 1.65053
  Normalizat = 1.11666
  Prefactor  = 0.995598
 **********
 **   18 **HESSE 
 **********

 FCN=   97603.29     FROM HESSE     STATUS=OK            25 CALLS      272 TOTAL
                     EDM=   .38E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .62514        .33468        .46395E-05   -1.5550    
   2  alpha         1.6505        .45445        .17421E-02   -.34669    
   3  Normalizat    1.1167        .69359E-01    .68948E-04   -.89219    
   4  Prefactor     .99560        .32401E-01    .33693E-04   -.92876    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.80943e-14
Minuit parameter uncertainties:
  1  0.334678
  2  0.457326
  3  0.0693649
  4  0.0324015
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/969632': 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) = 97603.2862075
delta logL = 0.0225897062192

Extracting fit parameters...

4FGL J1754.2+3212
   Spectrum: LogParabola
348         norm:  6.251e-01  3.347e-01  1.000e-04  1.000e+04 ( 1.000e-12)
349        alpha:  1.651e+00  4.573e-01  0.000e+00  5.000e+00 ( 1.000e+00)
350         beta:  1.054e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
351           Eb:  1.404e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
682    Prefactor:  9.956e-01  3.240e-02  0.000e+00  1.000e+01 ( 1.000e+00)
683        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
684        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
681   Normalization:  1.117e+00  6.936e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 13.35
Ra Dec: 268.553 32.201
Photon Index (Free Index): 1.65 +/- 0.46
Photon Flux (Free Index): 5.47e-09 +/- 4.77e-09
Energy Flux (Free Index): 7.73e-06 +/- 4.59e-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/969632/cmap_HighResolution_599875201_602467201_4FGL_J1754.2+3212_monthly_bin140.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.39e-09', energy_flux2='7.73e-06', photon_flux_error='2.99e-09', dlogl='2.26e-02', energy_flux='7.20e-06', photon_flux2='5.47e-09', job_status='DONE', time_completed='2021-11-01 03:31:35.945208', photon_index_error2='0.46', photon_index2='1.65', ts='13.30', fit_tolerance='1e-08', GAL='1.00', photon_index_error='0.00', energy_flux_error2='4.59e-06', EG='1.12', time_epoch_completed='1635762695.95', return_code='0', job_id='969632', GAL2='1.00', EG2='1.12', return_code2='0', energy_flux_error='3.37e-06', photon_flux_error2='4.77e-09', ts2='13.35', photon_index='1.75' WHERE bin_id='140' AND source_name='4FGL J1754.2+3212' AND cadence='monthly';

Database successfully updated.


Analysis Complete.


Mon Nov  1 03:31:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0183>
Subject: Job 969632: <4FGL_J1754.2+3212_monthly_bin140> in cluster <slac> Done

Job <4FGL_J1754.2+3212_monthly_bin140> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Mon Nov  1 01:45:10 2021
Job was executed on host(s) <bullet0183>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Nov  1 01:45:12 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Nov  1 01:45:12 2021
Terminated at Mon Nov  1 03:31:36 2021
Results reported at Mon Nov  1 03:31:36 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1754.2+3212_monthly_bin140 268.553 32.2007 599875201 602467201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1754.2+3212 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   6111.16 sec.
    Max Memory :                                 635 MB
    Average Memory :                             438.68 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   2950 MB
    Max Processes :                              6
    Max Threads :                                21
    Run time :                                   6384 sec.
    Turnaround time :                            6386 sec.

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

