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


Performing analysis on: 4FGL_J1212.0-2326_daily_bin1223
RA = 183.001, Dec = -23.4494
tmin = 556329601, tmax = 556588801
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='410200', job_status='RUN', time_executed='2021-09-05 04:01:13.125107', time_epoch_executed='1630839673.13' WHERE source_name='4FGL J1212.0-2326' and cadence='daily' and bin_id='1223'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/410200

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/410200/ft1_4FGL_J1212.0-2326_daily_bin1223.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/410200/ft2_4FGL_J1212.0-2326_daily_bin1223.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/410200/ft1_4FGL_J1212.0-2326_daily_bin1223.fits outfile=/scratch/kocevski/410200/ft1_filteredMKT_4FGL_J1212.0-2326_daily_bin1223.fits ra=183.001 dec=-23.4494 rad=12.0 tmin=556329601.0 tmax=556588801.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 5.09
user 3.49
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/410200/ft2_4FGL_J1212.0-2326_daily_bin1223.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/410200/ft2_4FGL_J1212.0-2326_daily_bin1223.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/410200/ft1_filteredMKT_4FGL_J1212.0-2326_daily_bin1223.fits evtable="EVENTS" outfile="/scratch/kocevski/410200/ft1_filtered_4FGL_J1212.0-2326_daily_bin1223.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.76
user 0.34
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/410200/ft1_filtered_4FGL_J1212.0-2326_daily_bin1223.fits" evtable="EVENTS" scfile=/scratch/kocevski/410200/ft2_4FGL_J1212.0-2326_daily_bin1223.fits sctable="SC_DATA" outfile=/scratch/kocevski/410200/ltcube_556329601_556588801_4FGL_J1212.0-2326_daily_bin1223.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/410200/ft2_4FGL_J1212.0-2326_daily_bin1223.fits
.....................!
real 11.91
user 11.18
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/410200/ft1_filtered_4FGL_J1212.0-2326_daily_bin1223.fits evtable="EVENTS" scfile=/scratch/kocevski/410200/ft2_4FGL_J1212.0-2326_daily_bin1223.fits sctable="SC_DATA" expcube=/scratch/kocevski/410200/ltcube_556329601_556588801_4FGL_J1212.0-2326_daily_bin1223.fits outfile=/scratch/kocevski/410200/expmap_556329601_556588801_4FGL_J1212.0-2326_daily_bin1223.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/410200/ltcube_556329601_556588801_4FGL_J1212.0-2326_daily_bin1223.fits
.....................!
real 191.50
user 186.20
sys 4.14

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

Setting source of interest to:
4FGL J1212.0-2326 @ 183.001 -23.4494

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/410200/ft1_filtered_4FGL_J1212.0-2326_daily_bin1223.fits scfile=/scratch/kocevski/410200/ft2_4FGL_J1212.0-2326_daily_bin1223.fits outfile=/scratch/kocevski/410200/cmap_556329601_556588801_4FGL_J1212.0-2326_daily_bin1223.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=183.001 yref=-23.4494 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.53
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/410200/ft1_filtered_4FGL_J1212.0-2326_daily_bin1223.fits scfile=/scratch/kocevski/410200/ft2_4FGL_J1212.0-2326_daily_bin1223.fits outfile=/scratch/kocevski/410200/cmap_HighResolution_556329601_556588801_4FGL_J1212.0-2326_daily_bin1223.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=183.001 yref=-23.4494 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.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/410200/ft1_filtered_4FGL_J1212.0-2326_daily_bin1223.fits evtable="EVENTS" scfile=/scratch/kocevski/410200/ft2_4FGL_J1212.0-2326_daily_bin1223.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/410200/Model_4FGL_J1212.0-2326_daily_bin1223.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/410200/ft1_filtered_4FGL_J1212.0-2326_daily_bin1223.fits.....................!
real 68.63
user 67.23
sys 1.21

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/410200/ft1_filtered_4FGL_J1212.0-2326_daily_bin1223.fits', '/scratch/kocevski/410200/ft2_4FGL_J1212.0-2326_daily_bin1223.fits', expMap='/scratch/kocevski/410200/expmap_556329601_556588801_4FGL_J1212.0-2326_daily_bin1223.fits', expCube='/scratch/kocevski/410200/ltcube_556329601_556588801_4FGL_J1212.0-2326_daily_bin1223.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/410200/Model_4FGL_J1212.0-2326_daily_bin1223.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1212.0-2326'

4FGL J1212.0-2326
   Spectrum: PowerLaw
297    Prefactor:  1.799e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
298        Index:  1.897e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
299        Scale:  4.223e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/410200/ft1_filtered_4FGL_J1212.0-2326_daily_bin1223.fits
Spacecraft file(s): /scratch/kocevski/410200/ft2_4FGL_J1212.0-2326_daily_bin1223.fits
Exposure map: /scratch/kocevski/410200/expmap_556329601_556588801_4FGL_J1212.0-2326_daily_bin1223.fits
Exposure cube: /scratch/kocevski/410200/ltcube_556329601_556588801_4FGL_J1212.0-2326_daily_bin1223.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/410200/Model_4FGL_J1212.0-2326_daily_bin1223.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) = 8294.07896711

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.4795       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    11.397       1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.9304       1.0000         .10000E-03   10000.    
     6 'Prefactor '    12.040       1.0000         .10000E-03   10000.    
     7 'norm      '    12.511       1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.3942       1.0000         .10000E-03   10000.    
     9 'norm      '    6.7453       1.0000         .10000E-03   10000.    
    10 'Prefactor '    6.9497       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    31.457       1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.5439       1.0000         .10000E-03   10000.    
    17 'Prefactor '    3.6950       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    160.67       1.0000         .10000E-03   10000.    
    21 'norm      '    1.6548       1.0000         .10000E-03   10000.    
    22 'Prefactor '    5.2717       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.3196       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .99929       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5720E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8294.075     FROM MIGRAD    STATUS=CONVERGED    511 CALLS     2690 TOTAL
                     EDM=   .17E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.4789        8.5077        .16023E-05   -.57611E-04
   2  Prefactor     .10000E-03    14.669        .28227E-07** at limit **
   3  norm          .10000E-03    .57318        .10623E-06** at limit **
   4  Prefactor     11.330        39.089       -.16133E-05   -.12590E-03
   5  Prefactor     2.9291        4.6335        .18824E-06   -.57233E-04
   6  Prefactor     12.039        15.679       -.45046E-06   -.13063E-04
   7  norm          12.515        13.477        .87334E-07    .68409E-05
   8  Prefactor     2.3936        14.312        .27653E-06   -.29194E-04
   9  norm          6.7449        5.8538       -.74487E-07   -.73948E-04
  10  Prefactor     6.9491        6.1128        .36562E-05   -.25709E-03
  11  Prefactor     .10000E-03    14.635       -.71987E-07** at limit **
  12  Prefactor     .10000E-03    17.998       -.51456E-06** at limit **
  13  Prefactor     .10000E-03    8.4148        .96821E-08** at limit **
  14  Prefactor     .10000E-03    19.998        .47866E-07** at limit **
  15  Prefactor     31.450        25.563       -.30975E-06   -.49147E-04
  16  Prefactor     3.5418        7.8385        .49227E-07   -.38049E-05
  17  Prefactor     3.6953        2.7652        .41882E-06   -.85700E-04
  18  Prefactor     .10000E-03    7.5151       -.80149E-07** at limit **
  19  norm          .10000E-03    .25114       -.32734E-07** at limit **
  20  Prefactor     160.56        125.09        .83048E-06   -.91589E-04
  21  norm          1.6436        9.1812       -.77846E-06   -.59785E-04
  22  Prefactor     5.2842        7.9211        .87567E-06   -.15356E-05
  23  Normalizat    1.3196        .23461       -.97302E-06   -.36099E-04
  24  Prefactor     .99929        .11129       -.63396E-06   -.18416E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.47886
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 11.3298
  Prefactor  = 2.9291
  Prefactor  = 12.0389
  norm       = 12.5153
  Prefactor  = 2.39356
  norm       = 6.74486
  Prefactor  = 6.94907
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 31.4502
  Prefactor  = 3.54178
  Prefactor  = 3.69525
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 160.562
  norm       = 1.64364
  Prefactor  = 5.28422
  Normalizat = 1.31963
  Prefactor  = 0.999285
 **********
 **   18 **HESSE 
 **********

 FCN=   8294.075     FROM HESSE     STATUS=OK           401 CALLS     3091 TOTAL
                     EDM=   .35E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.4789        8.5057        .78833E-03   -1.5199    
   2  Prefactor     .10000E-03    14.672        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    .59184        .13456E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     11.330        39.124        .11867E-03   -1.5035    
   5  Prefactor     2.9291        4.6198        .23278E-03   -1.5366    
   6  Prefactor     12.039        15.672        .11545E-03   -1.5014    
   7  norm          12.515        13.481        .11325E-03   -1.5000    
   8  Prefactor     2.3936        13.721        .26467E-03   -1.5399    
   9  norm          6.7449        5.7477        .15449E-03   -1.5188    
  10  Prefactor     6.9491        6.1096        .76091E-03   -1.5181    
  11  Prefactor     .10000E-03    14.637        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    18.061        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    8.4233        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    20.014        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     31.450        25.603        .71440E-04   -1.4586    
  16  Prefactor     3.5418        7.8468        .21471E-03   -1.5332    
  17  Prefactor     3.6953        2.7699        .58766E-03   -1.5323    
  18  Prefactor     .10000E-03    7.5467        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    .25463        .44534E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     160.56        122.71        .15907E-03   -1.3167    
  21  norm          1.6436        8.1316        .32810E-03   -1.5452    
  22  Prefactor     5.2842        7.6787        .17506E-03   -1.5248    
  23  Normalizat    1.3196        .27896        .34874E-03   -.82982    
  24  Prefactor     .99929        .13256        .19221E-03   -.92753    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.49316e-10
Minuit parameter uncertainties:
  1  8.50726
  2  1.59731e-05
  3  1.28397e-06
  4  39.2126
  5  4.62034
  6  15.6776
  7  13.4844
  8  11.4652
  9  5.74817
  10  6.11019
  11  2.74122e-05
  12  0.00010175
  13  3.85362e-06
  14  3.31144e-06
  15  25.6115
  16  7.84903
  17  2.77002
  18  2.62239e-06
  19  4.71707e-07
  20  122.902
  21  7.31313
  22  7.68013
  23  0.279282
  24  0.132606
Done.

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

Extracting fit parameters...

4FGL J1212.0-2326
   Spectrum: PowerLaw
297    Prefactor:  1.000e-04  3.854e-06  1.000e-04  1.000e+04 ( 1.000e-14)
298        Index:  1.897e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
299        Scale:  4.223e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
569    Prefactor:  9.993e-01  1.326e-01  0.000e+00  1.000e+01 ( 1.000e+00)
570        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
571        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
568   Normalization:  1.320e+00  2.793e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 183.001 -23.449
Photon Flux Upper Limit: 5.34e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.97e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/410200/likelihoodResults_556329601_556588801_4FGL_J1212.0-2326_daily_bin1223.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8294.07573776
delta logL = -0.000565401043787

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8294.07517233
delta logL = 2.3064785637e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.8839       1.0000          .0000       10.000    
     3 'Normalizat'    1.3196       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99927       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5720E+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=   8294.075     FROM MIGRAD    STATUS=FAILED        86 CALLS      234 TOTAL
                     EDM=   .51E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10058E-03    611.58        .18142E-02** at limit **
   2  Index         1.8466        7.9173        .20000        .11382E-04
   3  Normalizat    1.3196        .54732E-01    .34873E-03   -.42250E-04
   4  Prefactor     .99929        .26867E-01    .19221E-03   -.10055E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   8294.075     FROM SIMPLEX   STATUS=UNCHANGED    155 CALLS      389 TOTAL
                     EDM=   .99E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10058E-03    611.58        .48841E-03** at limit **
   2  Index         1.8466        7.9173        .10620E-04    .11382E-04
   3  Normalizat    1.3196        .54732E-01    .24809E-06   -.42250E-04
   4  Prefactor     .99929        .26867E-01    .10404E-06   -.10055E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8294.075     FROM MIGRAD    STATUS=CONVERGED     42 CALLS      431 TOTAL
                     EDM=   .90E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    323.67        .36285E-02** at limit **
   2  Index         1.4310        6.7886        .40000       -.54683E-07
   3  Normalizat    1.3196        .35504E-01    .13949E-04    .27384E-04
   4  Prefactor     .99929        .17428E-01    .76884E-05    .92269E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.43096
  Normalizat = 1.31963
  Prefactor  = 0.999286
 **********
 **   18 **HESSE 
 **********

 FCN=   8294.075     FROM HESSE     STATUS=NOT POSDEF    27 CALLS      458 TOTAL
                     EDM=   .25E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    675.66        .72569E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.4310        8.4685        .50000       -.79492    
   3  Normalizat    1.3196        .54315E-01    .27899E-05   -.82982    
   4  Prefactor     .99929        .26654E-01    .15377E-05   -.92753    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.49574e-12
Minuit parameter uncertainties:
  1  3.63985e-05
  2  2018.8
  3  0.0543176
  4  0.0266539
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/410200': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8294.07517157
delta logL = 7.87715180195e-07

Extracting fit parameters...

4FGL J1212.0-2326
   Spectrum: PowerLaw
297    Prefactor:  1.000e-04  3.640e-05  1.000e-04  1.000e+04 ( 1.000e-14)
298        Index:  1.431e+00  2.019e+03  0.000e+00  1.000e+01 (-1.000e+00)
299        Scale:  4.223e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
569    Prefactor:  9.993e-01  2.665e-02  0.000e+00  1.000e+01 ( 1.000e+00)
570        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
571        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
568   Normalization:  1.320e+00  5.432e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 183.001 -23.449

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/410200/cmap_HighResolution_556329601_556588801_4FGL_J1212.0-2326_daily_bin1223.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.97e-03', job_status='DONE', photon_flux_upper_limit='5.34e-08', time_completed='2021-09-05 04:15:06.361074', job_id='410200', GAL2='1.00', fit_tolerance='1e-08', EG2='1.32', EG='1.32', time_epoch_completed='1630840506.36', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.00', dlogl='7.88e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.90' WHERE bin_id='1223' AND source_name='4FGL J1212.0-2326' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 04:15:06 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0274>
Subject: Job 410200: <4FGL_J1212.0-2326_daily_bin1223> in cluster <slac> Done

Job <4FGL_J1212.0-2326_daily_bin1223> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sun Sep  5 04:00:40 2021
Job was executed on host(s) <bullet0274>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 04:00:42 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep  5 04:00:42 2021
Terminated at Sun Sep  5 04:15:07 2021
Results reported at Sun Sep  5 04:15:07 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1212.0-2326_daily_bin1223 183.001 -23.4494 556329601 556588801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1212.0-2326 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   812.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             339.67 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   864 sec.
    Turnaround time :                            867 sec.

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

