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


Performing analysis on: 4FGL_J2232.6+1143_daily_bin665
RA = 338.152, Dec = 11.7306
tmin = 411696001, tmax = 411955201
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='345161', job_status='RUN', time_executed='2021-09-28 13:55:40.771643', time_epoch_executed='1632862540.77' WHERE source_name='4FGL J2232.6+1143' and cadence='daily' and bin_id='665'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/345161

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/345161/ft1_4FGL_J2232.6+1143_daily_bin665.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/345161/ft2_4FGL_J2232.6+1143_daily_bin665.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/345161/ft1_4FGL_J2232.6+1143_daily_bin665.fits outfile=/scratch/kocevski/345161/ft1_filteredMKT_4FGL_J2232.6+1143_daily_bin665.fits ra=338.152 dec=11.7306 rad=12.0 tmin=411696001.0 tmax=411955201.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 6.53
user 5.88
sys 0.63

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/345161/ft2_4FGL_J2232.6+1143_daily_bin665.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/345161/ft2_4FGL_J2232.6+1143_daily_bin665.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/345161/ft1_filteredMKT_4FGL_J2232.6+1143_daily_bin665.fits evtable="EVENTS" outfile="/scratch/kocevski/345161/ft1_filtered_4FGL_J2232.6+1143_daily_bin665.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.49
user 0.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/345161/ft1_filtered_4FGL_J2232.6+1143_daily_bin665.fits" evtable="EVENTS" scfile=/scratch/kocevski/345161/ft2_4FGL_J2232.6+1143_daily_bin665.fits sctable="SC_DATA" outfile=/scratch/kocevski/345161/ltcube_411696001_411955201_4FGL_J2232.6+1143_daily_bin665.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/345161/ft2_4FGL_J2232.6+1143_daily_bin665.fits
.....................!
real 12.22
user 11.89
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/345161/ft1_filtered_4FGL_J2232.6+1143_daily_bin665.fits evtable="EVENTS" scfile=/scratch/kocevski/345161/ft2_4FGL_J2232.6+1143_daily_bin665.fits sctable="SC_DATA" expcube=/scratch/kocevski/345161/ltcube_411696001_411955201_4FGL_J2232.6+1143_daily_bin665.fits outfile=/scratch/kocevski/345161/expmap_411696001_411955201_4FGL_J2232.6+1143_daily_bin665.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/345161/ltcube_411696001_411955201_4FGL_J2232.6+1143_daily_bin665.fits
.....................!
real 192.85
user 187.18
sys 5.33

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

Setting source of interest to:
4FGL J2232.6+1143 @ 338.152 11.7306

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/345161/ft1_filtered_4FGL_J2232.6+1143_daily_bin665.fits scfile=/scratch/kocevski/345161/ft2_4FGL_J2232.6+1143_daily_bin665.fits outfile=/scratch/kocevski/345161/cmap_411696001_411955201_4FGL_J2232.6+1143_daily_bin665.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=338.152 yref=11.7306 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.55
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/345161/ft1_filtered_4FGL_J2232.6+1143_daily_bin665.fits scfile=/scratch/kocevski/345161/ft2_4FGL_J2232.6+1143_daily_bin665.fits outfile=/scratch/kocevski/345161/cmap_HighResolution_411696001_411955201_4FGL_J2232.6+1143_daily_bin665.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=338.152 yref=11.7306 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/345161/ft1_filtered_4FGL_J2232.6+1143_daily_bin665.fits evtable="EVENTS" scfile=/scratch/kocevski/345161/ft2_4FGL_J2232.6+1143_daily_bin665.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/345161/Model_4FGL_J2232.6+1143_daily_bin665.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/345161/ft1_filtered_4FGL_J2232.6+1143_daily_bin665.fits......................!
real 41.49
user 39.65
sys 1.33

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/345161/ft1_filtered_4FGL_J2232.6+1143_daily_bin665.fits', '/scratch/kocevski/345161/ft2_4FGL_J2232.6+1143_daily_bin665.fits', expMap='/scratch/kocevski/345161/expmap_411696001_411955201_4FGL_J2232.6+1143_daily_bin665.fits', expCube='/scratch/kocevski/345161/ltcube_411696001_411955201_4FGL_J2232.6+1143_daily_bin665.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/345161/Model_4FGL_J2232.6+1143_daily_bin665.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2232.6+1143'

4FGL J2232.6+1143
   Spectrum: PLSuperExpCutoff2
268    Prefactor:  3.234e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-10)
269       Index1:  2.052e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
270        Scale:  5.313e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed
271    Expfactor:  2.832e+00  0.000e+00 -1.000e+00  1.000e+02 ( 1.000e-03) fixed
272       Index2:  6.667e-01  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/345161/ft1_filtered_4FGL_J2232.6+1143_daily_bin665.fits
Spacecraft file(s): /scratch/kocevski/345161/ft2_4FGL_J2232.6+1143_daily_bin665.fits
Exposure map: /scratch/kocevski/345161/expmap_411696001_411955201_4FGL_J2232.6+1143_daily_bin665.fits
Exposure cube: /scratch/kocevski/345161/ltcube_411696001_411955201_4FGL_J2232.6+1143_daily_bin665.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/345161/Model_4FGL_J2232.6+1143_daily_bin665.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) = 3113.6658729

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .13976E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    12.246       1.0000         .10000E-03   10000.    
     3 'norm      '    .10019E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    97.484       1.0000         .10000E-03   10000.    
     6 'Prefactor '    23.141       1.0000         .10000E-03   10000.    
     7 'norm      '    9.0576       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    9.2201       1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.9882       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    245.16       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .11853E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.5468       1.0000         .10000E-03   10000.    
    17 'Prefactor '    28.334       1.0000         .10000E-03   10000.    
    18 'Prefactor '    9.6401       1.0000         .10000E-03   10000.    
    19 'Prefactor '    30.238       1.0000         .10000E-03   10000.    
    20 'Normalizat'    .84604       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.0115       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5050E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   3113.639     FROM MIGRAD    STATUS=CONVERGED    444 CALLS     2233 TOTAL
                     EDM=   .11E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    143.12        .25226E-04** at limit **
   2  norm          12.242        6.0952       -.25498E-06   -.18724E-03
   3  norm          .10000E-03    31.439        .18982E-05** at limit **
   4  norm          .10000E-03    .86303        .34139E-07** at limit **
   5  Prefactor     97.476        72.930       -.93402E-05   -.21904E-04
   6  Prefactor     23.207        69.795        .10175E-03    .33263E-05
   7  norm          9.0575        10.260        .14906E-06   -.44577E-04
   8  Prefactor     .10000E-03    20.145       -.26295E-06** at limit **
   9  Prefactor     9.2170        24.081       -.66855E-06   -.20046E-04
  10  Prefactor     2.9881        .78073       -.45427E-07    .16612E-03
  11  Prefactor     .10000E-03    38.633       -.30380E-05** at limit **
  12  norm          .10000E-03    2.3803        .40847E-07** at limit **
  13  Prefactor     245.13        178.79       -.14805E-04    .22419E-04
  14  Prefactor     .10000E-03    11.445        .12659E-07** at limit **
  15  Prefactor     .10000E-03    149.58       -.11580E-04** at limit **
  16  Prefactor     2.5467        .70274        .26209E-06   -.82959E-03
  17  Prefactor     28.326        91.418       -.11265E-04    .84069E-06
  18  Prefactor     9.6360        22.883        .13204E-04    .27971E-04
  19  Prefactor     30.197        43.722       -.31497E-04   -.11212E-04
  20  Normalizat    .84635        .53551        .34389E-05   -.48240E-04
  21  Prefactor     1.0114        .24664       -.25686E-05    .62982E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 12.2417
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 97.4759
  Prefactor  = 23.2069
  norm       = 9.0575
  Prefactor  = 0.0001
  Prefactor  = 9.21701
  Prefactor  = 2.98812
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 245.134
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 2.54667
  Prefactor  = 28.3262
  Prefactor  = 9.63597
  Prefactor  = 30.1973
  Normalizat = 0.846351
  Prefactor  = 1.01139
 **********
 **   18 **HESSE 
 **********

 FCN=   3113.639     FROM HESSE     STATUS=OK           317 CALLS     2550 TOTAL
                     EDM=   .29E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    143.19        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          12.242        6.0926        .92842E-04   -1.5008    
   3  norm          .10000E-03    31.484        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    1.3954        .99329E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     97.476        72.875        .40712E-04   -1.3730    
   6  Prefactor     23.207        69.728        .83267E-04   -1.4744    
   7  norm          9.0575        10.235        .13317E-03   -1.5106    
   8  Prefactor     .10000E-03    20.164        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     9.2170        24.276        .13199E-03   -1.5101    
  10  Prefactor     2.9881        .78127        .23740E-04   -1.5362    
  11  Prefactor     .10000E-03    38.874        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    2.4083        .84058E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     245.13        181.77        .12933E-03   -1.2564    
  14  Prefactor     .10000E-03    11.452        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    149.89        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     2.5467        .71769        .20425E-04   -1.5389    
  17  Prefactor     28.326        91.587        .75264E-04   -1.4643    
  18  Prefactor     9.6360        22.871        .12907E-03   -1.5087    
  19  Prefactor     30.197        43.678        .72862E-04   -1.4608    
  20  Normalizat    .84635        .61000        .49352E-03   -.98372    
  21  Prefactor     1.0114        .28532        .22832E-03   -.92351    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.86269e-10
Minuit parameter uncertainties:
  1  3.5458e-05
  2  6.09295
  3  3.9018e-05
  4  4.11993e-06
  5  72.9421
  6  69.9739
  7  10.2369
  8  5.28974e-05
  9  24.3017
  10  0.781274
  11  3.32374e-06
  12  7.17174e-06
  13  182.19
  14  3.8331e-06
  15  0.000576539
  16  0.717691
  17  92.0465
  18  22.8919
  19  43.7239
  20  0.615055
  21  0.285745
Done.

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

Extracting fit parameters...

4FGL J2232.6+1143
   Spectrum: PLSuperExpCutoff2
268    Prefactor:  2.988e+00  7.813e-01  1.000e-04  1.000e+04 ( 1.000e-10)
269       Index1:  2.052e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
270        Scale:  5.313e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed
271    Expfactor:  2.832e+00  0.000e+00 -1.000e+00  1.000e+02 ( 1.000e-03) fixed
272       Index2:  6.667e-01  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
502    Prefactor:  1.011e+00  2.857e-01  0.000e+00  1.000e+01 ( 1.000e+00)
503        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
504        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
501   Normalization:  8.464e-01  6.151e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 40.27
Ra Dec: 338.152 11.731
Photon Index (Fixed Index): 2.05 +/- 0.00
Photon Flux (Fixed Index): 7.62e-07 +/- 1.99e-07
Energy Flux (Fixed Index): 2.82e-04 +/- 7.38e-05

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) = 3112.4030742
delta logL = 1.23613082031

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3112.32326742
delta logL = 1.31593760414

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.5300       1.0000         .10000E-03   10000.    
     2 'Index1    '    2.5230       1.0000          .0000       10.000    
     3 'Normalizat'    .62547       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0975       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5050E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   3112.323     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      195 TOTAL
                     EDM=   .19E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.5301        8.4545        .46530E-02    .93787E-03
   2  Index1        2.5230        2.9886        .66306E-01    .94544E-04
   3  Normalizat    .62556        .82794        .12717       -.18038E-04
   4  Prefactor     1.0975        .45174        .37682E-01   -.12870E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.53009
  Index1     = 2.52301
  Normalizat = 0.625565
  Prefactor  = 1.09746
 **********
 **   18 **HESSE 
 **********

 FCN=   3112.323     FROM HESSE     STATUS=OK            27 CALLS      222 TOTAL
                     EDM=   .50E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.5301        .77914        .20578E-04   -1.5390    
   2  Index1        2.5230        .30766        .28929E-03   -.51829    
   3  Normalizat    .62556        .56678        .56426E-03   -1.0691    
   4  Prefactor     1.0975        .28583        .22001E-03   -.89548    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.00764e-11
Minuit parameter uncertainties:
  1  0.779145
  2  0.307915
  3  0.572172
  4  0.28623
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/345161': 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) = 3112.3232674
delta logL = 1.31593762509

Extracting fit parameters...

4FGL J2232.6+1143
   Spectrum: PLSuperExpCutoff2
268    Prefactor:  2.530e+00  7.791e-01  1.000e-04  1.000e+04 ( 1.000e-10)
269       Index1:  2.523e+00  3.079e-01  0.000e+00  1.000e+01 (-1.000e+00)
270        Scale:  5.313e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed
271    Expfactor:  2.832e+00  0.000e+00 -1.000e+00  1.000e+02 ( 1.000e-03) fixed
272       Index2:  6.667e-01  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
502    Prefactor:  1.097e+00  2.862e-01  0.000e+00  1.000e+01 ( 1.000e+00)
503        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
504        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
501   Normalization:  6.256e-01  5.722e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 42.63
Ra Dec: 338.152 11.731
Photon Index (Free Index): 2.52 +/- 0.31
Photon Flux (Free Index): 1.01e-06 +/- 2.86e-07
Energy Flux (Free Index): 2.45e-04 +/- 6.23e-05

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/345161/cmap_HighResolution_411696001_411955201_4FGL_J2232.6+1143_daily_bin665.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.62e-07', energy_flux2='2.45e-04', photon_flux_error='1.99e-07', dlogl='1.32e+00', energy_flux='2.82e-04', photon_flux2='1.01e-06', job_status='DONE', time_completed='2021-09-28 14:03:05.335276', photon_index_error2='0.31', photon_index2='2.52', ts='40.27', fit_tolerance='1e-08', GAL='1.01', photon_index_error='0.00', energy_flux_error2='6.23e-05', EG='0.85', time_epoch_completed='1632862985.34', return_code='0', job_id='345161', GAL2='1.10', EG2='0.63', return_code2='0', energy_flux_error='7.38e-05', photon_flux_error2='2.86e-07', ts2='42.63', photon_index='2.05' WHERE bin_id='665' AND source_name='4FGL J2232.6+1143' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 14:03:05 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0084>
Subject: Job 345161: <4FGL_J2232.6+1143_daily_bin665> in cluster <slac> Done

Job <4FGL_J2232.6+1143_daily_bin665> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 28 13:55:23 2021
Job was executed on host(s) <bullet0084>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 13:55:25 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 28 13:55:25 2021
Terminated at Tue Sep 28 14:03:06 2021
Results reported at Tue Sep 28 14:03:06 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2232.6+1143_daily_bin665 338.152 11.7306 411696001 411955201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2232.6+1143 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   442.02 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             355.80 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   460 sec.
    Turnaround time :                            463 sec.

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

